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 # =========================================================================
7 !include ../build/msw/config.wat
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
13 # Speed up compilation a bit:
16 ! loaddll wccaxp wccdaxp
17 ! loaddll wcc386 wccd386
19 ! loaddll wppaxp wppdaxp
20 ! loaddll wpp386 wppd386
25 # We need these variables in some bakefile-made rules:
26 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
28 ### Conditionally set variables: ###
39 !ifeq DEBUG_FLAG default
75 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
77 __test_gui___depname =
79 __test_gui___depname = $(OBJS)\test_gui.exe
84 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
88 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
92 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
96 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
100 !ifeq DEBUG_INFO default
105 !ifeq DEBUG_INFO default
117 !ifeq DEBUG_INFO default
118 __DEBUGINFO_2 = debug all
122 !ifeq DEBUG_INFO default
130 __DEBUGINFO_2 = debug all
137 __OPTIMIZEFLAG = -ot -ox
147 !ifeq RUNTIME_LIBS dynamic
150 !ifeq RUNTIME_LIBS static
161 !ifeq USE_EXCEPTIONS 0
164 !ifeq USE_EXCEPTIONS 1
165 __EXCEPTIONSFLAG = -xs
169 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
173 !ifeq DEBUG_FLAG default
174 __DEBUG_DEFINE_p = -d__WXDEBUG__
178 __DEBUG_DEFINE_p = -d__WXDEBUG__
180 __EXCEPTIONS_DEFINE_p =
181 !ifeq USE_EXCEPTIONS 0
182 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
186 __RTTI_DEFINE_p = -dwxNO_RTTI
190 __THREAD_DEFINE_p = -dwxNO_THREADS
194 __UNICODE_DEFINE_p = -d_UNICODE
198 __DLLFLAG_p = -dWXUSINGDLL
203 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
208 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
213 WX_RELEASE_NODOT = 27
215 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
216 LIBDIRNAME = .\..\lib\wat_$(LIBTYPE_SUFFIX)$(CFG)
218 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
219 TEST_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=$(SETUPHDIR) -i=.\..\include -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) &
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_convautotest.obj &
243 $(OBJS)\test_mbconvtest.obj &
244 $(OBJS)\test_regextest.obj &
245 $(OBJS)\test_wxregextest.obj &
246 $(OBJS)\test_scopeguardtest.obj &
247 $(OBJS)\test_strings.obj &
248 $(OBJS)\test_stdstrings.obj &
249 $(OBJS)\test_tokenizer.obj &
250 $(OBJS)\test_unicode.obj &
251 $(OBJS)\test_crt.obj &
252 $(OBJS)\test_vsnprintf.obj &
253 $(OBJS)\test_bstream.obj &
254 $(OBJS)\test_datastreamtest.obj &
255 $(OBJS)\test_ffilestream.obj &
256 $(OBJS)\test_filestream.obj &
257 $(OBJS)\test_largefile.obj &
258 $(OBJS)\test_memstream.obj &
259 $(OBJS)\test_sstream.obj &
260 $(OBJS)\test_tempfile.obj &
261 $(OBJS)\test_textstreamtest.obj &
262 $(OBJS)\test_zlibstream.obj &
263 $(OBJS)\test_textfiletest.obj &
264 $(OBJS)\test_uris.obj
265 TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
266 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
267 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
268 $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\include -wx -wcd=549 -wcd=656 &
269 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\samples -dNOPCH &
270 $(CPPUNIT_CFLAGS) /fh=$(OBJS)\testprec_test_gui.pch $(__RTTIFLAG) &
271 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
273 $(OBJS)\test_gui_dummy.obj &
274 $(OBJS)\test_gui_test.obj &
275 $(OBJS)\test_gui_rect.obj &
276 $(OBJS)\test_gui_size.obj &
277 $(OBJS)\test_gui_point.obj
278 PRINTFBENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
279 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
280 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
281 $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\include -wx -wcd=549 -wcd=656 &
282 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(CPPUNIT_CFLAGS) &
283 /fh=$(OBJS)\testprec_printfbench.pch $(__RTTIFLAG) $(__EXCEPTIONSFLAG) &
284 $(CPPFLAGS) $(CXXFLAGS)
285 PRINTFBENCH_OBJECTS = &
286 $(OBJS)\printfbench_dummy.obj &
287 $(OBJS)\printfbench_printfbench.obj
292 -if not exist $(OBJS) mkdir $(OBJS)
296 all : .SYMBOLIC $(OBJS)\test.exe $(__test_gui___depname) data $(OBJS)\printfbench.exe
299 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
300 -if exist $(OBJS)\*.res del $(OBJS)\*.res
301 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
302 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
303 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
304 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
305 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
306 -if exist $(OBJS)\printfbench.exe del $(OBJS)\printfbench.exe
308 $(OBJS)\test.exe : $(TEST_OBJECTS)
309 @%create $(OBJS)\test.lbc
310 @%append $(OBJS)\test.lbc option quiet
311 @%append $(OBJS)\test.lbc name $^@
312 @%append $(OBJS)\test.lbc option caseexact
313 @%append $(OBJS)\test.lbc $(LDFLAGS) $(__DEBUGINFO_2) libpath $(LIBDIRNAME) system nt ref 'main_' $(CPPUNIT_LIBS)
314 @for %i in ($(TEST_OBJECTS)) do @%append $(OBJS)\test.lbc file %i
315 @for %i in ( $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_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
316 @%append $(OBJS)\test.lbc
317 @for %i in () do @%append $(OBJS)\test.lbc option stack=%i
318 wlink @$(OBJS)\test.lbc
321 $(OBJS)\test_gui.exe : $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
322 @%create $(OBJS)\test_gui.lbc
323 @%append $(OBJS)\test_gui.lbc option quiet
324 @%append $(OBJS)\test_gui.lbc name $^@
325 @%append $(OBJS)\test_gui.lbc option caseexact
326 @%append $(OBJS)\test_gui.lbc $(LDFLAGS) $(__DEBUGINFO_2) libpath $(LIBDIRNAME) $(CPPUNIT_LIBS) system nt ref 'main_'
327 @for %i in ($(TEST_GUI_OBJECTS)) do @%append $(OBJS)\test_gui.lbc file %i
328 @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
329 @%append $(OBJS)\test_gui.lbc option resource=$(OBJS)\test_gui_sample.res
330 @for %i in () do @%append $(OBJS)\test_gui.lbc option stack=%i
331 wlink @$(OBJS)\test_gui.lbc
335 if not exist $(OBJS) mkdir $(OBJS)
336 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
338 $(OBJS)\printfbench.exe : $(PRINTFBENCH_OBJECTS)
339 @%create $(OBJS)\printfbench.lbc
340 @%append $(OBJS)\printfbench.lbc option quiet
341 @%append $(OBJS)\printfbench.lbc name $^@
342 @%append $(OBJS)\printfbench.lbc option caseexact
343 @%append $(OBJS)\printfbench.lbc $(LDFLAGS) $(__DEBUGINFO_2) libpath $(LIBDIRNAME) system nt ref 'main_' $(CPPUNIT_LIBS)
344 @for %i in ($(PRINTFBENCH_OBJECTS)) do @%append $(OBJS)\printfbench.lbc file %i
345 @for %i in ( $(__WXLIB_BASE_p) $(__WXLIB_MONO_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)\printfbench.lbc library %i
346 @%append $(OBJS)\printfbench.lbc
347 @for %i in () do @%append $(OBJS)\printfbench.lbc option stack=%i
348 wlink @$(OBJS)\printfbench.lbc
350 $(OBJS)\test_dummy.obj : .AUTODEPEND .\dummy.cpp
351 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
353 $(OBJS)\test_test.obj : .AUTODEPEND .\test.cpp
354 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
356 $(OBJS)\test_archivetest.obj : .AUTODEPEND .\archive\archivetest.cpp
357 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
359 $(OBJS)\test_ziptest.obj : .AUTODEPEND .\archive\ziptest.cpp
360 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
362 $(OBJS)\test_arrays.obj : .AUTODEPEND .\arrays\arrays.cpp
363 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
365 $(OBJS)\test_datetimetest.obj : .AUTODEPEND .\datetime\datetimetest.cpp
366 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
368 $(OBJS)\test_fileconftest.obj : .AUTODEPEND .\fileconf\fileconftest.cpp
369 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
371 $(OBJS)\test_filekind.obj : .AUTODEPEND .\filekind\filekind.cpp
372 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
374 $(OBJS)\test_filenametest.obj : .AUTODEPEND .\filename\filenametest.cpp
375 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
377 $(OBJS)\test_filesystest.obj : .AUTODEPEND .\filesys\filesystest.cpp
378 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
380 $(OBJS)\test_fontmaptest.obj : .AUTODEPEND .\fontmap\fontmaptest.cpp
381 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
383 $(OBJS)\test_formatconvertertest.obj : .AUTODEPEND .\formatconverter\formatconvertertest.cpp
384 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
386 $(OBJS)\test_hashes.obj : .AUTODEPEND .\hashes\hashes.cpp
387 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
389 $(OBJS)\test_lists.obj : .AUTODEPEND .\lists\lists.cpp
390 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
392 $(OBJS)\test_longlongtest.obj : .AUTODEPEND .\longlong\longlongtest.cpp
393 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
395 $(OBJS)\test_convautotest.obj : .AUTODEPEND .\mbconv\convautotest.cpp
396 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
398 $(OBJS)\test_mbconvtest.obj : .AUTODEPEND .\mbconv\mbconvtest.cpp
399 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
401 $(OBJS)\test_regextest.obj : .AUTODEPEND .\regex\regextest.cpp
402 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
404 $(OBJS)\test_wxregextest.obj : .AUTODEPEND .\regex\wxregextest.cpp
405 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
407 $(OBJS)\test_scopeguardtest.obj : .AUTODEPEND .\scopeguard\scopeguardtest.cpp
408 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
410 $(OBJS)\test_strings.obj : .AUTODEPEND .\strings\strings.cpp
411 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
413 $(OBJS)\test_stdstrings.obj : .AUTODEPEND .\strings\stdstrings.cpp
414 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
416 $(OBJS)\test_tokenizer.obj : .AUTODEPEND .\strings\tokenizer.cpp
417 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
419 $(OBJS)\test_unicode.obj : .AUTODEPEND .\strings\unicode.cpp
420 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
422 $(OBJS)\test_crt.obj : .AUTODEPEND .\strings\crt.cpp
423 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
425 $(OBJS)\test_vsnprintf.obj : .AUTODEPEND .\strings\vsnprintf.cpp
426 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
428 $(OBJS)\test_bstream.obj : .AUTODEPEND .\streams\bstream.cpp
429 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
431 $(OBJS)\test_datastreamtest.obj : .AUTODEPEND .\streams\datastreamtest.cpp
432 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
434 $(OBJS)\test_ffilestream.obj : .AUTODEPEND .\streams\ffilestream.cpp
435 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
437 $(OBJS)\test_filestream.obj : .AUTODEPEND .\streams\filestream.cpp
438 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
440 $(OBJS)\test_largefile.obj : .AUTODEPEND .\streams\largefile.cpp
441 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
443 $(OBJS)\test_memstream.obj : .AUTODEPEND .\streams\memstream.cpp
444 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
446 $(OBJS)\test_sstream.obj : .AUTODEPEND .\streams\sstream.cpp
447 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
449 $(OBJS)\test_tempfile.obj : .AUTODEPEND .\streams\tempfile.cpp
450 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
452 $(OBJS)\test_textstreamtest.obj : .AUTODEPEND .\streams\textstreamtest.cpp
453 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
455 $(OBJS)\test_zlibstream.obj : .AUTODEPEND .\streams\zlibstream.cpp
456 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
458 $(OBJS)\test_textfiletest.obj : .AUTODEPEND .\textfile\textfiletest.cpp
459 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
461 $(OBJS)\test_uris.obj : .AUTODEPEND .\uris\uris.cpp
462 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_CXXFLAGS) $<
464 $(OBJS)\test_gui_sample.res : .AUTODEPEND .\..\samples\sample.rc
465 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=$(SETUPHDIR) -i=.\..\include -i=. $(__DLLFLAG_p) -i=.\..\samples $<
467 $(OBJS)\test_gui_dummy.obj : .AUTODEPEND .\dummy.cpp
468 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
470 $(OBJS)\test_gui_test.obj : .AUTODEPEND .\test.cpp
471 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
473 $(OBJS)\test_gui_rect.obj : .AUTODEPEND .\geometry\rect.cpp
474 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
476 $(OBJS)\test_gui_size.obj : .AUTODEPEND .\geometry\size.cpp
477 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
479 $(OBJS)\test_gui_point.obj : .AUTODEPEND .\geometry\point.cpp
480 $(CXX) -bt=nt -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
482 $(OBJS)\printfbench_dummy.obj : .AUTODEPEND .\dummy.cpp
483 $(CXX) -bt=nt -zq -fo=$^@ $(PRINTFBENCH_CXXFLAGS) $<
485 $(OBJS)\printfbench_printfbench.obj : .AUTODEPEND .\benchmarks\printfbench.cpp
486 $(CXX) -bt=nt -zq -fo=$^@ $(PRINTFBENCH_CXXFLAGS) $<