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