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