1 ############################################################
3 # Makefile.b32 - Borland's C++ Compiler 5.X
7 # 'BCCDIR' has to be set up to point to the base directory
8 # of the compiler, i.e. SET BCCDIR = c:\Borland\BCC55
9 # where c:\Borland\BCC55 is the compiler is installed
11 # Written by Jaepil Kim, pit@paradise.net.nz
12 ############################################################
14 # Edit the path below to point to the base of your Zlib sources.
16 ZLIB_PATH = ../../zlib-1.2.1
19 # Edit the path below to point to the base of your OpenSSL package.
21 OPENSSL_PATH = ../../openssl-0.9.7d
24 # Set libcurl static lib, dll and import lib
25 LIBCURL_LIB = libcurl.lib
26 LIBCURL_DLL = libcurl.dll
27 LIBCURL_IMPLIB = libcurl_imp.lib
37 CXXFLAGS = -q -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
39 LDFLAGS = -q -lq -laa -tWD
41 INCDIRS = -I.;../include
42 LINKLIB = $(BCCDIR)/lib/cw32mt.lib
44 # If you build with SSL support, set WITH_SSL=1
45 DEFINES = -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DBUILDING_LIBCURL
48 DEFINES = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
49 INCDIRS = $(INCDIRS);$(ZLIB_PATH)
50 LINKLIB = $(LINKLIB) $(ZLIB_PATH)/zlib.lib
54 DEFINES = $(DEFINES) -DUSE_SSLEAY
55 INCDIRS = $(INCDIRS);$(OPENSSL_PATH)/inc32;$(OPENSSL_PATH)/inc32/openssl
56 LINKLIB = $(LINKLIB) $(OPENSSL_PATH)/out32/ssleay32.lib $(OPENSSL_PATH)/out32/libeay32.lib
61 # Makefile.inc provides the CSOURCES and HHEADERS defines
64 OBJECTS = $(CSOURCES:.c=.obj)
67 $(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $<
69 all: $(LIBCURL_LIB) $(LIBCURL_DLL)
73 -$(RM) $(LIBCURL_IMPLIB)
77 $(LIBCURL_LIB): $(OBJECTS)
79 $(LIB) $(LIBFLAGS) $@ @&&!
84 $(LIBCURL_DLL) $(LIBCURL_IMPLIB): $(OBJECTS) $(LINKLIB)
85 @-$(RM) $(LIBCURL_DLL)
86 @-$(RM) $(LIBCURL_IMPLIB)
87 $(LD) $(LDFLAGS) -e$(LIBCURL_DLL) $**
88 $(IMPLIB) $(LIBCURL_IMPLIB) $(LIBCURL_DLL)