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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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 06:00:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!not-for-mail Message-ID: <3F59DA7A.5080109@noplace.com> From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (OEM-HPQ-PRS1C03) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Using GNU make with ObjectAda References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 06 Sep 2003 13:00:47 GMT NNTP-Posting-Host: 165.247.65.186 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1062853247 165.247.65.186 (Sat, 06 Sep 2003 09:00:47 EDT) NNTP-Posting-Date: Sat, 06 Sep 2003 09:00:47 EDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:42206 Date: 2003-09-06T13:00:47+00:00 List-Id: Actually, with Ada, it *does* know. You could try it by experimentation - build some relatively small chain of dependencies starting with some main program, then compile it. From there, edit one specification somewhere down the food chain. Then tell the system to rebuild. Dollars to doughnuts, the Ada compiler should discover that the spec you edited is out of date and recompile just the stuff that depends on it. I'm not that familiar with ObjectAda (although I am going down that direction for a project at work) so I can't tell you for sure how that is accomplished with that compiler. Its just that the standard says it should have some means of doing so. With GNAT Ada, I *know* this works - even across directories (provided they are in the search path.) An edited spec will cause the gnatmake tool to figure out exactly what needs to be compiled and it will do so. In C++ and other languages, make files may be more of a necessity. With Ada, I've never had to do that. I've just had to learn how to get the particular compiler I was working with to do it for me. MDC Tim Spargo wrote: > 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. -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jast.mil/ Send Replies To: m c o n d i c @ a c m . o r g "In general the art of government consists in taking as much money as possible from one class of citizens to give to the other." -- Voltaire ======================================================================