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