]> git.saurik.com Git - wxWidgets.git/blob - tests/makefile.wat
WinCE doesn't have wxCheckListBox, and doesn't like wxRmDir
[wxWidgets.git] / tests / makefile.wat
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.7 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 !include ../build/msw/config.wat
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 # Speed up compilation a bit:
14 !ifdef __LOADDLL__
15 ! loaddll wcc wccd
16 ! loaddll wccaxp wccdaxp
17 ! loaddll wcc386 wccd386
18 ! loaddll wpp wppdi86
19 ! loaddll wppaxp wppdaxp
20 ! loaddll wpp386 wppd386
21 ! loaddll wlink wlink
22 ! loaddll wlib wlibd
23 !endif
24
25 # We need these variables in some bakefile-made rules:
26 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
27
28 ### Conditionally set variables: ###
29
30 PORTNAME =
31 !ifeq USE_GUI 0
32 PORTNAME = base
33 !endif
34 !ifeq USE_GUI 1
35 PORTNAME = msw
36 !endif
37 WXDEBUGFLAG =
38 !ifeq BUILD debug
39 !ifeq DEBUG_FLAG default
40 WXDEBUGFLAG = d
41 !endif
42 !endif
43 !ifeq DEBUG_FLAG 1
44 WXDEBUGFLAG = d
45 !endif
46 WXUNICODEFLAG =
47 !ifeq UNICODE 1
48 WXUNICODEFLAG = u
49 !endif
50 WXUNIVNAME =
51 !ifeq WXUNIV 1
52 WXUNIVNAME = univ
53 !endif
54 WXDLLFLAG =
55 !ifeq SHARED 1
56 WXDLLFLAG = dll
57 !endif
58 LIBTYPE_SUFFIX =
59 !ifeq SHARED 0
60 LIBTYPE_SUFFIX = lib
61 !endif
62 !ifeq SHARED 1
63 LIBTYPE_SUFFIX = dll
64 !endif
65 EXTRALIBS_FOR_BASE =
66 !ifeq MONOLITHIC 0
67 EXTRALIBS_FOR_BASE =
68 !endif
69 !ifeq MONOLITHIC 1
70 EXTRALIBS_FOR_BASE =
71 !endif
72 __WXLIB_NET_p =
73 !ifeq MONOLITHIC 0
74 __WXLIB_NET_p = &
75 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
76 !endif
77 __test_gui___depname =
78 !ifeq USE_GUI 1
79 __test_gui___depname = $(OBJS)\test_gui.exe
80 !endif
81 __WXLIB_CORE_p =
82 !ifeq MONOLITHIC 0
83 __WXLIB_CORE_p = &
84 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
85 !endif
86 __DEBUGINFO =
87 !ifeq BUILD debug
88 !ifeq DEBUG_INFO default
89 __DEBUGINFO = -d2
90 !endif
91 !endif
92 !ifeq BUILD release
93 !ifeq DEBUG_INFO default
94 __DEBUGINFO = -d0
95 !endif
96 !endif
97 !ifeq DEBUG_INFO 0
98 __DEBUGINFO = -d0
99 !endif
100 !ifeq DEBUG_INFO 1
101 __DEBUGINFO = -d2
102 !endif
103 __DEBUGINFO_1 =
104 !ifeq BUILD debug
105 !ifeq DEBUG_INFO default
106 __DEBUGINFO_1 = debug all
107 !endif
108 !endif
109 !ifeq BUILD release
110 !ifeq DEBUG_INFO default
111 __DEBUGINFO_1 =
112 !endif
113 !endif
114 !ifeq DEBUG_INFO 0
115 __DEBUGINFO_1 =
116 !endif
117 !ifeq DEBUG_INFO 1
118 __DEBUGINFO_1 = debug all
119 !endif
120 __OPTIMIZEFLAG =
121 !ifeq BUILD debug
122 __OPTIMIZEFLAG = -od
123 !endif
124 !ifeq BUILD release
125 __OPTIMIZEFLAG = -ot -ox
126 !endif
127 __THREADSFLAG =
128 !ifeq USE_THREADS 0
129 __THREADSFLAG =
130 !endif
131 !ifeq USE_THREADS 1
132 __THREADSFLAG = -bm
133 !endif
134 __RUNTIME_LIBS =
135 !ifeq RUNTIME_LIBS dynamic
136 __RUNTIME_LIBS = -br
137 !endif
138 !ifeq RUNTIME_LIBS static
139 __RUNTIME_LIBS =
140 !endif
141 __RTTIFLAG =
142 !ifeq USE_RTTI 0
143 __RTTIFLAG =
144 !endif
145 !ifeq USE_RTTI 1
146 __RTTIFLAG = -xr
147 !endif
148 __EXCEPTIONSFLAG =
149 !ifeq USE_EXCEPTIONS 0
150 __EXCEPTIONSFLAG =
151 !endif
152 !ifeq USE_EXCEPTIONS 1
153 __EXCEPTIONSFLAG = -xs
154 !endif
155 __WXLIB_BASE_p =
156 !ifeq MONOLITHIC 0
157 __WXLIB_BASE_p = &
158 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
159 !endif
160 __WXLIB_MONO_p =
161 !ifeq MONOLITHIC 1
162 __WXLIB_MONO_p = &
163 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
164 !endif
165 __LIB_TIFF_p =
166 !ifeq USE_GUI 1
167 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
168 !endif
169 __LIB_JPEG_p =
170 !ifeq USE_GUI 1
171 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
172 !endif
173 __LIB_PNG_p =
174 !ifeq USE_GUI 1
175 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
176 !endif
177 __WXUNIV_DEFINE_p =
178 !ifeq WXUNIV 1
179 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
180 !endif
181 __DEBUG_DEFINE_p =
182 !ifeq BUILD debug
183 !ifeq DEBUG_FLAG default
184 __DEBUG_DEFINE_p = -d__WXDEBUG__
185 !endif
186 !endif
187 !ifeq DEBUG_FLAG 1
188 __DEBUG_DEFINE_p = -d__WXDEBUG__
189 !endif
190 __UNICODE_DEFINE_p =
191 !ifeq UNICODE 1
192 __UNICODE_DEFINE_p = -d_UNICODE
193 !endif
194 __DLLFLAG_p =
195 !ifeq SHARED 1
196 __DLLFLAG_p = -dWXUSINGDLL
197 !endif
198
199 ### Variables: ###
200
201 WX_RELEASE_NODOT = 25
202 OBJS = &
203 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
204 LIBDIRNAME = .\..\lib\wat_$(LIBTYPE_SUFFIX)$(CFG)
205 SETUPHDIR = &
206 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
207 TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
208 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
209 $(__UNICODE_DEFINE_p) -i=.\..\include -i=$(SETUPHDIR) -wx -wcd=549 -wcd=656 &
210 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(CPPUNIT_CFLAGS) &
211 /fh=$(OBJS)\testprec_test.pch $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
212 $(CXXFLAGS)
213 TEST_OBJECTS = &
214 $(OBJS)\test_dummy.obj &
215 $(OBJS)\test_test.obj &
216 $(OBJS)\test_archivetest.obj &
217 $(OBJS)\test_ziptest.obj &
218 $(OBJS)\test_arrays.obj &
219 $(OBJS)\test_datetimetest.obj &
220 $(OBJS)\test_fileconftest.obj &
221 $(OBJS)\test_filekind.obj &
222 $(OBJS)\test_filenametest.obj &
223 $(OBJS)\test_filesystest.obj &
224 $(OBJS)\test_fontmaptest.obj &
225 $(OBJS)\test_formatconvertertest.obj &
226 $(OBJS)\test_hashes.obj &
227 $(OBJS)\test_lists.obj &
228 $(OBJS)\test_longlongtest.obj &
229 $(OBJS)\test_mbconvtest.obj &
230 $(OBJS)\test_regextest.obj &
231 $(OBJS)\test_wxregextest.obj &
232 $(OBJS)\test_strings.obj &
233 $(OBJS)\test_stdstrings.obj &
234 $(OBJS)\test_unicode.obj &
235 $(OBJS)\test_crt.obj &
236 $(OBJS)\test_bstream.obj &
237 $(OBJS)\test_datastreamtest.obj &
238 $(OBJS)\test_ffilestream.obj &
239 $(OBJS)\test_filestream.obj &
240 $(OBJS)\test_largefile.obj &
241 $(OBJS)\test_memstream.obj &
242 $(OBJS)\test_sstream.obj &
243 $(OBJS)\test_tempfile.obj &
244 $(OBJS)\test_textstreamtest.obj &
245 $(OBJS)\test_zlibstream.obj &
246 $(OBJS)\test_uris.obj
247 TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
248 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
249 $(__UNICODE_DEFINE_p) -i=.\..\include -i=$(SETUPHDIR) -wx -wcd=549 -wcd=656 &
250 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\samples -dNOPCH &
251 $(CPPUNIT_CFLAGS) /fh=$(OBJS)\testprec_test_gui.pch $(__RTTIFLAG) &
252 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
253 TEST_GUI_OBJECTS = &
254 $(OBJS)\test_gui_dummy.obj &
255 $(OBJS)\test_gui_test.obj &
256 $(OBJS)\test_gui_rect.obj &
257 $(OBJS)\test_gui_size.obj &
258 $(OBJS)\test_gui_point.obj
259
260
261 all : $(OBJS)
262 $(OBJS) :
263 -if not exist $(OBJS) mkdir $(OBJS)
264
265 ### Targets: ###
266
267 all : .SYMBOLIC $(OBJS)\test.exe $(__test_gui___depname) data
268
269 clean : .SYMBOLIC
270 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
271 -if exist $(OBJS)\*.res del $(OBJS)\*.res
272 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
273 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
274 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
275 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
276 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
277
278 $(OBJS)\test.exe : $(TEST_OBJECTS)
279 @%create $(OBJS)\test.lbc
280 @%append $(OBJS)\test.lbc option quiet
281 @%append $(OBJS)\test.lbc name $^@
282 @%append $(OBJS)\test.lbc option caseexact
283 @%append $(OBJS)\test.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(CPPUNIT_LIBS)
284 @for %i in ($(TEST_OBJECTS)) do @%append $(OBJS)\test.lbc file %i
285 @for %i in ( $(__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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib) do @%append $(OBJS)\test.lbc library %i
286 @%append $(OBJS)\test.lbc
287 wlink @$(OBJS)\test.lbc
288
289 !ifeq USE_GUI 1
290 $(OBJS)\test_gui.exe : $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
291 @%create $(OBJS)\test_gui.lbc
292 @%append $(OBJS)\test_gui.lbc option quiet
293 @%append $(OBJS)\test_gui.lbc name $^@
294 @%append $(OBJS)\test_gui.lbc option caseexact
295 @%append $(OBJS)\test_gui.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) $(CPPUNIT_LIBS) system nt ref 'main_'
296 @for %i in ($(TEST_GUI_OBJECTS)) do @%append $(OBJS)\test_gui.lbc file %i
297 @for %i in ( $(__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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib ) do @%append $(OBJS)\test_gui.lbc library %i
298 @%append $(OBJS)\test_gui.lbc option resource=$(OBJS)\test_gui_sample.res
299 wlink @$(OBJS)\test_gui.lbc
300 !endif
301
302 data : .SYMBOLIC
303 if not exist $(OBJS) mkdir $(OBJS)
304 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
305
306 $(OBJS)\test_dummy.obj : .AUTODEPEND .\dummy.cpp
307 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
308
309 $(OBJS)\test_test.obj : .AUTODEPEND .\test.cpp
310 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
311
312 $(OBJS)\test_archivetest.obj : .AUTODEPEND .\archive\archivetest.cpp
313 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
314
315 $(OBJS)\test_ziptest.obj : .AUTODEPEND .\archive\ziptest.cpp
316 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
317
318 $(OBJS)\test_arrays.obj : .AUTODEPEND .\arrays\arrays.cpp
319 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
320
321 $(OBJS)\test_datetimetest.obj : .AUTODEPEND .\datetime\datetimetest.cpp
322 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
323
324 $(OBJS)\test_fileconftest.obj : .AUTODEPEND .\fileconf\fileconftest.cpp
325 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
326
327 $(OBJS)\test_filekind.obj : .AUTODEPEND .\filekind\filekind.cpp
328 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
329
330 $(OBJS)\test_filenametest.obj : .AUTODEPEND .\filename\filenametest.cpp
331 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
332
333 $(OBJS)\test_filesystest.obj : .AUTODEPEND .\filesys\filesystest.cpp
334 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
335
336 $(OBJS)\test_fontmaptest.obj : .AUTODEPEND .\fontmap\fontmaptest.cpp
337 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
338
339 $(OBJS)\test_formatconvertertest.obj : .AUTODEPEND .\formatconverter\formatconvertertest.cpp
340 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
341
342 $(OBJS)\test_hashes.obj : .AUTODEPEND .\hashes\hashes.cpp
343 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
344
345 $(OBJS)\test_lists.obj : .AUTODEPEND .\lists\lists.cpp
346 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
347
348 $(OBJS)\test_longlongtest.obj : .AUTODEPEND .\longlong\longlongtest.cpp
349 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
350
351 $(OBJS)\test_mbconvtest.obj : .AUTODEPEND .\mbconv\mbconvtest.cpp
352 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
353
354 $(OBJS)\test_regextest.obj : .AUTODEPEND .\regex\regextest.cpp
355 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
356
357 $(OBJS)\test_wxregextest.obj : .AUTODEPEND .\regex\wxregextest.cpp
358 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
359
360 $(OBJS)\test_strings.obj : .AUTODEPEND .\strings\strings.cpp
361 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
362
363 $(OBJS)\test_stdstrings.obj : .AUTODEPEND .\strings\stdstrings.cpp
364 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
365
366 $(OBJS)\test_unicode.obj : .AUTODEPEND .\strings\unicode.cpp
367 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
368
369 $(OBJS)\test_crt.obj : .AUTODEPEND .\strings\crt.cpp
370 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
371
372 $(OBJS)\test_bstream.obj : .AUTODEPEND .\streams\bstream.cpp
373 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
374
375 $(OBJS)\test_datastreamtest.obj : .AUTODEPEND .\streams\datastreamtest.cpp
376 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
377
378 $(OBJS)\test_ffilestream.obj : .AUTODEPEND .\streams\ffilestream.cpp
379 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
380
381 $(OBJS)\test_filestream.obj : .AUTODEPEND .\streams\filestream.cpp
382 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
383
384 $(OBJS)\test_largefile.obj : .AUTODEPEND .\streams\largefile.cpp
385 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
386
387 $(OBJS)\test_memstream.obj : .AUTODEPEND .\streams\memstream.cpp
388 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
389
390 $(OBJS)\test_sstream.obj : .AUTODEPEND .\streams\sstream.cpp
391 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
392
393 $(OBJS)\test_tempfile.obj : .AUTODEPEND .\streams\tempfile.cpp
394 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
395
396 $(OBJS)\test_textstreamtest.obj : .AUTODEPEND .\streams\textstreamtest.cpp
397 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
398
399 $(OBJS)\test_zlibstream.obj : .AUTODEPEND .\streams\zlibstream.cpp
400 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
401
402 $(OBJS)\test_uris.obj : .AUTODEPEND .\uris\uris.cpp
403 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
404
405 $(OBJS)\test_gui_sample.res : .AUTODEPEND .\..\samples\sample.rc
406 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\samples $<
407
408 $(OBJS)\test_gui_dummy.obj : .AUTODEPEND .\dummy.cpp
409 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
410
411 $(OBJS)\test_gui_test.obj : .AUTODEPEND .\test.cpp
412 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
413
414 $(OBJS)\test_gui_rect.obj : .AUTODEPEND .\geometry\rect.cpp
415 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
416
417 $(OBJS)\test_gui_size.obj : .AUTODEPEND .\geometry\size.cpp
418 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
419
420 $(OBJS)\test_gui_point.obj : .AUTODEPEND .\geometry\point.cpp
421 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
422