1 ############################################################
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
26 LIBCURLLIB = libcurl.lib
27 LIBCURLDLL = libcurl.dll
38 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$(CURNTDIR);$(TOPDIR)/include
42 LINKLIB = $(BCCDIR)/lib/cw32mt.lib
44 # If you build with SSL support, set WITH_SSL=1
45 DEFINES = -DLIBCURL_BIGENDIAN=0 -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS
47 DEFINES = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
48 INCDIRS = $(INCDIRS);$(ZLIB_PATH)
49 # LINKLIB = $(LINKLIB) $(ZLIB_PATH)/zlib.lib
52 DEFINES = $(DEFINES) -DUSE_SSLEAY
53 INCDIRS = $(INCDIRS);$(OPENSSL_PATH)/inc32;$(OPENSSL_PATH)/inc32/openssl
54 # LINKLIB = $(LINKLIB) $(OPENSSL_PATH)/out32/ssleay32.lib $(OPENSSL_PATH)/out32/libeay32.lib
59 # Makefile.inc provides the CSOURCES and HHEADERS defines
62 OBJECTS = $(CSOURCES:.c=.obj)
65 $(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $<
74 $(LIBCURLLIB): $(OBJECTS)
78 $(LIBCURLDLL): $(OBJECTS) $(LINKLIB)
80 $(LD) $(LDFLAGS) -e$@ $**
82 getdate.c: getdate.c.cvs