]> git.saurik.com Git - wxWidgets.git/blame - tests/benchmarks/makefile.wat
Extract compiler-specific macro definitions in a new wx/compiler.h.
[wxWidgets.git] / tests / benchmarks / makefile.wat
CommitLineData
a7ebaf0d
KO
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
a7ebaf0d
KO
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
bed99c22
VZ
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
22a3b6e4 44!endif\r
a7ebaf0d
KO
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
51ec29ea 73EXTRALIBS_FOR_BASE = \r
a7ebaf0d 74!endif\r
bed99c22
VZ
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
a4830bb5
VZ
93__LIB_SCINTILLA_IF_MONO_p =\r
94!ifeq MONOLITHIC 1\r
95__LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib\r
96!endif\r
bed99c22
VZ
97__LIB_TIFF_p =\r
98!ifeq USE_GUI 1\r
99__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
100!endif\r
101__LIB_JPEG_p =\r
102!ifeq USE_GUI 1\r
103__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
104!endif\r
105__DEBUGINFO =\r
a7ebaf0d
KO
106!ifeq BUILD debug\r
107!ifeq DEBUG_INFO default\r
bed99c22 108__DEBUGINFO = -d2\r
a7ebaf0d
KO
109!endif\r
110!endif\r
111!ifeq BUILD release\r
112!ifeq DEBUG_INFO default\r
bed99c22 113__DEBUGINFO = -d0\r
a7ebaf0d
KO
114!endif\r
115!endif\r
116!ifeq DEBUG_INFO 0\r
bed99c22 117__DEBUGINFO = -d0\r
a7ebaf0d
KO
118!endif\r
119!ifeq DEBUG_INFO 1\r
bed99c22 120__DEBUGINFO = -d2\r
a7ebaf0d
KO
121!endif\r
122__DEBUGINFO_1 =\r
123!ifeq BUILD debug\r
124!ifeq DEBUG_INFO default\r
125__DEBUGINFO_1 = debug all\r
126!endif\r
127!endif\r
128!ifeq BUILD release\r
129!ifeq DEBUG_INFO default\r
130__DEBUGINFO_1 = \r
131!endif\r
132!endif\r
133!ifeq DEBUG_INFO 0\r
134__DEBUGINFO_1 = \r
135!endif\r
136!ifeq DEBUG_INFO 1\r
137__DEBUGINFO_1 = debug all\r
138!endif\r
bed99c22 139__OPTIMIZEFLAG =\r
a7ebaf0d 140!ifeq BUILD debug\r
bed99c22 141__OPTIMIZEFLAG = -od\r
a7ebaf0d
KO
142!endif\r
143!ifeq BUILD release\r
bed99c22 144__OPTIMIZEFLAG = -ot -ox\r
a7ebaf0d 145!endif\r
bed99c22 146__THREADSFLAG =\r
a7ebaf0d 147!ifeq USE_THREADS 0\r
bed99c22 148__THREADSFLAG = \r
a7ebaf0d
KO
149!endif\r
150!ifeq USE_THREADS 1\r
bed99c22 151__THREADSFLAG = -bm\r
a7ebaf0d 152!endif\r
bed99c22 153__RUNTIME_LIBS =\r
a7ebaf0d 154!ifeq RUNTIME_LIBS dynamic\r
bed99c22 155__RUNTIME_LIBS = -br\r
a7ebaf0d
KO
156!endif\r
157!ifeq RUNTIME_LIBS static\r
bed99c22 158__RUNTIME_LIBS = \r
a7ebaf0d 159!endif\r
bed99c22 160__RTTIFLAG =\r
a7ebaf0d 161!ifeq USE_RTTI 0\r
bed99c22 162__RTTIFLAG = \r
a7ebaf0d
KO
163!endif\r
164!ifeq USE_RTTI 1\r
bed99c22 165__RTTIFLAG = -xr\r
a7ebaf0d 166!endif\r
bed99c22 167__EXCEPTIONSFLAG =\r
a7ebaf0d 168!ifeq USE_EXCEPTIONS 0\r
bed99c22 169__EXCEPTIONSFLAG = \r
a7ebaf0d
KO
170!endif\r
171!ifeq USE_EXCEPTIONS 1\r
bed99c22
VZ
172__EXCEPTIONSFLAG = -xs\r
173!endif\r
174__WXLIB_BASE_p =\r
175!ifeq MONOLITHIC 0\r
176__WXLIB_BASE_p = &\r
177 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
178!endif\r
179__WXLIB_MONO_p =\r
180!ifeq MONOLITHIC 1\r
181__WXLIB_MONO_p = &\r
182 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
183!endif\r
184__LIB_PNG_p =\r
185!ifeq USE_GUI 1\r
186__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
187!endif\r
188__CAIRO_LIB_p =\r
189!ifeq USE_CAIRO 1\r
190__CAIRO_LIB_p = cairo.lib\r
191!endif\r
192____CAIRO_LIBDIR_FILENAMES =\r
193!ifeq USE_CAIRO 1\r
194____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib\r
a7ebaf0d
KO
195!endif\r
196__WXUNIV_DEFINE_p =\r
197!ifeq WXUNIV 1\r
198__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__\r
199!endif\r
200__DEBUG_DEFINE_p =\r
201!ifeq DEBUG_FLAG 0\r
202__DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0\r
203!endif\r
da8b1d4b
KO
204__NDEBUG_DEFINE_p =\r
205!ifeq BUILD release\r
206__NDEBUG_DEFINE_p = -dNDEBUG\r
207!endif\r
a7ebaf0d
KO
208__EXCEPTIONS_DEFINE_p =\r
209!ifeq USE_EXCEPTIONS 0\r
210__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS\r
211!endif\r
212__RTTI_DEFINE_p =\r
213!ifeq USE_RTTI 0\r
214__RTTI_DEFINE_p = -dwxNO_RTTI\r
215!endif\r
216__THREAD_DEFINE_p =\r
217!ifeq USE_THREADS 0\r
218__THREAD_DEFINE_p = -dwxNO_THREADS\r
219!endif\r
220__UNICODE_DEFINE_p =\r
221!ifeq UNICODE 0\r
222__UNICODE_DEFINE_p = -dwxUSE_UNICODE=0\r
223!endif\r
224!ifeq UNICODE 1\r
225__UNICODE_DEFINE_p = -d_UNICODE\r
226!endif\r
bed99c22 227____CAIRO_INCLUDEDIR_FILENAMES =\r
f82b7036 228!ifeq USE_CAIRO 1\r
bed99c22 229____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo\r
f82b7036 230!endif\r
a7ebaf0d
KO
231__DLLFLAG_p =\r
232!ifeq SHARED 1\r
233__DLLFLAG_p = -dWXUSINGDLL\r
234!endif\r
a7ebaf0d
KO
235\r
236### Variables: ###\r
237\r
238WX_RELEASE_NODOT = 29\r
239COMPILER_PREFIX = wat\r
240OBJS = &\r
bed99c22
VZ
241 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
242LIBDIRNAME = &\r
243 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r
a7ebaf0d
KO
244SETUPHDIR = &\r
245 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
bed99c22
VZ
246BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
247 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
248 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &\r
249 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &\r
250 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &\r
251 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(__RTTIFLAG) &\r
252 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)\r
a7ebaf0d
KO
253BENCH_OBJECTS = &\r
254 $(OBJS)\bench_bench.obj &\r
bf0f3b26 255 $(OBJS)\bench_datetime.obj &\r
a7ebaf0d
KO
256 $(OBJS)\bench_htmlpars.obj &\r
257 $(OBJS)\bench_htmltag.obj &\r
258 $(OBJS)\bench_ipcclient.obj &\r
f7f7b59a 259 $(OBJS)\bench_log.obj &\r
a7ebaf0d
KO
260 $(OBJS)\bench_mbconv.obj &\r
261 $(OBJS)\bench_strings.obj &\r
262 $(OBJS)\bench_tls.obj &\r
263 $(OBJS)\bench_printfbench.obj\r
bed99c22
VZ
264BENCH_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
265 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
266 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &\r
267 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &\r
268 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &\r
269 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &\r
270 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)\r
271BENCH_GUI_OBJECTS = &\r
272 $(OBJS)\bench_gui_bench.obj &\r
273 $(OBJS)\bench_gui_image.obj\r
a7ebaf0d
KO
274\r
275\r
276all : $(OBJS)\r
277$(OBJS) :\r
278 -if not exist $(OBJS) mkdir $(OBJS)\r
279\r
280### Targets: ###\r
281\r
bed99c22 282all : .SYMBOLIC $(OBJS)\bench.exe data $(__bench_gui___depname) data-image\r
a7ebaf0d
KO
283\r
284clean : .SYMBOLIC \r
285 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
286 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
287 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc\r
288 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r
289 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r
290 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r
bed99c22 291 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe\r
a7ebaf0d
KO
292\r
293$(OBJS)\bench.exe : $(BENCH_OBJECTS)\r
294 @%create $(OBJS)\bench.lbc\r
295 @%append $(OBJS)\bench.lbc option quiet\r
296 @%append $(OBJS)\bench.lbc name $^@\r
297 @%append $(OBJS)\bench.lbc option caseexact\r
bed99c22 298 @%append $(OBJS)\bench.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)\r
a7ebaf0d 299 @for %i in ($(BENCH_OBJECTS)) do @%append $(OBJS)\bench.lbc file %i\r
57c74474 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\r
a7ebaf0d
KO
301 @%append $(OBJS)\bench.lbc\r
302 @for %i in () do @%append $(OBJS)\bench.lbc option stack=%i\r
303 wlink @$(OBJS)\bench.lbc\r
304\r
305data : .SYMBOLIC \r
306 if not exist $(OBJS) mkdir $(OBJS)\r
307 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)\r
308\r
bed99c22
VZ
309!ifeq USE_GUI 1\r
310$(OBJS)\bench_gui.exe : $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample.res\r
311 @%create $(OBJS)\bench_gui.lbc\r
312 @%append $(OBJS)\bench_gui.lbc option quiet\r
313 @%append $(OBJS)\bench_gui.lbc name $^@\r
314 @%append $(OBJS)\bench_gui.lbc option caseexact\r
315 @%append $(OBJS)\bench_gui.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)\r
316 @for %i in ($(BENCH_GUI_OBJECTS)) do @%append $(OBJS)\bench_gui.lbc file %i\r
a4830bb5 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\r
bed99c22
VZ
318 @%append $(OBJS)\bench_gui.lbc option resource=$(OBJS)\bench_gui_sample.res\r
319 @for %i in () do @%append $(OBJS)\bench_gui.lbc option stack=%i\r
320 wlink @$(OBJS)\bench_gui.lbc\r
321!endif\r
322\r
323data-image : .SYMBOLIC \r
324 if not exist $(OBJS) mkdir $(OBJS)\r
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)\r
326\r
a7ebaf0d
KO
327$(OBJS)\bench_bench.obj : .AUTODEPEND .\bench.cpp\r
328 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
329\r
bf0f3b26
VZ
330$(OBJS)\bench_datetime.obj : .AUTODEPEND .\datetime.cpp\r
331 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
332\r
a7ebaf0d
KO
333$(OBJS)\bench_htmlpars.obj : .AUTODEPEND .\htmlparser\htmlpars.cpp\r
334 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
335\r
336$(OBJS)\bench_htmltag.obj : .AUTODEPEND .\htmlparser\htmltag.cpp\r
337 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
338\r
339$(OBJS)\bench_ipcclient.obj : .AUTODEPEND .\ipcclient.cpp\r
340 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
341\r
f7f7b59a
VZ
342$(OBJS)\bench_log.obj : .AUTODEPEND .\log.cpp\r
343 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
344\r
a7ebaf0d
KO
345$(OBJS)\bench_mbconv.obj : .AUTODEPEND .\mbconv.cpp\r
346 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
347\r
348$(OBJS)\bench_strings.obj : .AUTODEPEND .\strings.cpp\r
349 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
350\r
351$(OBJS)\bench_tls.obj : .AUTODEPEND .\tls.cpp\r
352 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
353\r
354$(OBJS)\bench_printfbench.obj : .AUTODEPEND .\printfbench.cpp\r
355 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
356\r
bed99c22
VZ
357$(OBJS)\bench_gui_sample.res : .AUTODEPEND .\..\..\samples\sample.rc\r
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 $<\r
359\r
360$(OBJS)\bench_gui_bench.obj : .AUTODEPEND .\bench.cpp\r
361 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<\r
362\r
363$(OBJS)\bench_gui_image.obj : .AUTODEPEND .\image.cpp\r
364 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<\r
365\r