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 Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!news.tiscali.de!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Compiling Ada from another directory From: Georg Bauhaus In-Reply-To: <1189634389.893905.5800@50g2000hsm.googlegroups.com> References: <1189634389.893905.5800@50g2000hsm.googlegroups.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1189638096.12652.56.camel@kartoffel> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Date: Thu, 13 Sep 2007 01:01:36 +0200 Organization: Arcor NNTP-Posting-Date: 13 Sep 2007 01:01:40 CEST NNTP-Posting-Host: 80b40bbb.newsspool3.arcor-online.net X-Trace: DXC=T7mlTBeL081d8Nb@@ZG@b=McF=Q^Z^V384Fo<]lROoR1^;5]aA^R6>2W`=H1dd=2]1=kbmW`a1fG7C`2T@AUZfC;b4i]AS][do1 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:1928 Date: 2007-09-13T01:01:40+02:00 List-Id: On Wed, 2007-09-12 at 14:59 -0700, rotinom wrote: > Hey all. I'm working with a build tool that pretty much requires me > to build from a single directory, and I'd like to place the objects in > another directory. This has proven great with everything else, but > when it comes to Ada, I'm hitting a brick wall. (Maybe this is an effect of assuming that you need to use similar build tools ;-) > It would seem that I'm missing a command line switch or something > here. Any help would be greatly appreciated. It seems you are using GNAT. The easiest way to organize your files into directories of your choice is to create a minimal project file. The project file will have phrases such as, project MyProject is For Source_Dirs use (...); For Object_Dir use ...; After you have the project file myproject.gpr , run $ gnatmake -Pmyproject or make it part of your build setup. This will read and write files where you want them. See http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Introduction.html#Introduction Switches on the command line will work, too, but they create too much noise and complications for my taste, so I hesitate to mention them.