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