Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 119 lines (95 sloc) 2.995 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.
19 !if "$(BCCDIR)" == ""
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 chan…
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
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
58 # By default LDAP support is disabled for BCC
b5cc77b @gknauf Disable LDAP support since BCC headers are insufficient.
gknauf authored
59 !ifndef WITH_LDAP
60 DEFINES = $(DEFINES) -DCURL_DISABLE_LDAP
61 !endif
62
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
63 # ZLIB support is enabled setting WITH_ZLIB=1
c0d1d69 @gknauf some more tweaks, fixed zlib suport.
gknauf authored
64 !ifdef WITH_ZLIB
65 DEFINES = $(DEFINES) -DHAVE_LIBZ -DHAVE_ZLIB_H
66 INCDIRS = $(INCDIRS);$(ZLIB_PATH)
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
67 LINKLIB = $(LINKLIB) $(ZLIB_PATH)\zlib.lib
c0d1d69 @gknauf some more tweaks, fixed zlib suport.
gknauf authored
68 !endif
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
69
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
70 # SSL support is enabled setting WITH_SSL=1
932a6f6 @gknauf made OpenSSL support conditional;
gknauf authored
71 !ifdef WITH_SSL
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
72 DEFINES = $(DEFINES) -DUSE_SSLEAY
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
73 INCDIRS = $(INCDIRS);$(OPENSSL_PATH)\inc32;$(OPENSSL_PATH)\inc32\openssl
74 LINKLIB = $(LINKLIB) $(OPENSSL_PATH)\out32\ssleay32.lib $(OPENSSL_PATH)\out32\libeay32.lib
932a6f6 @gknauf made OpenSSL support conditional;
gknauf authored
75 !endif
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
76
c0d1d69 @gknauf some more tweaks, fixed zlib suport.
gknauf authored
77 .autodepend
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
78
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
79 .path.c = $(SRCDIR)
80 .path.obj = $(OBJDIR)
81
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
82 # Makefile.inc provides the CSOURCES and HHEADERS defines
83 !include Makefile.inc
84
85 OBJECTS = $(CSOURCES:.c=.obj)
86
87 .c.obj:
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
88 @-$(RM) $(@R).int >NUL 2>&1
89 $(PP_CMD) $(CC_FLAGS) $(INCDIRS) $(DEFINES) -o$(@R).int $(<)
90 $(CC_CMD) $(CC_FLAGS) -o$(@) $(@R).int
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
91
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
92 all: $(OBJDIR) $(LIBCURL_LIB) $(LIBCURL_DLL)
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
93
94 clean:
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
95 @-$(RMDIR) $(OBJDIR) >NUL 2>&1
96 @-$(RM) $(LIBCURL_LIB) >NUL 2>&1
97 @-$(RM) $(LIBCURL_IMPLIB) >NUL 2>&1
98 @-$(RM) libcurl.tds >NUL 2>&1
99
100 $(OBJDIR):
101 @-$(RMDIR) $(OBJDIR) >NUL 2>&1
102 @-$(MKDIR) $(OBJDIR)
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
103
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
104 $(LIBCURL_LIB): $(OBJECTS)
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
105 @-$(RM) $(LIBCURL_LIB) >NUL 2>&1
9612fda @gknauf changed to use a temporary response file with tlib to give W9x a chan…
gknauf authored
106 $(LIB) $(LIBFLAGS) $@ @&&!
107 +$(**: = &^
108 +)
109 !
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
110
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
111 $(LIBCURL_DLL) $(LIBCURL_IMPLIB): $(OBJECTS) $(LINKLIB)
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
112 @-$(RM) $(LIBCURL_DLL) >NUL 2>&1
113 @-$(RM) $(LIBCURL_IMPLIB) >NUL 2>&1
56f0227 Static lib is libcurl.lib and import lib libcurl_imp.lib.
Gisle Vanem authored
114 $(LD) $(LDFLAGS) -e$(LIBCURL_DLL) $**
115 $(IMPLIB) $(LIBCURL_IMPLIB) $(LIBCURL_DLL)
5f26bee @gknauf changed to use Makefile.inc.
gknauf authored
116
42f5e8a @yangtse build: use external preprocessor cpp32 when building with Borland C
yangtse authored
117
118 # End of Makefile.b32
Something went wrong with that request. Please try again.