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