]> git.saurik.com Git - wxWidgets.git/blob - tests/benchmarks/makefile.vc
Get rid of ugly wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST macro.
[wxWidgets.git] / tests / benchmarks / makefile.vc
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.vc>
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 29
16 COMPILER_PREFIX = vc
17 OBJS = \
18 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
19 LIBDIRNAME = \
20 .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
21 SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 BENCH_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
24 $(__DEBUGINFO_0) /Fd$(OBJS)\bench.pdb $(____DEBUGRUNTIME_3_p) \
25 $(__OPTIMIZEFLAG_6) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \
29 $(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 /I. $(__DLLFLAG_p) /D_CONSOLE \
30 /DwxUSE_GUI=0 $(__RTTIFLAG_11) $(__EXCEPTIONSFLAG_12) $(CPPFLAGS) \
31 $(CXXFLAGS)
32 BENCH_OBJECTS = \
33 $(OBJS)\bench_bench.obj \
34 $(OBJS)\bench_datetime.obj \
35 $(OBJS)\bench_htmlpars.obj \
36 $(OBJS)\bench_htmltag.obj \
37 $(OBJS)\bench_ipcclient.obj \
38 $(OBJS)\bench_mbconv.obj \
39 $(OBJS)\bench_strings.obj \
40 $(OBJS)\bench_tls.obj \
41 $(OBJS)\bench_printfbench.obj
42
43 ### Conditionally set variables: ###
44
45 !if "$(USE_GUI)" == "0"
46 PORTNAME = base
47 !endif
48 !if "$(USE_GUI)" == "1"
49 PORTNAME = msw
50 !endif
51 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
52 WXDEBUGFLAG = d
53 !endif
54 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
55 WXDEBUGFLAG = d
56 !endif
57 !if "$(UNICODE)" == "1"
58 WXUNICODEFLAG = u
59 !endif
60 !if "$(WXUNIV)" == "1"
61 WXUNIVNAME = univ
62 !endif
63 !if "$(TARGET_CPU)" == "AMD64"
64 DIR_SUFFIX_CPU = _amd64
65 !endif
66 !if "$(TARGET_CPU)" == "IA64"
67 DIR_SUFFIX_CPU = _ia64
68 !endif
69 !if "$(TARGET_CPU)" == "amd64"
70 DIR_SUFFIX_CPU = _amd64
71 !endif
72 !if "$(TARGET_CPU)" == "ia64"
73 DIR_SUFFIX_CPU = _ia64
74 !endif
75 !if "$(SHARED)" == "1"
76 WXDLLFLAG = dll
77 !endif
78 !if "$(SHARED)" == "0"
79 LIBTYPE_SUFFIX = lib
80 !endif
81 !if "$(SHARED)" == "1"
82 LIBTYPE_SUFFIX = dll
83 !endif
84 !if "$(TARGET_CPU)" == "AMD64"
85 LINK_TARGET_CPU = /MACHINE:X64
86 !endif
87 !if "$(TARGET_CPU)" == "IA64"
88 LINK_TARGET_CPU = /MACHINE:IA64
89 !endif
90 !if "$(TARGET_CPU)" == "amd64"
91 LINK_TARGET_CPU = /MACHINE:X64
92 !endif
93 !if "$(TARGET_CPU)" == "ia64"
94 LINK_TARGET_CPU = /MACHINE:IA64
95 !endif
96 !if "$(MONOLITHIC)" == "0"
97 EXTRALIBS_FOR_BASE =
98 !endif
99 !if "$(MONOLITHIC)" == "1"
100 EXTRALIBS_FOR_BASE =
101 !endif
102 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
103 __DEBUGINFO_0 = /Zi
104 !endif
105 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
106 __DEBUGINFO_0 =
107 !endif
108 !if "$(DEBUG_INFO)" == "0"
109 __DEBUGINFO_0 =
110 !endif
111 !if "$(DEBUG_INFO)" == "1"
112 __DEBUGINFO_0 = /Zi
113 !endif
114 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
115 __DEBUGINFO_1 = /DEBUG
116 !endif
117 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
118 __DEBUGINFO_1 =
119 !endif
120 !if "$(DEBUG_INFO)" == "0"
121 __DEBUGINFO_1 =
122 !endif
123 !if "$(DEBUG_INFO)" == "1"
124 __DEBUGINFO_1 = /DEBUG
125 !endif
126 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
127 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
128 !endif
129 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
130 __DEBUGINFO_2 =
131 !endif
132 !if "$(DEBUG_INFO)" == "0"
133 __DEBUGINFO_2 =
134 !endif
135 !if "$(DEBUG_INFO)" == "1"
136 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
137 !endif
138 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
139 ____DEBUGRUNTIME_3_p = /D_DEBUG
140 !endif
141 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
142 ____DEBUGRUNTIME_3_p =
143 !endif
144 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
145 ____DEBUGRUNTIME_3_p =
146 !endif
147 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
148 ____DEBUGRUNTIME_3_p = /D_DEBUG
149 !endif
150 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
151 __DEBUGRUNTIME_4 = d
152 !endif
153 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
154 __DEBUGRUNTIME_4 =
155 !endif
156 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
157 __DEBUGRUNTIME_4 =
158 !endif
159 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
160 __DEBUGRUNTIME_4 = d
161 !endif
162 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
163 __DEBUGRUNTIME_5 =
164 !endif
165 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
166 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
167 !endif
168 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
169 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
170 !endif
171 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
172 __DEBUGRUNTIME_5 =
173 !endif
174 !if "$(BUILD)" == "debug"
175 __OPTIMIZEFLAG_6 = /Od
176 !endif
177 !if "$(BUILD)" == "release"
178 __OPTIMIZEFLAG_6 = /O2
179 !endif
180 !if "$(USE_THREADS)" == "0"
181 __THREADSFLAG_9 = L
182 !endif
183 !if "$(USE_THREADS)" == "1"
184 __THREADSFLAG_9 = T
185 !endif
186 !if "$(RUNTIME_LIBS)" == "dynamic"
187 __RUNTIME_LIBS_10 = D
188 !endif
189 !if "$(RUNTIME_LIBS)" == "static"
190 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
191 !endif
192 !if "$(USE_RTTI)" == "0"
193 __RTTIFLAG_11 =
194 !endif
195 !if "$(USE_RTTI)" == "1"
196 __RTTIFLAG_11 = /GR
197 !endif
198 !if "$(USE_EXCEPTIONS)" == "0"
199 __EXCEPTIONSFLAG_12 =
200 !endif
201 !if "$(USE_EXCEPTIONS)" == "1"
202 __EXCEPTIONSFLAG_12 = /EHsc
203 !endif
204 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
205 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
206 !endif
207 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
208 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
209 !endif
210 !if "$(WXUNIV)" == "1"
211 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
212 !endif
213 !if "$(DEBUG_FLAG)" == "0"
214 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
215 !endif
216 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
217 __NDEBUG_DEFINE_p = /DNDEBUG
218 !endif
219 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
220 __NDEBUG_DEFINE_p = /DNDEBUG
221 !endif
222 !if "$(USE_EXCEPTIONS)" == "0"
223 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
224 !endif
225 !if "$(USE_RTTI)" == "0"
226 __RTTI_DEFINE_p = /DwxNO_RTTI
227 !endif
228 !if "$(USE_THREADS)" == "0"
229 __THREAD_DEFINE_p = /DwxNO_THREADS
230 !endif
231 !if "$(UNICODE)" == "0"
232 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
233 !endif
234 !if "$(UNICODE)" == "1"
235 __UNICODE_DEFINE_p = /D_UNICODE
236 !endif
237 !if "$(MSLU)" == "1"
238 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
239 !endif
240 !if "$(USE_CAIRO)" == "1"
241 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
242 !endif
243 !if "$(SHARED)" == "1"
244 __DLLFLAG_p = /DWXUSINGDLL
245 !endif
246 !if "$(MONOLITHIC)" == "0"
247 __WXLIB_NET_p = \
248 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
249 !endif
250 !if "$(MONOLITHIC)" == "0"
251 __WXLIB_BASE_p = \
252 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
253 !endif
254 !if "$(MONOLITHIC)" == "1"
255 __WXLIB_MONO_p = \
256 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
257 !endif
258 !if "$(MONOLITHIC)" == "1"
259 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
260 !endif
261 !if "$(USE_GUI)" == "1"
262 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
263 !endif
264 !if "$(MSLU)" == "1"
265 __UNICOWS_LIB_p = unicows.lib
266 !endif
267 !if "$(USE_CAIRO)" == "1"
268 __CAIRO_LIB_p = cairo.lib
269 !endif
270 !if "$(USE_CAIRO)" == "1"
271 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
272 !endif
273
274
275 all: $(OBJS)
276 $(OBJS):
277 -if not exist $(OBJS) mkdir $(OBJS)
278
279 ### Targets: ###
280
281 all: $(OBJS)\bench.exe data
282
283 clean:
284 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
285 -if exist $(OBJS)\*.res del $(OBJS)\*.res
286 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
287 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
288 -if exist $(OBJS)\bench.ilk del $(OBJS)\bench.ilk
289 -if exist $(OBJS)\bench.pdb del $(OBJS)\bench.pdb
290
291 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
292 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\bench.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
293 $(BENCH_OBJECTS) $(__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) $(__UNICOWS_LIB_p) $(__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
294 <<
295
296 data:
297 if not exist $(OBJS) mkdir $(OBJS)
298 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
299
300 $(OBJS)\bench_bench.obj: .\bench.cpp
301 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\bench.cpp
302
303 $(OBJS)\bench_datetime.obj: .\datetime.cpp
304 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\datetime.cpp
305
306 $(OBJS)\bench_htmlpars.obj: .\htmlparser\htmlpars.cpp
307 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmlpars.cpp
308
309 $(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp
310 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmltag.cpp
311
312 $(OBJS)\bench_ipcclient.obj: .\ipcclient.cpp
313 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\ipcclient.cpp
314
315 $(OBJS)\bench_mbconv.obj: .\mbconv.cpp
316 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\mbconv.cpp
317
318 $(OBJS)\bench_strings.obj: .\strings.cpp
319 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\strings.cpp
320
321 $(OBJS)\bench_tls.obj: .\tls.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\tls.cpp
323
324 $(OBJS)\bench_printfbench.obj: .\printfbench.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\printfbench.cpp
326