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