Skip to content

HTTPS clone URL

Subversion checkout URL

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