comp.lang.ada
 help / color / mirror / Atom feed
* Using GNU make with ObjectAda
@ 2003-09-04 22:16 Tim Spargo
  2003-09-05 12:13 ` Georg Bauhaus
  2003-09-06 20:42 ` Guillaume Foliard
  0 siblings, 2 replies; 13+ messages in thread
From: Tim Spargo @ 2003-09-04 22:16 UTC (permalink / raw)


Hi,

I am relatively new to Ada (from the Dark side - C++). I am trying to use
GNU make to create a makefile for some ObjectAda projects I am working on.

Through a combination of GNU make (3.80) and Perl (5.8), I have made
progress and have a working makefile, however the outstanding issue is
automatically generating dependencies. The problem is I need to selectively
generate all dependencies of a particular Ada file pair, which is a subset
of just getting a list of all .ads and .adb files in a particular directory
(which can be done using vpath with pattern matching in GNU make). I am
trying to avoid reinventing the wheel by building a dependancy tree in Perl.

Since I have no choice but to use ObjectAda (7.2 - old), I believe that this
excludes use of the GNAT tool set which supports automatic dependency
generation using the gcc "-M" option. In fact I quickly tried to use
gnatmake on the project and for various reasons the code base will not
compile under gnatmake. gcc needs to be able to compile an Ada file before
it can generate dependencies for it. Perhaps I need to look into this
more...

ObjectAda itself is designed to be GUI driven and therefore all files within
a particular project are added manually by the user. Once added to the
project, the files are added to the UNIT.MAP file. The ObjectAda CLI
commands (i.e. adareg, adamake, adabuild, etc) manipulate this and other
files to determine the dependency list. I don't believe the ObjectAda tools
support "-M" or similar functionality, since essentially they work around
the need for automatic dependancies it in a simplistic way.

Any thoughts from the learned Ada people out there would be appreciated...
Even a general direction would be helpful...





^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Using GNU make with ObjectAda
@ 2003-09-08  9:00 Lionel.DRAGHI
  0 siblings, 0 replies; 13+ messages in thread
From: Lionel.DRAGHI @ 2003-09-08  9:00 UTC (permalink / raw)
  To: comp.lang.ada



| -----Message d'origine-----
| De: Tim Spargo [mailto:tim.spargo@NO_SPAMsympatico.ca]
...
| What is missing for me is a way to generate the dependencies 
| of a single Ada
| source file, which would then feed into the makefile to 
| perform a rebuild.
| My version of the ObjectAda toolset (as I said, I have to use 
| an older 7.2
| version) does not appear to support this. The GNAT compiler 
| does automatic
| dependency generation, but I am unable to use it.
| 
Does your adareg version have the -s|b switch?

    -s unit_name        Autoregister files in search of 'unit_name' DECL.
    -b unit_name        Autoregister files in search of 'unit_name' BODY.

One more question : why isn't it possible to simply build the test with the
adabuild command?

-- 
Lionel Draghi 




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-09-15  4:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-04 22:16 Using GNU make with ObjectAda Tim Spargo
2003-09-05 12:13 ` Georg Bauhaus
2003-09-06 12:21   ` Tim Spargo
2003-09-06 13:00     ` Marin David Condic
2003-09-06 14:37     ` Ludovic Brenta
2003-09-07 20:42       ` Robert I. Eachus
2003-09-15  4:16       ` Dave Thompson
2003-09-06 20:42 ` Guillaume Foliard
2003-09-08 13:48   ` Stephen Leake
2003-09-08 22:22     ` Guillaume Foliard
2003-09-09  0:05       ` Ludovic Brenta
2003-09-09 13:38       ` Stephen Leake
  -- strict thread matches above, loose matches on Subject: below --
2003-09-08  9:00 Lionel.DRAGHI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox