-$(jikes_java_objects): $(jikes_java_sources)
- test "$(JAVA_HOME)"x != x || (echo "you forgot to set your $$JAVA_HOME environment variable"; false)
- echo "compiling .java -> .class:"
+.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 \
+
+jikes:
+ curl ftp://www-126.ibm.com/pub/jikes/1.18/jikes-1.18.tar.bz2 | tar xjvf -
+ cd jikes-1.18; ./configure --prefix=`pwd` && make && make install
+ ln -sf jikes-1.18/bin/jikes .jikes
+
+$(java_classes): $(java_sources) .javac
+ test "$(JAVA_HOME)"x != x || (echo "you forgot to set your JAVA_HOME environment variable"; false)
+ echo "compiling .java -> .class:"