]> git.saurik.com Git - wxWidgets.git/blame - tests/benchmarks/makefile.gcc
Don't use a destroy event handler to disconnect the native control's delegate as...
[wxWidgets.git] / tests / benchmarks / makefile.gcc
CommitLineData
a7ebaf0d
KO
1# =========================================================================\r
2# This makefile was generated by\r
3# Bakefile 0.2.8 (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)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r
21SETUPHDIR = \\r
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
23BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
f82b7036
KO
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
28 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \\r
29 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) \\r
30 $(CXXFLAGS)\r
a7ebaf0d
KO
31BENCH_OBJECTS = \\r
32 $(OBJS)\bench_bench.o \\r
33 $(OBJS)\bench_htmlpars.o \\r
34 $(OBJS)\bench_htmltag.o \\r
35 $(OBJS)\bench_ipcclient.o \\r
36 $(OBJS)\bench_mbconv.o \\r
37 $(OBJS)\bench_strings.o \\r
38 $(OBJS)\bench_tls.o \\r
39 $(OBJS)\bench_printfbench.o\r
40\r
41### Conditionally set variables: ###\r
42\r
43ifeq ($(GCC_VERSION),2.95)\r
44GCCFLAGS = -fvtable-thunks\r
45endif\r
46ifeq ($(USE_GUI),0)\r
47PORTNAME = base\r
48endif\r
49ifeq ($(USE_GUI),1)\r
50PORTNAME = msw\r
51endif\r
52ifeq ($(BUILD),debug)\r
53WXDEBUGFLAG = d\r
54endif\r
55ifeq ($(UNICODE),1)\r
56WXUNICODEFLAG = u\r
57endif\r
58ifeq ($(WXUNIV),1)\r
59WXUNIVNAME = univ\r
60endif\r
61ifeq ($(SHARED),1)\r
62WXDLLFLAG = dll\r
63endif\r
64ifeq ($(SHARED),0)\r
65LIBTYPE_SUFFIX = lib\r
66endif\r
67ifeq ($(SHARED),1)\r
68LIBTYPE_SUFFIX = dll\r
69endif\r
70ifeq ($(MONOLITHIC),0)\r
71EXTRALIBS_FOR_BASE = \r
72endif\r
73ifeq ($(MONOLITHIC),1)\r
74EXTRALIBS_FOR_BASE = \r
75endif\r
76ifeq ($(BUILD),debug)\r
77__OPTIMIZEFLAG_2 = -O0\r
78endif\r
79ifeq ($(BUILD),release)\r
80__OPTIMIZEFLAG_2 = -O2\r
81endif\r
82ifeq ($(USE_RTTI),0)\r
83__RTTIFLAG_5 = -fno-rtti\r
84endif\r
85ifeq ($(USE_RTTI),1)\r
86__RTTIFLAG_5 = \r
87endif\r
88ifeq ($(USE_EXCEPTIONS),0)\r
89__EXCEPTIONSFLAG_6 = -fno-exceptions\r
90endif\r
91ifeq ($(USE_EXCEPTIONS),1)\r
92__EXCEPTIONSFLAG_6 = \r
93endif\r
94ifeq ($(WXUNIV),1)\r
95__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
96endif\r
97ifeq ($(DEBUG_FLAG),0)\r
98__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
99endif\r
100ifeq ($(USE_EXCEPTIONS),0)\r
101__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
102endif\r
103ifeq ($(USE_RTTI),0)\r
104__RTTI_DEFINE_p = -DwxNO_RTTI\r
105endif\r
106ifeq ($(USE_THREADS),0)\r
107__THREAD_DEFINE_p = -DwxNO_THREADS\r
108endif\r
109ifeq ($(UNICODE),0)\r
110__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
111endif\r
112ifeq ($(UNICODE),1)\r
113__UNICODE_DEFINE_p = -D_UNICODE\r
114endif\r
115ifeq ($(MSLU),1)\r
116__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
117endif\r
118ifeq ($(USE_GDIPLUS),1)\r
119__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1\r
120endif\r
f82b7036
KO
121ifeq ($(USE_CAIRO),1)\r
122____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
123endif\r
a7ebaf0d
KO
124ifeq ($(SHARED),1)\r
125__DLLFLAG_p = -DWXUSINGDLL\r
126endif\r
127ifeq ($(MONOLITHIC),0)\r
128__WXLIB_NET_p = \\r
129 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net\r
130endif\r
131ifeq ($(MONOLITHIC),0)\r
132__WXLIB_BASE_p = \\r
133 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
134endif\r
135ifeq ($(MONOLITHIC),1)\r
136__WXLIB_MONO_p = \\r
137 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
138endif\r
139ifeq ($(MSLU),1)\r
140__UNICOWS_LIB_p = -lunicows\r
141endif\r
142ifeq ($(USE_GDIPLUS),1)\r
143__GDIPLUS_LIB_p = -lgdiplus\r
144endif\r
f82b7036
KO
145ifeq ($(USE_CAIRO),1)\r
146__CAIRO_LIB_p = -lcairo\r
147endif\r
148ifeq ($(USE_CAIRO),1)\r
149____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
150endif\r
a7ebaf0d
KO
151ifeq ($(BUILD),debug)\r
152ifeq ($(DEBUG_INFO),default)\r
153__DEBUGINFO = -g\r
154endif\r
155endif\r
156ifeq ($(BUILD),release)\r
157ifeq ($(DEBUG_INFO),default)\r
158__DEBUGINFO = \r
159endif\r
160endif\r
161ifeq ($(DEBUG_INFO),0)\r
162__DEBUGINFO = \r
163endif\r
164ifeq ($(DEBUG_INFO),1)\r
165__DEBUGINFO = -g\r
166endif\r
167ifeq ($(USE_THREADS),0)\r
168__THREADSFLAG = \r
169endif\r
170ifeq ($(USE_THREADS),1)\r
171__THREADSFLAG = -mthreads\r
172endif\r
173\r
174\r
175all: $(OBJS)\r
176$(OBJS):\r
177 -if not exist $(OBJS) mkdir $(OBJS)\r
178\r
179### Targets: ###\r
180\r
181all: $(OBJS)\bench.exe data\r
182\r
183clean: \r
184 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
185 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
186 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r
187\r
188$(OBJS)\bench.exe: $(BENCH_OBJECTS)\r
f82b7036 189 $(CXX) -o $@ $(BENCH_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
a7ebaf0d
KO
190\r
191data: \r
192 if not exist $(OBJS) mkdir $(OBJS)\r
193 for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r
194\r
195$(OBJS)\bench_bench.o: ./bench.cpp\r
196 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
197\r
198$(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp\r
199 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
200\r
201$(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp\r
202 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
203\r
204$(OBJS)\bench_ipcclient.o: ./ipcclient.cpp\r
205 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
206\r
207$(OBJS)\bench_mbconv.o: ./mbconv.cpp\r
208 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
209\r
210$(OBJS)\bench_strings.o: ./strings.cpp\r
211 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
212\r
213$(OBJS)\bench_tls.o: ./tls.cpp\r
214 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
215\r
216$(OBJS)\bench_printfbench.o: ./printfbench.cpp\r
217 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
218\r
219.PHONY: all clean data\r
220\r
221\r
222SHELL := $(COMSPEC)\r
223\r
224# Dependencies tracking:\r
225-include $(OBJS)/*.d\r