From: rrt Date: Thu, 30 Mar 2000 14:09:44 +0000 (+0000) Subject: [project @ 2000-03-30 14:09:44 by rrt] X-Git-Tag: Approximately_9120_patches~4872 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e2ceaa1abce8a0795669247e305dfda89bfa836e;p=ghc-hetmet.git [project @ 2000-03-30 14:09:44 by rrt] Added rules for building GMP as a DLL. N.B. GMP is not actually used yet as a DLL; this remains to be added to the build system. --- diff --git a/ghc/rts/gmp/Makefile.in b/ghc/rts/gmp/Makefile.in index c0871fc..77173bf 100644 --- a/ghc/rts/gmp/Makefile.in +++ b/ghc/rts/gmp/Makefile.in @@ -61,6 +61,10 @@ FLAGS_TO_PASS = "CC=$(CC)" "CFLAGS=$(CFLAGS)" "XCFLAGS=$(XCFLAGS)" all: libgmp.a +ifeq "(EnableWin32DLLs)" "YES" +all: gmp.dll +endif + %.o : %.c $(CC) -c $(INCLUDES) $(CFLAGS) $(XCFLAGS) $< @@ -78,6 +82,11 @@ libgmp.a: mpn/libmpn.a mpz/libmpz.a $(OBJS) mv tmpdir/$@ . rm -rf tmpdir +gmp.dll: libgmp.a + dllwrap -mno-cygwin --target=i386-unknown-mingw32 \ + --export-all --dllname gmp.dll --output-lib=libgmp_imp.a \ + -o gmp.dll libgmp.a + libmp.a: mpn/libmpn.a mpbsd/libmpbsd.a $(OBJS) rm -rf tmpdir mkdir tmpdir