This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.0.2 and BSD Make
DJ Delorie says:
> Perhaps someone could write up a how-to on obtaining a non-gnu make
> that works under Linux, is reasonable, yet avoids being
> gnu-compatible?
I don't know if this fits the requirements you stated, strictly speaking,
but I wrote a little script to compile NetBSD make under Linux in
"bootstrapping mode". You run it and it downloads and installs make in
a subdirectory of the current working directory; it's kind of on the
quick and dirty side. Hope this helps.
================================================================================
#!/bin/sh
# download and compile NetBSD make under Linux
# Brian R. Gaeke, Nov. 2001. public domain.
mkdir make
wget --passive-ftp -O make/make.tar.gz ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/usr.bin/make.tar.gz
wget --passive-ftp -O make/mk.tar.gz ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/share/mk.tar.gz
gtar xzvf make/make.tar.gz
cd make
ed Makefile.boot <<END
22a
-D_PATH_DEFSYSPATH=\"`pwd`/mk\" \\
.
w
q
END
gmake -f Makefile.boot MACHINE=i386 MACHINE_ARCH=i386
gtar xzvf mk.tar.gz
================================================================================
--
Brian R. Gaeke, brg@dgate.org -- PGP/GPG gleefully accepted