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