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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a9f89faeb8f41ad0 X-Google-Attributes: gid103376,public From: aaro@iki.fi (Aaro Koskinen) Subject: Re: ifdef replacement for GNAT Date: 1998/04/13 Message-ID: #1/1 X-Deja-AN: 343679393 References: <352287EE.1CFB@tolstoy.mdc.com> <352B8208.41C6@tolstoy.mdc.com> <86g1jm2gcf.fsf@zappa> <6gmgmf$9di$1@gonzo.sun3.iaf.nl> Organization: University of Helsinki Newsgroups: comp.lang.ada Date: 1998-04-13T00:00:00+00:00 List-Id: haug@localhost.ruhr.de (Haug Buerger) writes: > Geert Bosch 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