1 ############################################################
2 # $Id: Makefile.b32,v 1.1.1.1 2008-09-23 16:32:05 hoffman Exp $
4 # Makefile.b32 - Borland's C++ Compiler 5.X
8 # 'BCCDIR' has to be set up to point to the base directory
9 # of the compiler, i.e. SET BCCDIR = c:\Borland\BCC55
10 # where c:\Borland\BCC55 is the compiler is installed
12 # Written by Jaepil Kim, pit@paradise.net.nz
13 ############################################################
15 # Edit the path below to point to the base of your Zlib sources.
17 ZLIB_PATH = ../../zlib-1.2.1
20 # Edit the path below to point to the base of your OpenSSL package.
22 OPENSSL_PATH = ../../openssl-0.9.7d
25 # Set libcurl static lib, dll and import lib
26 LIBCURL_LIB = libcurl.lib
27 LIBCURL_DLL = libcurl.dll
28 LIBCURL_IMPLIB = libcurl_imp.lib
38 CXXFLAGS = -q -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
40 LDFLAGS = -q -lq -laa -tWD
42 INCDIRS = -I.;../include
43 LINKLIB = $(BCCDIR)/lib/cw32mt.lib
45 # If you build with SSL support, set WITH_SSL=1
46 DEFINES = -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DBUILDING_LIBCURL
49 DEFINES = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
50 INCDIRS = $(INCDIRS);$(ZLIB_PATH)
51 LINKLIB = $(LINKLIB) $(ZLIB_PATH)/zlib.lib
55 DEFINES = $(DEFINES) -DUSE_SSLEAY
56 INCDIRS = $(INCDIRS);$(OPENSSL_PATH)/inc32;$(OPENSSL_PATH)/inc32/openssl
57 LINKLIB = $(LINKLIB) $(OPENSSL_PATH)/out32/ssleay32.lib $(OPENSSL_PATH)/out32/libeay32.lib
62 # Makefile.inc provides the CSOURCES and HHEADERS defines
65 OBJECTS = $(CSOURCES:.c=.obj)
68 $(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $<
70 all: $(LIBCURL_LIB) $(LIBCURL_DLL)
74 -$(RM) $(LIBCURL_IMPLIB)
78 $(LIBCURL_LIB): $(OBJECTS)
80 $(LIB) $(LIBFLAGS) $@ @&&!
85 $(LIBCURL_DLL) $(LIBCURL_IMPLIB): $(OBJECTS) $(LINKLIB)
86 @-$(RM) $(LIBCURL_DLL)
87 @-$(RM) $(LIBCURL_IMPLIB)
88 $(LD) $(LDFLAGS) -e$(LIBCURL_DLL) $**
89 $(IMPLIB) $(LIBCURL_IMPLIB) $(LIBCURL_DLL)