From: "John B. Matthews" <nospam@nospam.com>
Subject: Re: Rebuilding the RTL : Makefile.adalib?
Date: Sat, 02 Aug 2008 07:31:48 -0400
Date: 2008-08-02T07:31:48-04:00 [thread overview]
Message-ID: <nospam-23ACA1.07314702082008@web.aioe.org> (raw)
In-Reply-To: m24p64y2l0.fsf@mac.com
In article <m24p64y2l0.fsf@mac.com>,
Simon Wright <simon.j.wright@mac.com> wrote:
> Brian Drummond <brian_drummond@btconnect.com> 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:
<http://home.woh.rr.com/jbmatthews/misc/groots.html>
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
next prev parent reply other threads:[~2008-08-02 11:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-30 15:00 Rebuilding the RTL : Makefile.adalib? Brian Drummond
2008-07-31 10:38 ` Alex R. Mosteo
2008-08-01 0:35 ` Brian Drummond
2008-08-01 19:09 ` Simon Wright
2008-08-02 11:31 ` John B. Matthews [this message]
2008-08-03 10:11 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox