summaryrefslogtreecommitdiff
path: root/lib/Makefile.b32
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2004-07-15 21:51:59 +0000
committerGunter Knauf <gk@gknw.de>2004-07-15 21:51:59 +0000
commitc0d1d6926cb0bd22c36e7b42d4c84cdfc5e27ef1 (patch)
treec0ea257c4b31a3f644dbeb5d52658d451a43c470 /lib/Makefile.b32
parentfca8fcec3ed4a4d8a3bc78d7a2ab964c13e02d8d (diff)
downloadcurl-c0d1d6926cb0bd22c36e7b42d4c84cdfc5e27ef1.tar.gz
some more tweaks, fixed zlib suport.
Diffstat (limited to 'lib/Makefile.b32')
-rw-r--r--lib/Makefile.b3224
1 files changed, 18 insertions, 6 deletions
diff --git a/lib/Makefile.b32 b/lib/Makefile.b32
index 24d75077f..eebe15d35 100644
--- a/lib/Makefile.b32
+++ b/lib/Makefile.b32
@@ -24,29 +24,37 @@ OPENSSL_PATH = ../../openssl-0.9.7d
# Set libcurl's name
LIBCURLLIB = libcurl.lib
+LIBCURLDLL = libcurl.dll
# Setup environment
CXX = bcc32
+LD = bcc32
CP = copy
RM = del
LIB = tlib
TOPDIR = ..
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
-
-#LINKLIB = $(BCCDIR)\lib\psdk\ws2_32.lib
+LINKLIB = $(BCCDIR)/lib/cw32mt.lib
# 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
DEFINES = $(DEFINES) -DUSE_SSLEAY
INCDIRS = $(INCDIRS);$(OPENSSL_PATH)/inc32;$(OPENSSL_PATH)/inc32/openssl
+# LINKLIB = $(LINKLIB) $(OPENSSL_PATH)/out32/ssleay32.lib $(OPENSSL_PATH)/out32/libeay32.lib
!endif
-.SUFFIXES: .c
+.autodepend
# Makefile.inc provides the CSOURCES and HHEADERS defines
!include Makefile.inc
@@ -63,10 +71,14 @@ clean:
-$(RM) *.obj
-$(RM) getdate.c
-$(LIBCURLLIB): $(OBJECTS) $(LINKLIB)
+$(LIBCURLLIB): $(OBJECTS)
@-$(RM) $@
$(LIB) $@ /a $**
+$(LIBCURLDLL): $(OBJECTS) $(LINKLIB)
+ @-$(RM) $@
+ $(LD) $(LDFLAGS) -e$@ $**
+
getdate.c: getdate.c.cvs
@echo Creating $@
@-$(RM) getdate.y