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