Commit e2ceaa1a authored by rrt's avatar rrt
Browse files

[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.
parent 6456c6ca
......@@ -61,6 +61,10 @@ FLAGS_TO_PASS = "CC=$(CC)" "CFLAGS=$(CFLAGS)" "XCFLAGS=$(XCFLAGS)"
all: libgmp.a
ifeq "(EnableWin32DLLs)" "YES"
all: gmp.dll
%.o : %.c
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment