diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2004-11-09 14:00:56 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2004-11-09 14:00:56 +0000 |
commit | 377e43fbb9ff48fc114c9c6ecc1b04796e01b0fb (patch) | |
tree | e483830193250422ae04aba8ce38538a3872cc24 /lib/Makefile.m32 | |
parent | 1f2b042b9538ca6a8aef75679e7e66a274cc0063 (diff) |
Changes for removing libcurl.def file on Win32.
Added "CURL_EXTERN" to memdebug.h functions.
Cleaned up Makefile.vc6.
Diffstat (limited to 'lib/Makefile.m32')
-rw-r--r-- | lib/Makefile.m32 | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/lib/Makefile.m32 b/lib/Makefile.m32 index ec7bf9085..d5cbe3ce6 100644 --- a/lib/Makefile.m32 +++ b/lib/Makefile.m32 @@ -18,15 +18,15 @@ endif CC = gcc AR = ar -RM = rm -f +RM = rm -f RANLIB = ranlib STRIP = strip -g ######################################################## ## Nothing more to do below this line! -INCLUDES = -I. -I.. -I../include -I../src -CFLAGS = -g -O2 -DMINGW32 +INCLUDES = -I. -I../include +CFLAGS = -g -O2 -DMINGW32 -DBUILDING_LIBCURL ifdef SSL INCLUDES += -I"$(OPENSSL_PATH)/outinc" -I"$(OPENSSL_PATH)/outinc/openssl" CFLAGS += -DUSE_SSLEAY -DHAVE_OPENSSL_ENGINE_H @@ -59,22 +59,16 @@ RESOURCE = libcurl.res # remove the last line above to keep debug info -libcurl.dll libcurldll.a: libcurl.a libcurl.def $(RESOURCE) +libcurl.dll libcurldll.a: $(libcurl_a_OBJECTS) $(RESOURCE) $(RM) $@ - dllwrap --dllname $@ --output-lib libcurldll.a --export-all --def libcurl.def $(libcurl_a_LIBRARIES) $(RESOURCE) $(DLL_LIBS) -lwsock32 -lws2_32 -lwinmm - $(STRIP) $@ + $(CC) -s -shared -Wl,--out-implib,libcurldll.a -o libcurl.dll \ + $(libcurl_a_OBJECTS) $(RESOURCE) $(DLL_LIBS) -lws2_32 -lwinmm -# remove the last line above to keep debug info +# remove the above '-s' to keep debug info .c.o: $(COMPILE) -c $< -.s.o: - $(COMPILE) -c $< - -.S.o: - $(COMPILE) -c $< - libcurl.res: libcurl.rc windres -DCURLDEBUG=0 -O COFF -o $@ -i $^ |