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 # =========================================================================
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_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) \
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
43 ### Conditionally set variables: ###
45 !if "$(USE_GUI)" == "0"
48 !if "$(USE_GUI)" == "1"
51 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
54 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
57 !if "$(UNICODE)" == "1"
60 !if "$(WXUNIV)" == "1"
63 !if "$(TARGET_CPU)" == "AMD64"
64 DIR_SUFFIX_CPU = _amd64
66 !if "$(TARGET_CPU)" == "IA64"
67 DIR_SUFFIX_CPU = _ia64
69 !if "$(TARGET_CPU)" == "amd64"
70 DIR_SUFFIX_CPU = _amd64
72 !if "$(TARGET_CPU)" == "ia64"
73 DIR_SUFFIX_CPU = _ia64
75 !if "$(SHARED)" == "1"
78 !if "$(SHARED)" == "0"
81 !if "$(SHARED)" == "1"
84 !if "$(TARGET_CPU)" == "AMD64"
85 LINK_TARGET_CPU = /MACHINE:X64
87 !if "$(TARGET_CPU)" == "IA64"
88 LINK_TARGET_CPU = /MACHINE:IA64
90 !if "$(TARGET_CPU)" == "amd64"
91 LINK_TARGET_CPU = /MACHINE:X64
93 !if "$(TARGET_CPU)" == "ia64"
94 LINK_TARGET_CPU = /MACHINE:IA64
96 !if "$(MONOLITHIC)" == "0"
99 !if "$(MONOLITHIC)" == "1"
102 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
105 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
108 !if "$(DEBUG_INFO)" == "0"
111 !if "$(DEBUG_INFO)" == "1"
114 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
115 __DEBUGINFO_1 = /DEBUG
117 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
120 !if "$(DEBUG_INFO)" == "0"
123 !if "$(DEBUG_INFO)" == "1"
124 __DEBUGINFO_1 = /DEBUG
126 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
127 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
129 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
132 !if "$(DEBUG_INFO)" == "0"
135 !if "$(DEBUG_INFO)" == "1"
136 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
138 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
139 ____DEBUGRUNTIME_3_p = /D_DEBUG
141 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
142 ____DEBUGRUNTIME_3_p =
144 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
145 ____DEBUGRUNTIME_3_p =
147 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
148 ____DEBUGRUNTIME_3_p = /D_DEBUG
150 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
153 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
156 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
159 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
162 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
165 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
166 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
168 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
169 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
171 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
174 !if "$(BUILD)" == "debug"
175 __OPTIMIZEFLAG_6 = /Od
177 !if "$(BUILD)" == "release"
178 __OPTIMIZEFLAG_6 = /O2
180 !if "$(USE_THREADS)" == "0"
183 !if "$(USE_THREADS)" == "1"
186 !if "$(RUNTIME_LIBS)" == "dynamic"
187 __RUNTIME_LIBS_10 = D
189 !if "$(RUNTIME_LIBS)" == "static"
190 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
192 !if "$(USE_RTTI)" == "0"
195 !if "$(USE_RTTI)" == "1"
198 !if "$(USE_EXCEPTIONS)" == "0"
199 __EXCEPTIONSFLAG_12 =
201 !if "$(USE_EXCEPTIONS)" == "1"
202 __EXCEPTIONSFLAG_12 = /EHsc
204 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
205 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
207 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
208 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
210 !if "$(WXUNIV)" == "1"
211 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
213 !if "$(DEBUG_FLAG)" == "0"
214 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
216 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
217 __NDEBUG_DEFINE_p = /DNDEBUG
219 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
220 __NDEBUG_DEFINE_p = /DNDEBUG
222 !if "$(USE_EXCEPTIONS)" == "0"
223 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
225 !if "$(USE_RTTI)" == "0"
226 __RTTI_DEFINE_p = /DwxNO_RTTI
228 !if "$(USE_THREADS)" == "0"
229 __THREAD_DEFINE_p = /DwxNO_THREADS
231 !if "$(UNICODE)" == "0"
232 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
234 !if "$(UNICODE)" == "1"
235 __UNICODE_DEFINE_p = /D_UNICODE
238 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
240 !if "$(USE_CAIRO)" == "1"
241 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
243 !if "$(SHARED)" == "1"
244 __DLLFLAG_p = /DWXUSINGDLL
246 !if "$(MONOLITHIC)" == "0"
248 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
250 !if "$(MONOLITHIC)" == "0"
252 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
254 !if "$(MONOLITHIC)" == "1"
256 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
258 !if "$(MONOLITHIC)" == "1"
259 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
261 !if "$(USE_GUI)" == "1"
262 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
265 __UNICOWS_LIB_p = unicows.lib
267 !if "$(USE_CAIRO)" == "1"
268 __CAIRO_LIB_p = cairo.lib
270 !if "$(USE_CAIRO)" == "1"
271 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
277 -if not exist $(OBJS) mkdir $(OBJS)
281 all: $(OBJS)\bench.exe data
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
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
297 if not exist $(OBJS) mkdir $(OBJS)
298 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
300 $(OBJS)\bench_bench.obj: .\bench.cpp
301 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\bench.cpp
303 $(OBJS)\bench_datetime.obj: .\datetime.cpp
304 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\datetime.cpp
306 $(OBJS)\bench_htmlpars.obj: .\htmlparser\htmlpars.cpp
307 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmlpars.cpp
309 $(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp
310 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmltag.cpp
312 $(OBJS)\bench_ipcclient.obj: .\ipcclient.cpp
313 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\ipcclient.cpp
315 $(OBJS)\bench_mbconv.obj: .\mbconv.cpp
316 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\mbconv.cpp
318 $(OBJS)\bench_strings.obj: .\strings.cpp
319 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\strings.cpp
321 $(OBJS)\bench_tls.obj: .\tls.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\tls.cpp
324 $(OBJS)\bench_printfbench.obj: .\printfbench.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\printfbench.cpp