1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.5 (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) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
28 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
29 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
31 $(OBJS)\bench_bench.o \
32 $(OBJS)\bench_htmlpars.o \
33 $(OBJS)\bench_htmltag.o \
34 $(OBJS)\bench_ipcclient.o \
35 $(OBJS)\bench_mbconv.o \
36 $(OBJS)\bench_strings.o \
39 ### Conditionally set variables: ###
41 ifeq ($(GCC_VERSION),2.95)
42 GCCFLAGS = -fvtable-thunks
51 ifeq ($(DEBUG_FLAG),default)
55 ifeq ($(DEBUG_FLAG),1)
73 ifeq ($(MONOLITHIC),0)
76 ifeq ($(MONOLITHIC),1)
80 __OPTIMIZEFLAG_2 = -O0
82 ifeq ($(BUILD),release)
83 __OPTIMIZEFLAG_2 = -O2
86 __RTTIFLAG_5 = -fno-rtti
91 ifeq ($(USE_EXCEPTIONS),0)
92 __EXCEPTIONSFLAG_6 = -fno-exceptions
94 ifeq ($(USE_EXCEPTIONS),1)
98 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
100 ifeq ($(BUILD),debug)
101 ifeq ($(DEBUG_FLAG),default)
102 __DEBUG_DEFINE_p = -D__WXDEBUG__
105 ifeq ($(DEBUG_FLAG),1)
106 __DEBUG_DEFINE_p = -D__WXDEBUG__
108 ifeq ($(USE_EXCEPTIONS),0)
109 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
112 __RTTI_DEFINE_p = -DwxNO_RTTI
114 ifeq ($(USE_THREADS),0)
115 __THREAD_DEFINE_p = -DwxNO_THREADS
118 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
121 __UNICODE_DEFINE_p = -D_UNICODE
124 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
126 ifeq ($(USE_GDIPLUS),1)
127 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
130 __DLLFLAG_p = -DWXUSINGDLL
132 ifeq ($(MONOLITHIC),0)
134 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
136 ifeq ($(MONOLITHIC),0)
138 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
140 ifeq ($(MONOLITHIC),1)
142 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
145 __UNICOWS_LIB_p = -lunicows
147 ifeq ($(USE_GDIPLUS),1)
148 __GDIPLUS_LIB_p = -lgdiplus
150 ifeq ($(BUILD),debug)
151 ifeq ($(DEBUG_INFO),default)
155 ifeq ($(BUILD),release)
156 ifeq ($(DEBUG_INFO),default)
160 ifeq ($(DEBUG_INFO),0)
163 ifeq ($(DEBUG_INFO),1)
166 ifeq ($(USE_THREADS),0)
169 ifeq ($(USE_THREADS),1)
170 __THREADSFLAG = -mthreads
176 -if not exist $(OBJS) mkdir $(OBJS)
180 all: $(OBJS)\bench.exe data
183 -if exist $(OBJS)\*.o del $(OBJS)\*.o
184 -if exist $(OBJS)\*.d del $(OBJS)\*.d
185 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
187 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
188 $(CXX) -o $@ $(BENCH_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(LDFLAGS) $(__WXLIB_BASE_p) $(__WXLIB_NET_p) $(__WXLIB_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
191 if not exist $(OBJS) mkdir $(OBJS)
192 for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
194 $(OBJS)\bench_bench.o: ./bench.cpp
195 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
197 $(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp
198 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
200 $(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp
201 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
203 $(OBJS)\bench_ipcclient.o: ./ipcclient.cpp
204 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
206 $(OBJS)\bench_mbconv.o: ./mbconv.cpp
207 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
209 $(OBJS)\bench_strings.o: ./strings.cpp
210 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
212 $(OBJS)\bench_tls.o: ./tls.cpp
213 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
215 .PHONY: all clean data
220 # Dependencies tracking: