]> git.saurik.com Git - wxWidgets.git/blame_incremental - tests/benchmarks/makefile.wat
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / tests / benchmarks / makefile.wat
... / ...
CommitLineData
1# =========================================================================\r
2# This makefile was generated by\r
3# Bakefile 0.2.9 (http://www.bakefile.org)\r
4# Do not modify, all changes will be overwritten!\r
5# =========================================================================\r
6\r
7!include ../../build/msw/config.wat\r
8\r
9# -------------------------------------------------------------------------\r
10# Do not modify the rest of this file!\r
11# -------------------------------------------------------------------------\r
12\r
13# Speed up compilation a bit:\r
14!ifdef __LOADDLL__\r
15! loaddll wcc wccd\r
16! loaddll wccaxp wccdaxp\r
17! loaddll wcc386 wccd386\r
18! loaddll wpp wppdi86\r
19! loaddll wppaxp wppdaxp\r
20! loaddll wpp386 wppd386\r
21! if $(__VERSION__) >= 1280\r
22! loaddll wlink wlinkd\r
23! else\r
24! loaddll wlink wlink\r
25! endif\r
26! loaddll wlib wlibd\r
27!endif\r
28\r
29# We need these variables in some bakefile-made rules:\r
30WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-\r
31\r
32### Conditionally set variables: ###\r
33\r
34PORTNAME =\r
35!ifeq USE_GUI 0\r
36PORTNAME = base\r
37!endif\r
38!ifeq USE_GUI 1\r
39PORTNAME = msw$(TOOLKIT_VERSION)\r
40!endif\r
41COMPILER_VERSION =\r
42!ifeq OFFICIAL_BUILD 1\r
43COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD\r
44!endif\r
45WXDEBUGFLAG =\r
46!ifeq BUILD debug\r
47WXDEBUGFLAG = d\r
48!endif\r
49WXUNICODEFLAG =\r
50!ifeq UNICODE 1\r
51WXUNICODEFLAG = u\r
52!endif\r
53WXUNIVNAME =\r
54!ifeq WXUNIV 1\r
55WXUNIVNAME = univ\r
56!endif\r
57WXDLLFLAG =\r
58!ifeq SHARED 1\r
59WXDLLFLAG = dll\r
60!endif\r
61LIBTYPE_SUFFIX =\r
62!ifeq SHARED 0\r
63LIBTYPE_SUFFIX = lib\r
64!endif\r
65!ifeq SHARED 1\r
66LIBTYPE_SUFFIX = dll\r
67!endif\r
68EXTRALIBS_FOR_BASE =\r
69!ifeq MONOLITHIC 0\r
70EXTRALIBS_FOR_BASE = \r
71!endif\r
72!ifeq MONOLITHIC 1\r
73EXTRALIBS_FOR_BASE = \r
74!endif\r
75__WXLIB_NET_p =\r
76!ifeq MONOLITHIC 0\r
77__WXLIB_NET_p = &\r
78 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib\r
79!endif\r
80__LIB_PNG_IF_MONO_p =\r
81!ifeq MONOLITHIC 1\r
82__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r
83!endif\r
84__bench_gui___depname =\r
85!ifeq USE_GUI 1\r
86__bench_gui___depname = $(OBJS)\bench_gui.exe\r
87!endif\r
88__WXLIB_CORE_p =\r
89!ifeq MONOLITHIC 0\r
90__WXLIB_CORE_p = &\r
91 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r
92!endif\r
93__LIB_SCINTILLA_IF_MONO_p =\r
94!ifeq MONOLITHIC 1\r
95!ifeq USE_STC 1\r
96__LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib\r
97!endif\r
98!endif\r
99__LIB_TIFF_p =\r
100!ifeq USE_GUI 1\r
101__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
102!endif\r
103__LIB_JPEG_p =\r
104!ifeq USE_GUI 1\r
105__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
106!endif\r
107__DEBUGINFO =\r
108!ifeq BUILD debug\r
109!ifeq DEBUG_INFO default\r
110__DEBUGINFO = -d2\r
111!endif\r
112!endif\r
113!ifeq BUILD release\r
114!ifeq DEBUG_INFO default\r
115__DEBUGINFO = -d0\r
116!endif\r
117!endif\r
118!ifeq DEBUG_INFO 0\r
119__DEBUGINFO = -d0\r
120!endif\r
121!ifeq DEBUG_INFO 1\r
122__DEBUGINFO = -d2\r
123!endif\r
124__DEBUGINFO_1 =\r
125!ifeq BUILD debug\r
126!ifeq DEBUG_INFO default\r
127__DEBUGINFO_1 = debug all\r
128!endif\r
129!endif\r
130!ifeq BUILD release\r
131!ifeq DEBUG_INFO default\r
132__DEBUGINFO_1 = \r
133!endif\r
134!endif\r
135!ifeq DEBUG_INFO 0\r
136__DEBUGINFO_1 = \r
137!endif\r
138!ifeq DEBUG_INFO 1\r
139__DEBUGINFO_1 = debug all\r
140!endif\r
141__OPTIMIZEFLAG =\r
142!ifeq BUILD debug\r
143__OPTIMIZEFLAG = -od\r
144!endif\r
145!ifeq BUILD release\r
146__OPTIMIZEFLAG = -ot -ox\r
147!endif\r
148__THREADSFLAG =\r
149!ifeq USE_THREADS 0\r
150__THREADSFLAG = \r
151!endif\r
152!ifeq USE_THREADS 1\r
153__THREADSFLAG = -bm\r
154!endif\r
155__RUNTIME_LIBS =\r
156!ifeq RUNTIME_LIBS dynamic\r
157__RUNTIME_LIBS = -br\r
158!endif\r
159!ifeq RUNTIME_LIBS static\r
160__RUNTIME_LIBS = \r
161!endif\r
162__RTTIFLAG =\r
163!ifeq USE_RTTI 0\r
164__RTTIFLAG = \r
165!endif\r
166!ifeq USE_RTTI 1\r
167__RTTIFLAG = -xr\r
168!endif\r
169__EXCEPTIONSFLAG =\r
170!ifeq USE_EXCEPTIONS 0\r
171__EXCEPTIONSFLAG = \r
172!endif\r
173!ifeq USE_EXCEPTIONS 1\r
174__EXCEPTIONSFLAG = -xs\r
175!endif\r
176__WXLIB_BASE_p =\r
177!ifeq MONOLITHIC 0\r
178__WXLIB_BASE_p = &\r
179 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
180!endif\r
181__WXLIB_MONO_p =\r
182!ifeq MONOLITHIC 1\r
183__WXLIB_MONO_p = &\r
184 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
185!endif\r
186__LIB_PNG_p =\r
187!ifeq USE_GUI 1\r
188__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
189!endif\r
190__CAIRO_LIB_p =\r
191!ifeq USE_CAIRO 1\r
192__CAIRO_LIB_p = cairo.lib\r
193!endif\r
194____CAIRO_LIBDIR_FILENAMES =\r
195!ifeq USE_CAIRO 1\r
196____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib\r
197!endif\r
198__WXUNIV_DEFINE_p =\r
199!ifeq WXUNIV 1\r
200__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__\r
201!endif\r
202__DEBUG_DEFINE_p =\r
203!ifeq DEBUG_FLAG 0\r
204__DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0\r
205!endif\r
206__NDEBUG_DEFINE_p =\r
207!ifeq BUILD release\r
208__NDEBUG_DEFINE_p = -dNDEBUG\r
209!endif\r
210__EXCEPTIONS_DEFINE_p =\r
211!ifeq USE_EXCEPTIONS 0\r
212__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS\r
213!endif\r
214__RTTI_DEFINE_p =\r
215!ifeq USE_RTTI 0\r
216__RTTI_DEFINE_p = -dwxNO_RTTI\r
217!endif\r
218__THREAD_DEFINE_p =\r
219!ifeq USE_THREADS 0\r
220__THREAD_DEFINE_p = -dwxNO_THREADS\r
221!endif\r
222__UNICODE_DEFINE_p =\r
223!ifeq UNICODE 0\r
224__UNICODE_DEFINE_p = -dwxUSE_UNICODE=0\r
225!endif\r
226!ifeq UNICODE 1\r
227__UNICODE_DEFINE_p = -d_UNICODE\r
228!endif\r
229____CAIRO_INCLUDEDIR_FILENAMES =\r
230!ifeq USE_CAIRO 1\r
231____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo\r
232!endif\r
233__DLLFLAG_p =\r
234!ifeq SHARED 1\r
235__DLLFLAG_p = -dWXUSINGDLL\r
236!endif\r
237\r
238### Variables: ###\r
239\r
240WX_RELEASE_NODOT = 30\r
241COMPILER_PREFIX = wat\r
242OBJS = &\r
243 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
244LIBDIRNAME = &\r
245 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r
246SETUPHDIR = &\r
247 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
248BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
249 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
250 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &\r
251 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &\r
252 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &\r
253 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(__RTTIFLAG) &\r
254 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)\r
255BENCH_OBJECTS = &\r
256 $(OBJS)\bench_bench.obj &\r
257 $(OBJS)\bench_datetime.obj &\r
258 $(OBJS)\bench_htmlpars.obj &\r
259 $(OBJS)\bench_htmltag.obj &\r
260 $(OBJS)\bench_ipcclient.obj &\r
261 $(OBJS)\bench_log.obj &\r
262 $(OBJS)\bench_mbconv.obj &\r
263 $(OBJS)\bench_strings.obj &\r
264 $(OBJS)\bench_tls.obj &\r
265 $(OBJS)\bench_printfbench.obj\r
266BENCH_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
267 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
268 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &\r
269 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &\r
270 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &\r
271 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &\r
272 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)\r
273BENCH_GUI_OBJECTS = &\r
274 $(OBJS)\bench_gui_bench.obj &\r
275 $(OBJS)\bench_gui_image.obj\r
276\r
277\r
278all : $(OBJS)\r
279$(OBJS) :\r
280 -if not exist $(OBJS) mkdir $(OBJS)\r
281\r
282### Targets: ###\r
283\r
284all : .SYMBOLIC $(OBJS)\bench.exe data $(__bench_gui___depname) data-image\r
285\r
286clean : .SYMBOLIC \r
287 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
288 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
289 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc\r
290 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r
291 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r
292 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r
293 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe\r
294\r
295$(OBJS)\bench.exe : $(BENCH_OBJECTS)\r
296 @%create $(OBJS)\bench.lbc\r
297 @%append $(OBJS)\bench.lbc option quiet\r
298 @%append $(OBJS)\bench.lbc name $^@\r
299 @%append $(OBJS)\bench.lbc option caseexact\r
300 @%append $(OBJS)\bench.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)\r
301 @for %i in ($(BENCH_OBJECTS)) do @%append $(OBJS)\bench.lbc file %i\r
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\r
303 @%append $(OBJS)\bench.lbc\r
304 @for %i in () do @%append $(OBJS)\bench.lbc option stack=%i\r
305 wlink @$(OBJS)\bench.lbc\r
306\r
307data : .SYMBOLIC \r
308 if not exist $(OBJS) mkdir $(OBJS)\r
309 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)\r
310\r
311!ifeq USE_GUI 1\r
312$(OBJS)\bench_gui.exe : $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample.res\r
313 @%create $(OBJS)\bench_gui.lbc\r
314 @%append $(OBJS)\bench_gui.lbc option quiet\r
315 @%append $(OBJS)\bench_gui.lbc name $^@\r
316 @%append $(OBJS)\bench_gui.lbc option caseexact\r
317 @%append $(OBJS)\bench_gui.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)\r
318 @for %i in ($(BENCH_GUI_OBJECTS)) do @%append $(OBJS)\bench_gui.lbc file %i\r
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\r
320 @%append $(OBJS)\bench_gui.lbc option resource=$(OBJS)\bench_gui_sample.res\r
321 @for %i in () do @%append $(OBJS)\bench_gui.lbc option stack=%i\r
322 wlink @$(OBJS)\bench_gui.lbc\r
323!endif\r
324\r
325data-image : .SYMBOLIC \r
326 if not exist $(OBJS) mkdir $(OBJS)\r
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)\r
328\r
329$(OBJS)\bench_bench.obj : .AUTODEPEND .\bench.cpp\r
330 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
331\r
332$(OBJS)\bench_datetime.obj : .AUTODEPEND .\datetime.cpp\r
333 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
334\r
335$(OBJS)\bench_htmlpars.obj : .AUTODEPEND .\htmlparser\htmlpars.cpp\r
336 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
337\r
338$(OBJS)\bench_htmltag.obj : .AUTODEPEND .\htmlparser\htmltag.cpp\r
339 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
340\r
341$(OBJS)\bench_ipcclient.obj : .AUTODEPEND .\ipcclient.cpp\r
342 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
343\r
344$(OBJS)\bench_log.obj : .AUTODEPEND .\log.cpp\r
345 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
346\r
347$(OBJS)\bench_mbconv.obj : .AUTODEPEND .\mbconv.cpp\r
348 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
349\r
350$(OBJS)\bench_strings.obj : .AUTODEPEND .\strings.cpp\r
351 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
352\r
353$(OBJS)\bench_tls.obj : .AUTODEPEND .\tls.cpp\r
354 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
355\r
356$(OBJS)\bench_printfbench.obj : .AUTODEPEND .\printfbench.cpp\r
357 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
358\r
359$(OBJS)\bench_gui_sample.res : .AUTODEPEND .\..\..\samples\sample.rc\r
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 $<\r
361\r
362$(OBJS)\bench_gui_bench.obj : .AUTODEPEND .\bench.cpp\r
363 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<\r
364\r
365$(OBJS)\bench_gui_image.obj : .AUTODEPEND .\image.cpp\r
366 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<\r
367\r