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 =
95 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
99 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
103 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
107 !ifeq DEBUG_INFO default
112 !ifeq DEBUG_INFO default
124 !ifeq DEBUG_INFO default
125 __DEBUGINFO_1 = debug all
129 !ifeq DEBUG_INFO default
137 __DEBUGINFO_1 = debug all
144 __OPTIMIZEFLAG = -ot -ox
154 !ifeq RUNTIME_LIBS dynamic
157 !ifeq RUNTIME_LIBS static
168 !ifeq USE_EXCEPTIONS 0
171 !ifeq USE_EXCEPTIONS 1
172 __EXCEPTIONSFLAG = -xs
177 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
182 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
186 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
190 __CAIRO_LIB_p = cairo.lib
192 ____CAIRO_LIBDIR_FILENAMES =
194 ____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
198 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
202 __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
206 __NDEBUG_DEFINE_p = -dNDEBUG
208 __EXCEPTIONS_DEFINE_p =
209 !ifeq USE_EXCEPTIONS 0
210 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
214 __RTTI_DEFINE_p = -dwxNO_RTTI
218 __THREAD_DEFINE_p = -dwxNO_THREADS
222 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
225 __UNICODE_DEFINE_p = -d_UNICODE
227 ____CAIRO_INCLUDEDIR_FILENAMES =
229 ____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
233 __DLLFLAG_p = -dWXUSINGDLL
238 WX_RELEASE_NODOT = 29
239 COMPILER_PREFIX = wat
241 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
243 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
245 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
246 BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
247 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
248 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
249 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
250 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
251 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(__RTTIFLAG) &
252 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
254 $(OBJS)\bench_bench.obj &
255 $(OBJS)\bench_datetime.obj &
256 $(OBJS)\bench_htmlpars.obj &
257 $(OBJS)\bench_htmltag.obj &
258 $(OBJS)\bench_ipcclient.obj &
259 $(OBJS)\bench_log.obj &
260 $(OBJS)\bench_mbconv.obj &
261 $(OBJS)\bench_strings.obj &
262 $(OBJS)\bench_tls.obj &
263 $(OBJS)\bench_printfbench.obj
264 BENCH_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
265 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
266 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
267 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
268 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
269 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &
270 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
271 BENCH_GUI_OBJECTS = &
272 $(OBJS)\bench_gui_bench.obj &
273 $(OBJS)\bench_gui_image.obj
278 -if not exist $(OBJS) mkdir $(OBJS)
282 all : .SYMBOLIC $(OBJS)\bench.exe data $(__bench_gui___depname) data-image
285 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
286 -if exist $(OBJS)\*.res del $(OBJS)\*.res
287 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
288 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
289 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
290 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
291 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe
293 $(OBJS)\bench.exe : $(BENCH_OBJECTS)
294 @%create $(OBJS)\bench.lbc
295 @%append $(OBJS)\bench.lbc option quiet
296 @%append $(OBJS)\bench.lbc name $^@
297 @%append $(OBJS)\bench.lbc option caseexact
298 @%append $(OBJS)\bench.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
299 @for %i in ($(BENCH_OBJECTS)) do @%append $(OBJS)\bench.lbc file %i
300 @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
301 @%append $(OBJS)\bench.lbc
302 @for %i in () do @%append $(OBJS)\bench.lbc option stack=%i
303 wlink @$(OBJS)\bench.lbc
306 if not exist $(OBJS) mkdir $(OBJS)
307 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
310 $(OBJS)\bench_gui.exe : $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample.res
311 @%create $(OBJS)\bench_gui.lbc
312 @%append $(OBJS)\bench_gui.lbc option quiet
313 @%append $(OBJS)\bench_gui.lbc name $^@
314 @%append $(OBJS)\bench_gui.lbc option caseexact
315 @%append $(OBJS)\bench_gui.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
316 @for %i in ($(BENCH_GUI_OBJECTS)) do @%append $(OBJS)\bench_gui.lbc file %i
317 @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
318 @%append $(OBJS)\bench_gui.lbc option resource=$(OBJS)\bench_gui_sample.res
319 @for %i in () do @%append $(OBJS)\bench_gui.lbc option stack=%i
320 wlink @$(OBJS)\bench_gui.lbc
323 data-image : .SYMBOLIC
324 if not exist $(OBJS) mkdir $(OBJS)
325 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)
327 $(OBJS)\bench_bench.obj : .AUTODEPEND .\bench.cpp
328 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
330 $(OBJS)\bench_datetime.obj : .AUTODEPEND .\datetime.cpp
331 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
333 $(OBJS)\bench_htmlpars.obj : .AUTODEPEND .\htmlparser\htmlpars.cpp
334 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
336 $(OBJS)\bench_htmltag.obj : .AUTODEPEND .\htmlparser\htmltag.cpp
337 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
339 $(OBJS)\bench_ipcclient.obj : .AUTODEPEND .\ipcclient.cpp
340 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
342 $(OBJS)\bench_log.obj : .AUTODEPEND .\log.cpp
343 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
345 $(OBJS)\bench_mbconv.obj : .AUTODEPEND .\mbconv.cpp
346 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
348 $(OBJS)\bench_strings.obj : .AUTODEPEND .\strings.cpp
349 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
351 $(OBJS)\bench_tls.obj : .AUTODEPEND .\tls.cpp
352 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
354 $(OBJS)\bench_printfbench.obj : .AUTODEPEND .\printfbench.cpp
355 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
357 $(OBJS)\bench_gui_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
358 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 $<
360 $(OBJS)\bench_gui_bench.obj : .AUTODEPEND .\bench.cpp
361 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<
363 $(OBJS)\bench_gui_image.obj : .AUTODEPEND .\image.cpp
364 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<