]> git.saurik.com Git - wxWidgets.git/blame - tests/benchmarks/makefile.gcc
common wxMacWakeUp code across all platforms
[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
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
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
da8b1d4b
KO
100ifeq ($(BUILD),release)\r
101__NDEBUG_DEFINE_p = -DNDEBUG\r
102endif\r
a7ebaf0d
KO
103ifeq ($(USE_EXCEPTIONS),0)\r
104__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
105endif\r
106ifeq ($(USE_RTTI),0)\r
107__RTTI_DEFINE_p = -DwxNO_RTTI\r
108endif\r
109ifeq ($(USE_THREADS),0)\r
110__THREAD_DEFINE_p = -DwxNO_THREADS\r
111endif\r
112ifeq ($(UNICODE),0)\r
113__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
114endif\r
115ifeq ($(UNICODE),1)\r
116__UNICODE_DEFINE_p = -D_UNICODE\r
117endif\r
118ifeq ($(MSLU),1)\r
119__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=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
f82b7036
KO
142ifeq ($(USE_CAIRO),1)\r
143__CAIRO_LIB_p = -lcairo\r
144endif\r
145ifeq ($(USE_CAIRO),1)\r
146____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
147endif\r
a7ebaf0d
KO
148ifeq ($(BUILD),debug)\r
149ifeq ($(DEBUG_INFO),default)\r
150__DEBUGINFO = -g\r
151endif\r
152endif\r
153ifeq ($(BUILD),release)\r
154ifeq ($(DEBUG_INFO),default)\r
155__DEBUGINFO = \r
156endif\r
157endif\r
158ifeq ($(DEBUG_INFO),0)\r
159__DEBUGINFO = \r
160endif\r
161ifeq ($(DEBUG_INFO),1)\r
162__DEBUGINFO = -g\r
163endif\r
164ifeq ($(USE_THREADS),0)\r
165__THREADSFLAG = \r
166endif\r
167ifeq ($(USE_THREADS),1)\r
168__THREADSFLAG = -mthreads\r
169endif\r
170\r
171\r
172all: $(OBJS)\r
173$(OBJS):\r
174 -if not exist $(OBJS) mkdir $(OBJS)\r
175\r
176### Targets: ###\r
177\r
178all: $(OBJS)\bench.exe data\r
179\r
180clean: \r
181 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
182 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
183 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r
184\r
185$(OBJS)\bench.exe: $(BENCH_OBJECTS)\r
b796194b 186 $(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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
a7ebaf0d
KO
187\r
188data: \r
189 if not exist $(OBJS) mkdir $(OBJS)\r
190 for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r
191\r
192$(OBJS)\bench_bench.o: ./bench.cpp\r
193 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
194\r
195$(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp\r
196 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
197\r
198$(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp\r
199 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
200\r
201$(OBJS)\bench_ipcclient.o: ./ipcclient.cpp\r
202 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
203\r
204$(OBJS)\bench_mbconv.o: ./mbconv.cpp\r
205 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
206\r
207$(OBJS)\bench_strings.o: ./strings.cpp\r
208 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
209\r
210$(OBJS)\bench_tls.o: ./tls.cpp\r
211 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
212\r
213$(OBJS)\bench_printfbench.o: ./printfbench.cpp\r
214 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r
215\r
216.PHONY: all clean data\r
217\r
218\r
219SHELL := $(COMSPEC)\r
220\r
221# Dependencies tracking:\r
222-include $(OBJS)/*.d\r