1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Changes for static/dynamic linking of libcurl.

No need to generate a dummy sys/utime.h. Cleanup.
This commit is contained in:
Gisle Vanem 2004-11-14 13:51:33 +00:00
parent b5c90c9b05
commit 737dddaec0

View File

@ -31,24 +31,29 @@ LD = bcc32
CP = copy CP = copy
RM = del RM = del
LIB = tlib LIB = tlib
TOPDIR = ..
CURNTDIR = .
CXXFLAGS = -q -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM CXXFLAGS = -q -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
LDFLAGS = -q -lq -lap LDFLAGS = -q -lq -lap
INCDIRS = -I$(CURNTDIR);$(TOPDIR)/include;$(TOPDIR)/lib INCDIRS = -I.;../include;../lib
LINKLIB = $(BCCDIR)/lib/cw32mt.lib LINKLIB = $(BCCDIR)/lib/cw32mt.lib
LIBCURLLIB = $(TOPDIR)/lib/libcurl.lib
# If you build with SSL support, set WITH_SSL=1 # If you build with SSL support, set WITH_SSL=1
DEFINES = -DNDEBUG -DLIBCURL_BIGENDIAN=0 -DWIN32 -D_CONSOLE -D_MBCS DEFINES = -DNDEBUG -DWIN32
!ifdef DYNAMIC
LIBCURL_LIB = ../lib/libcurl_imp.lib
!else
LIBCURL_LIB = ../lib/libcurl.lib
DEFINES = $(DEFINES) -DCURL_STATICLIB
!endif
!ifdef WITH_ZLIB !ifdef WITH_ZLIB
DEFINES = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H DEFINES = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
INCDIRS = $(INCDIRS);$(ZLIB_PATH) INCDIRS = $(INCDIRS);$(ZLIB_PATH)
LINKLIB = $(LINKLIB) $(ZLIB_PATH)/zlib.lib LINKLIB = $(LINKLIB) $(ZLIB_PATH)/zlib.lib
!endif !endif
!ifdef WITH_SSL !ifdef WITH_SSL
DEFINES = $(DEFINES) -DUSE_SSLEAY DEFINES = $(DEFINES) -DUSE_SSLEAY
INCDIRS = $(INCDIRS);$(OPENSSL_PATH)/inc32;$(OPENSSL_PATH)/inc32/openssl INCDIRS = $(INCDIRS);$(OPENSSL_PATH)/inc32;$(OPENSSL_PATH)/inc32/openssl
@ -74,7 +79,7 @@ clean:
-$(RM) *.obj -$(RM) *.obj
-$(RM) hugehelp.c -$(RM) hugehelp.c
$(PROGNAME): $(OBJECTS) $(LIBCURLLIB) $(LINKLIB) $(PROGNAME): $(OBJECTS) $(LIBCURL_LIB) $(LINKLIB)
@-$(RM) $@ @-$(RM) $@
$(LD) $(LDFLAGS) -e$@ $** $(LD) $(LDFLAGS) -e$@ $**
@ -82,11 +87,4 @@ hugehelp.c: hugehelp.c.cvs
@echo Creating $@ @echo Creating $@
@$(CP) $** $@ @$(CP) $** $@
sys/utime.h: $(BCCDIR)\include\utime.h
@echo Fix missing header $@
@-mkdir sys
@$(CP) $** sys
main.c: sys/utime.h