From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,112ee4ae931079e6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-06 05:27:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-in.mts.net!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Reply-To: "Tim Spargo" From: "Tim Spargo" Newsgroups: comp.lang.ada References: Subject: Re: Using GNU make with ObjectAda X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: Date: Sat, 6 Sep 2003 08:21:44 -0400 NNTP-Posting-Host: 64.230.111.155 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1062850903 64.230.111.155 (Sat, 06 Sep 2003 08:21:43 EDT) NNTP-Posting-Date: Sat, 06 Sep 2003 08:21:43 EDT Organization: Bell Sympatico Xref: archiver1.google.com comp.lang.ada:42204 Date: 2003-09-06T08:21:44-04:00 List-Id: 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" wrote in message news:bj9ulk$obi$1@a1-hrz.uni-duisburg.de... > Tim Spargo 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