]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.bcc
wxEmptyString decorations.
[wxWidgets.git] / tests / makefile.bcc
CommitLineData
670ec357
VS
1# =========================================================================
2# This makefile was generated by
cb327439 3# Bakefile 0.1.6 (http://bakefile.sourceforge.net)
670ec357
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7.autodepend
8
9!ifndef BCCDIR
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
13BCCDIR = $(MAKEDIR)\..
14!endif
15
16!include ../build/msw/config.bcc
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
22### Variables: ###
23
c33fae85 24WX_RELEASE_NODOT = 25
670ec357
VS
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
cb327439 27LIBDIRNAME = .\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
670ec357
VS
28SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
a0744a6b
VS
30TEST_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
33 $(CPPUNIT_CFLAGS) -Hu -H=$(OBJS)\testprec_test.csm $(CPPFLAGS) $(CXXFLAGS)
670ec357 34TEST_OBJECTS = \
8899b155 35 $(OBJS)\test_dummy.obj \
670ec357 36 $(OBJS)\test_test.obj \
8899b155 37 $(OBJS)\test_archivetest.obj \
e6477b92 38 $(OBJS)\test_ziptest.obj \
dd65d8c8 39 $(OBJS)\test_arrays.obj \
113e181a
RN
40 $(OBJS)\test_datetimetest.obj \
41 $(OBJS)\test_fileconftest.obj \
42 $(OBJS)\test_filenametest.obj \
43 $(OBJS)\test_filesystest.obj \
44 $(OBJS)\test_fontmaptest.obj \
45 $(OBJS)\test_formatconvertertest.obj \
f9c3d39b 46 $(OBJS)\test_hashes.obj \
7d9cfc54 47 $(OBJS)\test_lists.obj \
113e181a
RN
48 $(OBJS)\test_longlongtest.obj \
49 $(OBJS)\test_mbconvtest.obj \
50 $(OBJS)\test_regextest.obj \
51 $(OBJS)\test_wxregextest.obj \
1cd53e88 52 $(OBJS)\test_strings.obj \
405b7d91 53 $(OBJS)\test_stdstrings.obj \
387f829e 54 $(OBJS)\test_unicode.obj \
cf8ee08b 55 $(OBJS)\test_crt.obj \
7735998c 56 $(OBJS)\test_bstream.obj \
7d9cfc54 57 $(OBJS)\test_datastreamtest.obj \
7735998c
VS
58 $(OBJS)\test_ffilestream.obj \
59 $(OBJS)\test_filestream.obj \
cb327439 60 $(OBJS)\test_largefile.obj \
7735998c 61 $(OBJS)\test_memstream.obj \
c33fae85 62 $(OBJS)\test_sstream.obj \
8899b155 63 $(OBJS)\test_textstreamtest.obj \
816b59de 64 $(OBJS)\test_zlibstream.obj \
dd65d8c8 65 $(OBJS)\test_uris.obj
a0744a6b
VS
66TEST_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
67 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
68 $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
69 -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) -Hu \
70 -H=$(OBJS)\testprec_test_gui.csm $(CPPFLAGS) $(CXXFLAGS)
71TEST_GUI_OBJECTS = \
72 $(OBJS)\test_gui_dummy.obj \
98a50e20 73 $(OBJS)\test_gui_test.obj \
cb327439
MW
74 $(OBJS)\test_gui_rect.obj \
75 $(OBJS)\test_gui_size.obj \
76 $(OBJS)\test_gui_point.obj
670ec357
VS
77
78### Conditionally set variables: ###
79
80!if "$(USE_GUI)" == "0"
81PORTNAME = base
82!endif
83!if "$(USE_GUI)" == "1"
84PORTNAME = msw
85!endif
86!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
87WXDEBUGFLAG = d
88!endif
89!if "$(DEBUG_FLAG)" == "1"
90WXDEBUGFLAG = d
91!endif
92!if "$(UNICODE)" == "1"
93WXUNICODEFLAG = u
94!endif
95!if "$(WXUNIV)" == "1"
96WXUNIVNAME = univ
97!endif
98!if "$(SHARED)" == "1"
99WXDLLFLAG = dll
100!endif
cb327439
MW
101!if "$(SHARED)" == "0"
102LIBTYPE_SUFFIX = lib
103!endif
104!if "$(SHARED)" == "1"
105LIBTYPE_SUFFIX = dll
106!endif
dd65d8c8
RN
107!if "$(MONOLITHIC)" == "0"
108EXTRALIBS_FOR_BASE =
109!endif
110!if "$(MONOLITHIC)" == "1"
111EXTRALIBS_FOR_BASE =
112!endif
a0744a6b
VS
113!if "$(MONOLITHIC)" == "0"
114__WXLIB_NET_p = \
115 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
116!endif
117!if "$(USE_GUI)" == "1"
118__test_gui___depname = $(OBJS)\test_gui.exe
119!endif
120!if "$(WXUNIV)" == "1"
121__WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
122!endif
123!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
124__DEBUG_DEFINE_p_3 = -d__WXDEBUG__
125!endif
126!if "$(DEBUG_FLAG)" == "1"
127__DEBUG_DEFINE_p_3 = -d__WXDEBUG__
128!endif
129!if "$(UNICODE)" == "1"
130__UNICODE_DEFINE_p_3 = -d_UNICODE
131!endif
132!if "$(SHARED)" == "1"
133__DLLFLAG_p_3 = -dWXUSINGDLL
134!endif
135!if "$(MONOLITHIC)" == "0"
136__WXLIB_CORE_p = \
137 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
138!endif
670ec357 139!if "$(BUILD)" == "debug"
a0744a6b 140__OPTIMIZEFLAG = -Od
670ec357
VS
141!endif
142!if "$(BUILD)" == "release"
a0744a6b 143__OPTIMIZEFLAG = -O2
670ec357
VS
144!endif
145!if "$(RUNTIME_LIBS)" == "dynamic"
a0744a6b 146__RUNTIME_LIBS = -tWR
670ec357
VS
147!endif
148!if "$(RUNTIME_LIBS)" == "static"
a0744a6b 149__RUNTIME_LIBS =
670ec357
VS
150!endif
151!if "$(RUNTIME_LIBS)" == "dynamic"
a0744a6b 152__RUNTIME_LIBS_0 = i
670ec357
VS
153!endif
154!if "$(RUNTIME_LIBS)" == "static"
a0744a6b 155__RUNTIME_LIBS_0 =
670ec357
VS
156!endif
157!if "$(WXUNIV)" == "1"
158__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
159!endif
160!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
161__DEBUG_DEFINE_p = -D__WXDEBUG__
162!endif
163!if "$(DEBUG_FLAG)" == "1"
164__DEBUG_DEFINE_p = -D__WXDEBUG__
165!endif
166!if "$(UNICODE)" == "1"
167__UNICODE_DEFINE_p = -D_UNICODE
168!endif
a0744a6b
VS
169!if "$(SHARED)" == "1"
170__DLLFLAG_p = -DWXUSINGDLL
113e181a
RN
171!endif
172!if "$(MONOLITHIC)" == "0"
c33fae85
RN
173__WXLIB_BASE_p = \
174 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
175!endif
176!if "$(MONOLITHIC)" == "1"
177__WXLIB_MONO_p = \
c33fae85 178 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
179!endif
180!if "$(USE_GUI)" == "1"
9c2d002b 181__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
670ec357
VS
182!endif
183!if "$(USE_GUI)" == "1"
9c2d002b 184__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
670ec357
VS
185!endif
186!if "$(USE_GUI)" == "1"
9c2d002b 187__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
670ec357
VS
188!endif
189!if "$(MSLU)" == "1"
190__UNICOWS_LIB_p = unicows.lib
191!endif
670ec357
VS
192!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
193__DEBUGINFO = -v
194!endif
195!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
196__DEBUGINFO = -v-
197!endif
198!if "$(DEBUG_INFO)" == "0"
199__DEBUGINFO = -v-
200!endif
201!if "$(DEBUG_INFO)" == "1"
202__DEBUGINFO = -v
203!endif
204
205
206all: $(OBJS)
207$(OBJS):
208 -if not exist $(OBJS) mkdir $(OBJS)
209
210### Targets: ###
211
a0744a6b 212all: $(OBJS)\test.exe $(__test_gui___depname) data
670ec357
VS
213
214clean:
215 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
216 -if exist $(OBJS)\*.res del $(OBJS)\*.res
cb327439 217 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
670ec357
VS
218 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
219 -if exist $(OBJS)\test.tds del $(OBJS)\test.tds
220 -if exist $(OBJS)\test.ilc del $(OBJS)\test.ilc
221 -if exist $(OBJS)\test.ild del $(OBJS)\test.ild
222 -if exist $(OBJS)\test.ilf del $(OBJS)\test.ilf
223 -if exist $(OBJS)\test.ils del $(OBJS)\test.ils
a0744a6b
VS
224 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
225 -if exist $(OBJS)\test_gui.tds del $(OBJS)\test_gui.tds
226 -if exist $(OBJS)\test_gui.ilc del $(OBJS)\test_gui.ilc
227 -if exist $(OBJS)\test_gui.ild del $(OBJS)\test_gui.ild
228 -if exist $(OBJS)\test_gui.ilf del $(OBJS)\test_gui.ilf
229 -if exist $(OBJS)\test_gui.ils del $(OBJS)\test_gui.ils
670ec357 230
8899b155 231$(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
670ec357 232 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(CPPUNIT_LIBS) @&&|
a0744a6b
VS
233 c0x32.obj $(TEST_OBJECTS),$@,, $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__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 import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,,
234|
235
236!if "$(USE_GUI)" == "1"
237$(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
98a50e20
VS
238 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(CPPUNIT_LIBS) -ap @&&|
239 c0x32.obj $(TEST_GUI_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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 import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\test_gui_sample.res
670ec357 240|
a0744a6b 241!endif
670ec357 242
387f829e
VS
243data:
244 if not exist $(OBJS) mkdir $(OBJS)
245 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
246
8899b155
RN
247$(OBJS)\test_dummy.obj: .\dummy.cpp
248 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) -H $**
249
670ec357
VS
250$(OBJS)\test_test.obj: .\test.cpp
251 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
252
8899b155
RN
253$(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
254 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
255
e6477b92
MW
256$(OBJS)\test_ziptest.obj: .\archive\ziptest.cpp
257 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
258
dd65d8c8 259$(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
e70833fb 260 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
4827cbd9 261
113e181a 262$(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
bc10103e
VS
263 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
264
113e181a 265$(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
ab921f5f
RN
266 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
267
113e181a 268$(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
3fa86423
WS
269 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
270
113e181a 271$(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
4827cbd9 272 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
cf1014a2 273
113e181a 274$(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
dd65d8c8
RN
275 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
276
113e181a 277$(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
cf1014a2 278 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
1b035b8c 279
f9c3d39b
MB
280$(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
281 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
282
7d9cfc54
MB
283$(OBJS)\test_lists.obj: .\lists\lists.cpp
284 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
285
113e181a 286$(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
1b035b8c 287 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
7735998c 288
113e181a 289$(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
dd65d8c8
RN
290 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
291
113e181a 292$(OBJS)\test_regextest.obj: .\regex\regextest.cpp
dd65d8c8
RN
293 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
294
113e181a 295$(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
dd65d8c8
RN
296 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
297
1cd53e88
VS
298$(OBJS)\test_strings.obj: .\strings\strings.cpp
299 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
300
405b7d91
WS
301$(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
302 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
303
387f829e
VS
304$(OBJS)\test_unicode.obj: .\strings\unicode.cpp
305 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
306
cf8ee08b
VS
307$(OBJS)\test_crt.obj: .\strings\crt.cpp
308 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
309
7735998c
VS
310$(OBJS)\test_bstream.obj: .\streams\bstream.cpp
311 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
312
7d9cfc54
MB
313$(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
314 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
315
7735998c
VS
316$(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
317 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
318
319$(OBJS)\test_filestream.obj: .\streams\filestream.cpp
320 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
321
cb327439
MW
322$(OBJS)\test_largefile.obj: .\streams\largefile.cpp
323 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
324
7735998c
VS
325$(OBJS)\test_memstream.obj: .\streams\memstream.cpp
326 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
327
c33fae85
RN
328$(OBJS)\test_sstream.obj: .\streams\sstream.cpp
329 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
330
8899b155
RN
331$(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
332 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
333
7735998c
VS
334$(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
335 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
816b59de 336
dd65d8c8 337$(OBJS)\test_uris.obj: .\uris\uris.cpp
edcccd84 338 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
a0744a6b
VS
339
340$(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
cb327439 341 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) -i.\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_3) -i.\..\samples $**
a0744a6b
VS
342
343$(OBJS)\test_gui_dummy.obj: .\dummy.cpp
344 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) -H $**
345
346$(OBJS)\test_gui_test.obj: .\test.cpp
347 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
98a50e20
VS
348
349$(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
350 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
cb327439
MW
351
352$(OBJS)\test_gui_size.obj: .\geometry\size.cpp
353 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
354
355$(OBJS)\test_gui_point.obj: .\geometry\point.cpp
356 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
357