From a5badea1a13725a5ab1294c9b2e6ac9ea8be82c1 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 07:04:14 +0000 Subject: [PATCH] 2003/08/09 23:43:23 darcs-hash:20040130070414-2ba56-9d8f36ee4c64c3bb28eef72538c0883a1ec9d76b.gz --- Makefile | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index fc8ade5..593bb6d 100644 --- a/Makefile +++ b/Makefile @@ -62,7 +62,10 @@ ifneq ($(verbose),true) silent := --silent endif -compile: .javac .bootclasspath bin/org/xwt/builtin.xwar + +# preprocessing: use m4 -P + +compile: .javac bin/org/xwt/builtin.xwar echo "compiling .java -> .class:" mkdir -p bin $(shell cat .javac) -classpath lib/libgcj-minimal.jar $(java_sources) -d bin/ 2>&1 | \ @@ -73,19 +76,19 @@ all: Win32 Linux Java2 #Solaris .javac: @if \ - @ type jikes && (jikes --version | grep "Version 1.18"); \ - @then \ - @ 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 > .bootclasspath; \ - @ rm GetBootClassPath.*; \ - @ echo -n "jikes -nowarn -sourcepath src/ -bootclasspath " > .javac; \ - @ cat .bootclasspath >> .javac; \ - @else \ - @ echo "WARNING: You do not have jikes; falling back to javac. Compiles will be very slow."; \ - @ echo javac > .javac; \ - @fi + type jikes && (jikes --version | grep "Version 1.18"); \ + then \ + 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 > .bootclasspath; \ + rm GetBootClassPath.*; \ + echo -n "jikes -nowarn -sourcepath src/ -bootclasspath " > .javac; \ + cat .bootclasspath >> .javac; \ + else \ + echo "WARNING: You do not have jikes; falling back to javac. Compiles will be very slow."; \ + echo javac > .javac; \ + fi jikes: curl ftp://www-126.ibm.com/pub/jikes/1.18/jikes-1.18.tar.bz2 | tar xjvf - -- 1.7.10.4