]> git.saurik.com Git - wxWidgets.git/blame - tests/benchmarks/makefile.gcc
Use wxFindWindowAtPoint() for hit testing in wxPopupTransientWindow.
[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
bed99c22
VZ
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
20LIBDIRNAME = \\r
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r
a7ebaf0d
KO
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
bed99c22
VZ
24BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r
25 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \\r
26 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
28 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \\r
29 -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \\r
30 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(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
bed99c22
VZ
42BENCH_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r
43 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
44 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
45 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
46 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
47 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) \\r
48 -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \\r
49 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r
50BENCH_GUI_OBJECTS = \\r
51 $(OBJS)\bench_gui_sample_rc.o \\r
52 $(OBJS)\bench_gui_bench.o \\r
53 $(OBJS)\bench_gui_image.o\r
a7ebaf0d
KO
54\r
55### Conditionally set variables: ###\r
56\r
57ifeq ($(GCC_VERSION),2.95)\r
58GCCFLAGS = -fvtable-thunks\r
59endif\r
60ifeq ($(USE_GUI),0)\r
61PORTNAME = base\r
62endif\r
63ifeq ($(USE_GUI),1)\r
bed99c22
VZ
64PORTNAME = msw$(TOOLKIT_VERSION)\r
65endif\r
66ifeq ($(OFFICIAL_BUILD),1)\r
67COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD\r
22a3b6e4 68endif\r
a7ebaf0d
KO
69ifeq ($(BUILD),debug)\r
70WXDEBUGFLAG = d\r
71endif\r
72ifeq ($(UNICODE),1)\r
73WXUNICODEFLAG = u\r
74endif\r
75ifeq ($(WXUNIV),1)\r
76WXUNIVNAME = univ\r
77endif\r
78ifeq ($(SHARED),1)\r
79WXDLLFLAG = dll\r
80endif\r
81ifeq ($(SHARED),0)\r
82LIBTYPE_SUFFIX = lib\r
83endif\r
84ifeq ($(SHARED),1)\r
85LIBTYPE_SUFFIX = dll\r
86endif\r
87ifeq ($(MONOLITHIC),0)\r
88EXTRALIBS_FOR_BASE = \r
89endif\r
90ifeq ($(MONOLITHIC),1)\r
51ec29ea 91EXTRALIBS_FOR_BASE = \r
a7ebaf0d 92endif\r
bed99c22
VZ
93ifeq ($(MONOLITHIC),0)\r
94__WXLIB_NET_p = \\r
95 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net\r
96endif\r
97ifeq ($(MONOLITHIC),1)\r
98__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r
99endif\r
100ifeq ($(USE_GUI),1)\r
101__bench_gui___depname = $(OBJS)\bench_gui.exe\r
102endif\r
103ifeq ($(WXUNIV),1)\r
104__WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__\r
105endif\r
106ifeq ($(DEBUG_FLAG),0)\r
107__DEBUG_DEFINE_p_3 = --define wxDEBUG_LEVEL=0\r
108endif\r
109ifeq ($(BUILD),release)\r
110__NDEBUG_DEFINE_p_3 = --define NDEBUG\r
111endif\r
112ifeq ($(USE_EXCEPTIONS),0)\r
113__EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS\r
114endif\r
115ifeq ($(USE_RTTI),0)\r
116__RTTI_DEFINE_p_3 = --define wxNO_RTTI\r
117endif\r
118ifeq ($(USE_THREADS),0)\r
119__THREAD_DEFINE_p_3 = --define wxNO_THREADS\r
120endif\r
121ifeq ($(UNICODE),0)\r
122__UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0\r
123endif\r
124ifeq ($(UNICODE),1)\r
125__UNICODE_DEFINE_p_3 = --define _UNICODE\r
126endif\r
127ifeq ($(MSLU),1)\r
128__MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1\r
129endif\r
130ifeq ($(USE_CAIRO),1)\r
131__CAIRO_INCLUDEDIR_p_1 = --include-dir $(CAIRO_ROOT)/include/cairo\r
132endif\r
133ifeq ($(SHARED),1)\r
134__DLLFLAG_p_3 = --define WXUSINGDLL\r
135endif\r
136ifeq ($(MONOLITHIC),0)\r
137__WXLIB_CORE_p = \\r
138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
139endif\r
a4830bb5 140ifeq ($(MONOLITHIC),1)\r
bd0f3ca6 141ifeq ($(USE_STC),1)
a4830bb5
VZ
142__LIB_SCINTILLA_IF_MONO_p = -lwxscintilla$(WXDEBUGFLAG)\r
143endif\r
bd0f3ca6 144endif
bed99c22
VZ
145ifeq ($(USE_GUI),1)\r
146__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
147endif\r
148ifeq ($(USE_GUI),1)\r
149__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
150endif\r
a7ebaf0d 151ifeq ($(BUILD),debug)\r
bed99c22 152__OPTIMIZEFLAG = -O0\r
a7ebaf0d
KO
153endif\r
154ifeq ($(BUILD),release)\r
bed99c22 155__OPTIMIZEFLAG = -O2\r
a7ebaf0d
KO
156endif\r
157ifeq ($(USE_RTTI),0)\r
bed99c22 158__RTTIFLAG = -fno-rtti\r
a7ebaf0d
KO
159endif\r
160ifeq ($(USE_RTTI),1)\r
bed99c22 161__RTTIFLAG = \r
a7ebaf0d
KO
162endif\r
163ifeq ($(USE_EXCEPTIONS),0)\r
bed99c22 164__EXCEPTIONSFLAG = -fno-exceptions\r
a7ebaf0d
KO
165endif\r
166ifeq ($(USE_EXCEPTIONS),1)\r
bed99c22 167__EXCEPTIONSFLAG = \r
a7ebaf0d
KO
168endif\r
169ifeq ($(WXUNIV),1)\r
170__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
171endif\r
172ifeq ($(DEBUG_FLAG),0)\r
173__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
174endif\r
da8b1d4b
KO
175ifeq ($(BUILD),release)\r
176__NDEBUG_DEFINE_p = -DNDEBUG\r
177endif\r
a7ebaf0d
KO
178ifeq ($(USE_EXCEPTIONS),0)\r
179__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
180endif\r
181ifeq ($(USE_RTTI),0)\r
182__RTTI_DEFINE_p = -DwxNO_RTTI\r
183endif\r
184ifeq ($(USE_THREADS),0)\r
185__THREAD_DEFINE_p = -DwxNO_THREADS\r
186endif\r
187ifeq ($(UNICODE),0)\r
188__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
189endif\r
190ifeq ($(UNICODE),1)\r
191__UNICODE_DEFINE_p = -D_UNICODE\r
192endif\r
193ifeq ($(MSLU),1)\r
194__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
195endif\r
f82b7036 196ifeq ($(USE_CAIRO),1)\r
bed99c22 197____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
f82b7036 198endif\r
a7ebaf0d
KO
199ifeq ($(SHARED),1)\r
200__DLLFLAG_p = -DWXUSINGDLL\r
201endif\r
202ifeq ($(MONOLITHIC),0)\r
a7ebaf0d 203__WXLIB_BASE_p = \\r
bed99c22 204 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
a7ebaf0d
KO
205endif\r
206ifeq ($(MONOLITHIC),1)\r
207__WXLIB_MONO_p = \\r
208 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
209endif\r
57c74474
VZ
210ifeq ($(USE_GUI),1)\r
211__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
212endif\r
a7ebaf0d
KO
213ifeq ($(MSLU),1)\r
214__UNICOWS_LIB_p = -lunicows\r
215endif\r
f82b7036
KO
216ifeq ($(USE_CAIRO),1)\r
217__CAIRO_LIB_p = -lcairo\r
218endif\r
219ifeq ($(USE_CAIRO),1)\r
bed99c22 220____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
f82b7036 221endif\r
a7ebaf0d
KO
222ifeq ($(BUILD),debug)\r
223ifeq ($(DEBUG_INFO),default)\r
224__DEBUGINFO = -g\r
225endif\r
226endif\r
227ifeq ($(BUILD),release)\r
228ifeq ($(DEBUG_INFO),default)\r
229__DEBUGINFO = \r
230endif\r
231endif\r
232ifeq ($(DEBUG_INFO),0)\r
233__DEBUGINFO = \r
234endif\r
235ifeq ($(DEBUG_INFO),1)\r
236__DEBUGINFO = -g\r
237endif\r
238ifeq ($(USE_THREADS),0)\r
239__THREADSFLAG = \r
240endif\r
241ifeq ($(USE_THREADS),1)\r
242__THREADSFLAG = -mthreads\r
243endif\r
244\r
245\r
246all: $(OBJS)\r
247$(OBJS):\r
248 -if not exist $(OBJS) mkdir $(OBJS)\r
249\r
250### Targets: ###\r
251\r
bed99c22 252all: $(OBJS)\bench.exe data $(__bench_gui___depname) data-image\r
a7ebaf0d
KO
253\r
254clean: \r
255 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
256 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
257 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r
bed99c22 258 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe\r
a7ebaf0d
KO
259\r
260$(OBJS)\bench.exe: $(BENCH_OBJECTS)\r
bed99c22 261 $(CXX) -o $@ $(BENCH_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(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
262\r
263data: \r
264 if not exist $(OBJS) mkdir $(OBJS)\r
265 for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r
266\r
bed99c22
VZ
267ifeq ($(USE_GUI),1)\r
268$(OBJS)\bench_gui.exe: $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample_rc.o\r
a4830bb5 269 $(CXX) -o $@ $(BENCH_GUI_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_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
bed99c22
VZ
270endif\r
271\r
272data-image: \r
273 if not exist $(OBJS) mkdir $(OBJS)\r
274 for %%f in (../../samples/image/horse.bmp ../../samples/image/horse.jpg ../../samples/image/horse.png ../../samples/image/horse.tif) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r
275\r
a7ebaf0d
KO
276$(OBJS)\bench_bench.o: ./bench.cpp\r
277 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
278\r
bf0f3b26
VZ
279$(OBJS)\bench_datetime.o: ./datetime.cpp\r
280 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
281\r
a7ebaf0d
KO
282$(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp\r
283 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
284\r
285$(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp\r
286 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
287\r
288$(OBJS)\bench_ipcclient.o: ./ipcclient.cpp\r
289 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
290\r
f7f7b59a
VZ
291$(OBJS)\bench_log.o: ./log.cpp\r
292 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
293\r
a7ebaf0d
KO
294$(OBJS)\bench_mbconv.o: ./mbconv.cpp\r
295 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
296\r
297$(OBJS)\bench_strings.o: ./strings.cpp\r
298 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
299\r
300$(OBJS)\bench_tls.o: ./tls.cpp\r
301 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
302\r
303$(OBJS)\bench_printfbench.o: ./printfbench.cpp\r
304 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
305\r
bed99c22
VZ
306$(OBJS)\bench_gui_sample_rc.o: ./../../samples/sample.rc\r
307 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__NDEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p_1) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../samples --define NOPCH\r
308\r
309$(OBJS)\bench_gui_bench.o: ./bench.cpp\r
310 $(CXX) -c -o $@ $(BENCH_GUI_CXXFLAGS) $(CPPDEPS) $<\r
311\r
312$(OBJS)\bench_gui_image.o: ./image.cpp\r
313 $(CXX) -c -o $@ $(BENCH_GUI_CXXFLAGS) $(CPPDEPS) $<\r
314\r
315.PHONY: all clean data data-image\r
a7ebaf0d
KO
316\r
317\r
318SHELL := $(COMSPEC)\r
319\r
320# Dependencies tracking:\r
321-include $(OBJS)/*.d\r