From 9310da221320ecd1a2b36f3101180d8a06b3cfa9 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 07:04:33 +0000 Subject: [PATCH] 2003/09/03 01:00:44 darcs-hash:20040130070433-2ba56-4176333162c5b84cbf7f1d776723d35c67ce091a.gz --- upstream/Makefile | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 upstream/Makefile diff --git a/upstream/Makefile b/upstream/Makefile new file mode 100644 index 0000000..4aaed45 --- /dev/null +++ b/upstream/Makefile @@ -0,0 +1,68 @@ +############################################################################# +# +# The XWT upstream code Makefile +# + +# upstream packages we need +packages := jikes-1.18 binutils-2.13.2.1 newlib-1.11.0 w32api-2.3 mingw-runtime-3.0 freetype-2.1.4 gcc-3.3 jpeg-6b + +# where to get stuff +url_newlib-1.11.0 := ftp://sources.redhat.com/pub/newlib/newlib-1.11.0.tar.gz +url_binutils-2.13.2.1 := ftp://ftp.gnu.org/gnu/binutils/binutils-2.13.2.1.tar.gz +url_w32api-2.3 := http://twtelecom.dl.sourceforge.net/sourceforge/mingw/w32api-2.3.tar.gz +url_mingw-runtime-3.0 := http://twtelecom.dl.sourceforge.net/sourceforge/mingw/mingw-runtime-3.0.tar.gz +url_freetype-2.1.4 := http://umn.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.4.tar.gz +url_gcc-3.3 := http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-3.3/gcc-3.3.tar.gz +url_jpeg-6b := http://www.ijg.org/files/jpegsrc.v6b.tar.gz +url_jikes-1.18 := http://www.megacz.com/tmp/jikes-1.18.tgz #ftp://www-126.ibm.com/pub/jikes/1.18/jikes-1.18.tar.gz + +# how to configure it +configure_gcc-3.3 := --enable-languages=c,c++,java --enable-gc-type=boehm --disable-shared --disable-jvmpi +configure_gcc-3.3 += --disable-java-awt --disable-interpreter --enable-static +configure_gcc-3.3-powerpc-apple := --enable-threads=posix --disable-hash-synchronization # FIXME: can we enable hashsync? +configure_gcc-3.3-i686-pc-mingw32 := --enable-threads=win32 --enable-hash-synchronization +configure_gcc-3.3-i686-pc-linux-gnu := --enable-threads=posix --enable-hash-synchronization +configure_gcc-3.3-mips := --nfp --with-newlib=yes --enable-multilib --disable-threads +configure_gcc-3.3-sparc-sun-solaris2.7 := --enable-threads=posix --disable-multilib + +# jikes has a special target to autodetect a pre-installed jikes, and to autodetect the JVM's $CLASSPATH +.jikes: + echo "jikes " > .jikes + (type jikes && (jikes --version | grep "Version 1.18")) || \ + (make jikes-1.18/src jikes-1.18/.installed && echo -n "upstream/jikes-1.18/install/bin/jikes " > .jikes) + echo -n "$(jikes_flags) -bootclasspath " >> .jikes + echo "public class GetBootClassPath { public static void main(String[] s) { " > GetBootClassPath.java + echo "System.out.println(System.getProperty(\"sun.boot.class.path\")); } }" >> GetBootClassPath.java + javac GetBootClassPath.java + java -cp . GetBootClassPath >> .jikes + rm GetBootClassPath.* + +# make the package's directory (if it doesn't exist) +$(packages): + mkdir -p $< + +# if the make target was specified in $(package)-$(target) format, break it apart and recurse +$(packages:%=%-$(target)): %-$(target): % + make mkdirs $