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