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) /DWIN32 \
24 $(__DEBUGINFO) /Fd$(OBJS)\bench.pdb $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) \
25 /D_CRT_SECURE_NO_DEPRECATE=1 /D_CRT_NON_CONFORMING_SWPRINTFS=1 \
26 /D_SCL_SECURE_NO_WARNINGS=1 $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
27 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \
28 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
29 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \
30 $(____CAIRO_INCLUDEDIR_FILENAMES) /W4 /I. $(__DLLFLAG_p) /D_CONSOLE \
31 /DwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
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_log.obj \
39 $(OBJS)\bench_mbconv.obj \
40 $(OBJS)\bench_strings.obj \
41 $(OBJS)\bench_tls.obj \
42 $(OBJS)\bench_printfbench.obj
43 BENCH_GUI_CXXFLAGS = /M$(__RUNTIME_LIBS_26)$(__DEBUGRUNTIME) /DWIN32 \
44 $(__DEBUGINFO) /Fd$(OBJS)\bench_gui.pdb $(____DEBUGRUNTIME) \
45 $(__OPTIMIZEFLAG) /D_CRT_SECURE_NO_DEPRECATE=1 \
46 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 \
47 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
48 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
49 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
50 /I$(SETUPHDIR) /I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) /W4 /I. \
51 $(__DLLFLAG_p) /I.\..\..\samples /DNOPCH /D_CONSOLE $(__RTTIFLAG) \
52 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
54 $(OBJS)\bench_gui_bench.obj \
55 $(OBJS)\bench_gui_image.obj
56 BENCH_GUI_RESOURCES = \
57 $(OBJS)\bench_gui_sample.res
59 ### Conditionally set variables: ###
61 !if "$(TARGET_CPU)" == "AMD64"
64 !if "$(TARGET_CPU)" == "IA64"
67 !if "$(TARGET_CPU)" == "X64"
70 !if "$(TARGET_CPU)" == "amd64"
73 !if "$(TARGET_CPU)" == "ia64"
76 !if "$(TARGET_CPU)" == "x64"
79 !if "$(USE_GUI)" == "0"
82 !if "$(USE_GUI)" == "1"
83 PORTNAME = msw$(TOOLKIT_VERSION)
85 !if "$(OFFICIAL_BUILD)" == "1"
86 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
88 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
91 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
94 !if "$(UNICODE)" == "1"
97 !if "$(WXUNIV)" == "1"
100 !if "$(SHARED)" == "1"
103 !if "$(SHARED)" == "0"
106 !if "$(SHARED)" == "1"
109 !if "$(TARGET_CPU)" == "AMD64"
110 LINK_TARGET_CPU = /MACHINE:X64
112 !if "$(TARGET_CPU)" == "IA64"
113 LINK_TARGET_CPU = /MACHINE:IA64
115 !if "$(TARGET_CPU)" == "X64"
116 LINK_TARGET_CPU = /MACHINE:X64
118 !if "$(TARGET_CPU)" == "amd64"
119 LINK_TARGET_CPU = /MACHINE:X64
121 !if "$(TARGET_CPU)" == "ia64"
122 LINK_TARGET_CPU = /MACHINE:IA64
124 !if "$(TARGET_CPU)" == "x64"
125 LINK_TARGET_CPU = /MACHINE:X64
127 !if "$(MONOLITHIC)" == "0"
130 !if "$(MONOLITHIC)" == "1"
133 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
134 __DEBUGINFO_2 = $(__DEBUGRUNTIME_0)
136 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
139 !if "$(DEBUG_INFO)" == "0"
142 !if "$(DEBUG_INFO)" == "1"
143 __DEBUGINFO_2 = $(__DEBUGRUNTIME_0)
145 !if "$(RUNTIME_LIBS)" == "dynamic"
146 __RUNTIME_LIBS_10 = D
148 !if "$(RUNTIME_LIBS)" == "static"
149 __RUNTIME_LIBS_10 = $(__THREADSFLAG)
151 !if "$(MONOLITHIC)" == "0"
153 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
155 !if "$(MONOLITHIC)" == "1"
156 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
158 !if "$(USE_GUI)" == "1"
159 __bench_gui___depname = $(OBJS)\bench_gui.exe
161 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
162 __DEBUGINFO_18 = $(__DEBUGRUNTIME_0)
164 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
167 !if "$(DEBUG_INFO)" == "0"
170 !if "$(DEBUG_INFO)" == "1"
171 __DEBUGINFO_18 = $(__DEBUGRUNTIME_0)
173 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
174 ____DEBUGRUNTIME_19_p_1 = /d _DEBUG
176 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
177 ____DEBUGRUNTIME_19_p_1 =
179 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
180 ____DEBUGRUNTIME_19_p_1 =
182 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
183 ____DEBUGRUNTIME_19_p_1 = /d _DEBUG
185 !if "$(RUNTIME_LIBS)" == "dynamic"
186 __RUNTIME_LIBS_26 = D
188 !if "$(RUNTIME_LIBS)" == "static"
189 __RUNTIME_LIBS_26 = $(__THREADSFLAG)
191 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
192 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
194 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
195 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
197 !if "$(WXUNIV)" == "1"
198 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
200 !if "$(DEBUG_FLAG)" == "0"
201 __DEBUG_DEFINE_p_3 = /d wxDEBUG_LEVEL=0
203 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
204 __NDEBUG_DEFINE_p_3 = /d NDEBUG
206 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
207 __NDEBUG_DEFINE_p_3 = /d NDEBUG
209 !if "$(USE_EXCEPTIONS)" == "0"
210 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
212 !if "$(USE_RTTI)" == "0"
213 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
215 !if "$(USE_THREADS)" == "0"
216 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
218 !if "$(UNICODE)" == "0"
219 __UNICODE_DEFINE_p_3 = /d wxUSE_UNICODE=0
221 !if "$(UNICODE)" == "1"
222 __UNICODE_DEFINE_p_3 = /d _UNICODE
225 __MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
227 !if "$(USE_CAIRO)" == "1"
228 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = /i $(CAIRO_ROOT)\include\cairo
230 !if "$(SHARED)" == "1"
231 __DLLFLAG_p_3 = /d WXUSINGDLL
233 !if "$(MONOLITHIC)" == "0"
235 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
237 !if "$(MONOLITHIC)" == "1" && "$(USE_STC)" == "1"
238 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
240 !if "$(USE_GUI)" == "1"
241 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
243 !if "$(USE_GUI)" == "1"
244 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
246 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
249 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
252 !if "$(DEBUG_INFO)" == "0"
255 !if "$(DEBUG_INFO)" == "1"
258 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
259 __DEBUGINFO_1 = /DEBUG
261 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
264 !if "$(DEBUG_INFO)" == "0"
267 !if "$(DEBUG_INFO)" == "1"
268 __DEBUGINFO_1 = /DEBUG
270 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
271 ____DEBUGRUNTIME = /D_DEBUG
273 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
276 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
279 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
280 ____DEBUGRUNTIME = /D_DEBUG
282 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
285 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
288 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
291 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
294 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
297 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
298 __DEBUGRUNTIME_0 = /opt:ref /opt:icf
300 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
301 __DEBUGRUNTIME_0 = /opt:ref /opt:icf
303 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
306 !if "$(BUILD)" == "debug"
309 !if "$(BUILD)" == "release"
312 !if "$(USE_THREADS)" == "0"
315 !if "$(USE_THREADS)" == "1"
318 !if "$(USE_RTTI)" == "0"
321 !if "$(USE_RTTI)" == "1"
324 !if "$(USE_EXCEPTIONS)" == "0"
327 !if "$(USE_EXCEPTIONS)" == "1"
328 __EXCEPTIONSFLAG = /EHsc
330 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
331 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
333 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
334 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
336 !if "$(WXUNIV)" == "1"
337 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
339 !if "$(DEBUG_FLAG)" == "0"
340 __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
342 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
343 __NDEBUG_DEFINE_p = /DNDEBUG
345 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
346 __NDEBUG_DEFINE_p = /DNDEBUG
348 !if "$(USE_EXCEPTIONS)" == "0"
349 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
351 !if "$(USE_RTTI)" == "0"
352 __RTTI_DEFINE_p = /DwxNO_RTTI
354 !if "$(USE_THREADS)" == "0"
355 __THREAD_DEFINE_p = /DwxNO_THREADS
357 !if "$(UNICODE)" == "0"
358 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
360 !if "$(UNICODE)" == "1"
361 __UNICODE_DEFINE_p = /D_UNICODE
364 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
366 !if "$(USE_CAIRO)" == "1"
367 ____CAIRO_INCLUDEDIR_FILENAMES = /I$(CAIRO_ROOT)\include\cairo
369 !if "$(SHARED)" == "1"
370 __DLLFLAG_p = /DWXUSINGDLL
372 !if "$(MONOLITHIC)" == "0"
374 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
376 !if "$(MONOLITHIC)" == "1"
378 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
380 !if "$(USE_GUI)" == "1"
381 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
384 __UNICOWS_LIB_p = unicows.lib
386 !if "$(USE_CAIRO)" == "1"
387 __CAIRO_LIB_p = cairo.lib
389 !if "$(USE_CAIRO)" == "1"
390 ____CAIRO_LIBDIR_FILENAMES = /LIBPATH:$(CAIRO_ROOT)\lib
396 -if not exist $(OBJS) mkdir $(OBJS)
400 all: $(OBJS)\bench.exe data $(__bench_gui___depname) data-image
403 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
404 -if exist $(OBJS)\*.res del $(OBJS)\*.res
405 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
406 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
407 -if exist $(OBJS)\bench.ilk del $(OBJS)\bench.ilk
408 -if exist $(OBJS)\bench.pdb del $(OBJS)\bench.pdb
409 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe
410 -if exist $(OBJS)\bench_gui.ilk del $(OBJS)\bench_gui.ilk
411 -if exist $(OBJS)\bench_gui.pdb del $(OBJS)\bench_gui.pdb
413 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
414 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\bench.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
415 $(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
419 if not exist $(OBJS) mkdir $(OBJS)
420 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
422 !if "$(USE_GUI)" == "1"
423 $(OBJS)\bench_gui.exe: $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample.res
424 link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\bench_gui.pdb" $(__DEBUGINFO_18) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<
425 $(BENCH_GUI_OBJECTS) $(BENCH_GUI_RESOURCES) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_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
430 if not exist $(OBJS) mkdir $(OBJS)
431 for %f in (../../samples/image/horse.bmp ../../samples/image/horse.jpg ../../samples/image/horse.png ../../samples/image/horse.tif) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
433 $(OBJS)\bench_bench.obj: .\bench.cpp
434 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\bench.cpp
436 $(OBJS)\bench_datetime.obj: .\datetime.cpp
437 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\datetime.cpp
439 $(OBJS)\bench_htmlpars.obj: .\htmlparser\htmlpars.cpp
440 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmlpars.cpp
442 $(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp
443 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmltag.cpp
445 $(OBJS)\bench_ipcclient.obj: .\ipcclient.cpp
446 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\ipcclient.cpp
448 $(OBJS)\bench_log.obj: .\log.cpp
449 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\log.cpp
451 $(OBJS)\bench_mbconv.obj: .\mbconv.cpp
452 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\mbconv.cpp
454 $(OBJS)\bench_strings.obj: .\strings.cpp
455 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\strings.cpp
457 $(OBJS)\bench_tls.obj: .\tls.cpp
458 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\tls.cpp
460 $(OBJS)\bench_printfbench.obj: .\printfbench.cpp
461 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\printfbench.cpp
463 $(OBJS)\bench_gui_sample.res: .\..\..\samples\sample.rc
464 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_19_p_1) /d _CRT_SECURE_NO_DEPRECATE=1 /d _CRT_NON_CONFORMING_SWPRINTFS=1 /d _SCL_SECURE_NO_WARNINGS=1 $(__NO_VC_CRTDBG_p_3) /d __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__NDEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) /i $(SETUPHDIR) /i .\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_3_p) /i . $(__DLLFLAG_p_3) /i .\..\..\samples /d NOPCH /d _CONSOLE .\..\..\samples\sample.rc
466 $(OBJS)\bench_gui_bench.obj: .\bench.cpp
467 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_GUI_CXXFLAGS) .\bench.cpp
469 $(OBJS)\bench_gui_image.obj: .\image.cpp
470 $(CXX) /c /nologo /TP /Fo$@ $(BENCH_GUI_CXXFLAGS) .\image.cpp