# =========================================================================\r
# This makefile was generated by\r
-# Bakefile 0.2.8 (http://www.bakefile.org)\r
+# Bakefile 0.2.9 (http://www.bakefile.org)\r
# Do not modify, all changes will be overwritten!\r
# =========================================================================\r
\r
\r
### Conditionally set variables: ###\r
\r
+WIN32_TOOLKIT_LOWERCASE =
+!ifeq TOOLKIT GTK
+WIN32_TOOLKIT_LOWERCASE = gtk
+!endif
+!ifeq TOOLKIT MSW
+WIN32_TOOLKIT_LOWERCASE = msw
+!endif
PORTNAME =\r
!ifeq USE_GUI 0\r
PORTNAME = base\r
!endif\r
!ifeq USE_GUI 1\r
-PORTNAME = msw\r
+PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
+!endif
+WXBASEPORT =
+!ifeq TOOLKIT MAC
+WXBASEPORT = _carbon
+!endif
+COMPILER_VERSION =
+!ifeq OFFICIAL_BUILD 1
+COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
!endif\r
WXDEBUGFLAG =\r
!ifeq BUILD debug\r
EXTRALIBS_FOR_BASE = \r
!endif\r
!ifeq MONOLITHIC 1\r
-EXTRALIBS_FOR_BASE = \r
-!endif\r
-__DEBUGINFO_0 =\r
+EXTRALIBS_FOR_BASE = \r
+!endif\r
+LIB_GTK =
+!ifeq TOOLKIT GTK
+!ifeq TOOLKIT_VERSION 2
+LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib &
+ gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib &
+ glib-2.0.lib
+!endif
+!endif
+__WXLIB_NET_p =
+!ifeq MONOLITHIC 0
+__WXLIB_NET_p = &
+ wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
+!endif
+__LIB_PNG_IF_MONO_p =
+!ifeq MONOLITHIC 1
+__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
+!endif
+__bench_gui___depname =
+!ifeq USE_GUI 1
+__bench_gui___depname = $(OBJS)\bench_gui.exe
+!endif
+__WXLIB_CORE_p =
+!ifeq MONOLITHIC 0
+__WXLIB_CORE_p = &
+ wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
+!endif
+__LIB_TIFF_p =
+!ifeq USE_GUI 1
+__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
+!endif
+__LIB_JPEG_p =
+!ifeq USE_GUI 1
+__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
+!endif
+__DEBUGINFO =
!ifeq BUILD debug\r
!ifeq DEBUG_INFO default\r
-__DEBUGINFO_0 = -d2\r
+__DEBUGINFO = -d2
!endif\r
!endif\r
!ifeq BUILD release\r
!ifeq DEBUG_INFO default\r
-__DEBUGINFO_0 = -d0\r
+__DEBUGINFO = -d0
!endif\r
!endif\r
!ifeq DEBUG_INFO 0\r
-__DEBUGINFO_0 = -d0\r
+__DEBUGINFO = -d0
!endif\r
!ifeq DEBUG_INFO 1\r
-__DEBUGINFO_0 = -d2\r
+__DEBUGINFO = -d2
!endif\r
__DEBUGINFO_1 =\r
!ifeq BUILD debug\r
!ifeq DEBUG_INFO 1\r
__DEBUGINFO_1 = debug all\r
!endif\r
-__OPTIMIZEFLAG_2 =\r
+__OPTIMIZEFLAG =
!ifeq BUILD debug\r
-__OPTIMIZEFLAG_2 = -od\r
+__OPTIMIZEFLAG = -od
!endif\r
!ifeq BUILD release\r
-__OPTIMIZEFLAG_2 = -ot -ox\r
+__OPTIMIZEFLAG = -ot -ox
!endif\r
-__THREADSFLAG_5 =\r
+__THREADSFLAG =
!ifeq USE_THREADS 0\r
-__THREADSFLAG_5 = \r
+__THREADSFLAG =
!endif\r
!ifeq USE_THREADS 1\r
-__THREADSFLAG_5 = -bm\r
+__THREADSFLAG = -bm
!endif\r
-__RUNTIME_LIBS_6 =\r
+__RUNTIME_LIBS =
!ifeq RUNTIME_LIBS dynamic\r
-__RUNTIME_LIBS_6 = -br\r
+__RUNTIME_LIBS = -br
!endif\r
!ifeq RUNTIME_LIBS static\r
-__RUNTIME_LIBS_6 = \r
+__RUNTIME_LIBS =
!endif\r
-__RTTIFLAG_7 =\r
+__RTTIFLAG =
!ifeq USE_RTTI 0\r
-__RTTIFLAG_7 = \r
+__RTTIFLAG =
!endif\r
!ifeq USE_RTTI 1\r
-__RTTIFLAG_7 = -xr\r
+__RTTIFLAG = -xr
!endif\r
-__EXCEPTIONSFLAG_8 =\r
+__EXCEPTIONSFLAG =
!ifeq USE_EXCEPTIONS 0\r
-__EXCEPTIONSFLAG_8 = \r
+__EXCEPTIONSFLAG =
!endif\r
!ifeq USE_EXCEPTIONS 1\r
-__EXCEPTIONSFLAG_8 = -xs\r
+__EXCEPTIONSFLAG = -xs
+!endif
+__WXLIB_BASE_p =
+!ifeq MONOLITHIC 0
+__WXLIB_BASE_p = &
+ wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
+!endif
+__WXLIB_MONO_p =
+!ifeq MONOLITHIC 1
+__WXLIB_MONO_p = &
+ wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
+!endif
+__LIB_PNG_p =
+!ifeq USE_GUI 1
+__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
+!endif
+__CAIRO_LIB_p =
+!ifeq USE_CAIRO 1
+__CAIRO_LIB_p = cairo.lib
+!endif
+____CAIRO_LIBDIR_FILENAMES =
+!ifeq USE_CAIRO 1
+____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
!endif\r
__WXUNIV_DEFINE_p =\r
!ifeq WXUNIV 1\r
!ifeq UNICODE 1\r
__UNICODE_DEFINE_p = -d_UNICODE\r
!endif\r
-__GFXCTX_DEFINE_p =\r
-!ifeq USE_GDIPLUS 1\r
-__GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1\r
-!endif\r
-____CAIRO_INCLUDEDIR_FILENAMES_p =\r
+____CAIRO_INCLUDEDIR_FILENAMES =
!ifeq USE_CAIRO 1\r
-____CAIRO_INCLUDEDIR_FILENAMES_p = -i=$(CAIRO_ROOT)\include\cairo\r
+____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
!endif\r
__DLLFLAG_p =\r
!ifeq SHARED 1\r
__DLLFLAG_p = -dWXUSINGDLL\r
!endif\r
-__WXLIB_NET_p =\r
-!ifeq MONOLITHIC 0\r
-__WXLIB_NET_p = &\r
- wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib\r
-!endif\r
-__WXLIB_BASE_p =\r
-!ifeq MONOLITHIC 0\r
-__WXLIB_BASE_p = &\r
- wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
-!endif\r
-__WXLIB_MONO_p =\r
-!ifeq MONOLITHIC 1\r
-__WXLIB_MONO_p = &\r
- wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
-!endif\r
-__GDIPLUS_LIB_p =\r
-!ifeq USE_GDIPLUS 1\r
-__GDIPLUS_LIB_p = gdiplus.lib\r
-!endif\r
-__CAIRO_LIB_p =\r
-!ifeq USE_CAIRO 1\r
-__CAIRO_LIB_p = cairo.lib\r
-!endif\r
-____CAIRO_LIBDIR_FILENAMES_p =\r
-!ifeq USE_CAIRO 1\r
-____CAIRO_LIBDIR_FILENAMES_p = libpath $(CAIRO_ROOT)\lib\r
-!endif\r
\r
### Variables: ###\r
\r
WX_RELEASE_NODOT = 29\r
COMPILER_PREFIX = wat\r
OBJS = &\r
- $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
-LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r
+ $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
+LIBDIRNAME = &
+ .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
SETUPHDIR = &\r
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
-BENCH_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &\r
- $(__RUNTIME_LIBS_6) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
- $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &\r
- $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) &\r
- -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) -wx &\r
- -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 &\r
- $(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) $(CXXFLAGS)\r
+BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
+ $(__RUNTIME_LIBS) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) &
+ $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) &
+ $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) &
+ -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx &
+ -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 &
+ $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
BENCH_OBJECTS = &\r
$(OBJS)\bench_bench.obj &\r
+ $(OBJS)\bench_datetime.obj &\r
$(OBJS)\bench_htmlpars.obj &\r
$(OBJS)\bench_htmltag.obj &\r
$(OBJS)\bench_ipcclient.obj &\r
+ $(OBJS)\bench_log.obj &\r
$(OBJS)\bench_mbconv.obj &\r
$(OBJS)\bench_strings.obj &\r
$(OBJS)\bench_tls.obj &\r
$(OBJS)\bench_printfbench.obj\r
+BENCH_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
+ $(__RUNTIME_LIBS) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) &
+ $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) &
+ $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) &
+ -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx &
+ -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples &
+ -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
+BENCH_GUI_OBJECTS = &
+ $(OBJS)\bench_gui_bench.obj &
+ $(OBJS)\bench_gui_image.obj
\r
\r
all : $(OBJS)\r
\r
### Targets: ###\r
\r
-all : .SYMBOLIC $(OBJS)\bench.exe data\r
+all : .SYMBOLIC $(OBJS)\bench.exe data $(__bench_gui___depname) data-image
\r
clean : .SYMBOLIC \r
-if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
-if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r
-if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r
-if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r
+ -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe
\r
$(OBJS)\bench.exe : $(BENCH_OBJECTS)\r
@%create $(OBJS)\bench.lbc\r
@%append $(OBJS)\bench.lbc option quiet\r
@%append $(OBJS)\bench.lbc name $^@\r
@%append $(OBJS)\bench.lbc option caseexact\r
- @%append $(OBJS)\bench.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS)\r
+ @%append $(OBJS)\bench.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
@for %i in ($(BENCH_OBJECTS)) do @%append $(OBJS)\bench.lbc file %i\r
- @for %i in ( $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__GDIPLUS_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) do @%append $(OBJS)\bench.lbc library %i\r
+ @for %i in ( $(__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) $(__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) do @%append $(OBJS)\bench.lbc library %i\r
@%append $(OBJS)\bench.lbc\r
@for %i in () do @%append $(OBJS)\bench.lbc option stack=%i\r
wlink @$(OBJS)\bench.lbc\r
if not exist $(OBJS) mkdir $(OBJS)\r
for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)\r
\r
+!ifeq USE_GUI 1
+$(OBJS)\bench_gui.exe : $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample.res
+ @%create $(OBJS)\bench_gui.lbc
+ @%append $(OBJS)\bench_gui.lbc option quiet
+ @%append $(OBJS)\bench_gui.lbc name $^@
+ @%append $(OBJS)\bench_gui.lbc option caseexact
+ @%append $(OBJS)\bench_gui.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
+ @for %i in ($(BENCH_GUI_OBJECTS)) do @%append $(OBJS)\bench_gui.lbc file %i
+ @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__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) do @%append $(OBJS)\bench_gui.lbc library %i
+ @%append $(OBJS)\bench_gui.lbc option resource=$(OBJS)\bench_gui_sample.res
+ @for %i in () do @%append $(OBJS)\bench_gui.lbc option stack=%i
+ wlink @$(OBJS)\bench_gui.lbc
+!endif
+
+data-image : .SYMBOLIC
+ if not exist $(OBJS) mkdir $(OBJS)
+ 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)
+
$(OBJS)\bench_bench.obj : .AUTODEPEND .\bench.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
\r
+$(OBJS)\bench_datetime.obj : .AUTODEPEND .\datetime.cpp\r
+ $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
+\r
$(OBJS)\bench_htmlpars.obj : .AUTODEPEND .\htmlparser\htmlpars.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
\r
$(OBJS)\bench_ipcclient.obj : .AUTODEPEND .\ipcclient.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
\r
+$(OBJS)\bench_log.obj : .AUTODEPEND .\log.cpp\r
+ $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
+\r
$(OBJS)\bench_mbconv.obj : .AUTODEPEND .\mbconv.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
\r
$(OBJS)\bench_printfbench.obj : .AUTODEPEND .\printfbench.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
\r
+$(OBJS)\bench_gui_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
+ wrc -q -ad -bt=nt -r -fo=$^@ -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<
+
+$(OBJS)\bench_gui_bench.obj : .AUTODEPEND .\bench.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<
+
+$(OBJS)\bench_gui_image.obj : .AUTODEPEND .\image.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<