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