]> git.saurik.com Git - wxWidgets.git/blame_incremental - tests/benchmarks/makefile.gcc
Really disable wxAny tests under wxOSX.
[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)
20LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
24BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r
25 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
28 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
29 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \\r
30 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \
31 $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
32BENCH_OBJECTS = \\r
33 $(OBJS)\bench_bench.o \\r
34 $(OBJS)\bench_datetime.o \\r
35 $(OBJS)\bench_htmlpars.o \\r
36 $(OBJS)\bench_htmltag.o \\r
37 $(OBJS)\bench_ipcclient.o \\r
38 $(OBJS)\bench_log.o \\r
39 $(OBJS)\bench_mbconv.o \\r
40 $(OBJS)\bench_strings.o \\r
41 $(OBJS)\bench_tls.o \\r
42 $(OBJS)\bench_printfbench.o\r
43\r
44### Conditionally set variables: ###\r
45\r
46ifeq ($(TOOLKIT),GTK)
47WIN32_TOOLKIT_LOWERCASE = gtk
48endif
49ifeq ($(TOOLKIT),MSW)
50WIN32_TOOLKIT_LOWERCASE = msw
51endif
52ifeq ($(GCC_VERSION),2.95)\r
53GCCFLAGS = -fvtable-thunks\r
54endif\r
55ifeq ($(USE_GUI),0)\r
56PORTNAME = base\r
57endif\r
58ifeq ($(USE_GUI),1)\r
59PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
60endif
61ifeq ($(TOOLKIT),MAC)
62WXBASEPORT = _carbon
63endif
64ifeq ($(OFFICIAL_BUILD),1)
65COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
66endif\r
67ifeq ($(BUILD),debug)\r
68WXDEBUGFLAG = d\r
69endif\r
70ifeq ($(UNICODE),1)\r
71WXUNICODEFLAG = u\r
72endif\r
73ifeq ($(WXUNIV),1)\r
74WXUNIVNAME = univ\r
75endif\r
76ifeq ($(SHARED),1)\r
77WXDLLFLAG = dll\r
78endif\r
79ifeq ($(SHARED),0)\r
80LIBTYPE_SUFFIX = lib\r
81endif\r
82ifeq ($(SHARED),1)\r
83LIBTYPE_SUFFIX = dll\r
84endif\r
85ifeq ($(MONOLITHIC),0)\r
86EXTRALIBS_FOR_BASE = \r
87endif\r
88ifeq ($(MONOLITHIC),1)\r
89EXTRALIBS_FOR_BASE = \r
90endif\r
91ifeq ($(TOOLKIT),GTK)
92CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
93endif
94ifeq ($(BUILD),debug)\r
95__OPTIMIZEFLAG_2 = -O0\r
96endif\r
97ifeq ($(BUILD),release)\r
98__OPTIMIZEFLAG_2 = -O2\r
99endif\r
100ifeq ($(USE_RTTI),0)\r
101__RTTIFLAG_5 = -fno-rtti\r
102endif\r
103ifeq ($(USE_RTTI),1)\r
104__RTTIFLAG_5 = \r
105endif\r
106ifeq ($(USE_EXCEPTIONS),0)\r
107__EXCEPTIONSFLAG_6 = -fno-exceptions\r
108endif\r
109ifeq ($(USE_EXCEPTIONS),1)\r
110__EXCEPTIONSFLAG_6 = \r
111endif\r
112ifeq ($(WXUNIV),1)\r
113__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
114endif\r
115ifeq ($(DEBUG_FLAG),0)\r
116__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
117endif\r
118ifeq ($(BUILD),release)\r
119__NDEBUG_DEFINE_p = -DNDEBUG\r
120endif\r
121ifeq ($(USE_EXCEPTIONS),0)\r
122__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
123endif\r
124ifeq ($(USE_RTTI),0)\r
125__RTTI_DEFINE_p = -DwxNO_RTTI\r
126endif\r
127ifeq ($(USE_THREADS),0)\r
128__THREAD_DEFINE_p = -DwxNO_THREADS\r
129endif\r
130ifeq ($(UNICODE),0)\r
131__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
132endif\r
133ifeq ($(UNICODE),1)\r
134__UNICODE_DEFINE_p = -D_UNICODE\r
135endif\r
136ifeq ($(MSLU),1)\r
137__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
138endif\r
139ifeq ($(USE_CAIRO),1)\r
140____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
141endif\r
142ifeq ($(SHARED),1)\r
143__DLLFLAG_p = -DWXUSINGDLL\r
144endif\r
145ifeq ($(MONOLITHIC),0)\r
146__WXLIB_NET_p = \\r
147 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
148endif\r
149ifeq ($(MONOLITHIC),0)\r
150__WXLIB_BASE_p = \\r
151 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
152endif\r
153ifeq ($(MONOLITHIC),1)\r
154__WXLIB_MONO_p = \\r
155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
156endif\r
157ifeq ($(MONOLITHIC),1)\r
158__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r
159endif\r
160ifeq ($(USE_GUI),1)\r
161__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
162endif\r
163ifeq ($(MSLU),1)\r
164__UNICOWS_LIB_p = -lunicows\r
165endif\r
166ifeq ($(USE_CAIRO),1)\r
167__CAIRO_LIB_p = -lcairo\r
168endif\r
169ifeq ($(USE_CAIRO),1)\r
170____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
171endif\r
172ifeq ($(BUILD),debug)\r
173ifeq ($(DEBUG_INFO),default)\r
174__DEBUGINFO = -g\r
175endif\r
176endif\r
177ifeq ($(BUILD),release)\r
178ifeq ($(DEBUG_INFO),default)\r
179__DEBUGINFO = \r
180endif\r
181endif\r
182ifeq ($(DEBUG_INFO),0)\r
183__DEBUGINFO = \r
184endif\r
185ifeq ($(DEBUG_INFO),1)\r
186__DEBUGINFO = -g\r
187endif\r
188ifeq ($(USE_THREADS),0)\r
189__THREADSFLAG = \r
190endif\r
191ifeq ($(USE_THREADS),1)\r
192__THREADSFLAG = -mthreads\r
193endif\r
194\r
195\r
196all: $(OBJS)\r
197$(OBJS):\r
198 -if not exist $(OBJS) mkdir $(OBJS)\r
199\r
200### Targets: ###\r
201\r
202all: $(OBJS)\bench.exe data\r
203\r
204clean: \r
205 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
206 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
207 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r
208\r
209$(OBJS)\bench.exe: $(BENCH_OBJECTS)\r
210 $(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\r
211\r
212data: \r
213 if not exist $(OBJS) mkdir $(OBJS)\r
214 for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r
215\r
216$(OBJS)\bench_bench.o: ./bench.cpp\r
217 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
218\r
219$(OBJS)\bench_datetime.o: ./datetime.cpp\r
220 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
221\r
222$(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp\r
223 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
224\r
225$(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp\r
226 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
227\r
228$(OBJS)\bench_ipcclient.o: ./ipcclient.cpp\r
229 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
230\r
231$(OBJS)\bench_log.o: ./log.cpp\r
232 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
233\r
234$(OBJS)\bench_mbconv.o: ./mbconv.cpp\r
235 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
236\r
237$(OBJS)\bench_strings.o: ./strings.cpp\r
238 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
239\r
240$(OBJS)\bench_tls.o: ./tls.cpp\r
241 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
242\r
243$(OBJS)\bench_printfbench.o: ./printfbench.cpp\r
244 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
245\r
246.PHONY: all clean data\r
247\r
248\r
249SHELL := $(COMSPEC)\r
250\r
251# Dependencies tracking:\r
252-include $(OBJS)/*.d\r