1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.5 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 !include <../../build/msw/config.vc>
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
18 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
20 .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 BENCH_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) \
32 $(OBJS)\bench_bench.obj \
33 $(OBJS)\bench_htmlpars.obj \
34 $(OBJS)\bench_htmltag.obj \
35 $(OBJS)\bench_ipcclient.obj \
36 $(OBJS)\bench_mbconv.obj \
37 $(OBJS)\bench_strings.obj \
40 ### Conditionally set variables: ###
42 !if "$(USE_GUI)" == "0"
45 !if "$(USE_GUI)" == "1"
48 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
51 !if "$(DEBUG_FLAG)" == "1"
54 !if "$(UNICODE)" == "1"
57 !if "$(WXUNIV)" == "1"
60 !if "$(TARGET_CPU)" == "AMD64"
61 DIR_SUFFIX_CPU = _amd64
63 !if "$(TARGET_CPU)" == "IA64"
64 DIR_SUFFIX_CPU = _ia64
66 !if "$(TARGET_CPU)" == "amd64"
67 DIR_SUFFIX_CPU = _amd64
69 !if "$(TARGET_CPU)" == "ia64"
70 DIR_SUFFIX_CPU = _ia64
72 !if "$(SHARED)" == "1"
75 !if "$(SHARED)" == "0"
78 !if "$(SHARED)" == "1"
81 !if "$(TARGET_CPU)" == "AMD64"
82 LINK_TARGET_CPU = /MACHINE:AMD64
84 !if "$(TARGET_CPU)" == "IA64"
85 LINK_TARGET_CPU = /MACHINE:IA64
87 !if "$(TARGET_CPU)" == "amd64"
88 LINK_TARGET_CPU = /MACHINE:AMD64
90 !if "$(TARGET_CPU)" == "ia64"
91 LINK_TARGET_CPU = /MACHINE:IA64
93 !if "$(MONOLITHIC)" == "0"
96 !if "$(MONOLITHIC)" == "1"
99 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
102 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
105 !if "$(DEBUG_INFO)" == "0"
108 !if "$(DEBUG_INFO)" == "1"
111 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
112 __DEBUGINFO_1 = /DEBUG
114 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
117 !if "$(DEBUG_INFO)" == "0"
120 !if "$(DEBUG_INFO)" == "1"
121 __DEBUGINFO_1 = /DEBUG
123 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
124 ____DEBUGRUNTIME_2_p = /D_DEBUG
126 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
127 ____DEBUGRUNTIME_2_p =
129 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
130 ____DEBUGRUNTIME_2_p =
132 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
133 ____DEBUGRUNTIME_2_p = /D_DEBUG
135 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
138 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
141 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
144 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
147 !if "$(BUILD)" == "debug"
148 __OPTIMIZEFLAG_4 = /Od
150 !if "$(BUILD)" == "release"
151 __OPTIMIZEFLAG_4 = /O2
153 !if "$(USE_THREADS)" == "0"
156 !if "$(USE_THREADS)" == "1"
159 !if "$(RUNTIME_LIBS)" == "dynamic"
162 !if "$(RUNTIME_LIBS)" == "static"
163 __RUNTIME_LIBS_8 = $(__THREADSFLAG_7)
165 !if "$(USE_RTTI)" == "0"
168 !if "$(USE_RTTI)" == "1"
171 !if "$(USE_EXCEPTIONS)" == "0"
172 __EXCEPTIONSFLAG_10 =
174 !if "$(USE_EXCEPTIONS)" == "1"
175 __EXCEPTIONSFLAG_10 = /EHsc
177 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
178 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
180 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
181 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
183 !if "$(WXUNIV)" == "1"
184 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
186 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
187 __DEBUG_DEFINE_p = /D__WXDEBUG__
189 !if "$(DEBUG_FLAG)" == "1"
190 __DEBUG_DEFINE_p = /D__WXDEBUG__
192 !if "$(USE_EXCEPTIONS)" == "0"
193 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
195 !if "$(USE_RTTI)" == "0"
196 __RTTI_DEFINE_p = /DwxNO_RTTI
198 !if "$(USE_THREADS)" == "0"
199 __THREAD_DEFINE_p = /DwxNO_THREADS
201 !if "$(UNICODE)" == "0"
202 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
204 !if "$(UNICODE)" == "1"
205 __UNICODE_DEFINE_p = /D_UNICODE
208 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
210 !if "$(USE_GDIPLUS)" == "1"
211 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
213 !if "$(SHARED)" == "1"
214 __DLLFLAG_p = /DWXUSINGDLL
216 !if "$(MONOLITHIC)" == "0"
218 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
220 !if "$(MONOLITHIC)" == "0"
222 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
224 !if "$(MONOLITHIC)" == "1"
226 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
229 __UNICOWS_LIB_p = unicows.lib
231 !if "$(USE_GDIPLUS)" == "1"
232 __GDIPLUS_LIB_p = gdiplus.lib
238 -if not exist $(OBJS) mkdir $(OBJS)
242 all: $(OBJS)\bench.exe data
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
252 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
253 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\bench.pdb" $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(LDFLAGS) @<<
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
258 if not exist $(OBJS) mkdir $(OBJS)
259 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
261 $(OBJS)\bench_bench.obj: .\bench.cpp
262 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\bench.cpp
264 $(OBJS)\bench_htmlpars.obj: .\htmlparser\htmlpars.cpp
265 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmlpars.cpp
267 $(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp
268 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmltag.cpp
270 $(OBJS)\bench_ipcclient.obj: .\ipcclient.cpp
271 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\ipcclient.cpp
273 $(OBJS)\bench_mbconv.obj: .\mbconv.cpp
274 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\mbconv.cpp
276 $(OBJS)\bench_strings.obj: .\strings.cpp
277 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\strings.cpp
279 $(OBJS)\bench_tls.obj: .\tls.cpp
280 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\tls.cpp