comp.lang.ada
 help / color / mirror / Atom feed
From: "Tim Spargo" <tim.spargo@NO_SPAMsympatico.ca>
Subject: Re: Using GNU make with ObjectAda
Date: Sat, 6 Sep 2003 08:21:44 -0400
Date: 2003-09-06T08:21:44-04:00	[thread overview]
Message-ID: <rjk6b.4250$I_2.637875@news20.bellglobal.com> (raw)
In-Reply-To: bj9ulk$obi$1@a1-hrz.uni-duisburg.de

Hmm... speaking in general, if by "translation tools" I assume you mean
compilers, linkers etc. then compilers can normally generate dependencies
(in C/C++ with the "-M" option previously mentioned) for a particular source
file. But normally it is up to the make file to rebuild an entire project.
For example if a single header/spec file has changed, which files in the
project need to be rebuilt? The compiler doesn't know this. Of course these
files may be in different directories etc. So the makefile is needed to
capture the dependency relationships between the project files.

Specific to ObjectAda, they have created a build system which takes the
place of make files. I discussed this a bit in my earlier post. In my case I
need to unit test individual files and therefore need to use the CLI to
dynamically determine the dependency list of just a few files within a
larger project. In addition I need to compile and link in automatically
generated test code to do the unit testing. So I need to automatically
register these files and their dependencies with the ObjectAda toolset in
order for it to perform the build.

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.

Tim

"Georg Bauhaus" <sb463ba@d2-hrz.uni-duisburg.de> wrote in message
news:bj9ulk$obi$1@a1-hrz.uni-duisburg.de...
> Tim Spargo <tim.spargo@no_spamsympatico.ca> wrote:
> : 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.
>
> Out of curiosity, why are you trying to generate a make file?
> Dependences are usually checked by the translation tools that one
> is using, aren't they? So a makefile might be needed to switch
> include paths, but for dependces?
>
> Georg





  reply	other threads:[~2003-09-06 12:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
replies disabled

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