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