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,c631ec53960145e0 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!club-internet.fr!feedme-small.clubint.net!aioe.org!nospam From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: Rebuilding the RTL : Makefile.adalib? Date: Sat, 02 Aug 2008 07:31:48 -0400 Organization: The Wasteland Message-ID: References: <6fdit4Fb3jcmU1@mid.individual.net> NNTP-Posting-Host: CrJpBNTrx3k/ty23xT/a+g.user.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.2 (PPC Mac OS X) Xref: g2news1.google.com comp.lang.ada:1419 Date: 2008-08-02T07:31:48-04:00 List-Id: In article , Simon Wright wrote: > Brian Drummond writes: > > > I'll go ahead and try without rebuilding tomorrow; but I still can't > > help wondering where the missing makefile went, or why it is > > apparently no longer in the distribution. > > It seems (from rummaging at http://gcc.gnu.org/viewcvs/) that > Makefile.adalib disappeared at GCC 4.0. As to why ... or what you're > supposed to do instead ... I had this problem integrating an addition to Ada.Numerics, so I wrote my own Makefile, shown below and available here: Use gnatls -v to get the prefix. I don't know if it would work for the entire RTL. -----snip----- # Ada.Numerics Makefile # # Author: John B. Matthews, Gem City Software # Distribution: GMGPL # Last Modified: October 2007 # PREFIX = /usr/local/ada-4.3/lib/gcc/powerpc-apple-darwin8/4.3.0 OPTS = -a -k -gnato -O2 ADAINC = $(PREFIX)/adainclude ADALIB = $(PREFIX)/adalib SOURCE = $(wildcard *.ad[sb]) UNITS = $(basename $(wildcard *.ads)) ALIS = $(addsuffix .ali, $(UNITS)) OBJS = $(addsuffix .o, $(UNITS)) .PHONY: all install uninstall clean test all: gnatmake $(OPTS) $(UNITS) install: cp $(SOURCE) $(ADAINC)/ cp *.ali $(ADALIB)/ cp *.o $(ADALIB)/ uninstall: @for file in $(SOURCE); do ${RM} $(ADAINC)/$$file; done @for file in $(ALIS); do ${RM} $(ADALIB)/$$file; done @for file in $(OBJS); do ${RM} $(ADALIB)/$$file; done clean: ${RM} *.ali *.o test: @echo "Source files: $(SOURCE)" @echo "Compilation units: $(UNITS)" @for file in $(SOURCE); do ls $(ADAINC)/$$file; done @for file in $(ALIS); do ls $(ADALIB)/$$file; done @for file in $(OBJS); do ls $(ADALIB)/$$file; done -----snip----- -- John B. Matthews trashgod at gmail dot com home dot woh dot rr dot com slash jbmatthews