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 # =========================================================================
11 exec_prefix = @exec_prefix@
12 datarootdir = @datarootdir@
19 top_srcdir = @top_srcdir@
25 WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
27 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
28 TOOLKIT_VERSION = @TOOLKIT_VERSION@
29 TOOLCHAIN_FULLNAME = @TOOLCHAIN_FULLNAME@
30 EXTRALIBS = @EXTRALIBS@
31 EXTRALIBS_XML = @EXTRALIBS_XML@
32 EXTRALIBS_GUI = @EXTRALIBS_GUI@
33 CXXWARNINGS = @CXXWARNINGS@
34 HOST_SUFFIX = @HOST_SUFFIX@
35 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
36 wx_top_builddir = @wx_top_builddir@
42 WX_VERSION = $(WX_RELEASE).5
43 LIBDIRNAME = $(wx_top_builddir)/lib
44 BENCH_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
45 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
46 -I$(srcdir) $(__DLLFLAG_p) -DwxUSE_GUI=0 $(CXXWARNINGS) $(CPPFLAGS) \
59 BENCH_GUI_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
60 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
61 $(__THREAD_DEFINE_p) -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../samples \
62 $(CXXWARNINGS) $(CPPFLAGS) $(CXXFLAGS)
64 $(__bench_gui___win32rc) \
65 $(__bench_gui_os2_lib_res) \
69 ### Conditionally set variables: ###
71 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
72 @COND_DEPS_TRACKING_1@CXXC = $(BK_DEPS) $(CXX)
73 @COND_USE_GUI_0@PORTNAME = base
74 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
75 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
76 @COND_BUILD_debug@WXDEBUGFLAG = d
77 @COND_UNICODE_1@WXUNICODEFLAG = u
78 @COND_WXUNIV_1@WXUNIVNAME = univ
79 @COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
80 @COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) \
81 @COND_MONOLITHIC_1@ $(EXTRALIBS_XML) $(EXTRALIBS_GUI)
82 @COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
83 @COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
84 @COND_PLATFORM_MAC_0@__bench___mac_setfilecmd = @true
85 @COND_PLATFORM_MAC_1@__bench___mac_setfilecmd = \
86 @COND_PLATFORM_MAC_1@ $(SETFILE) -t APPL bench$(EXEEXT)
87 COND_MONOLITHIC_0___WXLIB_NET_p = \
88 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net-$(WX_RELEASE)$(HOST_SUFFIX)
89 @COND_MONOLITHIC_0@__WXLIB_NET_p = $(COND_MONOLITHIC_0___WXLIB_NET_p)
90 @COND_MONOLITHIC_1@__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
91 @COND_USE_GUI_1@__bench_gui___depname = bench_gui$(EXEEXT)
92 @COND_PLATFORM_MAC_0@__bench_gui___mac_setfilecmd = @true
93 @COND_PLATFORM_MAC_1@__bench_gui___mac_setfilecmd = \
94 @COND_PLATFORM_MAC_1@ $(SETFILE) -t APPL bench_gui$(EXEEXT)
95 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_5 = --define __WXUNIVERSAL__
96 @COND_DEBUG_FLAG_0@__DEBUG_DEFINE_p_5 = --define wxDEBUG_LEVEL=0
97 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_5 = --define wxNO_EXCEPTIONS
98 @COND_USE_RTTI_0@__RTTI_DEFINE_p_5 = --define wxNO_RTTI
99 @COND_USE_THREADS_0@__THREAD_DEFINE_p_5 = --define wxNO_THREADS
100 @COND_SHARED_1@__DLLFLAG_p_5 = --define WXUSINGDLL
101 @COND_TOOLKIT_MSW@__RCDEFDIR_p_1 = --include-dir \
102 @COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
103 @COND_PLATFORM_WIN32_1@__bench_gui___win32rc = bench_gui_sample_rc.o
104 @COND_PLATFORM_OS2_1@__bench_gui_os2_lib_res = \
105 @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
106 @COND_PLATFORM_MACOSX_1_USE_GUI_1@__bench_gui_app_Contents_PkgInfo___depname \
107 @COND_PLATFORM_MACOSX_1_USE_GUI_1@ = bench_gui.app/Contents/PkgInfo
108 @COND_PLATFORM_MACOSX_1_USE_GUI_1@__bench_gui_bundle___depname \
109 @COND_PLATFORM_MACOSX_1_USE_GUI_1@ = bench_gui_bundle
110 @COND_TOOLKIT_MAC@____bench_gui_BUNDLE_TGT_REF_DEP = \
111 @COND_TOOLKIT_MAC@ $(__bench_gui_app_Contents_PkgInfo___depname)
112 @COND_TOOLKIT_OSX_CARBON@____bench_gui_BUNDLE_TGT_REF_DEP \
113 @COND_TOOLKIT_OSX_CARBON@ = $(__bench_gui_app_Contents_PkgInfo___depname)
114 @COND_TOOLKIT_OSX_COCOA@____bench_gui_BUNDLE_TGT_REF_DEP \
115 @COND_TOOLKIT_OSX_COCOA@ = $(__bench_gui_app_Contents_PkgInfo___depname)
116 @COND_TOOLKIT_OSX_IPHONE@____bench_gui_BUNDLE_TGT_REF_DEP \
117 @COND_TOOLKIT_OSX_IPHONE@ = $(__bench_gui_app_Contents_PkgInfo___depname)
118 @COND_TOOLKIT_COCOA@____bench_gui_BUNDLE_TGT_REF_DEP = \
119 @COND_TOOLKIT_COCOA@ $(__bench_gui_app_Contents_PkgInfo___depname)
120 COND_MONOLITHIC_0___WXLIB_CORE_p = \
121 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
122 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
123 @COND_MONOLITHIC_1_USE_STC_1@__LIB_SCINTILLA_IF_MONO_p \
124 @COND_MONOLITHIC_1_USE_STC_1@ = \
125 @COND_MONOLITHIC_1_USE_STC_1@ -lwxscintilla$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
126 @COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@__LIB_TIFF_p \
127 @COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@ = \
128 @COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
129 @COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@__LIB_JPEG_p \
130 @COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@ = \
131 @COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
132 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
133 @COND_DEBUG_FLAG_0@__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
134 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
135 @COND_USE_RTTI_0@__RTTI_DEFINE_p = -DwxNO_RTTI
136 @COND_USE_THREADS_0@__THREAD_DEFINE_p = -DwxNO_THREADS
137 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
138 COND_MONOLITHIC_0___WXLIB_BASE_p = \
139 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
140 @COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
141 COND_MONOLITHIC_1___WXLIB_MONO_p = \
142 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
143 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
144 @COND_USE_GUI_1_wxUSE_LIBPNG_builtin@__LIB_PNG_p \
145 @COND_USE_GUI_1_wxUSE_LIBPNG_builtin@ = \
146 @COND_USE_GUI_1_wxUSE_LIBPNG_builtin@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
147 @COND_wxUSE_ZLIB_builtin@__LIB_ZLIB_p = \
148 @COND_wxUSE_ZLIB_builtin@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
149 COND_wxUSE_REGEX_builtin___LIB_REGEX_p = \
150 -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
151 @COND_wxUSE_REGEX_builtin@__LIB_REGEX_p = $(COND_wxUSE_REGEX_builtin___LIB_REGEX_p)
152 @COND_wxUSE_EXPAT_builtin@__LIB_EXPAT_p = \
153 @COND_wxUSE_EXPAT_builtin@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
157 all: bench$(EXEEXT) data $(__bench_gui___depname) $(__bench_gui_bundle___depname) data-image
163 install-strip: install
166 rm -rf ./.deps ./.pch
169 rm -f bench_gui$(EXEEXT)
173 rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
175 bench$(EXEEXT): $(BENCH_OBJECTS)
176 $(CXX) -o $@ $(BENCH_OBJECTS) -L$(LIBDIRNAME) $(SAMPLES_RPATH_FLAG) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) $(__LIB_ZLIB_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE) $(LIBS)
178 $(__bench___mac_setfilecmd)
182 @for f in htmltest.html; do \
183 if test ! -f ./$$f -a ! -d ./$$f ; \
185 else x=`find $(srcdir)/$$f -newer ./$$f -print` ; \
188 cp -pRf $(srcdir)/$$f . ;; \
192 @COND_USE_GUI_1@bench_gui$(EXEEXT): $(BENCH_GUI_OBJECTS) $(__bench_gui___win32rc)
193 @COND_USE_GUI_1@ $(CXX) -o $@ $(BENCH_GUI_OBJECTS) -L$(LIBDIRNAME) $(SAMPLES_RPATH_FLAG) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(EXTRALIBS_FOR_GUI) $(__LIB_ZLIB_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE) $(LIBS)
195 @COND_USE_GUI_1@ $(__bench_gui___mac_setfilecmd)
197 @COND_PLATFORM_MACOSX_1_USE_GUI_1@bench_gui.app/Contents/PkgInfo: $(__bench_gui___depname) $(top_srcdir)/src/osx/carbon/Info.plist.in $(top_srcdir)/src/osx/carbon/wxmac.icns
198 @COND_PLATFORM_MACOSX_1_USE_GUI_1@ mkdir -p bench_gui.app/Contents
199 @COND_PLATFORM_MACOSX_1_USE_GUI_1@ mkdir -p bench_gui.app/Contents/MacOS
200 @COND_PLATFORM_MACOSX_1_USE_GUI_1@ mkdir -p bench_gui.app/Contents/Resources
201 @COND_PLATFORM_MACOSX_1_USE_GUI_1@
202 @COND_PLATFORM_MACOSX_1_USE_GUI_1@
203 @COND_PLATFORM_MACOSX_1_USE_GUI_1@ sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
204 @COND_PLATFORM_MACOSX_1_USE_GUI_1@ -e "s/EXECUTABLE/bench_gui/" \
205 @COND_PLATFORM_MACOSX_1_USE_GUI_1@ -e "s/VERSION/$(WX_VERSION)/" \
206 @COND_PLATFORM_MACOSX_1_USE_GUI_1@ $(top_srcdir)/src/osx/carbon/Info.plist.in >bench_gui.app/Contents/Info.plist
207 @COND_PLATFORM_MACOSX_1_USE_GUI_1@
208 @COND_PLATFORM_MACOSX_1_USE_GUI_1@
209 @COND_PLATFORM_MACOSX_1_USE_GUI_1@ /bin/echo "APPL????" >bench_gui.app/Contents/PkgInfo
210 @COND_PLATFORM_MACOSX_1_USE_GUI_1@
211 @COND_PLATFORM_MACOSX_1_USE_GUI_1@
212 @COND_PLATFORM_MACOSX_1_USE_GUI_1@ ln -f bench_gui$(EXEEXT) bench_gui.app/Contents/MacOS/bench_gui
213 @COND_PLATFORM_MACOSX_1_USE_GUI_1@
214 @COND_PLATFORM_MACOSX_1_USE_GUI_1@
215 @COND_PLATFORM_MACOSX_1_USE_GUI_1@ cp -f $(top_srcdir)/src/osx/carbon/wxmac.icns bench_gui.app/Contents/Resources/wxmac.icns
217 @COND_PLATFORM_MACOSX_1_USE_GUI_1@bench_gui_bundle: $(____bench_gui_BUNDLE_TGT_REF_DEP)
221 @for f in ../../samples/image/horse.bmp ../../samples/image/horse.jpg ../../samples/image/horse.png ../../samples/image/horse.tif; do \
222 if test ! -f ./$$f -a ! -d ./$$f ; \
224 else x=`find $(srcdir)/$$f -newer ./$$f -print` ; \
227 cp -pRf $(srcdir)/$$f . ;; \
231 bench_bench.o: $(srcdir)/bench.cpp
232 $(CXXC) -c -o $@ $(BENCH_CXXFLAGS) $(srcdir)/bench.cpp
234 bench_datetime.o: $(srcdir)/datetime.cpp
235 $(CXXC) -c -o $@ $(BENCH_CXXFLAGS) $(srcdir)/datetime.cpp
237 bench_htmlpars.o: $(srcdir)/htmlparser/htmlpars.cpp
238 $(CXXC) -c -o $@ $(BENCH_CXXFLAGS) $(srcdir)/htmlparser/htmlpars.cpp
240 bench_htmltag.o: $(srcdir)/htmlparser/htmltag.cpp
241 $(CXXC) -c -o $@ $(BENCH_CXXFLAGS) $(srcdir)/htmlparser/htmltag.cpp
243 bench_ipcclient.o: $(srcdir)/ipcclient.cpp
244 $(CXXC) -c -o $@ $(BENCH_CXXFLAGS) $(srcdir)/ipcclient.cpp
246 bench_log.o: $(srcdir)/log.cpp
247 $(CXXC) -c -o $@ $(BENCH_CXXFLAGS) $(srcdir)/log.cpp
249 bench_mbconv.o: $(srcdir)/mbconv.cpp
250 $(CXXC) -c -o $@ $(BENCH_CXXFLAGS) $(srcdir)/mbconv.cpp
252 bench_strings.o: $(srcdir)/strings.cpp
253 $(CXXC) -c -o $@ $(BENCH_CXXFLAGS) $(srcdir)/strings.cpp
255 bench_tls.o: $(srcdir)/tls.cpp
256 $(CXXC) -c -o $@ $(BENCH_CXXFLAGS) $(srcdir)/tls.cpp
258 bench_printfbench.o: $(srcdir)/printfbench.cpp
259 $(CXXC) -c -o $@ $(BENCH_CXXFLAGS) $(srcdir)/printfbench.cpp
261 bench_gui_sample_rc.o: $(srcdir)/../../samples/sample.rc
262 $(WINDRES) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_5) $(__DEBUG_DEFINE_p_5) $(__EXCEPTIONS_DEFINE_p_5) $(__RTTI_DEFINE_p_5) $(__THREAD_DEFINE_p_5) --include-dir $(srcdir) $(__DLLFLAG_p_5) --include-dir $(srcdir)/../../samples $(__RCDEFDIR_p_1) --include-dir $(top_srcdir)/include
264 bench_gui_bench.o: $(srcdir)/bench.cpp
265 $(CXXC) -c -o $@ $(BENCH_GUI_CXXFLAGS) $(srcdir)/bench.cpp
267 bench_gui_image.o: $(srcdir)/image.cpp
268 $(CXXC) -c -o $@ $(BENCH_GUI_CXXFLAGS) $(srcdir)/image.cpp
271 # Include dependency info, if present:
272 @IF_GNU_MAKE@-include ./.deps/*.d
274 .PHONY: all install uninstall clean distclean data bench_gui_bundle data-image