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.7
28 # Edit the path below to point to the base of your OpenSSL package.
30 OPENSSL_PATH = ..\..\openssl-0.9.8x
42 COPY = $(COMSPEC) /c copy /y
44 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
49 INCDIRS = -I.;..\include;..\lib
50 LINKLIB = $(BCCDIR)\lib\cw32mt.lib
51 DEFINES = -DNDEBUG -DWIN32
54 LIBCURL_LIB = ..\lib\libcurl_imp.lib
56 LIBCURL_LIB = ..\lib\libcurl.lib
57 DEFINES = $(DEFINES) -DCURL_STATICLIB
60 # ZLIB support is enabled setting WITH_ZLIB=1
62 DEFINES = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
63 INCDIRS = $(INCDIRS);$(ZLIB_PATH)
64 LINKLIB = $(LINKLIB) $(ZLIB_PATH)\zlib.lib
67 # SSL support is enabled setting WITH_SSL=1
69 DEFINES = $(DEFINES) -DUSE_SSLEAY
70 INCDIRS = $(INCDIRS);$(OPENSSL_PATH)\inc32;$(OPENSSL_PATH)\inc32\openssl
71 LINKLIB = $(LINKLIB) $(OPENSSL_PATH)\out32\ssleay32.lib $(OPENSSL_PATH)\out32\libeay32.lib
79 # Makefile.inc provides the CSOURCES and HHEADERS defines
83 CSOURCES = $(CURL_CFILES) $(CURLX_ONES:/lib/=)
84 OBJECTS = $(CSOURCES:.c=.obj)
87 $(CC_CMD) $(CC_FLAGS) $(INCDIRS) $(DEFINES) -o$@ $<
89 all: $(OBJDIR) hugehelp $(PROGNAME)
104 hugehelp: ..\docs\MANUAL ..\docs\curl.1 mkhelp.pl
105 groff -Tascii -man -P -c ../docs/curl.1 > hugehelp.tmp
106 perl -w mkhelp.pl -c ../docs/MANUAL < hugehelp.tmp > hugehelp.c
110 $(COPY) hugehelp.c.cvs hugehelp.c
113 $(PROGNAME): $(OBJECTS) $(LIBCURL_LIB) $(LINKLIB)
115 $(LD) $(LDFLAGS) -e$@ $**
118 # End of Makefile.b32