From 8817b8182ec910e54686e834e4a21efb0ab2fde8 Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 14 Nov 2005 19:03:30 -0800 Subject: [PATCH 1/1] add gmp to makefile darcs-hash:20051115030330-24bed-c019af6fea4ec3b0bfea036ccc9990444f5a8dac.gz --- Makefile | 4 ++++ upstream/Makefile | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) 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 -- 1.7.10.4