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