X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=05c884d28fead93a2c4865e90858cad0d60c9b22;hb=fe1024c315340ffc74c62faa8edd33cd3ef1c0da;hp=fc791a88397b0ea335c4734fbdfdc9c380160b42;hpb=6a5e5c0d3b6a095cb2596c61817e9fcaaf3edd9e;p=org.ibex.core.git diff --git a/Makefile b/Makefile index fc791a8..05c884d 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,8 @@ all: JVM Linux Win32 Darwin Solaris +clean:; rm -rf .jikes .configure* .install* build .compile + JVM: build/JVM/xwt.jar Linux: ; make gcj platform=Linux target=i686-pc-linux-gnu link_flags="-lX11 -lXext" Solaris: ; make gcj platform=Solaris target=sparc-sun-solaris2.7 link_flags="-lX11 -lXext" @@ -79,7 +81,7 @@ compile: .compile # PHASE 4: gcj-generated headers java_headers := $(all_java_sources:build/java/%.java=build/h/%.h) -build/h/edu/stanford/ejalbert/BrowserLauncher.h:; touch $@ +build/h/edu/stanford/ejalbert/BrowserLauncher.h:; mkdir -p $(@D); touch $@ build/h/%.h: build/class/%.class @echo -e "\n\033[1mextracting .class -> .h: $<\033[0m" mkdir -p `dirname $@` @@ -119,16 +121,16 @@ jpeg_sources += jquant1.c jquant2.c jerror.c jutils.c jmemnobs.c jmemmgr.c upstream/jpeg-6b/build-$(target)/libjpeg.a: .install_jpeg-6b_$(target) java_objects := $(nonplat_java_sources:build/java/%.java=build/$(platform)/%.java.o) -build/$(platform)/$(platform).ar: $(java_objects) build/$(platform)/builtin.o $(plat_java_sources:build/java/%.java=build/$(platform)/%.java.o) +build/$(platform)/$(platform).ar: $(java_objects) $(plat_java_sources:build/java/%.java=build/$(platform)/%.java.o) @echo -e "\n\033[1marchiving .o -> .a\033[0m" mkdir -p build/$(platform) - upstream/install/bin/$(target)-ar rc $@ $? - upstream/install/bin/$(target)-ranlib $@ + upstream/install/$(target)/bin/ar rc $@ $? + upstream/install/$(target)/bin/ranlib $@ -$(target_bin): build/$(platform)/$(platform).ar build/$(platform)/org/xwt/plat/$(platform).cc.o upstream/jpeg-6b/build-$(target)/libjpeg.a +$(target_bin): build/$(platform)/org/xwt/plat/$(platform).cc.o upstream/jpeg-6b/build-$(target)/libjpeg.a build/$(platform)/builtin.o build/$(platform)/$(platform).ar @echo -e "\n\033[1mlinking .o -> $(target_bin)\033[0m" mkdir -p build/$(platform) - PATH=upstream/install/bin:$$PATH $(gcj) -v --main=org.xwt.Main -o build/$(platform)/$(target_bin) -Lupstream/install/$(target)/lib $^ build/$(platform)/org/xwt/plat/$(platform).java.o $(link_flags) + PATH=upstream/install/bin:$$PATH $(gcj) -v --main=org.xwt.Main -o build/$(platform)/$(target_bin) -Lupstream/install/$(target)/lib build/$(platform)/org/xwt/plat/$(platform).java.o $^ $(link_flags) ############################################################################## @@ -252,19 +254,12 @@ dist: compile tail -n 200 .make-dist.out | \ mail -s "Unsigned binaries of $(current_build) are now available" cvs@xwt.org else - echo -e 'export JAVA_HOME=/usr/lib/j2sdk1.4\n cd /home/xwt\n date=`date +%d-%b-%H%M`\n mkdir xwt-$$date\n cd xwt-$$date\n /usr/bin/cvs -d /cvs co $(this_branch_flag) xwt\n mv xwt/* .\n mv xwt/.* .\n rmdir xwt\n touch .make-dist.out\n nohup make dist &> /dev/null &\n echo\n cat .make-dist.out' | ssh xwt@xwt.org | grep -v "make...:.\(Entering\|Leaving\).directory" + echo -e 'export JAVA_HOME=/usr/lib/j2sdk1.4\n cd /home/xwt\n date=`date +%d-%b-%H%M`\n mkdir xwt-$$date\n cd xwt-$$date\n /usr/bin/cvs -d /cvs co $(this_branch_flag) xwt\n mv xwt/* .\n mv xwt/.* .\n rmdir xwt\n touch .make-dist.out\n nohup make dist &\n echo\n cat .make-dist.out' | ssh xwt@xwt.org | grep -v "make...:.\(Entering\|Leaving\).directory" endif dist-private: make $(silent) update-build - # preserve gcc across builds so we don't have to remake it -# mkdir -p $(HOME)/dist.xwt.org-gcc -# mv gcc gcc- -# ln -s $(HOME)/dist.xwt.org-gcc gcc -# mv -f gcc-/Makefile gcc/ -# mv -f gcc-/*.patch gcc/ - # build it nice -n 19 make all