1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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
68 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
70 __test_gui___depname =
72 __test_gui___depname = $(OBJS)\test_gui.exe
77 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
81 !ifeq DEBUG_INFO default
86 !ifeq DEBUG_INFO default
98 !ifeq DEBUG_INFO default
99 __DEBUGINFO_1 = debug all
103 !ifeq DEBUG_INFO default
111 __DEBUGINFO_1 = debug all
118 __OPTIMIZEFLAG = -ot -ox
121 !ifeq RUNTIME_LIBS dynamic
124 !ifeq RUNTIME_LIBS static
128 !ifeq USE_EXCEPTIONS 0
131 !ifeq USE_EXCEPTIONS 1
132 __EXCEPTIONSFLAG = -xs
136 LIBDIRNAME = .\..\lib\wat_lib$(CFG)
139 LIBDIRNAME = .\..\lib\wat_dll$(CFG)
144 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
149 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
153 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
157 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
161 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
165 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
169 !ifeq DEBUG_FLAG default
170 __DEBUG_DEFINE_p = -d__WXDEBUG__
174 __DEBUG_DEFINE_p = -d__WXDEBUG__
178 __UNICODE_DEFINE_p = -d_UNICODE
182 __DLLFLAG_p = -dWXUSINGDLL
187 WX_RELEASE_NODOT = 25
189 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
191 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
192 TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
193 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
194 -i=.\..\include -i=$(SETUPHDIR) -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. &
195 $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) /fh=$(OBJS)\testprec_test.pch &
196 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
198 $(OBJS)\test_dummy.obj &
199 $(OBJS)\test_test.obj &
200 $(OBJS)\test_archivetest.obj &
201 $(OBJS)\test_arrays.obj &
202 $(OBJS)\test_datetimetest.obj &
203 $(OBJS)\test_fileconftest.obj &
204 $(OBJS)\test_filenametest.obj &
205 $(OBJS)\test_filesystest.obj &
206 $(OBJS)\test_fontmaptest.obj &
207 $(OBJS)\test_formatconvertertest.obj &
208 $(OBJS)\test_hashes.obj &
209 $(OBJS)\test_lists.obj &
210 $(OBJS)\test_longlongtest.obj &
211 $(OBJS)\test_mbconvtest.obj &
212 $(OBJS)\test_regextest.obj &
213 $(OBJS)\test_wxregextest.obj &
214 $(OBJS)\test_strings.obj &
215 $(OBJS)\test_stdstrings.obj &
216 $(OBJS)\test_unicode.obj &
217 $(OBJS)\test_crt.obj &
218 $(OBJS)\test_bstream.obj &
219 $(OBJS)\test_datastreamtest.obj &
220 $(OBJS)\test_ffilestream.obj &
221 $(OBJS)\test_filestream.obj &
222 $(OBJS)\test_memstream.obj &
223 $(OBJS)\test_sstream.obj &
224 $(OBJS)\test_textstreamtest.obj &
225 $(OBJS)\test_zlibstream.obj &
226 $(OBJS)\test_uris.obj
227 TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
228 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
229 -i=.\..\include -i=$(SETUPHDIR) -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. &
230 $(__DLLFLAG_p) -i=.\..\samples -dNOPCH $(CPPUNIT_CFLAGS) &
231 /fh=$(OBJS)\testprec_test_gui.pch $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
234 $(OBJS)\test_gui_dummy.obj &
235 $(OBJS)\test_gui_test.obj
240 -if not exist $(OBJS) mkdir $(OBJS)
244 all : .SYMBOLIC $(OBJS)\test.exe $(__test_gui___depname) data
247 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
248 -if exist $(OBJS)\*.res del $(OBJS)\*.res
249 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
250 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
251 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
252 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
254 $(OBJS)\test.exe : $(TEST_OBJECTS)
255 @%create $(OBJS)\test.lbc
256 @%append $(OBJS)\test.lbc option quiet
257 @%append $(OBJS)\test.lbc name $^@
258 @%append $(OBJS)\test.lbc option caseexact
259 @%append $(OBJS)\test.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(CPPUNIT_LIBS)
260 @for %i in ($(TEST_OBJECTS)) do @%append $(OBJS)\test.lbc file %i
261 @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
262 @%append $(OBJS)\test.lbc
263 wlink @$(OBJS)\test.lbc
266 $(OBJS)\test_gui.exe : $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
267 @%create $(OBJS)\test_gui.lbc
268 @%append $(OBJS)\test_gui.lbc option quiet
269 @%append $(OBJS)\test_gui.lbc name $^@
270 @%append $(OBJS)\test_gui.lbc option caseexact
271 @%append $(OBJS)\test_gui.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(CPPUNIT_LIBS)
272 @for %i in ($(TEST_GUI_OBJECTS)) do @%append $(OBJS)\test_gui.lbc file %i
273 @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
274 @%append $(OBJS)\test_gui.lbc option resource=$(OBJS)\test_gui_sample.res
275 wlink @$(OBJS)\test_gui.lbc
279 if not exist $(OBJS) mkdir $(OBJS)
280 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
282 $(OBJS)\test_dummy.obj : .AUTODEPEND .\dummy.cpp
283 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
285 $(OBJS)\test_test.obj : .AUTODEPEND .\test.cpp
286 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
288 $(OBJS)\test_archivetest.obj : .AUTODEPEND .\archive\archivetest.cpp
289 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
291 $(OBJS)\test_arrays.obj : .AUTODEPEND .\arrays\arrays.cpp
292 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
294 $(OBJS)\test_datetimetest.obj : .AUTODEPEND .\datetime\datetimetest.cpp
295 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
297 $(OBJS)\test_fileconftest.obj : .AUTODEPEND .\fileconf\fileconftest.cpp
298 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
300 $(OBJS)\test_filenametest.obj : .AUTODEPEND .\filename\filenametest.cpp
301 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
303 $(OBJS)\test_filesystest.obj : .AUTODEPEND .\filesys\filesystest.cpp
304 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
306 $(OBJS)\test_fontmaptest.obj : .AUTODEPEND .\fontmap\fontmaptest.cpp
307 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
309 $(OBJS)\test_formatconvertertest.obj : .AUTODEPEND .\formatconverter\formatconvertertest.cpp
310 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
312 $(OBJS)\test_hashes.obj : .AUTODEPEND .\hashes\hashes.cpp
313 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
315 $(OBJS)\test_lists.obj : .AUTODEPEND .\lists\lists.cpp
316 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
318 $(OBJS)\test_longlongtest.obj : .AUTODEPEND .\longlong\longlongtest.cpp
319 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
321 $(OBJS)\test_mbconvtest.obj : .AUTODEPEND .\mbconv\mbconvtest.cpp
322 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
324 $(OBJS)\test_regextest.obj : .AUTODEPEND .\regex\regextest.cpp
325 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
327 $(OBJS)\test_wxregextest.obj : .AUTODEPEND .\regex\wxregextest.cpp
328 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
330 $(OBJS)\test_strings.obj : .AUTODEPEND .\strings\strings.cpp
331 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
333 $(OBJS)\test_stdstrings.obj : .AUTODEPEND .\strings\stdstrings.cpp
334 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
336 $(OBJS)\test_unicode.obj : .AUTODEPEND .\strings\unicode.cpp
337 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
339 $(OBJS)\test_crt.obj : .AUTODEPEND .\strings\crt.cpp
340 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
342 $(OBJS)\test_bstream.obj : .AUTODEPEND .\streams\bstream.cpp
343 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
345 $(OBJS)\test_datastreamtest.obj : .AUTODEPEND .\streams\datastreamtest.cpp
346 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
348 $(OBJS)\test_ffilestream.obj : .AUTODEPEND .\streams\ffilestream.cpp
349 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
351 $(OBJS)\test_filestream.obj : .AUTODEPEND .\streams\filestream.cpp
352 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
354 $(OBJS)\test_memstream.obj : .AUTODEPEND .\streams\memstream.cpp
355 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
357 $(OBJS)\test_sstream.obj : .AUTODEPEND .\streams\sstream.cpp
358 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
360 $(OBJS)\test_textstreamtest.obj : .AUTODEPEND .\streams\textstreamtest.cpp
361 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
363 $(OBJS)\test_zlibstream.obj : .AUTODEPEND .\streams\zlibstream.cpp
364 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
366 $(OBJS)\test_uris.obj : .AUTODEPEND .\uris\uris.cpp
367 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
369 $(OBJS)\test_gui_sample.res : .AUTODEPEND .\..\samples\sample.rc
370 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 $<
372 $(OBJS)\test_gui_dummy.obj : .AUTODEPEND .\dummy.cpp
373 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
375 $(OBJS)\test_gui_test.obj : .AUTODEPEND .\test.cpp
376 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<