]> git.saurik.com Git - wxWidgets.git/blame_incremental - tests/benchmarks/makefile.wat
Add a unit test for wxImage::Scale() method.
[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
34WIN32_TOOLKIT_LOWERCASE =
35!ifeq TOOLKIT GTK
36WIN32_TOOLKIT_LOWERCASE = gtk
37!endif
38!ifeq TOOLKIT MSW
39WIN32_TOOLKIT_LOWERCASE = msw
40!endif
41PORTNAME =\r
42!ifeq USE_GUI 0\r
43PORTNAME = base\r
44!endif\r
45!ifeq USE_GUI 1\r
46PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
47!endif
48WXBASEPORT =
49!ifeq TOOLKIT MAC
50WXBASEPORT = _carbon
51!endif
52COMPILER_VERSION =
53!ifeq OFFICIAL_BUILD 1
54COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
55!endif\r
56WXDEBUGFLAG =\r
57!ifeq BUILD debug\r
58WXDEBUGFLAG = d\r
59!endif\r
60WXUNICODEFLAG =\r
61!ifeq UNICODE 1\r
62WXUNICODEFLAG = u\r
63!endif\r
64WXUNIVNAME =\r
65!ifeq WXUNIV 1\r
66WXUNIVNAME = univ\r
67!endif\r
68WXDLLFLAG =\r
69!ifeq SHARED 1\r
70WXDLLFLAG = dll\r
71!endif\r
72LIBTYPE_SUFFIX =\r
73!ifeq SHARED 0\r
74LIBTYPE_SUFFIX = lib\r
75!endif\r
76!ifeq SHARED 1\r
77LIBTYPE_SUFFIX = dll\r
78!endif\r
79EXTRALIBS_FOR_BASE =\r
80!ifeq MONOLITHIC 0\r
81EXTRALIBS_FOR_BASE = \r
82!endif\r
83!ifeq MONOLITHIC 1\r
84EXTRALIBS_FOR_BASE = \r
85!endif\r
86__DEBUGINFO_0 =\r
87!ifeq BUILD debug\r
88!ifeq DEBUG_INFO default\r
89__DEBUGINFO_0 = -d2\r
90!endif\r
91!endif\r
92!ifeq BUILD release\r
93!ifeq DEBUG_INFO default\r
94__DEBUGINFO_0 = -d0\r
95!endif\r
96!endif\r
97!ifeq DEBUG_INFO 0\r
98__DEBUGINFO_0 = -d0\r
99!endif\r
100!ifeq DEBUG_INFO 1\r
101__DEBUGINFO_0 = -d2\r
102!endif\r
103__DEBUGINFO_1 =\r
104!ifeq BUILD debug\r
105!ifeq DEBUG_INFO default\r
106__DEBUGINFO_1 = debug all\r
107!endif\r
108!endif\r
109!ifeq BUILD release\r
110!ifeq DEBUG_INFO default\r
111__DEBUGINFO_1 = \r
112!endif\r
113!endif\r
114!ifeq DEBUG_INFO 0\r
115__DEBUGINFO_1 = \r
116!endif\r
117!ifeq DEBUG_INFO 1\r
118__DEBUGINFO_1 = debug all\r
119!endif\r
120__OPTIMIZEFLAG_2 =\r
121!ifeq BUILD debug\r
122__OPTIMIZEFLAG_2 = -od\r
123!endif\r
124!ifeq BUILD release\r
125__OPTIMIZEFLAG_2 = -ot -ox\r
126!endif\r
127__THREADSFLAG_5 =\r
128!ifeq USE_THREADS 0\r
129__THREADSFLAG_5 = \r
130!endif\r
131!ifeq USE_THREADS 1\r
132__THREADSFLAG_5 = -bm\r
133!endif\r
134__RUNTIME_LIBS_6 =\r
135!ifeq RUNTIME_LIBS dynamic\r
136__RUNTIME_LIBS_6 = -br\r
137!endif\r
138!ifeq RUNTIME_LIBS static\r
139__RUNTIME_LIBS_6 = \r
140!endif\r
141__RTTIFLAG_7 =\r
142!ifeq USE_RTTI 0\r
143__RTTIFLAG_7 = \r
144!endif\r
145!ifeq USE_RTTI 1\r
146__RTTIFLAG_7 = -xr\r
147!endif\r
148__EXCEPTIONSFLAG_8 =\r
149!ifeq USE_EXCEPTIONS 0\r
150__EXCEPTIONSFLAG_8 = \r
151!endif\r
152!ifeq USE_EXCEPTIONS 1\r
153__EXCEPTIONSFLAG_8 = -xs\r
154!endif\r
155__WXUNIV_DEFINE_p =\r
156!ifeq WXUNIV 1\r
157__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__\r
158!endif\r
159__DEBUG_DEFINE_p =\r
160!ifeq DEBUG_FLAG 0\r
161__DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0\r
162!endif\r
163__NDEBUG_DEFINE_p =\r
164!ifeq BUILD release\r
165__NDEBUG_DEFINE_p = -dNDEBUG\r
166!endif\r
167__EXCEPTIONS_DEFINE_p =\r
168!ifeq USE_EXCEPTIONS 0\r
169__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS\r
170!endif\r
171__RTTI_DEFINE_p =\r
172!ifeq USE_RTTI 0\r
173__RTTI_DEFINE_p = -dwxNO_RTTI\r
174!endif\r
175__THREAD_DEFINE_p =\r
176!ifeq USE_THREADS 0\r
177__THREAD_DEFINE_p = -dwxNO_THREADS\r
178!endif\r
179__UNICODE_DEFINE_p =\r
180!ifeq UNICODE 0\r
181__UNICODE_DEFINE_p = -dwxUSE_UNICODE=0\r
182!endif\r
183!ifeq UNICODE 1\r
184__UNICODE_DEFINE_p = -d_UNICODE\r
185!endif\r
186____CAIRO_INCLUDEDIR_FILENAMES_p =\r
187!ifeq USE_CAIRO 1\r
188____CAIRO_INCLUDEDIR_FILENAMES_p = -i=$(CAIRO_ROOT)\include\cairo\r
189!endif\r
190__DLLFLAG_p =\r
191!ifeq SHARED 1\r
192__DLLFLAG_p = -dWXUSINGDLL\r
193!endif\r
194__WXLIB_NET_p =\r
195!ifeq MONOLITHIC 0\r
196__WXLIB_NET_p = &\r
197 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
198!endif\r
199__WXLIB_BASE_p =\r
200!ifeq MONOLITHIC 0\r
201__WXLIB_BASE_p = &\r
202 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
203!endif\r
204__WXLIB_MONO_p =\r
205!ifeq MONOLITHIC 1\r
206__WXLIB_MONO_p = &\r
207 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
208!endif\r
209__LIB_PNG_IF_MONO_p =\r
210!ifeq MONOLITHIC 1\r
211__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r
212!endif\r
213__LIB_PNG_p =\r
214!ifeq USE_GUI 1\r
215__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
216!endif\r
217__CAIRO_LIB_p =\r
218!ifeq USE_CAIRO 1\r
219__CAIRO_LIB_p = cairo.lib\r
220!endif\r
221____CAIRO_LIBDIR_FILENAMES_p =\r
222!ifeq USE_CAIRO 1\r
223____CAIRO_LIBDIR_FILENAMES_p = libpath $(CAIRO_ROOT)\lib\r
224!endif\r
225\r
226### Variables: ###\r
227\r
228WX_RELEASE_NODOT = 29\r
229COMPILER_PREFIX = wat\r
230OBJS = &\r
231 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
232LIBDIRNAME = &
233 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
234SETUPHDIR = &\r
235 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
236BENCH_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &\r
237 $(__RUNTIME_LIBS_6) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) &
238 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) &
239 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) &
240 -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) -wx &
241 -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 &
242 $(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) $(CXXFLAGS)
243BENCH_OBJECTS = &\r
244 $(OBJS)\bench_bench.obj &\r
245 $(OBJS)\bench_datetime.obj &\r
246 $(OBJS)\bench_htmlpars.obj &\r
247 $(OBJS)\bench_htmltag.obj &\r
248 $(OBJS)\bench_ipcclient.obj &\r
249 $(OBJS)\bench_log.obj &\r
250 $(OBJS)\bench_mbconv.obj &\r
251 $(OBJS)\bench_strings.obj &\r
252 $(OBJS)\bench_tls.obj &\r
253 $(OBJS)\bench_printfbench.obj\r
254\r
255\r
256all : $(OBJS)\r
257$(OBJS) :\r
258 -if not exist $(OBJS) mkdir $(OBJS)\r
259\r
260### Targets: ###\r
261\r
262all : .SYMBOLIC $(OBJS)\bench.exe data\r
263\r
264clean : .SYMBOLIC \r
265 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
266 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
267 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc\r
268 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r
269 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r
270 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r
271\r
272$(OBJS)\bench.exe : $(BENCH_OBJECTS)\r
273 @%create $(OBJS)\bench.lbc\r
274 @%append $(OBJS)\bench.lbc option quiet\r
275 @%append $(OBJS)\bench.lbc name $^@\r
276 @%append $(OBJS)\bench.lbc option caseexact\r
277 @%append $(OBJS)\bench.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS)\r
278 @for %i in ($(BENCH_OBJECTS)) do @%append $(OBJS)\bench.lbc file %i\r
279 @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
280 @%append $(OBJS)\bench.lbc\r
281 @for %i in () do @%append $(OBJS)\bench.lbc option stack=%i\r
282 wlink @$(OBJS)\bench.lbc\r
283\r
284data : .SYMBOLIC \r
285 if not exist $(OBJS) mkdir $(OBJS)\r
286 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)\r
287\r
288$(OBJS)\bench_bench.obj : .AUTODEPEND .\bench.cpp\r
289 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
290\r
291$(OBJS)\bench_datetime.obj : .AUTODEPEND .\datetime.cpp\r
292 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
293\r
294$(OBJS)\bench_htmlpars.obj : .AUTODEPEND .\htmlparser\htmlpars.cpp\r
295 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
296\r
297$(OBJS)\bench_htmltag.obj : .AUTODEPEND .\htmlparser\htmltag.cpp\r
298 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
299\r
300$(OBJS)\bench_ipcclient.obj : .AUTODEPEND .\ipcclient.cpp\r
301 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
302\r
303$(OBJS)\bench_log.obj : .AUTODEPEND .\log.cpp\r
304 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
305\r
306$(OBJS)\bench_mbconv.obj : .AUTODEPEND .\mbconv.cpp\r
307 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
308\r
309$(OBJS)\bench_strings.obj : .AUTODEPEND .\strings.cpp\r
310 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
311\r
312$(OBJS)\bench_tls.obj : .AUTODEPEND .\tls.cpp\r
313 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
314\r
315$(OBJS)\bench_printfbench.obj : .AUTODEPEND .\printfbench.cpp\r
316 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
317\r