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)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
26 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
27 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
28 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
29 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
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
43 ### Conditionally set variables: ###
45 ifeq ($(GCC_VERSION),2.95)
46 GCCFLAGS = -fvtable-thunks
72 ifeq ($(MONOLITHIC),0)
75 ifeq ($(MONOLITHIC),1)
79 __OPTIMIZEFLAG_2 = -O0
81 ifeq ($(BUILD),release)
82 __OPTIMIZEFLAG_2 = -O2
85 __RTTIFLAG_5 = -fno-rtti
90 ifeq ($(USE_EXCEPTIONS),0)
91 __EXCEPTIONSFLAG_6 = -fno-exceptions
93 ifeq ($(USE_EXCEPTIONS),1)
97 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
99 ifeq ($(DEBUG_FLAG),0)
100 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
102 ifeq ($(BUILD),release)
103 __NDEBUG_DEFINE_p = -DNDEBUG
105 ifeq ($(USE_EXCEPTIONS),0)
106 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
109 __RTTI_DEFINE_p = -DwxNO_RTTI
111 ifeq ($(USE_THREADS),0)
112 __THREAD_DEFINE_p = -DwxNO_THREADS
115 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
118 __UNICODE_DEFINE_p = -D_UNICODE
121 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
123 ifeq ($(USE_CAIRO),1)
124 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
127 __DLLFLAG_p = -DWXUSINGDLL
129 ifeq ($(MONOLITHIC),0)
131 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
133 ifeq ($(MONOLITHIC),0)
135 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
137 ifeq ($(MONOLITHIC),1)
139 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
141 ifeq ($(MONOLITHIC),1)
142 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
145 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
148 __UNICOWS_LIB_p = -lunicows
150 ifeq ($(USE_CAIRO),1)
151 __CAIRO_LIB_p = -lcairo
153 ifeq ($(USE_CAIRO),1)
154 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
156 ifeq ($(BUILD),debug)
157 ifeq ($(DEBUG_INFO),default)
161 ifeq ($(BUILD),release)
162 ifeq ($(DEBUG_INFO),default)
166 ifeq ($(DEBUG_INFO),0)
169 ifeq ($(DEBUG_INFO),1)
172 ifeq ($(USE_THREADS),0)
175 ifeq ($(USE_THREADS),1)
176 __THREADSFLAG = -mthreads
182 -if not exist $(OBJS) mkdir $(OBJS)
186 all: $(OBJS)\bench.exe data
189 -if exist $(OBJS)\*.o del $(OBJS)\*.o
190 -if exist $(OBJS)\*.d del $(OBJS)\*.d
191 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
193 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
194 $(CXX) -o $@ $(BENCH_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES_p) $(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
197 if not exist $(OBJS) mkdir $(OBJS)
198 for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
200 $(OBJS)\bench_bench.o: ./bench.cpp
201 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
203 $(OBJS)\bench_datetime.o: ./datetime.cpp
204 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
206 $(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp
207 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
209 $(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp
210 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
212 $(OBJS)\bench_ipcclient.o: ./ipcclient.cpp
213 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
215 $(OBJS)\bench_log.o: ./log.cpp
216 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
218 $(OBJS)\bench_mbconv.o: ./mbconv.cpp
219 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
221 $(OBJS)\bench_strings.o: ./strings.cpp
222 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
224 $(OBJS)\bench_tls.o: ./tls.cpp
225 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
227 $(OBJS)\bench_printfbench.o: ./printfbench.cpp
228 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
230 .PHONY: all clean data
235 # Dependencies tracking: