From: aaro@iki.fi (Aaro Koskinen)
Subject: Re: ifdef replacement for GNAT
Date: 1998/04/13
Date: 1998-04-13T00:00:00+00:00 [thread overview]
Message-ID: <pdxogy54klc.fsf@vesuri.Helsinki.FI> (raw)
In-Reply-To: c1.01.2L2phn$022@zesi.ruhr.de
haug@localhost.ruhr.de (Haug Buerger) writes:
> Geert Bosch <geert@gonzo.sun3.iaf.nl> wrote:
> >Very easy: put system dependent stuff in a package with a well defined
> >interface (spec) and use different bodies for different systems.
> >You'd like to make this system dependent part as small as possible,
> >but this is a good design principle anyway.
>
> Can i use gnatmake with this approach? If yes how?
Yes, for each target create a directory which contains the target
dependent bodies. When compiling, call gnatmake with parameter -Idir,
where the dir is the directory of the target to which you are
compiling.
--
Aaro Koskinen, aaro@iki.fi, http://www.iki.fi/aaro
prev parent reply other threads:[~1998-04-13 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <352287EE.1CFB@tolstoy.mdc.com>
1998-04-08 0:00 ` ifdef replacement for GNAT John T Vegezzi 312C M 237110
1998-04-09 0:00 ` Robert Dewar
1998-04-10 0:00 ` Dirk Zoller
1998-04-10 0:00 ` Robert Dewar
1998-04-11 0:00 ` Larry Kilgallen
1998-04-11 0:00 ` raw
1998-04-11 0:00 ` nabbasi
1998-04-11 0:00 ` Larry Kilgallen
1998-04-13 0:00 ` Richard Kenner
1998-04-13 0:00 ` Michael F Brenner
1998-04-13 0:00 ` Larry Kilgallen
1998-04-15 0:00 ` Ada Programming Environment [was ifdef replacement for GNAT] Nick Roberts
1998-04-14 0:00 ` ifdef replacement for GNAT Jean-Pierre Rosen
1998-04-11 0:00 ` Geert Bosch
1998-04-12 0:00 ` Haug Buerger
1998-04-13 0:00 ` Aaro Koskinen [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