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