]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/net/makefile.bcc
Renewed makefiles after reverting run-time lib change
[wxWidgets.git] / contrib / build / net / makefile.bcc
CommitLineData
15e8daec
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (http://bakefile.sourceforge.net)
15e8daec
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
15e8daec 9!ifndef BCCDIR
9bfe7ad9
VS
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
15e8daec
VS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
fd9f42b6 16!include ../../../build/msw/config.bcc
15e8daec
VS
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
15e8daec
VS
22### Variables: ###
23
4818141b 24WX_RELEASE_NODOT = 26
b17c1746
DE
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 27LIBDIRNAME = ..\..\src\net\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
28SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 30NETUTILSDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
8c9f8f91
JS
31 $(__OPTIMIZEFLAG) $(__THREADSFLAG) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
34 -I..\..\src\net\..\..\..\include -I$(SETUPHDIR) \
9bfe7ad9
VS
35 -I..\..\src\net\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_NETUTILS -Hu \
36 -H=$(OBJS)\wxprec_netutilsdll.csm $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
37NETUTILSDLL_OBJECTS = \
38 $(OBJS)\netutilsdll_dummy.obj \
39 $(OBJS)\netutilsdll_email.obj \
40 $(OBJS)\netutilsdll_smapi.obj \
41 $(OBJS)\netutilsdll_web.obj
9bfe7ad9 42NETUTILSLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
8c9f8f91
JS
43 $(__OPTIMIZEFLAG) $(__THREADSFLAG) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
44 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
45 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
46 -I..\..\src\net\..\..\..\include -I$(SETUPHDIR) \
9bfe7ad9
VS
47 -I..\..\src\net\..\..\include -Hu -H=$(OBJS)\wxprec_netutilslib.csm \
48 $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
49NETUTILSLIB_OBJECTS = \
50 $(OBJS)\netutilslib_dummy.obj \
51 $(OBJS)\netutilslib_email.obj \
52 $(OBJS)\netutilslib_smapi.obj \
53 $(OBJS)\netutilslib_web.obj
15e8daec
VS
54
55### Conditionally set variables: ###
56
57!if "$(USE_GUI)" == "0"
58PORTNAME = base
59!endif
60!if "$(USE_GUI)" == "1"
61PORTNAME = msw
62!endif
63!if "$(OFFICIAL_BUILD)" == "0"
64VENDORTAG = _$(VENDOR)
65!endif
66!if "$(OFFICIAL_BUILD)" == "1"
67VENDORTAG =
68!endif
69!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
70WXDEBUGFLAG = d
71!endif
72!if "$(DEBUG_FLAG)" == "1"
73WXDEBUGFLAG = d
74!endif
15e8daec
VS
75!if "$(UNICODE)" == "1"
76WXUNICODEFLAG = u
77!endif
78!if "$(WXUNIV)" == "1"
79WXUNIVNAME = univ
80!endif
b17c1746
DE
81!if "$(SHARED)" == "1"
82WXDLLFLAG = dll
15e8daec 83!endif
b14abf14
JS
84!if "$(SHARED)" == "0"
85LIBTYPE_SUFFIX = lib
86!endif
87!if "$(SHARED)" == "1"
88LIBTYPE_SUFFIX = dll
89!endif
dd65d8c8
RN
90!if "$(MONOLITHIC)" == "0"
91EXTRALIBS_FOR_BASE =
92!endif
93!if "$(MONOLITHIC)" == "1"
94EXTRALIBS_FOR_BASE =
95!endif
b17c1746
DE
96!if "$(SHARED)" == "1"
97__netutilsdll___depname = \
4818141b 98 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).dll
15e8daec 99!endif
8c9f8f91
JS
100!if "$(USE_THREADS)" == "0"
101__THREADSFLAG_6 =
102!endif
103!if "$(USE_THREADS)" == "1"
104__THREADSFLAG_6 = mt
105!endif
b17c1746 106!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 107__RUNTIME_LIBS_9 = i
15e8daec 108!endif
b17c1746 109!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91
JS
110__RUNTIME_LIBS_9 =
111!endif
112!if "$(WXUNIV)" == "1"
113__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
114!endif
115!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
116__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
117!endif
118!if "$(DEBUG_FLAG)" == "1"
119__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
120!endif
121!if "$(USE_EXCEPTIONS)" == "0"
122__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
123!endif
124!if "$(USE_RTTI)" == "0"
125__RTTI_DEFINE_p_1 = -dwxNO_RTTI
126!endif
127!if "$(USE_THREADS)" == "0"
128__THREAD_DEFINE_p_1 = -dwxNO_THREADS
129!endif
130!if "$(UNICODE)" == "1"
131__UNICODE_DEFINE_p_1 = -d_UNICODE
15e8daec 132!endif
b17c1746
DE
133!if "$(MONOLITHIC)" == "1"
134__WXLIB_MONO_p = \
c33fae85 135 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
15e8daec 136!endif
b17c1746 137!if "$(USE_GUI)" == "1"
9c2d002b 138__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
15e8daec
VS
139!endif
140!if "$(USE_GUI)" == "1"
9c2d002b 141__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
15e8daec
VS
142!endif
143!if "$(USE_GUI)" == "1"
9c2d002b 144__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
15e8daec 145!endif
b17c1746
DE
146!if "$(MSLU)" == "1"
147__UNICOWS_LIB_p = unicows.lib
148!endif
149!if "$(MONOLITHIC)" == "0"
150__WXLIB_CORE_p = \
c33fae85 151 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
b17c1746
DE
152!endif
153!if "$(MONOLITHIC)" == "0"
c33fae85
RN
154__WXLIB_BASE_p = \
155 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746
DE
156!endif
157!if "$(SHARED)" == "0"
158__netutilslib___depname = \
c33fae85 159 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib
b17c1746
DE
160!endif
161!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
162__DEBUGINFO = -v
163!endif
164!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
165__DEBUGINFO = -v-
166!endif
167!if "$(DEBUG_INFO)" == "0"
168__DEBUGINFO = -v-
169!endif
170!if "$(DEBUG_INFO)" == "1"
171__DEBUGINFO = -v
15e8daec
VS
172!endif
173!if "$(BUILD)" == "debug"
174__OPTIMIZEFLAG = -Od
175!endif
176!if "$(BUILD)" == "release"
177__OPTIMIZEFLAG = -O2
178!endif
8c9f8f91
JS
179!if "$(USE_THREADS)" == "0"
180__THREADSFLAG =
181!endif
182!if "$(USE_THREADS)" == "1"
183__THREADSFLAG = -tWM
184!endif
15e8daec
VS
185!if "$(RUNTIME_LIBS)" == "dynamic"
186__RUNTIME_LIBS = -tWR
187!endif
188!if "$(RUNTIME_LIBS)" == "static"
189__RUNTIME_LIBS =
190!endif
b17c1746
DE
191!if "$(WXUNIV)" == "1"
192__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
15e8daec 193!endif
b17c1746
DE
194!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
195__DEBUG_DEFINE_p = -D__WXDEBUG__
196!endif
197!if "$(DEBUG_FLAG)" == "1"
198__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec 199!endif
8c9f8f91
JS
200!if "$(USE_EXCEPTIONS)" == "0"
201__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
202!endif
203!if "$(USE_RTTI)" == "0"
204__RTTI_DEFINE_p = -DwxNO_RTTI
205!endif
206!if "$(USE_THREADS)" == "0"
207__THREAD_DEFINE_p = -DwxNO_THREADS
208!endif
15e8daec 209!if "$(UNICODE)" == "1"
ec08d395 210__UNICODE_DEFINE_p = -D_UNICODE
15e8daec 211!endif
15e8daec
VS
212
213
214all: $(OBJS)
215$(OBJS):
216 -if not exist $(OBJS) mkdir $(OBJS)
217
218### Targets: ###
219
220all: $(__netutilsdll___depname) $(__netutilslib___depname)
221
15e8daec
VS
222clean:
223 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
224 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 225 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
4818141b
JS
226 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).dll
227 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).tds del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).tds
228 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ilc del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ilc
229 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ild del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ild
230 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ilf del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ilf
231 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ils del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ils
c33fae85
RN
232 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib
233 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib
15e8daec
VS
234
235!if "$(SHARED)" == "1"
4818141b 236$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).dll: $(OBJS)\netutilsdll_dummy.obj $(NETUTILSDLL_OBJECTS) $(OBJS)\netutilsdll_version.res
9bfe7ad9 237 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
8c9f8f91 238 c0d32.obj $(NETUTILSDLL_OBJECTS),$@,, $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32$(__THREADSFLAG_6)$(__RUNTIME_LIBS_9).lib,, $(OBJS)\netutilsdll_version.res
15e8daec 239|
c33fae85 240 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils $@
15e8daec
VS
241!endif
242
243!if "$(SHARED)" == "0"
c33fae85 244$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib: $(OBJS)\netutilslib_dummy.obj $(NETUTILSLIB_OBJECTS)
15e8daec 245 if exist $@ del $@
9bfe7ad9 246 tlib /a /p4096 $@ @&&|
15e8daec
VS
247 $(NETUTILSLIB_OBJECTS)
248|
249!endif
b17c1746
DE
250
251$(OBJS)\netutilsdll_dummy.obj: ../../src/net\..\..\..\src\msw\dummy.cpp
252 $(CXX) -q -c -P -o$@ $(NETUTILSDLL_CXXFLAGS) -H $**
253
102d46f3 254$(OBJS)\netutilsdll_version.res: ../../src/net\..\..\..\src\msw\version.rc
4818141b 255 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i..\..\src\net\..\..\..\include -i$(SETUPHDIR) -dWXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG) $**
8c9f8f91 256
b17c1746
DE
257$(OBJS)\netutilsdll_email.obj: ../../src/net\email.cpp
258 $(CXX) -q -c -P -o$@ $(NETUTILSDLL_CXXFLAGS) $**
259
260$(OBJS)\netutilsdll_smapi.obj: ../../src/net\smapi.cpp
261 $(CXX) -q -c -P -o$@ $(NETUTILSDLL_CXXFLAGS) $**
262
263$(OBJS)\netutilsdll_web.obj: ../../src/net\web.cpp
264 $(CXX) -q -c -P -o$@ $(NETUTILSDLL_CXXFLAGS) $**
265
266$(OBJS)\netutilslib_dummy.obj: ../../src/net\..\..\..\src\msw\dummy.cpp
267 $(CXX) -q -c -P -o$@ $(NETUTILSLIB_CXXFLAGS) -H $**
268
269$(OBJS)\netutilslib_email.obj: ../../src/net\email.cpp
270 $(CXX) -q -c -P -o$@ $(NETUTILSLIB_CXXFLAGS) $**
271
272$(OBJS)\netutilslib_smapi.obj: ../../src/net\smapi.cpp
273 $(CXX) -q -c -P -o$@ $(NETUTILSLIB_CXXFLAGS) $**
274
275$(OBJS)\netutilslib_web.obj: ../../src/net\web.cpp
276 $(CXX) -q -c -P -o$@ $(NETUTILSLIB_CXXFLAGS) $**
b14abf14 277