]> git.saurik.com Git - wxWidgets.git/blame_incremental - tests/benchmarks/makefile.gcc
Extract compiler-specific macro definitions in a new wx/compiler.h.
[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 = 29\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
141__LIB_SCINTILLA_IF_MONO_p = -lwxscintilla$(WXDEBUGFLAG)\r
142endif\r
143ifeq ($(USE_GUI),1)\r
144__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
145endif\r
146ifeq ($(USE_GUI),1)\r
147__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
148endif\r
149ifeq ($(BUILD),debug)\r
150__OPTIMIZEFLAG = -O0\r
151endif\r
152ifeq ($(BUILD),release)\r
153__OPTIMIZEFLAG = -O2\r
154endif\r
155ifeq ($(USE_RTTI),0)\r
156__RTTIFLAG = -fno-rtti\r
157endif\r
158ifeq ($(USE_RTTI),1)\r
159__RTTIFLAG = \r
160endif\r
161ifeq ($(USE_EXCEPTIONS),0)\r
162__EXCEPTIONSFLAG = -fno-exceptions\r
163endif\r
164ifeq ($(USE_EXCEPTIONS),1)\r
165__EXCEPTIONSFLAG = \r
166endif\r
167ifeq ($(WXUNIV),1)\r
168__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
169endif\r
170ifeq ($(DEBUG_FLAG),0)\r
171__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
172endif\r
173ifeq ($(BUILD),release)\r
174__NDEBUG_DEFINE_p = -DNDEBUG\r
175endif\r
176ifeq ($(USE_EXCEPTIONS),0)\r
177__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
178endif\r
179ifeq ($(USE_RTTI),0)\r
180__RTTI_DEFINE_p = -DwxNO_RTTI\r
181endif\r
182ifeq ($(USE_THREADS),0)\r
183__THREAD_DEFINE_p = -DwxNO_THREADS\r
184endif\r
185ifeq ($(UNICODE),0)\r
186__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
187endif\r
188ifeq ($(UNICODE),1)\r
189__UNICODE_DEFINE_p = -D_UNICODE\r
190endif\r
191ifeq ($(MSLU),1)\r
192__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
193endif\r
194ifeq ($(USE_CAIRO),1)\r
195____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
196endif\r
197ifeq ($(SHARED),1)\r
198__DLLFLAG_p = -DWXUSINGDLL\r
199endif\r
200ifeq ($(MONOLITHIC),0)\r
201__WXLIB_BASE_p = \\r
202 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
203endif\r
204ifeq ($(MONOLITHIC),1)\r
205__WXLIB_MONO_p = \\r
206 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
207endif\r
208ifeq ($(USE_GUI),1)\r
209__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
210endif\r
211ifeq ($(MSLU),1)\r
212__UNICOWS_LIB_p = -lunicows\r
213endif\r
214ifeq ($(USE_CAIRO),1)\r
215__CAIRO_LIB_p = -lcairo\r
216endif\r
217ifeq ($(USE_CAIRO),1)\r
218____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
219endif\r
220ifeq ($(BUILD),debug)\r
221ifeq ($(DEBUG_INFO),default)\r
222__DEBUGINFO = -g\r
223endif\r
224endif\r
225ifeq ($(BUILD),release)\r
226ifeq ($(DEBUG_INFO),default)\r
227__DEBUGINFO = \r
228endif\r
229endif\r
230ifeq ($(DEBUG_INFO),0)\r
231__DEBUGINFO = \r
232endif\r
233ifeq ($(DEBUG_INFO),1)\r
234__DEBUGINFO = -g\r
235endif\r
236ifeq ($(USE_THREADS),0)\r
237__THREADSFLAG = \r
238endif\r
239ifeq ($(USE_THREADS),1)\r
240__THREADSFLAG = -mthreads\r
241endif\r
242\r
243\r
244all: $(OBJS)\r
245$(OBJS):\r
246 -if not exist $(OBJS) mkdir $(OBJS)\r
247\r
248### Targets: ###\r
249\r
250all: $(OBJS)\bench.exe data $(__bench_gui___depname) data-image\r
251\r
252clean: \r
253 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
254 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
255 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r
256 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe\r
257\r
258$(OBJS)\bench.exe: $(BENCH_OBJECTS)\r
259 $(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
260\r
261data: \r
262 if not exist $(OBJS) mkdir $(OBJS)\r
263 for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r
264\r
265ifeq ($(USE_GUI),1)\r
266$(OBJS)\bench_gui.exe: $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample_rc.o\r
267 $(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
268endif\r
269\r
270data-image: \r
271 if not exist $(OBJS) mkdir $(OBJS)\r
272 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
273\r
274$(OBJS)\bench_bench.o: ./bench.cpp\r
275 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
276\r
277$(OBJS)\bench_datetime.o: ./datetime.cpp\r
278 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
279\r
280$(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp\r
281 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
282\r
283$(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp\r
284 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
285\r
286$(OBJS)\bench_ipcclient.o: ./ipcclient.cpp\r
287 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
288\r
289$(OBJS)\bench_log.o: ./log.cpp\r
290 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
291\r
292$(OBJS)\bench_mbconv.o: ./mbconv.cpp\r
293 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
294\r
295$(OBJS)\bench_strings.o: ./strings.cpp\r
296 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
297\r
298$(OBJS)\bench_tls.o: ./tls.cpp\r
299 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
300\r
301$(OBJS)\bench_printfbench.o: ./printfbench.cpp\r
302 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
303\r
304$(OBJS)\bench_gui_sample_rc.o: ./../../samples/sample.rc\r
305 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
306\r
307$(OBJS)\bench_gui_bench.o: ./bench.cpp\r
308 $(CXX) -c -o $@ $(BENCH_GUI_CXXFLAGS) $(CPPDEPS) $<\r
309\r
310$(OBJS)\bench_gui_image.o: ./image.cpp\r
311 $(CXX) -c -o $@ $(BENCH_GUI_CXXFLAGS) $(CPPDEPS) $<\r
312\r
313.PHONY: all clean data data-image\r
314\r
315\r
316SHELL := $(COMSPEC)\r
317\r
318# Dependencies tracking:\r
319-include $(OBJS)/*.d\r