From: Simon Wright <simon@pushface.org>
Subject: Re: Detecting the OS type before clearing screen
Date: 26 Mar 2003 20:36:41 +0000
Date: 2003-03-26T20:36:41+00:00 [thread overview]
Message-ID: <x7vhe9px3ty.fsf@smaug.pushface.org> (raw)
In-Reply-To: mailman.20.1048625222.20696.comp.lang.ada@ada.eu.org
sk <noname@myob.com> writes:
> Using make files ? Then either you somehow get "make" to
> detect which version you require or edit the makefile
> to set a variable.
The new GNAT Project feature lets you do this based on envirnment
variables or gnatmake switches.
project Foo is
type Target_Type is ("host", "target");
Target : Target_Type := external ("TARGET", "host");
case Target is
when "host" =>
for Source_Dirs use (".", "./host");
when "target" =>
for Source_Dirs use (".", "./target");
end case;
end Foo;
means you put the spec inthe same directory as the project file, the
target (eg VxWorks) body in ./target and the host (eg Linux) body in
./host. The default is the host version; select the other by either
TARGET=target gnatmake -PFoo
or
gnatmake -PFoo -XTARGET=target
See http://gcc.gnu.org/onlinedocs/gnat_ug_unx/GNAT-Project-Manager.html#GNAT%20Project%20Manager
-S
prev parent reply other threads:[~2003-03-26 20:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-24 23:55 Detecting the OS type before clearing screen Redy RAMAMONJISOA
2003-03-25 0:58 ` sk
2003-03-25 10:24 ` Samuel Tardieu
2003-03-25 11:19 ` sk
2003-03-25 12:47 ` Lutz Donnerhacke
2003-03-25 14:26 ` SIMON Claude
2003-03-25 14:33 ` Lutz Donnerhacke
2003-03-25 21:48 ` Wojtek Narczynski
2003-03-25 12:25 ` Wojtek Narczynski
2003-03-25 17:27 ` Warren W. Gay VE3WWG
2003-03-25 20:54 ` sk
2003-03-26 18:43 ` Randy Brukardt
2003-03-26 20:36 ` Simon Wright [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox