]> git.saurik.com Git - wxWidgets.git/blame_incremental - tests/makefile.bcc
Better temporary fix.
[wxWidgets.git] / tests / makefile.bcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
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
24WX_RELEASE_NODOT = 27
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27LIBDIRNAME = .\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
28SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30TEST_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
34 -I$(SETUPHDIR) -I.\..\include -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
35 $(CPPUNIT_CFLAGS) -Hu -H=$(OBJS)\testprec_test.csm $(CPPFLAGS) $(CXXFLAGS)
36TEST_OBJECTS = \
37 $(OBJS)\test_dummy.obj \
38 $(OBJS)\test_test.obj \
39 $(OBJS)\test_archivetest.obj \
40 $(OBJS)\test_ziptest.obj \
41 $(OBJS)\test_arrays.obj \
42 $(OBJS)\test_datetimetest.obj \
43 $(OBJS)\test_fileconftest.obj \
44 $(OBJS)\test_filekind.obj \
45 $(OBJS)\test_filenametest.obj \
46 $(OBJS)\test_filesystest.obj \
47 $(OBJS)\test_fontmaptest.obj \
48 $(OBJS)\test_formatconvertertest.obj \
49 $(OBJS)\test_hashes.obj \
50 $(OBJS)\test_lists.obj \
51 $(OBJS)\test_longlongtest.obj \
52 $(OBJS)\test_convautotest.obj \
53 $(OBJS)\test_mbconvtest.obj \
54 $(OBJS)\test_regextest.obj \
55 $(OBJS)\test_wxregextest.obj \
56 $(OBJS)\test_scopeguardtest.obj \
57 $(OBJS)\test_strings.obj \
58 $(OBJS)\test_stdstrings.obj \
59 $(OBJS)\test_tokenizer.obj \
60 $(OBJS)\test_unicode.obj \
61 $(OBJS)\test_crt.obj \
62 $(OBJS)\test_vsnprintf.obj \
63 $(OBJS)\test_bstream.obj \
64 $(OBJS)\test_datastreamtest.obj \
65 $(OBJS)\test_ffilestream.obj \
66 $(OBJS)\test_filestream.obj \
67 $(OBJS)\test_largefile.obj \
68 $(OBJS)\test_memstream.obj \
69 $(OBJS)\test_sstream.obj \
70 $(OBJS)\test_tempfile.obj \
71 $(OBJS)\test_textstreamtest.obj \
72 $(OBJS)\test_zlibstream.obj \
73 $(OBJS)\test_textfiletest.obj \
74 $(OBJS)\test_uris.obj
75TEST_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
76 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
77 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
78 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
79 -I$(SETUPHDIR) -I.\..\include -I. $(__DLLFLAG_p) -I.\..\samples -DNOPCH \
80 $(CPPUNIT_CFLAGS) -Hu -H=$(OBJS)\testprec_test_gui.csm $(CPPFLAGS) \
81 $(CXXFLAGS)
82TEST_GUI_OBJECTS = \
83 $(OBJS)\test_gui_dummy.obj \
84 $(OBJS)\test_gui_test.obj \
85 $(OBJS)\test_gui_rect.obj \
86 $(OBJS)\test_gui_size.obj \
87 $(OBJS)\test_gui_point.obj
88
89### Conditionally set variables: ###
90
91!if "$(USE_GUI)" == "0"
92PORTNAME = base
93!endif
94!if "$(USE_GUI)" == "1"
95PORTNAME = msw
96!endif
97!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
98WXDEBUGFLAG = d
99!endif
100!if "$(DEBUG_FLAG)" == "1"
101WXDEBUGFLAG = d
102!endif
103!if "$(UNICODE)" == "1"
104WXUNICODEFLAG = u
105!endif
106!if "$(WXUNIV)" == "1"
107WXUNIVNAME = univ
108!endif
109!if "$(SHARED)" == "1"
110WXDLLFLAG = dll
111!endif
112!if "$(SHARED)" == "0"
113LIBTYPE_SUFFIX = lib
114!endif
115!if "$(SHARED)" == "1"
116LIBTYPE_SUFFIX = dll
117!endif
118!if "$(MONOLITHIC)" == "0"
119EXTRALIBS_FOR_BASE =
120!endif
121!if "$(MONOLITHIC)" == "1"
122EXTRALIBS_FOR_BASE =
123!endif
124!if "$(MONOLITHIC)" == "0"
125__WXLIB_NET_p = \
126 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
127!endif
128!if "$(USE_GUI)" == "1"
129__test_gui___depname = $(OBJS)\test_gui.exe
130!endif
131!if "$(WXUNIV)" == "1"
132__WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
133!endif
134!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
135__DEBUG_DEFINE_p_3 = -d__WXDEBUG__
136!endif
137!if "$(DEBUG_FLAG)" == "1"
138__DEBUG_DEFINE_p_3 = -d__WXDEBUG__
139!endif
140!if "$(USE_EXCEPTIONS)" == "0"
141__EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
142!endif
143!if "$(USE_RTTI)" == "0"
144__RTTI_DEFINE_p_3 = -dwxNO_RTTI
145!endif
146!if "$(USE_THREADS)" == "0"
147__THREAD_DEFINE_p_3 = -dwxNO_THREADS
148!endif
149!if "$(UNICODE)" == "1"
150__UNICODE_DEFINE_p_3 = -d_UNICODE
151!endif
152!if "$(MSLU)" == "1"
153__MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
154!endif
155!if "$(SHARED)" == "1"
156__DLLFLAG_p_3 = -dWXUSINGDLL
157!endif
158!if "$(MONOLITHIC)" == "0"
159__WXLIB_CORE_p = \
160 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
161!endif
162!if "$(USE_GUI)" == "1"
163__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
164!endif
165!if "$(USE_GUI)" == "1"
166__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
167!endif
168!if "$(USE_GUI)" == "1"
169__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
170!endif
171!if "$(BUILD)" == "debug"
172__OPTIMIZEFLAG = -Od
173!endif
174!if "$(BUILD)" == "release"
175__OPTIMIZEFLAG = -O2
176!endif
177!if "$(USE_THREADS)" == "0"
178__THREADSFLAG =
179!endif
180!if "$(USE_THREADS)" == "1"
181__THREADSFLAG = mt
182!endif
183!if "$(USE_THREADS)" == "0"
184__THREADSFLAG_0 =
185!endif
186!if "$(USE_THREADS)" == "1"
187__THREADSFLAG_0 = -tWM
188!endif
189!if "$(RUNTIME_LIBS)" == "dynamic"
190__RUNTIME_LIBS = -tWR
191!endif
192!if "$(RUNTIME_LIBS)" == "static"
193__RUNTIME_LIBS =
194!endif
195!if "$(RUNTIME_LIBS)" == "dynamic"
196__RUNTIME_LIBS_0 = i
197!endif
198!if "$(RUNTIME_LIBS)" == "static"
199__RUNTIME_LIBS_0 =
200!endif
201!if "$(WXUNIV)" == "1"
202__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
203!endif
204!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
205__DEBUG_DEFINE_p = -D__WXDEBUG__
206!endif
207!if "$(DEBUG_FLAG)" == "1"
208__DEBUG_DEFINE_p = -D__WXDEBUG__
209!endif
210!if "$(USE_EXCEPTIONS)" == "0"
211__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
212!endif
213!if "$(USE_RTTI)" == "0"
214__RTTI_DEFINE_p = -DwxNO_RTTI
215!endif
216!if "$(USE_THREADS)" == "0"
217__THREAD_DEFINE_p = -DwxNO_THREADS
218!endif
219!if "$(UNICODE)" == "1"
220__UNICODE_DEFINE_p = -D_UNICODE
221!endif
222!if "$(MSLU)" == "1"
223__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
224!endif
225!if "$(SHARED)" == "1"
226__DLLFLAG_p = -DWXUSINGDLL
227!endif
228!if "$(MONOLITHIC)" == "0"
229__WXLIB_BASE_p = \
230 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
231!endif
232!if "$(MONOLITHIC)" == "1"
233__WXLIB_MONO_p = \
234 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
235!endif
236!if "$(MSLU)" == "1"
237__UNICOWS_LIB_p = unicows.lib
238!endif
239!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
240__DEBUGINFO = -v
241!endif
242!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
243__DEBUGINFO = -v-
244!endif
245!if "$(DEBUG_INFO)" == "0"
246__DEBUGINFO = -v-
247!endif
248!if "$(DEBUG_INFO)" == "1"
249__DEBUGINFO = -v
250!endif
251
252
253all: $(OBJS)
254$(OBJS):
255 -if not exist $(OBJS) mkdir $(OBJS)
256
257### Targets: ###
258
259all: $(OBJS)\test.exe $(__test_gui___depname) data
260
261clean:
262 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
263 -if exist $(OBJS)\*.res del $(OBJS)\*.res
264 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
265 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
266 -if exist $(OBJS)\test.tds del $(OBJS)\test.tds
267 -if exist $(OBJS)\test.ilc del $(OBJS)\test.ilc
268 -if exist $(OBJS)\test.ild del $(OBJS)\test.ild
269 -if exist $(OBJS)\test.ilf del $(OBJS)\test.ilf
270 -if exist $(OBJS)\test.ils del $(OBJS)\test.ils
271 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
272 -if exist $(OBJS)\test_gui.tds del $(OBJS)\test_gui.tds
273 -if exist $(OBJS)\test_gui.ilc del $(OBJS)\test_gui.ilc
274 -if exist $(OBJS)\test_gui.ild del $(OBJS)\test_gui.ild
275 -if exist $(OBJS)\test_gui.ilf del $(OBJS)\test_gui.ilf
276 -if exist $(OBJS)\test_gui.ils del $(OBJS)\test_gui.ils
277
278$(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
279 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(CPPUNIT_LIBS) @&&|
280 c0x32.obj $(TEST_OBJECTS),$@,, $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_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 cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,,
281|
282
283!if "$(USE_GUI)" == "1"
284$(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
285 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(CPPUNIT_LIBS) -ap @&&|
286 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 cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\test_gui_sample.res
287|
288!endif
289
290data:
291 if not exist $(OBJS) mkdir $(OBJS)
292 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
293
294$(OBJS)\test_dummy.obj: .\dummy.cpp
295 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) -H $**
296
297$(OBJS)\test_test.obj: .\test.cpp
298 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
299
300$(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
301 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
302
303$(OBJS)\test_ziptest.obj: .\archive\ziptest.cpp
304 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
305
306$(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
307 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
308
309$(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
310 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
311
312$(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
313 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
314
315$(OBJS)\test_filekind.obj: .\filekind\filekind.cpp
316 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
317
318$(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
319 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
320
321$(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
322 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
323
324$(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
325 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
326
327$(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
328 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
329
330$(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
331 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
332
333$(OBJS)\test_lists.obj: .\lists\lists.cpp
334 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
335
336$(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
337 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
338
339$(OBJS)\test_convautotest.obj: .\mbconv\convautotest.cpp
340 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
341
342$(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
343 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
344
345$(OBJS)\test_regextest.obj: .\regex\regextest.cpp
346 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
347
348$(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
349 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
350
351$(OBJS)\test_scopeguardtest.obj: .\scopeguard\scopeguardtest.cpp
352 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
353
354$(OBJS)\test_strings.obj: .\strings\strings.cpp
355 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
356
357$(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
358 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
359
360$(OBJS)\test_tokenizer.obj: .\strings\tokenizer.cpp
361 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
362
363$(OBJS)\test_unicode.obj: .\strings\unicode.cpp
364 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
365
366$(OBJS)\test_crt.obj: .\strings\crt.cpp
367 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
368
369$(OBJS)\test_vsnprintf.obj: .\strings\vsnprintf.cpp
370 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
371
372$(OBJS)\test_bstream.obj: .\streams\bstream.cpp
373 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
374
375$(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
376 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
377
378$(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
379 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
380
381$(OBJS)\test_filestream.obj: .\streams\filestream.cpp
382 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
383
384$(OBJS)\test_largefile.obj: .\streams\largefile.cpp
385 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
386
387$(OBJS)\test_memstream.obj: .\streams\memstream.cpp
388 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
389
390$(OBJS)\test_sstream.obj: .\streams\sstream.cpp
391 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
392
393$(OBJS)\test_tempfile.obj: .\streams\tempfile.cpp
394 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
395
396$(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
397 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
398
399$(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
400 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
401
402$(OBJS)\test_textfiletest.obj: .\textfile\textfiletest.cpp
403 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
404
405$(OBJS)\test_uris.obj: .\uris\uris.cpp
406 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
407
408$(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
409 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) -i$(SETUPHDIR) -i.\..\include -i. $(__DLLFLAG_p_3) -i.\..\samples $**
410
411$(OBJS)\test_gui_dummy.obj: .\dummy.cpp
412 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) -H $**
413
414$(OBJS)\test_gui_test.obj: .\test.cpp
415 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
416
417$(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
418 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
419
420$(OBJS)\test_gui_size.obj: .\geometry\size.cpp
421 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
422
423$(OBJS)\test_gui_point.obj: .\geometry\point.cpp
424 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
425