comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Project structure with Gnat
Date: 1999/08/04
Date: 1999-08-04T00:00:00+00:00	[thread overview]
Message-ID: <zIVp3.409$9f1.44286@typ12.nn.bcandid.com> (raw)
In-Reply-To: 37A81DAB.53D76730@wanadoo.fr


Jean-Philippe Iafrate <jean.philippe.iafrate@wanadoo.fr> wrote in message
news:37A81DAB.53D76730@wanadoo.fr...
> I want to have the following project structure to be used with
> gnatmake :
> at the same directory level, many directories with sources, at
> the same level only one directory with objects and .ali files.
> What is the bes way to do this ?
> I have read the Gnat users guide and the Gnat reference guide but
> I'm not sure of what I have to do.

An easy way to do it is to cd to the directory in which the .o and .ali
files are to reside, and execute gnatmake from there.

Then.. all one has to do is

gnatmake <main-unit-name> -I../<source-dir-1> -I../<source-dir-2> .. etc.

The .o files and the .ali files will be written to the current directory.
The executable will also be written to the current directory, unless
you redirect/rename with the -o gnatmake switch.

David C. Hoos, Sr.








  reply	other threads:[~1999-08-04  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-04  0:00 Project structure with Gnat Jean-Philippe Iafrate
1999-08-04  0:00 ` David C. Hoos, Sr. [this message]
1999-08-04  0:00   ` Gautier
1999-08-04  0:00     ` Robert Dewar
1999-08-05  0:00       ` Vladimir Olensky
1999-08-04  0:00         ` David C. Hoos, Sr.
1999-08-05  0:00           ` Vladimir Olensky
1999-08-05  0:00         ` Robert Dewar
1999-08-05  0:00       ` Gautier
replies disabled

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