[project @ 2000-03-15 15:03:20 by simonmar]
[ghc-hetmet.git] / ghc / rts / Makefile
index 59d516a..7f9985e 100644 (file)
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.17 2000/01/13 14:34:03 hwloidl Exp $
+# $Id: Makefile,v 1.21 2000/03/15 15:03:20 simonmar Exp $
 #
 #  This is the Makefile for the runtime-system stuff.
 #  This stuff is written in C (and cannot be written in Haskell).
@@ -97,7 +97,7 @@ unexport CC
 DLL_NAME          = HSrts.dll
 ifeq "$(way)" "dll"
 DLL_IMPLIB_NAME   = libHSrts_imp.a
-SRC_BLD_DLL_OPTS += --def HSrts.def -lwinmm -lHS_imp_stub -lgmp -L. -Lgmp
+SRC_BLD_DLL_OPTS += --export-all -lwinmm -lHS_imp_stub -lgmp -L. -Lgmp
 
 #
 # Need an import library containing the symbols the RTS uses from the Prelude.
@@ -126,7 +126,12 @@ endif
 
 ifneq "$(HaveLibGmp)" "YES"
 boot ::
-       cd gmp && ./configure
+       if [ ! -f gmp/configure ] ; then ( cd gmp && autoconf ); fi;
+       if [ ! -f gmp/mpn/configure ] ; then ( cd gmp/mpn && autoconf ); fi;
+       if [ ! -f gmp/mpz/configure ] ; then ( cd gmp/mpz && autoconf ); fi;
+       if [ ! -f gmp/mpz/tests/configure ] ; then ( cd gmp/mpz/tests && autoconf ); fi;
+       cd gmp && ./configure --target=$(HOSTPLATFORM)
+# Slight cheatage here to past host as target, but x-compilation isn't supported by ghc.
 
 all :: gmp/libgmp.a