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,80a657b612f5bad1 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news.wiretrip.org!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambrium.nl!feed.tweaknews.nl!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Creating and using Ada packages: need refinement References: <1205541163.8209.16.camel@K72> Date: Sat, 15 Mar 2008 23:55:31 +0100 Message-ID: <87fxur8un0.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:UiKizyMdDJ/soVLC85IbaiJAeL0= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Organization: Tele2 X-Trace: DXC=f<\Fbc>^2YlD_`;mijS<\k6`Y6aWje^Yj^2UYhOPG7dkaj?726lPE3l\mfR9Ibg9\d_WW8P?IKcKj Xref: g2news1.google.com comp.lang.ada:20428 Date: 2008-03-15T23:55:31+01:00 List-Id: Ivan Levashew writes: > Simon Wright пишет: >> "I refuse to use project files" > So in case I meet a non-project-based Ada package, must I convert it > to a project-based one? Yes, preferably. >> no one will have GNAT without gnatmake & >> gprmake. > > And how should one invoke gnatmake from Makefile? > My cmdline has grown to > $(GNATMAKE) --GNATBIND=$(GNATBIND) --GNATLINK=$(GNATLINK) \ > -cargs $(ADAFLAGS) -bargs $(GNATBINDFLAGS) \ > -largs $(GNATLDFLAGS) --LINK="$(CCLD) $(CCLDFLAGS)" \ > -margs $(GNATMAKEFLAGS) $(GNATFLAGS) That's ugly. Look at how the Debian Policy for Ada solves the problem of using multiple libraries in a single program: http://www.ada-france.org/debian/debian-ada-policy.html -- Ludovic Brenta.