X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=upstream%2FMakefile;h=e91b0c28c50d1652c90b798641f9625160c55ef4;hp=528f455c6b93866d2b03e4fa1c86df594501b571;hb=a5ac4a3d6bf4ca158c3111c2fd03a4628f28c3b3;hpb=eac15ea528ada79164d597be650288570817d908 diff --git a/upstream/Makefile b/upstream/Makefile index 528f455..e91b0c2 100644 --- a/upstream/Makefile +++ b/upstream/Makefile @@ -55,13 +55,17 @@ tasks/download_tex: ; touch $@ tasks/extract_tex: mkdir -p build/tex cd build/tex; wget -N http://www.math.uni.wroc.pl/~hebisch/tex_p/tex.web - cd build/tex; wget -N http://www.math.uni.wroc.pl/~hebisch/tex_p/tex.ch +# cd build/tex; wget -N http://www.math.uni.wroc.pl/~hebisch/tex_p/tex.ch + cd build/tex; wget -N http://www.tug.org/tex-archive/systems/knuth/local/tex/initex.ch && mv initex.ch tex.ch cd build/tex; wget -N http://www.gnu-pascal.de/crystal/gpc/en/attachments/5593/tangle.p.gz && gunzip tangle.p.gz touch $@ gpc := $(usr)/bin/mips-unknown-elf-gpc gpc_flags := --big-endian -w -lgpc -lc $(usr)/mips-unknown-elf/lib/support*.o gpc_flags += -Wl,-T,$(usr)/mips-unknown-elf/lib/linker.ld +g77 := $(usr)/bin/mips-unknown-elf-g77 +g77_flags := --big-endian -w -lg2c -lc $(usr)/mips-unknown-elf/lib/support*.o +g77_flags += -Wl,-T,$(usr)/mips-unknown-elf/lib/linker.ld # FIXME ugly path hacks evil bad nestedvm := java -cp $(usr)/../build/bcel/bcel-5.1.jar:$(usr)/../../nestedvm.jar org.ibex.nestedvm.Compiler -outformat class @@ -80,6 +84,18 @@ tasks/build_tex: tasks/full_toolchain tasks/extract_tex #ln -s tex.pool 'TeXformats:TEX.POOL ' #ln -s trip.tfm 'TeXfonts:trip.tfm ' #ln -s trip.tex 'trip.tex ' + touch $@ + +tasks/extract_linpack: tasks/download_linpack ; touch $@ +tasks/download_linpack: + mkdir -p build/linpack + cd build/linpack; wget -N http://www.math.iastate.edu/burkardt/f_src/linpack_bench/linpack_bench.f + touch $@ + +tasks/build_linpack: tasks/full_toolchain tasks/extract_linpack + cd build/linpack; $(g77) linpack_bench.f $(g77_flags) -o linpack.mips + cd build/linpack; $(nestedvm) -o unixruntime -outfile Linpack.class Linpack linpack.mips + touch $@ tasks/download_%: if [ -z "$(url_$*)" ]; then echo "No url for $*" >&2; false; fi