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
10 # Initially written by Jaepil Kim, pit@paradise.net.nz
11 ############################################################
13 !if "$(__MAKE__)" == ""
14 !error __MAKE__ not defined. Use Borlands's MAKE to process this makefile.
17 # Borland's $(MAKEDIR) expands to the path where make.exe is located,
18 # use this feature to define BCCDIR when user has not defined BCCDIR.
20 BCCDIR = $(MAKEDIR)\..
23 # Edit the path below to point to the base of your Zlib sources.
25 ZLIB_PATH = ..\..\zlib-1.2.8
28 # Edit the path below to point to the base of your OpenSSL package.
30 OPENSSL_PATH = ..\..\openssl-0.9.8y
43 COPY = $(COMSPEC) /c copy /y
45 CC_FLAGS = -5 -O2 -tWM -w -w-aus -w-ccc -w-dup -w-prc -w-pro -w-rch -w-sig -w-spa -w-inl -w-pia -w-pin -Dinline=__inline
50 INCDIRS = -I.;..\include;..\lib
51 LINKLIB = $(BCCDIR)\lib\cw32mt.lib $(BCCDIR)\lib\ws2_32.lib
52 DEFINES = -DNDEBUG -DWIN32
55 LIBCURL_LIB = ..\lib\libcurl_imp.lib
57 LIBCURL_LIB = ..\lib\libcurl.lib
58 DEFINES = $(DEFINES) -DCURL_STATICLIB
61 # ZLIB support is enabled setting WITH_ZLIB=1
63 DEFINES = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
64 INCDIRS = $(INCDIRS);$(ZLIB_PATH)
65 LINKLIB = $(LINKLIB) $(ZLIB_PATH)\zlib.lib
68 # SSL support is enabled setting WITH_SSL=1
70 DEFINES = $(DEFINES) -DUSE_SSLEAY
71 INCDIRS = $(INCDIRS);$(OPENSSL_PATH)\inc32;$(OPENSSL_PATH)\inc32\openssl
72 LINKLIB = $(LINKLIB) $(OPENSSL_PATH)\out32\ssleay32.lib $(OPENSSL_PATH)\out32\libeay32.lib
81 # Makefile.inc provides the CSOURCES and HHEADERS defines
84 CSOURCES = $(CURL_CFILES) $(CURLX_ONES:../lib/=)
85 OBJECTS = $(CSOURCES:.c=.obj)
86 PREPROCESSED = $(CSOURCES:.c=.int)
88 # Borland's command line compiler (BCC32) version 5.5.1 integrated
89 # preprocessor has a bug which results in silently generating wrong
90 # definitions for libcurl macros such as CURL_OFF_T_C, on the other
91 # hand Borland's command line preprocessor (CPP32) version 5.5.1 does
92 # not have the bug and achieves proper results. In order to avoid the
93 # silent bug we first preprocess source files and later compile the
94 # preprocessed result.
98 $(PP_CMD) $(CC_FLAGS) $(INCDIRS) $(DEFINES) -o$(@R).int $(<)
99 $(CC_CMD) $(CC_FLAGS) -o$(@) $(@R).int
101 all: $(OBJDIR) tool_hugehelp $(PROGNAME)
106 @-$(RM) $(PREPROCESSED)
117 tool_hugehelp: ..\docs\MANUAL ..\docs\curl.1 mkhelp.pl
118 groff -Tascii -man -P -c ../docs/curl.1 > tool_hugehelp.tmp
119 perl -w mkhelp.pl -c ../docs/MANUAL < tool_hugehelp.tmp > tool_hugehelp.c
120 @-$(RM) tool_hugehelp.tmp
123 if exist ..\GIT-INFO $(COPY) tool_hugehelp.c.cvs tool_hugehelp.c
126 $(PROGNAME): $(OBJECTS) $(LIBCURL_LIB) $(LINKLIB)
128 $(LD) $(LDFLAGS) -e$@ @&&!
134 # End of Makefile.b32