Git init
[external/curl.git] / src / Makefile.b32
1 ############################################################
2 #
3 #  Makefile.b32 - Borland's C++ Compiler 5.X
4 #
5 #  'src' directory
6 #
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
10 #
11 #  Written by Jaepil Kim, pit@paradise.net.nz
12 ############################################################
13
14 # Edit the path below to point to the base of your Zlib sources.
15 !ifndef ZLIB_PATH
16 ZLIB_PATH = ../../zlib-1.2.1
17 !endif
18
19 # Edit the path below to point to the base of your OpenSSL package.
20 !ifndef OPENSSL_PATH
21 OPENSSL_PATH = ../../openssl-0.9.7d
22 !endif
23
24 # Set program's name
25 PROGNAME = curl.exe
26
27 # Setup environment
28 CXX      = bcc32
29 LD       = bcc32
30 CP       = copy
31 RM       = del
32 LIB      = tlib
33
34 CXXFLAGS = -q -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
35 LDFLAGS  = -q -lq -lap
36
37 INCDIRS  = -I.;../include;../lib
38 LINKLIB  = $(BCCDIR)/lib/cw32mt.lib
39
40 # If you build with SSL support, set WITH_SSL=1
41 DEFINES  = -DNDEBUG -DWIN32
42
43 !ifdef DYNAMIC
44 LIBCURL_LIB = ../lib/libcurl_imp.lib
45 !else
46 LIBCURL_LIB = ../lib/libcurl.lib
47 DEFINES = $(DEFINES) -DCURL_STATICLIB
48 !endif
49
50 !ifdef WITH_ZLIB
51 DEFINES  = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
52 INCDIRS  = $(INCDIRS);$(ZLIB_PATH)
53 LINKLIB  = $(LINKLIB) $(ZLIB_PATH)/zlib.lib
54 !endif
55
56 !ifdef WITH_SSL
57 DEFINES  = $(DEFINES) -DUSE_SSLEAY
58 INCDIRS  = $(INCDIRS);$(OPENSSL_PATH)/inc32;$(OPENSSL_PATH)/inc32/openssl
59 LINKLIB  = $(LINKLIB) $(OPENSSL_PATH)/out32/ssleay32.lib $(OPENSSL_PATH)/out32/libeay32.lib
60 !endif
61
62 .autodepend
63
64 # Makefile.inc provides the CSOURCES and HHEADERS defines
65 top_srcdir = ..
66 !include Makefile.inc
67
68 CSOURCES = $(CURL_CFILES) $(CURLX_ONES)
69 OBJECTS  = $(CSOURCES:.c=.obj)
70
71 .c.obj:
72         $(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $<
73
74 all:    $(PROGNAME)
75
76 clean:
77         -$(RM) $(PROGNAME)
78         -$(RM) *.obj
79         -$(RM) hugehelp.c
80
81 $(PROGNAME): $(OBJECTS) $(LIBCURL_LIB) $(LINKLIB)
82         @-$(RM) $@
83         $(LD) $(LDFLAGS) -e$@ $**
84
85 hugehelp.c: hugehelp.c.cvs
86         @echo Creating $@
87         @$(CP) $** $@
88
89