]> git.saurik.com Git - wxWidgets.git/blob - tests/benchmarks/makefile.wat
Don't document wxSortedArrayString as deriving from wxArrayString.
[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 !ifeq USE_STC 1
96 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
97 !endif
98 !endif
99 __LIB_TIFF_p =
100 !ifeq USE_GUI 1
101 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
102 !endif
103 __LIB_JPEG_p =
104 !ifeq USE_GUI 1
105 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
106 !endif
107 __DEBUGINFO =
108 !ifeq BUILD debug
109 !ifeq DEBUG_INFO default
110 __DEBUGINFO = -d2
111 !endif
112 !endif
113 !ifeq BUILD release
114 !ifeq DEBUG_INFO default
115 __DEBUGINFO = -d0
116 !endif
117 !endif
118 !ifeq DEBUG_INFO 0
119 __DEBUGINFO = -d0
120 !endif
121 !ifeq DEBUG_INFO 1
122 __DEBUGINFO = -d2
123 !endif
124 __DEBUGINFO_1 =
125 !ifeq BUILD debug
126 !ifeq DEBUG_INFO default
127 __DEBUGINFO_1 = debug all
128 !endif
129 !endif
130 !ifeq BUILD release
131 !ifeq DEBUG_INFO default
132 __DEBUGINFO_1 =
133 !endif
134 !endif
135 !ifeq DEBUG_INFO 0
136 __DEBUGINFO_1 =
137 !endif
138 !ifeq DEBUG_INFO 1
139 __DEBUGINFO_1 = debug all
140 !endif
141 __OPTIMIZEFLAG =
142 !ifeq BUILD debug
143 __OPTIMIZEFLAG = -od
144 !endif
145 !ifeq BUILD release
146 __OPTIMIZEFLAG = -ot -ox
147 !endif
148 __THREADSFLAG =
149 !ifeq USE_THREADS 0
150 __THREADSFLAG =
151 !endif
152 !ifeq USE_THREADS 1
153 __THREADSFLAG = -bm
154 !endif
155 __RUNTIME_LIBS =
156 !ifeq RUNTIME_LIBS dynamic
157 __RUNTIME_LIBS = -br
158 !endif
159 !ifeq RUNTIME_LIBS static
160 __RUNTIME_LIBS =
161 !endif
162 __RTTIFLAG =
163 !ifeq USE_RTTI 0
164 __RTTIFLAG =
165 !endif
166 !ifeq USE_RTTI 1
167 __RTTIFLAG = -xr
168 !endif
169 __EXCEPTIONSFLAG =
170 !ifeq USE_EXCEPTIONS 0
171 __EXCEPTIONSFLAG =
172 !endif
173 !ifeq USE_EXCEPTIONS 1
174 __EXCEPTIONSFLAG = -xs
175 !endif
176 __WXLIB_BASE_p =
177 !ifeq MONOLITHIC 0
178 __WXLIB_BASE_p = &
179 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
180 !endif
181 __WXLIB_MONO_p =
182 !ifeq MONOLITHIC 1
183 __WXLIB_MONO_p = &
184 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
185 !endif
186 __LIB_PNG_p =
187 !ifeq USE_GUI 1
188 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
189 !endif
190 __CAIRO_LIB_p =
191 !ifeq USE_CAIRO 1
192 __CAIRO_LIB_p = cairo.lib
193 !endif
194 ____CAIRO_LIBDIR_FILENAMES =
195 !ifeq USE_CAIRO 1
196 ____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
197 !endif
198 __WXUNIV_DEFINE_p =
199 !ifeq WXUNIV 1
200 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
201 !endif
202 __DEBUG_DEFINE_p =
203 !ifeq DEBUG_FLAG 0
204 __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
205 !endif
206 __NDEBUG_DEFINE_p =
207 !ifeq BUILD release
208 __NDEBUG_DEFINE_p = -dNDEBUG
209 !endif
210 __EXCEPTIONS_DEFINE_p =
211 !ifeq USE_EXCEPTIONS 0
212 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
213 !endif
214 __RTTI_DEFINE_p =
215 !ifeq USE_RTTI 0
216 __RTTI_DEFINE_p = -dwxNO_RTTI
217 !endif
218 __THREAD_DEFINE_p =
219 !ifeq USE_THREADS 0
220 __THREAD_DEFINE_p = -dwxNO_THREADS
221 !endif
222 __UNICODE_DEFINE_p =
223 !ifeq UNICODE 0
224 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
225 !endif
226 !ifeq UNICODE 1
227 __UNICODE_DEFINE_p = -d_UNICODE
228 !endif
229 ____CAIRO_INCLUDEDIR_FILENAMES =
230 !ifeq USE_CAIRO 1
231 ____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
232 !endif
233 __DLLFLAG_p =
234 !ifeq SHARED 1
235 __DLLFLAG_p = -dWXUSINGDLL
236 !endif
237
238 ### Variables: ###
239
240 WX_RELEASE_NODOT = 29
241 COMPILER_PREFIX = wat
242 OBJS = &
243 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
244 LIBDIRNAME = &
245 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
246 SETUPHDIR = &
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)
255 BENCH_OBJECTS = &
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
276
277
278 all : $(OBJS)
279 $(OBJS) :
280 -if not exist $(OBJS) mkdir $(OBJS)
281
282 ### Targets: ###
283
284 all : .SYMBOLIC $(OBJS)\bench.exe data $(__bench_gui___depname) data-image
285
286 clean : .SYMBOLIC
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
294
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
306
307 data : .SYMBOLIC
308 if not exist $(OBJS) mkdir $(OBJS)
309 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
310
311 !ifeq USE_GUI 1
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
323 !endif
324
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)
328
329 $(OBJS)\bench_bench.obj : .AUTODEPEND .\bench.cpp
330 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
331
332 $(OBJS)\bench_datetime.obj : .AUTODEPEND .\datetime.cpp
333 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
334
335 $(OBJS)\bench_htmlpars.obj : .AUTODEPEND .\htmlparser\htmlpars.cpp
336 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
337
338 $(OBJS)\bench_htmltag.obj : .AUTODEPEND .\htmlparser\htmltag.cpp
339 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
340
341 $(OBJS)\bench_ipcclient.obj : .AUTODEPEND .\ipcclient.cpp
342 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
343
344 $(OBJS)\bench_log.obj : .AUTODEPEND .\log.cpp
345 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
346
347 $(OBJS)\bench_mbconv.obj : .AUTODEPEND .\mbconv.cpp
348 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
349
350 $(OBJS)\bench_strings.obj : .AUTODEPEND .\strings.cpp
351 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
352
353 $(OBJS)\bench_tls.obj : .AUTODEPEND .\tls.cpp
354 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
355
356 $(OBJS)\bench_printfbench.obj : .AUTODEPEND .\printfbench.cpp
357 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<
358
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 $<
361
362 $(OBJS)\bench_gui_bench.obj : .AUTODEPEND .\bench.cpp
363 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<
364
365 $(OBJS)\bench_gui_image.obj : .AUTODEPEND .\image.cpp
366 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<
367