1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

some more tweaks, fixed zlib suport.

This commit is contained in:
Gunter Knauf 2004-07-15 21:51:59 +00:00
parent fca8fcec3e
commit c0d1d6926c

View File

@ -24,29 +24,37 @@ OPENSSL_PATH = ../../openssl-0.9.7d
# Set libcurl's name # Set libcurl's name
LIBCURLLIB = libcurl.lib LIBCURLLIB = libcurl.lib
LIBCURLDLL = libcurl.dll
# Setup environment # Setup environment
CXX = bcc32 CXX = bcc32
LD = bcc32
CP = copy CP = copy
RM = del RM = del
LIB = tlib LIB = tlib
TOPDIR = .. TOPDIR = ..
CURNTDIR = . CURNTDIR = .
CXXFLAGS = -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 -laa -tWD
INCDIRS = -I$(CURNTDIR);$(TOPDIR)/include INCDIRS = -I$(CURNTDIR);$(TOPDIR)/include
LINKLIB = $(BCCDIR)/lib/cw32mt.lib
#LINKLIB = $(BCCDIR)\lib\psdk\ws2_32.lib
# If you build with SSL support, set WITH_SSL=1 # If you build with SSL support, set WITH_SSL=1
DEFINES = -DLIBCURL_BIGENDIAN=0 -DNDEBUG -DWIN32 -DCONSOLE -DMBCS DEFINES = -DLIBCURL_BIGENDIAN=0 -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS
!ifdef WITH_ZLIB
DEFINES = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
INCDIRS = $(INCDIRS);$(ZLIB_PATH)
# LINKLIB = $(LINKLIB) $(ZLIB_PATH)/zlib.lib
!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
# LINKLIB = $(LINKLIB) $(OPENSSL_PATH)/out32/ssleay32.lib $(OPENSSL_PATH)/out32/libeay32.lib
!endif !endif
.SUFFIXES: .c .autodepend
# Makefile.inc provides the CSOURCES and HHEADERS defines # Makefile.inc provides the CSOURCES and HHEADERS defines
!include Makefile.inc !include Makefile.inc
@ -63,10 +71,14 @@ clean:
-$(RM) *.obj -$(RM) *.obj
-$(RM) getdate.c -$(RM) getdate.c
$(LIBCURLLIB): $(OBJECTS) $(LINKLIB) $(LIBCURLLIB): $(OBJECTS)
@-$(RM) $@ @-$(RM) $@
$(LIB) $@ /a $** $(LIB) $@ /a $**
$(LIBCURLDLL): $(OBJECTS) $(LINKLIB)
@-$(RM) $@
$(LD) $(LDFLAGS) -e$@ $**
getdate.c: getdate.c.cvs getdate.c: getdate.c.cvs
@echo Creating $@ @echo Creating $@
@-$(RM) getdate.y @-$(RM) getdate.y