1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (http://www.bakefile.org)
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
21 ! if $(__VERSION__) >= 1280
22 ! loaddll wlink wlinkd
29 # We need these variables in some bakefile-made rules:
30 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
32 ### Conditionally set variables: ###
39 PORTNAME = msw$(TOOLKIT_VERSION)
42 !ifeq OFFICIAL_BUILD 1
43 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
78 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
82 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
84 __bench_gui___depname =
86 __bench_gui___depname = $(OBJS)\bench_gui.exe
91 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
93 __LIB_SCINTILLA_IF_MONO_p =
96 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
101 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
105 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
109 !ifeq DEBUG_INFO default
114 !ifeq DEBUG_INFO default
126 !ifeq DEBUG_INFO default
127 __DEBUGINFO_1 = debug all
131 !ifeq DEBUG_INFO default
139 __DEBUGINFO_1 = debug all
146 __OPTIMIZEFLAG = -ot -ox
156 !ifeq RUNTIME_LIBS dynamic
159 !ifeq RUNTIME_LIBS static
170 !ifeq USE_EXCEPTIONS 0
173 !ifeq USE_EXCEPTIONS 1
174 __EXCEPTIONSFLAG = -xs
179 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
184 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
188 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
192 __CAIRO_LIB_p = cairo.lib
194 ____CAIRO_LIBDIR_FILENAMES =
196 ____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
200 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
204 __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
208 __NDEBUG_DEFINE_p = -dNDEBUG
210 __EXCEPTIONS_DEFINE_p =
211 !ifeq USE_EXCEPTIONS 0
212 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
216 __RTTI_DEFINE_p = -dwxNO_RTTI
220 __THREAD_DEFINE_p = -dwxNO_THREADS
224 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
227 __UNICODE_DEFINE_p = -d_UNICODE
229 ____CAIRO_INCLUDEDIR_FILENAMES =
231 ____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
235 __DLLFLAG_p = -dWXUSINGDLL
240 WX_RELEASE_NODOT = 30
241 COMPILER_PREFIX = wat
243 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
245 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
247 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
248 BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
249 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
250 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
251 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
252 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
253 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(__RTTIFLAG) &
254 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
256 $(OBJS)\bench_bench.obj &
257 $(OBJS)\bench_datetime.obj &
258 $(OBJS)\bench_htmlpars.obj &
259 $(OBJS)\bench_htmltag.obj &
260 $(OBJS)\bench_ipcclient.obj &
261 $(OBJS)\bench_log.obj &
262 $(OBJS)\bench_mbconv.obj &
263 $(OBJS)\bench_strings.obj &
264 $(OBJS)\bench_tls.obj &
265 $(OBJS)\bench_printfbench.obj
266 BENCH_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
267 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
268 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
269 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
270 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
271 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &
272 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
273 BENCH_GUI_OBJECTS = &
274 $(OBJS)\bench_gui_bench.obj &
275 $(OBJS)\bench_gui_image.obj
280 -if not exist $(OBJS) mkdir $(OBJS)
284 all : .SYMBOLIC $(OBJS)\bench.exe data $(__bench_gui___depname) data-image
287 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
288 -if exist $(OBJS)\*.res del $(OBJS)\*.res
289 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
290 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
291 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
292 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
293 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe
295 $(OBJS)\bench.exe : $(BENCH_OBJECTS)
296 @%create $(OBJS)\bench.lbc
297 @%append $(OBJS)\bench.lbc option quiet
298 @%append $(OBJS)\bench.lbc name $^@
299 @%append $(OBJS)\bench.lbc option caseexact
300 @%append $(OBJS)\bench.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
301 @for %i in ($(BENCH_OBJECTS)) do @%append $(OBJS)\bench.lbc file %i
302 @for %i in ( $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__CAIRO_LIB_p) 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 wininet.lib) do @%append $(OBJS)\bench.lbc library %i
303 @%append $(OBJS)\bench.lbc
304 @for %i in () do @%append $(OBJS)\bench.lbc option stack=%i
305 wlink @$(OBJS)\bench.lbc
308 if not exist $(OBJS) mkdir $(OBJS)
309 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
312 $(OBJS)\bench_gui.exe : $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample.res
313 @%create $(OBJS)\bench_gui.lbc
314 @%append $(OBJS)\bench_gui.lbc option quiet
315 @%append $(OBJS)\bench_gui.lbc name $^@
316 @%append $(OBJS)\bench_gui.lbc option caseexact
317 @%append $(OBJS)\bench_gui.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
318 @for %i in ($(BENCH_GUI_OBJECTS)) do @%append $(OBJS)\bench_gui.lbc file %i
319 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__CAIRO_LIB_p) 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 wininet.lib) do @%append $(OBJS)\bench_gui.lbc library %i
320 @%append $(OBJS)\bench_gui.lbc option resource=$(OBJS)\bench_gui_sample.res
321 @for %i in () do @%append $(OBJS)\bench_gui.lbc option stack=%i
322 wlink @$(OBJS)\bench_gui.lbc
325 data-image : .SYMBOLIC
326 if not exist $(OBJS) mkdir $(OBJS)
327 for %f in (../../samples/image/horse.bmp ../../samples/image/horse.jpg ../../samples/image/horse.png ../../samples/image/horse.tif) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
329 $(OBJS)\bench_bench.obj : .AUTODEPEND .\bench.cpp
330 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
332 $(OBJS)\bench_datetime.obj : .AUTODEPEND .\datetime.cpp
333 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
335 $(OBJS)\bench_htmlpars.obj : .AUTODEPEND .\htmlparser\htmlpars.cpp
336 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
338 $(OBJS)\bench_htmltag.obj : .AUTODEPEND .\htmlparser\htmltag.cpp
339 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
341 $(OBJS)\bench_ipcclient.obj : .AUTODEPEND .\ipcclient.cpp
342 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
344 $(OBJS)\bench_log.obj : .AUTODEPEND .\log.cpp
345 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
347 $(OBJS)\bench_mbconv.obj : .AUTODEPEND .\mbconv.cpp
348 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
350 $(OBJS)\bench_strings.obj : .AUTODEPEND .\strings.cpp
351 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
353 $(OBJS)\bench_tls.obj : .AUTODEPEND .\tls.cpp
354 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
356 $(OBJS)\bench_printfbench.obj : .AUTODEPEND .\printfbench.cpp
357 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
359 $(OBJS)\bench_gui_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
360 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<
362 $(OBJS)\bench_gui_bench.obj : .AUTODEPEND .\bench.cpp
363 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<
365 $(OBJS)\bench_gui_image.obj : .AUTODEPEND .\image.cpp
366 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<