From: brian Date: Tue, 15 Nov 2005 03:03:30 +0000 (-0800) Subject: add gmp to makefile X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=commitdiff_plain;h=8817b8182ec910e54686e834e4a21efb0ab2fde8;hp=c690989b7973d1a2e5aed45afe51f782f064a127;ds=sidebyside add gmp to makefile darcs-hash:20051115030330-24bed-c019af6fea4ec3b0bfea036ccc9990444f5a8dac.gz --- diff --git a/Makefile b/Makefile index 3cdb291..e2edde7 100644 --- a/Makefile +++ b/Makefile @@ -407,6 +407,10 @@ ntlmauth.jar: build/tests/NtlmAuth.class $(tasks)/build_darcs_gcclass .gcclass_h cd tmp/pruned && jar cfm ../../$@ ../../.manifest.ntlm . rm -f .manifest.ntlm +gmptest: $(tasks)/build_gmp + cd upstream/build/gmp && \ + make check TESTS_ENVIRONMENT="java -cp \"$(classpath)\" org.ibex.nestedvm.RuntimeCompiler" + # # Speed tests # diff --git a/upstream/Makefile b/upstream/Makefile index 930f219..76cab29 100644 --- a/upstream/Makefile +++ b/upstream/Makefile @@ -31,6 +31,10 @@ url_regex = ftp://ftp.zoo.toronto.edu/pub/regex.shar url_linpack = http://www.math.iastate.edu/burkardt/f_src/linpack_bench/linpack_bench.f +version_gmp = 4.1.4 +url_gmp = ftp://ftp.gnu.org/gnu/gmp/gmp-$(version_gmp).tar.gz +configure_gmp = --host=mips-unknown-elf + darcs_gcclass = http://darcs.brianweb.net/gcclass darcs_classgen = http://darcs.brianweb.net/classgen @@ -208,7 +212,14 @@ tasks/build_regex: tasks/download_regex tasks/build_newlib cp libregex.a $(usr)/mips-unknown-elf/lib touch $@ - +tasks/build_gmp: tasks/patch_gmp tasks/build_libc + cd build/gmp && \ + CFLAGS="$(MIPS_CFLAGS)" LDFLAGS="$(MIPS_LDFLAGS)" \ + ./configure --prefix=$(usr) $(configure_gmp) && \ + make && \ + make install exec_prefix=$(usr)/mips-unknown-elf includedir=$(usr)/mips-unknown-elf/include + touch $@ + # # Tests # These are simply here for convenience. They aren't required