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