]> git.saurik.com Git - wxWidgets.git/blame_incremental - tests/makefile.wat
Warning fix about possibly misplaced assignment.
[wxWidgets.git] / tests / makefile.wat
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.8 (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:
26WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
27
28### Conditionally set variables: ###
29
30PORTNAME =
31!ifeq USE_GUI 0
32PORTNAME = base
33!endif
34!ifeq USE_GUI 1
35PORTNAME = msw
36!endif
37WXDEBUGFLAG =
38!ifeq BUILD debug
39!ifeq DEBUG_FLAG default
40WXDEBUGFLAG = d
41!endif
42!endif
43!ifeq DEBUG_FLAG 1
44WXDEBUGFLAG = d
45!endif
46WXUNICODEFLAG =
47!ifeq UNICODE 1
48WXUNICODEFLAG = u
49!endif
50WXUNIVNAME =
51!ifeq WXUNIV 1
52WXUNIVNAME = univ
53!endif
54WXDLLFLAG =
55!ifeq SHARED 1
56WXDLLFLAG = dll
57!endif
58LIBTYPE_SUFFIX =
59!ifeq SHARED 0
60LIBTYPE_SUFFIX = lib
61!endif
62!ifeq SHARED 1
63LIBTYPE_SUFFIX = dll
64!endif
65EXTRALIBS_FOR_BASE =
66!ifeq MONOLITHIC 0
67EXTRALIBS_FOR_BASE =
68!endif
69!ifeq MONOLITHIC 1
70EXTRALIBS_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__EXCEPTIONS_DEFINE_p =
191!ifeq USE_EXCEPTIONS 0
192__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
193!endif
194__RTTI_DEFINE_p =
195!ifeq USE_RTTI 0
196__RTTI_DEFINE_p = -dwxNO_RTTI
197!endif
198__THREAD_DEFINE_p =
199!ifeq USE_THREADS 0
200__THREAD_DEFINE_p = -dwxNO_THREADS
201!endif
202__UNICODE_DEFINE_p =
203!ifeq UNICODE 1
204__UNICODE_DEFINE_p = -d_UNICODE
205!endif
206__DLLFLAG_p =
207!ifeq SHARED 1
208__DLLFLAG_p = -dWXUSINGDLL
209!endif
210
211### Variables: ###
212
213WX_RELEASE_NODOT = 25
214OBJS = &
215 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
216LIBDIRNAME = .\..\lib\wat_$(LIBTYPE_SUFFIX)$(CFG)
217SETUPHDIR = &
218 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
219TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
220 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
221 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
222 $(__UNICODE_DEFINE_p) -i=.\..\include -i=$(SETUPHDIR) -wx -wcd=549 -wcd=656 &
223 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(CPPUNIT_CFLAGS) &
224 /fh=$(OBJS)\testprec_test.pch $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
225 $(CXXFLAGS)
226TEST_OBJECTS = &
227 $(OBJS)\test_dummy.obj &
228 $(OBJS)\test_test.obj &
229 $(OBJS)\test_archivetest.obj &
230 $(OBJS)\test_ziptest.obj &
231 $(OBJS)\test_arrays.obj &
232 $(OBJS)\test_datetimetest.obj &
233 $(OBJS)\test_fileconftest.obj &
234 $(OBJS)\test_filekind.obj &
235 $(OBJS)\test_filenametest.obj &
236 $(OBJS)\test_filesystest.obj &
237 $(OBJS)\test_fontmaptest.obj &
238 $(OBJS)\test_formatconvertertest.obj &
239 $(OBJS)\test_hashes.obj &
240 $(OBJS)\test_lists.obj &
241 $(OBJS)\test_longlongtest.obj &
242 $(OBJS)\test_mbconvtest.obj &
243 $(OBJS)\test_regextest.obj &
244 $(OBJS)\test_wxregextest.obj &
245 $(OBJS)\test_strings.obj &
246 $(OBJS)\test_stdstrings.obj &
247 $(OBJS)\test_unicode.obj &
248 $(OBJS)\test_crt.obj &
249 $(OBJS)\test_bstream.obj &
250 $(OBJS)\test_datastreamtest.obj &
251 $(OBJS)\test_ffilestream.obj &
252 $(OBJS)\test_filestream.obj &
253 $(OBJS)\test_largefile.obj &
254 $(OBJS)\test_memstream.obj &
255 $(OBJS)\test_sstream.obj &
256 $(OBJS)\test_tempfile.obj &
257 $(OBJS)\test_textstreamtest.obj &
258 $(OBJS)\test_zlibstream.obj &
259 $(OBJS)\test_uris.obj
260TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
261 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
262 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
263 $(__UNICODE_DEFINE_p) -i=.\..\include -i=$(SETUPHDIR) -wx -wcd=549 -wcd=656 &
264 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\samples -dNOPCH &
265 $(CPPUNIT_CFLAGS) /fh=$(OBJS)\testprec_test_gui.pch $(__RTTIFLAG) &
266 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
267TEST_GUI_OBJECTS = &
268 $(OBJS)\test_gui_dummy.obj &
269 $(OBJS)\test_gui_test.obj &
270 $(OBJS)\test_gui_rect.obj &
271 $(OBJS)\test_gui_size.obj &
272 $(OBJS)\test_gui_point.obj
273
274
275all : $(OBJS)
276$(OBJS) :
277 -if not exist $(OBJS) mkdir $(OBJS)
278
279### Targets: ###
280
281all : .SYMBOLIC $(OBJS)\test.exe $(__test_gui___depname) data
282
283clean : .SYMBOLIC
284 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
285 -if exist $(OBJS)\*.res del $(OBJS)\*.res
286 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
287 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
288 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
289 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
290 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
291
292$(OBJS)\test.exe : $(TEST_OBJECTS)
293 @%create $(OBJS)\test.lbc
294 @%append $(OBJS)\test.lbc option quiet
295 @%append $(OBJS)\test.lbc name $^@
296 @%append $(OBJS)\test.lbc option caseexact
297 @%append $(OBJS)\test.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(CPPUNIT_LIBS)
298 @for %i in ($(TEST_OBJECTS)) do @%append $(OBJS)\test.lbc file %i
299 @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
300 @%append $(OBJS)\test.lbc
301 wlink @$(OBJS)\test.lbc
302
303!ifeq USE_GUI 1
304$(OBJS)\test_gui.exe : $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
305 @%create $(OBJS)\test_gui.lbc
306 @%append $(OBJS)\test_gui.lbc option quiet
307 @%append $(OBJS)\test_gui.lbc name $^@
308 @%append $(OBJS)\test_gui.lbc option caseexact
309 @%append $(OBJS)\test_gui.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) $(CPPUNIT_LIBS) system nt ref 'main_'
310 @for %i in ($(TEST_GUI_OBJECTS)) do @%append $(OBJS)\test_gui.lbc file %i
311 @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
312 @%append $(OBJS)\test_gui.lbc option resource=$(OBJS)\test_gui_sample.res
313 wlink @$(OBJS)\test_gui.lbc
314!endif
315
316data : .SYMBOLIC
317 if not exist $(OBJS) mkdir $(OBJS)
318 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
319
320$(OBJS)\test_dummy.obj : .AUTODEPEND .\dummy.cpp
321 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
322
323$(OBJS)\test_test.obj : .AUTODEPEND .\test.cpp
324 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
325
326$(OBJS)\test_archivetest.obj : .AUTODEPEND .\archive\archivetest.cpp
327 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
328
329$(OBJS)\test_ziptest.obj : .AUTODEPEND .\archive\ziptest.cpp
330 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
331
332$(OBJS)\test_arrays.obj : .AUTODEPEND .\arrays\arrays.cpp
333 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
334
335$(OBJS)\test_datetimetest.obj : .AUTODEPEND .\datetime\datetimetest.cpp
336 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
337
338$(OBJS)\test_fileconftest.obj : .AUTODEPEND .\fileconf\fileconftest.cpp
339 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
340
341$(OBJS)\test_filekind.obj : .AUTODEPEND .\filekind\filekind.cpp
342 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
343
344$(OBJS)\test_filenametest.obj : .AUTODEPEND .\filename\filenametest.cpp
345 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
346
347$(OBJS)\test_filesystest.obj : .AUTODEPEND .\filesys\filesystest.cpp
348 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
349
350$(OBJS)\test_fontmaptest.obj : .AUTODEPEND .\fontmap\fontmaptest.cpp
351 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
352
353$(OBJS)\test_formatconvertertest.obj : .AUTODEPEND .\formatconverter\formatconvertertest.cpp
354 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
355
356$(OBJS)\test_hashes.obj : .AUTODEPEND .\hashes\hashes.cpp
357 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
358
359$(OBJS)\test_lists.obj : .AUTODEPEND .\lists\lists.cpp
360 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
361
362$(OBJS)\test_longlongtest.obj : .AUTODEPEND .\longlong\longlongtest.cpp
363 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
364
365$(OBJS)\test_mbconvtest.obj : .AUTODEPEND .\mbconv\mbconvtest.cpp
366 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
367
368$(OBJS)\test_regextest.obj : .AUTODEPEND .\regex\regextest.cpp
369 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
370
371$(OBJS)\test_wxregextest.obj : .AUTODEPEND .\regex\wxregextest.cpp
372 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
373
374$(OBJS)\test_strings.obj : .AUTODEPEND .\strings\strings.cpp
375 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
376
377$(OBJS)\test_stdstrings.obj : .AUTODEPEND .\strings\stdstrings.cpp
378 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
379
380$(OBJS)\test_unicode.obj : .AUTODEPEND .\strings\unicode.cpp
381 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
382
383$(OBJS)\test_crt.obj : .AUTODEPEND .\strings\crt.cpp
384 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
385
386$(OBJS)\test_bstream.obj : .AUTODEPEND .\streams\bstream.cpp
387 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
388
389$(OBJS)\test_datastreamtest.obj : .AUTODEPEND .\streams\datastreamtest.cpp
390 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
391
392$(OBJS)\test_ffilestream.obj : .AUTODEPEND .\streams\ffilestream.cpp
393 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
394
395$(OBJS)\test_filestream.obj : .AUTODEPEND .\streams\filestream.cpp
396 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
397
398$(OBJS)\test_largefile.obj : .AUTODEPEND .\streams\largefile.cpp
399 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
400
401$(OBJS)\test_memstream.obj : .AUTODEPEND .\streams\memstream.cpp
402 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
403
404$(OBJS)\test_sstream.obj : .AUTODEPEND .\streams\sstream.cpp
405 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
406
407$(OBJS)\test_tempfile.obj : .AUTODEPEND .\streams\tempfile.cpp
408 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
409
410$(OBJS)\test_textstreamtest.obj : .AUTODEPEND .\streams\textstreamtest.cpp
411 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
412
413$(OBJS)\test_zlibstream.obj : .AUTODEPEND .\streams\zlibstream.cpp
414 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
415
416$(OBJS)\test_uris.obj : .AUTODEPEND .\uris\uris.cpp
417 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
418
419$(OBJS)\test_gui_sample.res : .AUTODEPEND .\..\samples\sample.rc
420 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\samples $<
421
422$(OBJS)\test_gui_dummy.obj : .AUTODEPEND .\dummy.cpp
423 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
424
425$(OBJS)\test_gui_test.obj : .AUTODEPEND .\test.cpp
426 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
427
428$(OBJS)\test_gui_rect.obj : .AUTODEPEND .\geometry\rect.cpp
429 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
430
431$(OBJS)\test_gui_size.obj : .AUTODEPEND .\geometry\size.cpp
432 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
433
434$(OBJS)\test_gui_point.obj : .AUTODEPEND .\geometry\point.cpp
435 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
436