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