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