X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=Makefile;h=fc29a6af20c679360f25c8655b900ecb5a7fbb6e;hp=92d7a4effd019018eeeef9166238693fb5857dbe;hb=b2ef3378d07c929042d4f6b0df415912c5c8942b;hpb=27c78c6a15146e532ec1c34019943fbf10d95d4e diff --git a/Makefile b/Makefile index 92d7a4e..fc29a6a 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,17 @@ Solaris: ; make gcj platform=Solaris link_flags="-lX11 -lXext -lpthread" Win32: ; make gcj platform=Win32 link_flags="-Wl,--subsystem,windows -lcomdlg32" Darwin: ; make gcj platform=Darwin link_flags="$(darwin_linker_flags)" +foo: .compile + rm -rf build/class/* + make oldcompile + make .install_jode-1.1.1_java target=java + cd build; jar xvf ../upstream/install/share/java/libgcj-3.3.jar java/lang/Object.class + java -cp upstream/java-getopt-1.0.9:upstream/jode-1.1.1/build-java jode.obfuscator.Main jode.conf + cd out; jar xvf ../upstream/install/share/java/libgcj-3.3.jar java/lang/ + cd build/class; tar cf - org/ | tar -C ../../out -xvf - + cd out ; rm -rf gnu/java/awt gnu/java/beans gnu/java/rmi java/rmi java/beans java/awt java/sql + for A in `find out -name \*.class`; do cd `dirname $$A`; $(shell pwd)/$(gcj) -c `basename $$A` -fCLASSPATH=$(shell pwd)/out; cd $(shell pwd); done + darwin_libdir := upstream/install/powerpc-apple-darwin/lib darwin_linker_flags := -Wl,-dylib_file,/usr/lib/libSystem.B.dylib:$(darwin_libdir)/libSystem.B.dylib darwin_linker_flags += -Wl,-dylib_file,/usr/lib/system/libmathCommon.A.dylib:$(darwin_libdir)/libmathCommon.A.dylib @@ -107,7 +118,7 @@ build/class/org/xwt/util/Preprocessor.class: src/org/xwt/util/Preprocessor.java mkdir -p build/class/org/xwt/util/ ./.jikes $< -oldcompile:; CLASSPATH=$$CLASSPATH:lib/libgcj-minimal.jar:upstream/mips/build javac -d build/class `find build/java/ -name \*.java` +oldcompile:; CLASSPATH=$$CLASSPATH:lib/libgcj-minimal.jar:upstream/mips/build javac -target 1.1 -d build/class `find build/java/ -name \*.java` compile: .compile .compile: $(java_sources) .jikes .install_mips2java @echo -e "\n\033[1mcompiling .java -> .class: src/**/*.java\033[0m"