]> git.saurik.com Git - wxWidgets.git/blob - tests/benchmarks/makefile.gcc
51c36d342708c254b93d1852df6563b0b33d73e8
[wxWidgets.git] / tests / benchmarks / makefile.gcc
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 # =========================================================================
6
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 CPPDEPS = -MT$@ -MF$@.d -MD -MP
16 WX_RELEASE_NODOT = 29
17 COMPILER_PREFIX = gcc
18 OBJS = \
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
22 SETUPHDIR = \
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)
31 BENCH_OBJECTS = \
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 \
37 $(OBJS)\bench_log.o \
38 $(OBJS)\bench_mbconv.o \
39 $(OBJS)\bench_strings.o \
40 $(OBJS)\bench_tls.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)
50 BENCH_GUI_OBJECTS = \
51 $(OBJS)\bench_gui_sample_rc.o \
52 $(OBJS)\bench_gui_bench.o \
53 $(OBJS)\bench_gui_image.o
54
55 ### Conditionally set variables: ###
56
57 ifeq ($(GCC_VERSION),2.95)
58 GCCFLAGS = -fvtable-thunks
59 endif
60 ifeq ($(USE_GUI),0)
61 PORTNAME = base
62 endif
63 ifeq ($(USE_GUI),1)
64 PORTNAME = msw$(TOOLKIT_VERSION)
65 endif
66 ifeq ($(OFFICIAL_BUILD),1)
67 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
68 endif
69 ifeq ($(BUILD),debug)
70 WXDEBUGFLAG = d
71 endif
72 ifeq ($(UNICODE),1)
73 WXUNICODEFLAG = u
74 endif
75 ifeq ($(WXUNIV),1)
76 WXUNIVNAME = univ
77 endif
78 ifeq ($(SHARED),1)
79 WXDLLFLAG = dll
80 endif
81 ifeq ($(SHARED),0)
82 LIBTYPE_SUFFIX = lib
83 endif
84 ifeq ($(SHARED),1)
85 LIBTYPE_SUFFIX = dll
86 endif
87 ifeq ($(MONOLITHIC),0)
88 EXTRALIBS_FOR_BASE =
89 endif
90 ifeq ($(MONOLITHIC),1)
91 EXTRALIBS_FOR_BASE =
92 endif
93 ifeq ($(MONOLITHIC),0)
94 __WXLIB_NET_p = \
95 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
96 endif
97 ifeq ($(MONOLITHIC),1)
98 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
99 endif
100 ifeq ($(USE_GUI),1)
101 __bench_gui___depname = $(OBJS)\bench_gui.exe
102 endif
103 ifeq ($(WXUNIV),1)
104 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
105 endif
106 ifeq ($(DEBUG_FLAG),0)
107 __DEBUG_DEFINE_p_3 = --define wxDEBUG_LEVEL=0
108 endif
109 ifeq ($(BUILD),release)
110 __NDEBUG_DEFINE_p_3 = --define NDEBUG
111 endif
112 ifeq ($(USE_EXCEPTIONS),0)
113 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
114 endif
115 ifeq ($(USE_RTTI),0)
116 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
117 endif
118 ifeq ($(USE_THREADS),0)
119 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
120 endif
121 ifeq ($(UNICODE),0)
122 __UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0
123 endif
124 ifeq ($(UNICODE),1)
125 __UNICODE_DEFINE_p_3 = --define _UNICODE
126 endif
127 ifeq ($(MSLU),1)
128 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
129 endif
130 ifeq ($(USE_CAIRO),1)
131 __CAIRO_INCLUDEDIR_p_1 = --include-dir $(CAIRO_ROOT)/include/cairo
132 endif
133 ifeq ($(SHARED),1)
134 __DLLFLAG_p_3 = --define WXUSINGDLL
135 endif
136 ifeq ($(MONOLITHIC),0)
137 __WXLIB_CORE_p = \
138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
139 endif
140 ifeq ($(USE_GUI),1)
141 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
142 endif
143 ifeq ($(USE_GUI),1)
144 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
145 endif
146 ifeq ($(BUILD),debug)
147 __OPTIMIZEFLAG = -O0
148 endif
149 ifeq ($(BUILD),release)
150 __OPTIMIZEFLAG = -O2
151 endif
152 ifeq ($(USE_RTTI),0)
153 __RTTIFLAG = -fno-rtti
154 endif
155 ifeq ($(USE_RTTI),1)
156 __RTTIFLAG =
157 endif
158 ifeq ($(USE_EXCEPTIONS),0)
159 __EXCEPTIONSFLAG = -fno-exceptions
160 endif
161 ifeq ($(USE_EXCEPTIONS),1)
162 __EXCEPTIONSFLAG =
163 endif
164 ifeq ($(WXUNIV),1)
165 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
166 endif
167 ifeq ($(DEBUG_FLAG),0)
168 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
169 endif
170 ifeq ($(BUILD),release)
171 __NDEBUG_DEFINE_p = -DNDEBUG
172 endif
173 ifeq ($(USE_EXCEPTIONS),0)
174 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
175 endif
176 ifeq ($(USE_RTTI),0)
177 __RTTI_DEFINE_p = -DwxNO_RTTI
178 endif
179 ifeq ($(USE_THREADS),0)
180 __THREAD_DEFINE_p = -DwxNO_THREADS
181 endif
182 ifeq ($(UNICODE),0)
183 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
184 endif
185 ifeq ($(UNICODE),1)
186 __UNICODE_DEFINE_p = -D_UNICODE
187 endif
188 ifeq ($(MSLU),1)
189 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
190 endif
191 ifeq ($(USE_CAIRO),1)
192 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
193 endif
194 ifeq ($(SHARED),1)
195 __DLLFLAG_p = -DWXUSINGDLL
196 endif
197 ifeq ($(MONOLITHIC),0)
198 __WXLIB_BASE_p = \
199 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
200 endif
201 ifeq ($(MONOLITHIC),1)
202 __WXLIB_MONO_p = \
203 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
204 endif
205 ifeq ($(USE_GUI),1)
206 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
207 endif
208 ifeq ($(MSLU),1)
209 __UNICOWS_LIB_p = -lunicows
210 endif
211 ifeq ($(USE_CAIRO),1)
212 __CAIRO_LIB_p = -lcairo
213 endif
214 ifeq ($(USE_CAIRO),1)
215 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
216 endif
217 ifeq ($(BUILD),debug)
218 ifeq ($(DEBUG_INFO),default)
219 __DEBUGINFO = -g
220 endif
221 endif
222 ifeq ($(BUILD),release)
223 ifeq ($(DEBUG_INFO),default)
224 __DEBUGINFO =
225 endif
226 endif
227 ifeq ($(DEBUG_INFO),0)
228 __DEBUGINFO =
229 endif
230 ifeq ($(DEBUG_INFO),1)
231 __DEBUGINFO = -g
232 endif
233 ifeq ($(USE_THREADS),0)
234 __THREADSFLAG =
235 endif
236 ifeq ($(USE_THREADS),1)
237 __THREADSFLAG = -mthreads
238 endif
239
240
241 all: $(OBJS)
242 $(OBJS):
243 -if not exist $(OBJS) mkdir $(OBJS)
244
245 ### Targets: ###
246
247 all: $(OBJS)\bench.exe data $(__bench_gui___depname) data-image
248
249 clean:
250 -if exist $(OBJS)\*.o del $(OBJS)\*.o
251 -if exist $(OBJS)\*.d del $(OBJS)\*.d
252 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
253 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe
254
255 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
256 $(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
257
258 data:
259 if not exist $(OBJS) mkdir $(OBJS)
260 for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
261
262 ifeq ($(USE_GUI),1)
263 $(OBJS)\bench_gui.exe: $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample_rc.o
264 $(CXX) -o $@ $(BENCH_GUI_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_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
265 endif
266
267 data-image:
268 if not exist $(OBJS) mkdir $(OBJS)
269 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)
270
271 $(OBJS)\bench_bench.o: ./bench.cpp
272 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
273
274 $(OBJS)\bench_datetime.o: ./datetime.cpp
275 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
276
277 $(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp
278 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
279
280 $(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp
281 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
282
283 $(OBJS)\bench_ipcclient.o: ./ipcclient.cpp
284 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
285
286 $(OBJS)\bench_log.o: ./log.cpp
287 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
288
289 $(OBJS)\bench_mbconv.o: ./mbconv.cpp
290 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
291
292 $(OBJS)\bench_strings.o: ./strings.cpp
293 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
294
295 $(OBJS)\bench_tls.o: ./tls.cpp
296 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
297
298 $(OBJS)\bench_printfbench.o: ./printfbench.cpp
299 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
300
301 $(OBJS)\bench_gui_sample_rc.o: ./../../samples/sample.rc
302 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
303
304 $(OBJS)\bench_gui_bench.o: ./bench.cpp
305 $(CXX) -c -o $@ $(BENCH_GUI_CXXFLAGS) $(CPPDEPS) $<
306
307 $(OBJS)\bench_gui_image.o: ./image.cpp
308 $(CXX) -c -o $@ $(BENCH_GUI_CXXFLAGS) $(CPPDEPS) $<
309
310 .PHONY: all clean data data-image
311
312
313 SHELL := $(COMSPEC)
314
315 # Dependencies tracking:
316 -include $(OBJS)/*.d