Changes for removing libcurl.def file on Win32.

Added "CURL_EXTERN" to memdebug.h functions.
Cleaned up Makefile.vc6.
This commit is contained in:
Gisle Vanem
2004-11-09 14:00:56 +00:00
parent 1f2b042b95
commit 377e43fbb9
6 changed files with 55 additions and 55 deletions

View File

@@ -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 $^