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-Thread: 103376,474f983404143522 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: comp.lang.ada Subject: Re: Compiling Ada from another directory References: <1189634389.893905.5800@50g2000hsm.googlegroups.com> <1189692969.193051.231830@19g2000hsx.googlegroups.com> From: Markus E L Date: Thu, 13 Sep 2007 17:01:00 +0200 Message-ID: User-Agent: Some cool user agent (SCUG) Cancel-Lock: sha1:EZVYPovF5qeyf00GRaXNPUAQHxU= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 88.72.225.154 X-Trace: news.arcor-ip.de 1189695383 88.72.225.154 (13 Sep 2007 16:56:23 +0200) X-Complaints-To: abuse@arcor-ip.de Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!newsfeed.arcor-ip.de!news.arcor-ip.de!not-for-mail X-Original-Bytes: 1791 Xref: g2news2.google.com comp.lang.ada:1946 Date: 2007-09-13T17:01:00+02:00 List-Id: rotinom wrote: > On Sep 12, 7:02 pm, a...@anon.org (anon) wrote: >> # >> # The "bind" and "link" functions do not require command line options >> # >> gcc -c -o _build/Bottles.o src/Bottles.adb >> gnatbind _build/Bottles.ali >> gnatlink _build/Bottles.ali >> > > I played with the project files yesterday, and they do what I want, > however I would then have to maintain them, and they I'm not sure I understand your problem: I think you want to keep the source at some other place than the objects? Then you can build in the object directory and use -I to pull in (various) source trees, e.g: cd $OBJECTDIR gnatmake -I$PLATFORM_SOURCES -I$LIBRARY_SOURCES -IPROGRAM_SOURCES $PROGRAM In this case you wouldn't have to maintain project files. And all object an temporary files are build in the current directory. Regards -- Markus