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