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) /D_CRT_SECURE_NO_DEPRECATE=1 \
26 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \
27 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
28 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
29 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
30 /I$(SETUPHDIR) /I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 /I. \
31 $(__DLLFLAG_p) /D_CONSOLE /DwxUSE_GUI=0 $(__RTTIFLAG_11) \
32 $(__EXCEPTIONSFLAG_12) $(CPPFLAGS) $(CXXFLAGS)
34 $(OBJS)\bench_bench.obj \
35 $(OBJS)\bench_datetime.obj \
36 $(OBJS)\bench_htmlpars.obj \
37 $(OBJS)\bench_htmltag.obj \
38 $(OBJS)\bench_ipcclient.obj \
39 $(OBJS)\bench_log.obj \
40 $(OBJS)\bench_mbconv.obj \
41 $(OBJS)\bench_strings.obj \
42 $(OBJS)\bench_tls.obj \
43 $(OBJS)\bench_printfbench.obj
45 ### Conditionally set variables: ###
47 !if "$(USE_GUI)" == "0"
50 !if "$(USE_GUI)" == "1"
53 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
56 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
59 !if "$(UNICODE)" == "1"
62 !if "$(WXUNIV)" == "1"
65 !if "$(TARGET_CPU)" == "AMD64"
66 DIR_SUFFIX_CPU = _amd64
68 !if "$(TARGET_CPU)" == "IA64"
69 DIR_SUFFIX_CPU = _ia64
71 !if "$(TARGET_CPU)" == "amd64"
72 DIR_SUFFIX_CPU = _amd64
74 !if "$(TARGET_CPU)" == "ia64"
75 DIR_SUFFIX_CPU = _ia64
77 !if "$(SHARED)" == "1"
80 !if "$(SHARED)" == "0"
83 !if "$(SHARED)" == "1"
86 !if "$(TARGET_CPU)" == "AMD64"
87 LINK_TARGET_CPU = /MACHINE:X64
89 !if "$(TARGET_CPU)" == "IA64"
90 LINK_TARGET_CPU = /MACHINE:IA64
92 !if "$(TARGET_CPU)" == "amd64"
93 LINK_TARGET_CPU = /MACHINE:X64
95 !if "$(TARGET_CPU)" == "ia64"
96 LINK_TARGET_CPU = /MACHINE:IA64
98 !if "$(MONOLITHIC)" == "0"
101 !if "$(MONOLITHIC)" == "1"
104 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
107 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
110 !if "$(DEBUG_INFO)" == "0"
113 !if "$(DEBUG_INFO)" == "1"
116 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
117 __DEBUGINFO_1 = /DEBUG
119 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
122 !if "$(DEBUG_INFO)" == "0"
125 !if "$(DEBUG_INFO)" == "1"
126 __DEBUGINFO_1 = /DEBUG
128 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
129 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
131 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
134 !if "$(DEBUG_INFO)" == "0"
137 !if "$(DEBUG_INFO)" == "1"
138 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
140 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
141 ____DEBUGRUNTIME_3_p = /D_DEBUG
143 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
144 ____DEBUGRUNTIME_3_p =
146 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
147 ____DEBUGRUNTIME_3_p =
149 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
150 ____DEBUGRUNTIME_3_p = /D_DEBUG
152 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
155 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
158 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
161 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
164 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
167 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
168 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
170 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
171 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
173 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
176 !if "$(BUILD)" == "debug"
177 __OPTIMIZEFLAG_6 = /Od
179 !if "$(BUILD)" == "release"
180 __OPTIMIZEFLAG_6 = /O2
182 !if "$(USE_THREADS)" == "0"
185 !if "$(USE_THREADS)" == "1"
188 !if "$(RUNTIME_LIBS)" == "dynamic"
189 __RUNTIME_LIBS_10 = D
191 !if "$(RUNTIME_LIBS)" == "static"
192 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
194 !if "$(USE_RTTI)" == "0"
197 !if "$(USE_RTTI)" == "1"
200 !if "$(USE_EXCEPTIONS)" == "0"
201 __EXCEPTIONSFLAG_12 =
203 !if "$(USE_EXCEPTIONS)" == "1"
204 __EXCEPTIONSFLAG_12 = /EHsc
206 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
207 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
209 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
210 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
212 !if "$(WXUNIV)" == "1"
213 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
215 !if "$(DEBUG_FLAG)" == "0"
216 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
218 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
219 __NDEBUG_DEFINE_p = /DNDEBUG
221 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
222 __NDEBUG_DEFINE_p = /DNDEBUG
224 !if "$(USE_EXCEPTIONS)" == "0"
225 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
227 !if "$(USE_RTTI)" == "0"
228 __RTTI_DEFINE_p = /DwxNO_RTTI
230 !if "$(USE_THREADS)" == "0"
231 __THREAD_DEFINE_p = /DwxNO_THREADS
233 !if "$(UNICODE)" == "0"
234 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
236 !if "$(UNICODE)" == "1"
237 __UNICODE_DEFINE_p = /D_UNICODE
240 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
242 !if "$(USE_CAIRO)" == "1"
243 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
245 !if "$(SHARED)" == "1"
246 __DLLFLAG_p = /DWXUSINGDLL
248 !if "$(MONOLITHIC)" == "0"
250 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
252 !if "$(MONOLITHIC)" == "0"
254 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
256 !if "$(MONOLITHIC)" == "1"
258 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
260 !if "$(MONOLITHIC)" == "1"
261 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
263 !if "$(USE_GUI)" == "1"
264 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
267 __UNICOWS_LIB_p = unicows.lib
269 !if "$(USE_CAIRO)" == "1"
270 __CAIRO_LIB_p = cairo.lib
272 !if "$(USE_CAIRO)" == "1"
273 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
279 -if not exist $(OBJS) mkdir $(OBJS)
283 all: $(OBJS)\bench.exe data
286 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
287 -if exist $(OBJS)\*.res del $(OBJS)\*.res
288 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
289 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
290 -if exist $(OBJS)\bench.ilk del $(OBJS)\bench.ilk
291 -if exist $(OBJS)\bench.pdb del $(OBJS)\bench.pdb
293 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
294 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\bench.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
295 $(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
299 if not exist $(OBJS) mkdir $(OBJS)
300 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
302 $(OBJS)\bench_bench.obj: .\bench.cpp
303 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\bench.cpp
305 $(OBJS)\bench_datetime.obj: .\datetime.cpp
306 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\datetime.cpp
308 $(OBJS)\bench_htmlpars.obj: .\htmlparser\htmlpars.cpp
309 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmlpars.cpp
311 $(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp
312 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmltag.cpp
314 $(OBJS)\bench_ipcclient.obj: .\ipcclient.cpp
315 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\ipcclient.cpp
317 $(OBJS)\bench_log.obj: .\log.cpp
318 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\log.cpp
320 $(OBJS)\bench_mbconv.obj: .\mbconv.cpp
321 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\mbconv.cpp
323 $(OBJS)\bench_strings.obj: .\strings.cpp
324 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\strings.cpp
326 $(OBJS)\bench_tls.obj: .\tls.cpp
327 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\tls.cpp
329 $(OBJS)\bench_printfbench.obj: .\printfbench.cpp
330 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\printfbench.cpp