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