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.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD -MP
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24 BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
25 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
28 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
29 -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
30 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
32 $(OBJS)\bench_bench.o \
33 $(OBJS)\bench_datetime.o \
34 $(OBJS)\bench_htmlpars.o \
35 $(OBJS)\bench_htmltag.o \
36 $(OBJS)\bench_ipcclient.o \
38 $(OBJS)\bench_mbconv.o \
39 $(OBJS)\bench_strings.o \
41 $(OBJS)\bench_printfbench.o
42 BENCH_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
43 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
44 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
45 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
46 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
47 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) \
48 -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
49 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
51 $(OBJS)\bench_gui_sample_rc.o \
52 $(OBJS)\bench_gui_bench.o \
53 $(OBJS)\bench_gui_image.o
55 ### Conditionally set variables: ###
57 ifeq ($(GCC_VERSION),2.95)
58 GCCFLAGS = -fvtable-thunks
64 PORTNAME = msw$(TOOLKIT_VERSION)
66 ifeq ($(OFFICIAL_BUILD),1)
67 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
87 ifeq ($(MONOLITHIC),0)
90 ifeq ($(MONOLITHIC),1)
93 ifeq ($(MONOLITHIC),0)
95 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
97 ifeq ($(MONOLITHIC),1)
98 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
101 __bench_gui___depname = $(OBJS)\bench_gui.exe
104 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
106 ifeq ($(DEBUG_FLAG),0)
107 __DEBUG_DEFINE_p_3 = --define wxDEBUG_LEVEL=0
109 ifeq ($(BUILD),release)
110 __NDEBUG_DEFINE_p_3 = --define NDEBUG
112 ifeq ($(USE_EXCEPTIONS),0)
113 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
116 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
118 ifeq ($(USE_THREADS),0)
119 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
122 __UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0
125 __UNICODE_DEFINE_p_3 = --define _UNICODE
128 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
130 ifeq ($(USE_CAIRO),1)
131 __CAIRO_INCLUDEDIR_p_1 = --include-dir $(CAIRO_ROOT)/include/cairo
134 __DLLFLAG_p_3 = --define WXUSINGDLL
136 ifeq ($(MONOLITHIC),0)
138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
140 ifeq ($(MONOLITHIC),1)
142 __LIB_SCINTILLA_IF_MONO_p = -lwxscintilla$(WXDEBUGFLAG)
146 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
149 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
151 ifeq ($(BUILD),debug)
154 ifeq ($(BUILD),release)
158 __RTTIFLAG = -fno-rtti
163 ifeq ($(USE_EXCEPTIONS),0)
164 __EXCEPTIONSFLAG = -fno-exceptions
166 ifeq ($(USE_EXCEPTIONS),1)
170 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
172 ifeq ($(DEBUG_FLAG),0)
173 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
175 ifeq ($(BUILD),release)
176 __NDEBUG_DEFINE_p = -DNDEBUG
178 ifeq ($(USE_EXCEPTIONS),0)
179 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
182 __RTTI_DEFINE_p = -DwxNO_RTTI
184 ifeq ($(USE_THREADS),0)
185 __THREAD_DEFINE_p = -DwxNO_THREADS
188 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
191 __UNICODE_DEFINE_p = -D_UNICODE
194 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
196 ifeq ($(USE_CAIRO),1)
197 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
200 __DLLFLAG_p = -DWXUSINGDLL
202 ifeq ($(MONOLITHIC),0)
204 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
206 ifeq ($(MONOLITHIC),1)
208 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
211 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
214 __UNICOWS_LIB_p = -lunicows
216 ifeq ($(USE_CAIRO),1)
217 __CAIRO_LIB_p = -lcairo
219 ifeq ($(USE_CAIRO),1)
220 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
222 ifeq ($(BUILD),debug)
223 ifeq ($(DEBUG_INFO),default)
227 ifeq ($(BUILD),release)
228 ifeq ($(DEBUG_INFO),default)
232 ifeq ($(DEBUG_INFO),0)
235 ifeq ($(DEBUG_INFO),1)
238 ifeq ($(USE_THREADS),0)
241 ifeq ($(USE_THREADS),1)
242 __THREADSFLAG = -mthreads
248 -if not exist $(OBJS) mkdir $(OBJS)
252 all: $(OBJS)\bench.exe data $(__bench_gui___depname) data-image
255 -if exist $(OBJS)\*.o del $(OBJS)\*.o
256 -if exist $(OBJS)\*.d del $(OBJS)\*.d
257 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
258 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe
260 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
261 $(CXX) -o $@ $(BENCH_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
264 if not exist $(OBJS) mkdir $(OBJS)
265 for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
268 $(OBJS)\bench_gui.exe: $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample_rc.o
269 $(CXX) -o $@ $(BENCH_GUI_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
273 if not exist $(OBJS) mkdir $(OBJS)
274 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)
276 $(OBJS)\bench_bench.o: ./bench.cpp
277 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
279 $(OBJS)\bench_datetime.o: ./datetime.cpp
280 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
282 $(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp
283 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
285 $(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp
286 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
288 $(OBJS)\bench_ipcclient.o: ./ipcclient.cpp
289 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
291 $(OBJS)\bench_log.o: ./log.cpp
292 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
294 $(OBJS)\bench_mbconv.o: ./mbconv.cpp
295 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
297 $(OBJS)\bench_strings.o: ./strings.cpp
298 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
300 $(OBJS)\bench_tls.o: ./tls.cpp
301 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
303 $(OBJS)\bench_printfbench.o: ./printfbench.cpp
304 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
306 $(OBJS)\bench_gui_sample_rc.o: ./../../samples/sample.rc
307 windres --use-temp-file -i$< -o$@ --define __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) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p_1) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../samples --define NOPCH
309 $(OBJS)\bench_gui_bench.o: ./bench.cpp
310 $(CXX) -c -o $@ $(BENCH_GUI_CXXFLAGS) $(CPPDEPS) $<
312 $(OBJS)\bench_gui_image.o: ./image.cpp
313 $(CXX) -c -o $@ $(BENCH_GUI_CXXFLAGS) $(CPPDEPS) $<
315 .PHONY: all clean data data-image
320 # Dependencies tracking: