X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=upstream%2FMakefile;h=76cab2932ad180f5da92ee5066beff994606aa64;hp=930f21953129d5ad67fa63cb3ee3ad9231917ad9;hb=8817b8182ec910e54686e834e4a21efb0ab2fde8;hpb=c690989b7973d1a2e5aed45afe51f782f064a127 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