aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2004-07-15 02:09:40 +0000
committerGunter Knauf <gk@gknw.de>2004-07-15 02:09:40 +0000
commit0b0d20021cafb78424394c12cdddd9b4c8543fca (patch)
tree5b3d11e5d72813179b0871fae28aec29ab8fb865
parent932a6f6b7787363610f717a20160152cdd514f7d (diff)
made OpenSSL support conditional.
-rw-r--r--src/Makefile.b3217
1 files changed, 13 insertions, 4 deletions
diff --git a/src/Makefile.b32 b/src/Makefile.b32
index 90121bd7b..d471faa69 100644
--- a/src/Makefile.b32
+++ b/src/Makefile.b32
@@ -38,15 +38,24 @@ CXXFLAGS = -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro
# CXXFLAGS = -5 -O2 -WC -w-par -w-csu -w-aus
LDFLAGS = -lap
-# If you build without SSL support, remove "-DUSE_SSLEAY" from the line below.
-# DEFINES = -DLIBCURL_BIGENDIAN=0 -DNDEBUG -DWIN32 -DCONSOLE -DMBCS -DUSE_SSLEAY
-DEFINES = -DNDEBUG -DLIBCURL_BIGENDIAN=0 -DWIN32 -D_CONSOLE -D_MBCS
-
INCDIRS = -I$(CURNTDIR);$(TOPDIR)/include;$(TOPDIR)/lib
LINKLIB = $(BCCDIR)/lib/cw32mt.lib $(BCCDIR)/lib/psdk/winmm.lib $(BCCDIR)/lib/psdk/ws2_32.lib
LIBCURLLIB = $(TOPDIR)/lib/libcurl.lib
+# If you build with SSL support, set WITH_SSL=1
+DEFINES = -DNDEBUG -DLIBCURL_BIGENDIAN=0 -DWIN32 -DCONSOLE -DMBCS
+!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
+!ifdef WITH_ZLIB
+DEFINES = $(DEFINES) -DHAVE_LIBZ
+INCDIRS = $(INCDIRS);$(ZLIB_PATH)
+LINKLIB = $(LINKLIB) $(ZLIB_PATH)/zlib.lib
+!endif
+
.SUFFIXES: .c
.autodepend