Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 124 lines (99 sloc) 3.103 kb
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
1 ############################################################
2 #
3 # Makefile.b32 - Borland's C++ Compiler 5.X
4 #
5 # 'lib' directory
6 #
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
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 #
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
10 # Written by Jaepil Kim, pit@paradise.net.nz
11 ############################################################
12
61623b7 @yangtse build: BCC - require Borlands's MAKE for Makefile.b32 processing.
yangtse authored
13 !if "$(__MAKE__)" == ""
14 !error __MAKE__ not defined. Use Borlands's MAKE to process this makefile.
15 !endif
16
5f7d348 @yangtse build: BCC - recover lost functionality from commit 3d813204260b37289411
yangtse authored
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.
1da65c3 @yangtse build: BCC - makefile.b32 tweak
yangtse authored
19 !ifndef BCCDIR
5f7d348 @yangtse build: BCC - recover lost functionality from commit 3d813204260b37289411
yangtse authored
20 BCCDIR = $(MAKEDIR)\..
308db9d @gknauf Some Borland C++ makefile tweaks.
gknauf authored
21 !endif
22
932a6f6 @gknauf made OpenSSL support conditional;
gknauf authored
23 # Edit the path below to point to the base of your Zlib sources.
24 !ifndef ZLIB_PATH
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
25 ZLIB_PATH = ..\..\zlib-1.2.5
932a6f6 @gknauf made OpenSSL support conditional;
gknauf authored
26 !endif
27
28 # Edit the path below to point to the base of your OpenSSL package.
29 !ifndef OPENSSL_PATH
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
30 OPENSSL_PATH = ..\..\openssl-0.9.8q
932a6f6 @gknauf made OpenSSL support conditional;
gknauf authored
31 !endif
32
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
33 # Set libcurl static lib, dll and import lib
34 LIBCURL_LIB = libcurl.lib
35 LIBCURL_DLL = libcurl.dll
36 LIBCURL_IMPLIB = libcurl_imp.lib
932a6f6 @gknauf made OpenSSL support conditional;
gknauf authored
37
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
38 # Setup environment
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
39 PP_CMD = cpp32 -q -P-
40 CC_CMD = bcc32 -q -c
c0d1d69 @gknauf some more tweaks, fixed zlib suport.
gknauf authored
41 LD = bcc32
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
42 RM = del
43 MKDIR = mkdir
44 RMDIR = rmdir /s /q
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
45 LIB = tlib
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
46 IMPLIB = implib
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
47
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
48 CC_FLAGS = -5 -O2 -tWM -w -w-aus -w-ccc -w-dup -w-prc -w-pro -w-rch -w-sig -w-spa -Dinline=__inline
9612fda @gknauf changed to use a temporary response file with tlib to give W9x a chance ...
gknauf authored
49 LIBFLAGS = /C /P32
c0d1d69 @gknauf some more tweaks, fixed zlib suport.
gknauf authored
50 LDFLAGS = -q -lq -laa -tWD
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
51
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
52 SRCDIR = .
53 OBJDIR = .\objs
54 INCDIRS = -I.;..\include
55 LINKLIB = $(BCCDIR)\lib\cw32mt.lib
56 DEFINES = -DNDEBUG -DWIN32 -DBUILDING_LIBCURL
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
57
c73e5e8 @gknauf Enabled SSPI support by default.
gknauf authored
58 # By default SSPI support is enabled for BCC
59 !ifndef DISABLE_SSPI
60 DEFINES = $(DEFINES) -DUSE_WINDOWS_SSPI
61 !endif
62
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
63 # By default LDAP support is disabled for BCC
b5cc77b @gknauf Disable LDAP support since BCC headers are insufficient.
gknauf authored
64 !ifndef WITH_LDAP
65 DEFINES = $(DEFINES) -DCURL_DISABLE_LDAP
66 !endif
67
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
68 # ZLIB support is enabled setting WITH_ZLIB=1
c0d1d69 @gknauf some more tweaks, fixed zlib suport.
gknauf authored
69 !ifdef WITH_ZLIB
70 DEFINES = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
71 INCDIRS = $(INCDIRS);$(ZLIB_PATH)
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
72 LINKLIB = $(LINKLIB) $(ZLIB_PATH)\zlib.lib
c0d1d69 @gknauf some more tweaks, fixed zlib suport.
gknauf authored
73 !endif
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
74
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
75 # SSL support is enabled setting WITH_SSL=1
932a6f6 @gknauf made OpenSSL support conditional;
gknauf authored
76 !ifdef WITH_SSL
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
77 DEFINES = $(DEFINES) -DUSE_SSLEAY
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
78 INCDIRS = $(INCDIRS);$(OPENSSL_PATH)\inc32;$(OPENSSL_PATH)\inc32\openssl
79 LINKLIB = $(LINKLIB) $(OPENSSL_PATH)\out32\ssleay32.lib $(OPENSSL_PATH)\out32\libeay32.lib
932a6f6 @gknauf made OpenSSL support conditional;
gknauf authored
80 !endif
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
81
c0d1d69 @gknauf some more tweaks, fixed zlib suport.
gknauf authored
82 .autodepend
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
83
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
84 .path.c = $(SRCDIR)
85 .path.obj = $(OBJDIR)
86
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
87 # Makefile.inc provides the CSOURCES and HHEADERS defines
88 !include Makefile.inc
89
90 OBJECTS = $(CSOURCES:.c=.obj)
91
92 .c.obj:
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
93 @-$(RM) $(@R).int >NUL 2>&1
94 $(PP_CMD) $(CC_FLAGS) $(INCDIRS) $(DEFINES) -o$(@R).int $(<)
95 $(CC_CMD) $(CC_FLAGS) -o$(@) $(@R).int
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
96
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
97 all: $(OBJDIR) $(LIBCURL_LIB) $(LIBCURL_DLL)
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
98
99 clean:
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
100 @-$(RMDIR) $(OBJDIR) >NUL 2>&1
101 @-$(RM) $(LIBCURL_LIB) >NUL 2>&1
102 @-$(RM) $(LIBCURL_IMPLIB) >NUL 2>&1
103 @-$(RM) libcurl.tds >NUL 2>&1
104
105 $(OBJDIR):
106 @-$(RMDIR) $(OBJDIR) >NUL 2>&1
107 @-$(MKDIR) $(OBJDIR)
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
108
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
109 $(LIBCURL_LIB): $(OBJECTS)
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
110 @-$(RM) $(LIBCURL_LIB) >NUL 2>&1
9612fda @gknauf changed to use a temporary response file with tlib to give W9x a chance ...
gknauf authored
111 $(LIB) $(LIBFLAGS) $@ @&&!
112 +$(**: = &^
113 +)
114 !
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
115
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
116 $(LIBCURL_DLL) $(LIBCURL_IMPLIB): $(OBJECTS) $(LINKLIB)
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
117 @-$(RM) $(LIBCURL_DLL) >NUL 2>&1
118 @-$(RM) $(LIBCURL_IMPLIB) >NUL 2>&1
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
119 $(LD) $(LDFLAGS) -e$(LIBCURL_DLL) $**
120 $(IMPLIB) $(LIBCURL_IMPLIB) $(LIBCURL_DLL)
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
121
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
122
123 # End of Makefile.b32
Something went wrong with that request. Please try again.