From: M E Leypold <development-2006-8ecbb5cc8a-REMOVETHIS@m-e-leypold.de>
Subject: Re: Porting GNAT/GCC to FreeBSD
Date: 03 Jun 2006 16:42:06 +0200
Date: 2006-06-03T16:42:06+02:00 [thread overview]
Message-ID: <vwpshqcncx.fsf@hod.lan.m-e-leypold.de> (raw)
In-Reply-To: d2bgg.3463$oj5.1122014@news.siol.net
Hi,
Karel Miklav <karel@lovetemple.adbloccker.net> writes:
> But I wasn't able to find the build script, only source and binary
> packages. Where can I get it?
In the source package. Debian has all build stuff in the source tree
in sub directory debian/.
To get the source tree just say the following on a debian system:
$> mkdir gnat # apt-get fetches multiple files, this dir to keep all together
$> cd gnat
$> apt-get source gnat
(... lots of stuff happen here: archive is fetched and unpacked )
$> cd gnat-3.15p/debian/
$> ls
changelog README.Debian rules control
(...)
The build rules are in the file 'rules'. This is actually a makefile
and the target from which all build actions flow is (surprisingly)
called 'build'.
build: build-stamp
build-stamp: patch-stamp config-stamp compiler-stamp static-stamp \
shared-stamp tools-stamp
dh_testdir
touch build-stamp
compiler-stamp: config-stamp
$(MAKE) CFLAGS='-O2' GNATLIBCFLAGS="$(GNATLIBCFLAGS)" LANGUAGES='c ada'
touch compiler-stamp
config-stamp:
CC=gnatgcc ./configure --prefix=/usr --host=$(OS) --target=$(OS)
cd ada && touch treeprs.ads a-einfo.h a-sinfo.h nmake.adb nmake.ads
# Prevent running autoheader, which isn't necessary
touch cstamp-h.in
touch config-stamp
(...)
and so on. i think xou get picture. Much luck :-).
Regards -- Markus
next prev parent reply other threads:[~2006-06-03 14:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <447F6576.6020006@lovetemple.adbloccker.net>
2006-06-02 8:40 ` Porting GNAT/GCC to FreeBSD Georg Bauhaus
2006-06-03 7:40 ` Karel Miklav
2006-06-03 14:42 ` M E Leypold [this message]
2006-06-03 17:38 ` Georg Bauhaus
2006-06-03 18:32 ` M E Leypold
2006-06-02 15:57 ` GNAT at FreeBSD -- Question about available versions M E Leypold
2006-06-02 17:13 ` Karel Miklav
2006-06-08 13:56 ` Craig Carey
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox