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)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(ARCH_SUFFIX)
20 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)$(ARCH_SUFFIX)_$(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__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
28 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
29 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
30 $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \
31 $(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 /I. $(__DLLFLAG_p) /D_CONSOLE \
32 /DwxUSE_GUI=0 $(__RTTIFLAG_11) $(__EXCEPTIONSFLAG_12) $(CPPFLAGS) \
35 $(OBJS)\bench_bench.obj \
36 $(OBJS)\bench_datetime.obj \
37 $(OBJS)\bench_htmlpars.obj \
38 $(OBJS)\bench_htmltag.obj \
39 $(OBJS)\bench_ipcclient.obj \
40 $(OBJS)\bench_log.obj \
41 $(OBJS)\bench_mbconv.obj \
42 $(OBJS)\bench_strings.obj \
43 $(OBJS)\bench_tls.obj \
44 $(OBJS)\bench_printfbench.obj
46 ### Conditionally set variables: ###
48 !if "$(TOOLKIT)" == "GTK"
49 WIN32_TOOLKIT_LOWERCASE = gtk
51 !if "$(TOOLKIT)" == "MSW"
52 WIN32_TOOLKIT_LOWERCASE = msw
54 !if "$(TARGET_CPU)" == "AMD64"
57 !if "$(TARGET_CPU)" == "IA64"
60 !if "$(TARGET_CPU)" == "X64"
63 !if "$(TARGET_CPU)" == "amd64"
66 !if "$(TARGET_CPU)" == "ia64"
69 !if "$(TARGET_CPU)" == "x64"
72 !if "$(USE_GUI)" == "0"
75 !if "$(USE_GUI)" == "1"
76 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
78 !if "$(TOOLKIT)" == "MAC"
81 !if "$(OFFICIAL_BUILD)" == "1"
82 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
84 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
87 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
90 !if "$(UNICODE)" == "1"
93 !if "$(WXUNIV)" == "1"
96 !if "$(SHARED)" == "1"
99 !if "$(SHARED)" == "0"
102 !if "$(SHARED)" == "1"
105 !if "$(TARGET_CPU)" == "AMD64"
106 LINK_TARGET_CPU = /MACHINE:X64
108 !if "$(TARGET_CPU)" == "IA64"
109 LINK_TARGET_CPU = /MACHINE:IA64
111 !if "$(TARGET_CPU)" == "X64"
112 LINK_TARGET_CPU = /MACHINE:X64
114 !if "$(TARGET_CPU)" == "amd64"
115 LINK_TARGET_CPU = /MACHINE:X64
117 !if "$(TARGET_CPU)" == "ia64"
118 LINK_TARGET_CPU = /MACHINE:IA64
120 !if "$(TARGET_CPU)" == "x64"
121 LINK_TARGET_CPU = /MACHINE:X64
123 !if "$(MONOLITHIC)" == "0"
126 !if "$(MONOLITHIC)" == "1"
129 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
132 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
135 !if "$(DEBUG_INFO)" == "0"
138 !if "$(DEBUG_INFO)" == "1"
141 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
142 __DEBUGINFO_1 = /DEBUG
144 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
147 !if "$(DEBUG_INFO)" == "0"
150 !if "$(DEBUG_INFO)" == "1"
151 __DEBUGINFO_1 = /DEBUG
153 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
154 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
156 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
159 !if "$(DEBUG_INFO)" == "0"
162 !if "$(DEBUG_INFO)" == "1"
163 __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
165 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
166 ____DEBUGRUNTIME_3_p = /D_DEBUG
168 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
169 ____DEBUGRUNTIME_3_p =
171 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
172 ____DEBUGRUNTIME_3_p =
174 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
175 ____DEBUGRUNTIME_3_p = /D_DEBUG
177 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
180 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
183 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
186 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
189 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
192 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
193 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
195 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
196 __DEBUGRUNTIME_5 = /opt:ref /opt:icf
198 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
201 !if "$(BUILD)" == "debug"
202 __OPTIMIZEFLAG_6 = /Od
204 !if "$(BUILD)" == "release"
205 __OPTIMIZEFLAG_6 = /O2
207 !if "$(USE_THREADS)" == "0"
210 !if "$(USE_THREADS)" == "1"
213 !if "$(RUNTIME_LIBS)" == "dynamic"
214 __RUNTIME_LIBS_10 = D
216 !if "$(RUNTIME_LIBS)" == "static"
217 __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
219 !if "$(USE_RTTI)" == "0"
222 !if "$(USE_RTTI)" == "1"
225 !if "$(USE_EXCEPTIONS)" == "0"
226 __EXCEPTIONSFLAG_12 =
228 !if "$(USE_EXCEPTIONS)" == "1"
229 __EXCEPTIONSFLAG_12 = /EHsc
231 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
232 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
234 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
235 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
237 !if "$(WXUNIV)" == "1"
238 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
240 !if "$(DEBUG_FLAG)" == "0"
241 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
243 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
244 __NDEBUG_DEFINE_p = /DNDEBUG
246 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
247 __NDEBUG_DEFINE_p = /DNDEBUG
249 !if "$(USE_EXCEPTIONS)" == "0"
250 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
252 !if "$(USE_RTTI)" == "0"
253 __RTTI_DEFINE_p = /DwxNO_RTTI
255 !if "$(USE_THREADS)" == "0"
256 __THREAD_DEFINE_p = /DwxNO_THREADS
258 !if "$(UNICODE)" == "0"
259 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
261 !if "$(UNICODE)" == "1"
262 __UNICODE_DEFINE_p = /D_UNICODE
265 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
267 !if "$(USE_CAIRO)" == "1"
268 ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
270 !if "$(SHARED)" == "1"
271 __DLLFLAG_p = /DWXUSINGDLL
273 !if "$(MONOLITHIC)" == "0"
275 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
277 !if "$(MONOLITHIC)" == "0"
279 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
281 !if "$(MONOLITHIC)" == "1"
283 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
285 !if "$(MONOLITHIC)" == "1"
286 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
288 !if "$(USE_GUI)" == "1"
289 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
292 __UNICOWS_LIB_p = unicows.lib
294 !if "$(USE_CAIRO)" == "1"
295 __CAIRO_LIB_p = cairo.lib
297 !if "$(USE_CAIRO)" == "1"
298 ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
304 -if not exist $(OBJS) mkdir $(OBJS)
308 all: $(OBJS)\bench.exe data
311 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
312 -if exist $(OBJS)\*.res del $(OBJS)\*.res
313 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
314 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
315 -if exist $(OBJS)\bench.ilk del $(OBJS)\bench.ilk
316 -if exist $(OBJS)\bench.pdb del $(OBJS)\bench.pdb
318 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
319 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\bench.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
320 $(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
324 if not exist $(OBJS) mkdir $(OBJS)
325 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
327 $(OBJS)\bench_bench.obj: .\bench.cpp
328 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\bench.cpp
330 $(OBJS)\bench_datetime.obj: .\datetime.cpp
331 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\datetime.cpp
333 $(OBJS)\bench_htmlpars.obj: .\htmlparser\htmlpars.cpp
334 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmlpars.cpp
336 $(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp
337 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmltag.cpp
339 $(OBJS)\bench_ipcclient.obj: .\ipcclient.cpp
340 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\ipcclient.cpp
342 $(OBJS)\bench_log.obj: .\log.cpp
343 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\log.cpp
345 $(OBJS)\bench_mbconv.obj: .\mbconv.cpp
346 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\mbconv.cpp
348 $(OBJS)\bench_strings.obj: .\strings.cpp
349 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\strings.cpp
351 $(OBJS)\bench_tls.obj: .\tls.cpp
352 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\tls.cpp
354 $(OBJS)\bench_printfbench.obj: .\printfbench.cpp
355 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\printfbench.cpp