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