]> git.saurik.com Git - wxWidgets.git/blob - tests/makefile.gcc
Include wx/menu.h according to precompiled headers of wx/wx.h (with other minor clean...
[wxWidgets.git] / tests / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (http://bakefile.sourceforge.net)
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
16 WX_RELEASE_NODOT = 27
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\include -W \
26 -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) $(__RTTIFLAG) \
27 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28 TEST_OBJECTS = \
29 $(OBJS)\test_dummy.o \
30 $(OBJS)\test_test.o \
31 $(OBJS)\test_archivetest.o \
32 $(OBJS)\test_ziptest.o \
33 $(OBJS)\test_arrays.o \
34 $(OBJS)\test_datetimetest.o \
35 $(OBJS)\test_fileconftest.o \
36 $(OBJS)\test_filekind.o \
37 $(OBJS)\test_filenametest.o \
38 $(OBJS)\test_filesystest.o \
39 $(OBJS)\test_fontmaptest.o \
40 $(OBJS)\test_formatconvertertest.o \
41 $(OBJS)\test_hashes.o \
42 $(OBJS)\test_lists.o \
43 $(OBJS)\test_longlongtest.o \
44 $(OBJS)\test_convautotest.o \
45 $(OBJS)\test_mbconvtest.o \
46 $(OBJS)\test_regextest.o \
47 $(OBJS)\test_wxregextest.o \
48 $(OBJS)\test_scopeguardtest.o \
49 $(OBJS)\test_strings.o \
50 $(OBJS)\test_stdstrings.o \
51 $(OBJS)\test_tokenizer.o \
52 $(OBJS)\test_unicode.o \
53 $(OBJS)\test_crt.o \
54 $(OBJS)\test_bstream.o \
55 $(OBJS)\test_datastreamtest.o \
56 $(OBJS)\test_ffilestream.o \
57 $(OBJS)\test_filestream.o \
58 $(OBJS)\test_largefile.o \
59 $(OBJS)\test_memstream.o \
60 $(OBJS)\test_sstream.o \
61 $(OBJS)\test_tempfile.o \
62 $(OBJS)\test_textstreamtest.o \
63 $(OBJS)\test_zlibstream.o \
64 $(OBJS)\test_textfiletest.o \
65 $(OBJS)\test_uris.o
66 TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
67 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
68 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
69 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
70 -I$(SETUPHDIR) -I.\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\samples \
71 -DNOPCH $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
72 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
73 TEST_GUI_OBJECTS = \
74 $(OBJS)\test_gui_sample_rc.o \
75 $(OBJS)\test_gui_dummy.o \
76 $(OBJS)\test_gui_test.o \
77 $(OBJS)\test_gui_rect.o \
78 $(OBJS)\test_gui_size.o \
79 $(OBJS)\test_gui_point.o
80
81 ### Conditionally set variables: ###
82
83 ifeq ($(GCC_VERSION),2.95)
84 GCCFLAGS = -fvtable-thunks
85 endif
86 ifeq ($(USE_GUI),0)
87 PORTNAME = base
88 endif
89 ifeq ($(USE_GUI),1)
90 PORTNAME = msw
91 endif
92 ifeq ($(BUILD),debug)
93 ifeq ($(DEBUG_FLAG),default)
94 WXDEBUGFLAG = d
95 endif
96 endif
97 ifeq ($(DEBUG_FLAG),1)
98 WXDEBUGFLAG = d
99 endif
100 ifeq ($(UNICODE),1)
101 WXUNICODEFLAG = u
102 endif
103 ifeq ($(WXUNIV),1)
104 WXUNIVNAME = univ
105 endif
106 ifeq ($(SHARED),1)
107 WXDLLFLAG = dll
108 endif
109 ifeq ($(SHARED),0)
110 LIBTYPE_SUFFIX = lib
111 endif
112 ifeq ($(SHARED),1)
113 LIBTYPE_SUFFIX = dll
114 endif
115 ifeq ($(MONOLITHIC),0)
116 EXTRALIBS_FOR_BASE =
117 endif
118 ifeq ($(MONOLITHIC),1)
119 EXTRALIBS_FOR_BASE =
120 endif
121 ifeq ($(MONOLITHIC),0)
122 __WXLIB_NET_p = \
123 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
124 endif
125 ifeq ($(USE_GUI),1)
126 __test_gui___depname = $(OBJS)\test_gui.exe
127 endif
128 ifeq ($(WXUNIV),1)
129 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
130 endif
131 ifeq ($(BUILD),debug)
132 ifeq ($(DEBUG_FLAG),default)
133 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
134 endif
135 endif
136 ifeq ($(DEBUG_FLAG),1)
137 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
138 endif
139 ifeq ($(USE_EXCEPTIONS),0)
140 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
141 endif
142 ifeq ($(USE_RTTI),0)
143 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
144 endif
145 ifeq ($(USE_THREADS),0)
146 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
147 endif
148 ifeq ($(UNICODE),1)
149 __UNICODE_DEFINE_p_3 = --define _UNICODE
150 endif
151 ifeq ($(MSLU),1)
152 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
153 endif
154 ifeq ($(SHARED),1)
155 __DLLFLAG_p_3 = --define WXUSINGDLL
156 endif
157 ifeq ($(MONOLITHIC),0)
158 __WXLIB_CORE_p = \
159 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
160 endif
161 ifeq ($(BUILD),debug)
162 __OPTIMIZEFLAG = -O0
163 endif
164 ifeq ($(BUILD),release)
165 __OPTIMIZEFLAG = -O2
166 endif
167 ifeq ($(USE_RTTI),0)
168 __RTTIFLAG = -fno-rtti
169 endif
170 ifeq ($(USE_RTTI),1)
171 __RTTIFLAG =
172 endif
173 ifeq ($(USE_EXCEPTIONS),0)
174 __EXCEPTIONSFLAG = -fno-exceptions
175 endif
176 ifeq ($(USE_EXCEPTIONS),1)
177 __EXCEPTIONSFLAG =
178 endif
179 ifeq ($(WXUNIV),1)
180 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
181 endif
182 ifeq ($(BUILD),debug)
183 ifeq ($(DEBUG_FLAG),default)
184 __DEBUG_DEFINE_p = -D__WXDEBUG__
185 endif
186 endif
187 ifeq ($(DEBUG_FLAG),1)
188 __DEBUG_DEFINE_p = -D__WXDEBUG__
189 endif
190 ifeq ($(USE_EXCEPTIONS),0)
191 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
192 endif
193 ifeq ($(USE_RTTI),0)
194 __RTTI_DEFINE_p = -DwxNO_RTTI
195 endif
196 ifeq ($(USE_THREADS),0)
197 __THREAD_DEFINE_p = -DwxNO_THREADS
198 endif
199 ifeq ($(UNICODE),1)
200 __UNICODE_DEFINE_p = -D_UNICODE
201 endif
202 ifeq ($(MSLU),1)
203 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
204 endif
205 ifeq ($(SHARED),1)
206 __DLLFLAG_p = -DWXUSINGDLL
207 endif
208 ifeq ($(MONOLITHIC),0)
209 __WXLIB_BASE_p = \
210 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
211 endif
212 ifeq ($(MONOLITHIC),1)
213 __WXLIB_MONO_p = \
214 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
215 endif
216 ifeq ($(USE_GUI),1)
217 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
218 endif
219 ifeq ($(USE_GUI),1)
220 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
221 endif
222 ifeq ($(USE_GUI),1)
223 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
224 endif
225 ifeq ($(MSLU),1)
226 __UNICOWS_LIB_p = -lunicows
227 endif
228 ifeq ($(BUILD),debug)
229 ifeq ($(DEBUG_INFO),default)
230 __DEBUGINFO = -g
231 endif
232 endif
233 ifeq ($(BUILD),release)
234 ifeq ($(DEBUG_INFO),default)
235 __DEBUGINFO =
236 endif
237 endif
238 ifeq ($(DEBUG_INFO),0)
239 __DEBUGINFO =
240 endif
241 ifeq ($(DEBUG_INFO),1)
242 __DEBUGINFO = -g
243 endif
244 ifeq ($(USE_THREADS),0)
245 __THREADSFLAG =
246 endif
247 ifeq ($(USE_THREADS),1)
248 __THREADSFLAG = -mthreads
249 endif
250
251
252 all: $(OBJS)
253 $(OBJS):
254 -if not exist $(OBJS) mkdir $(OBJS)
255
256 ### Targets: ###
257
258 all: $(OBJS)\test.exe $(__test_gui___depname) data
259
260 clean:
261 -if exist $(OBJS)\*.o del $(OBJS)\*.o
262 -if exist $(OBJS)\*.d del $(OBJS)\*.d
263 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
264 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
265
266 $(OBJS)\test.exe: $(TEST_OBJECTS)
267 $(CXX) -o $@ $(TEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(CPPUNIT_LIBS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
268
269 ifeq ($(USE_GUI),1)
270 $(OBJS)\test_gui.exe: $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample_rc.o
271 $(CXX) -o $@ $(TEST_GUI_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(CPPUNIT_LIBS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
272 endif
273
274 data:
275 if not exist $(OBJS) mkdir $(OBJS)
276 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
277
278 $(OBJS)\test_dummy.o: ./dummy.cpp
279 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
280
281 $(OBJS)\test_test.o: ./test.cpp
282 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
283
284 $(OBJS)\test_archivetest.o: ./archive/archivetest.cpp
285 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
286
287 $(OBJS)\test_ziptest.o: ./archive/ziptest.cpp
288 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
289
290 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
291 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
292
293 $(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp
294 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
295
296 $(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp
297 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
298
299 $(OBJS)\test_filekind.o: ./filekind/filekind.cpp
300 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
301
302 $(OBJS)\test_filenametest.o: ./filename/filenametest.cpp
303 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
304
305 $(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp
306 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
307
308 $(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp
309 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
310
311 $(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp
312 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
313
314 $(OBJS)\test_hashes.o: ./hashes/hashes.cpp
315 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
316
317 $(OBJS)\test_lists.o: ./lists/lists.cpp
318 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
319
320 $(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp
321 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
322
323 $(OBJS)\test_convautotest.o: ./mbconv/convautotest.cpp
324 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
325
326 $(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp
327 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
328
329 $(OBJS)\test_regextest.o: ./regex/regextest.cpp
330 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
331
332 $(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp
333 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
334
335 $(OBJS)\test_scopeguardtest.o: ./scopeguard/scopeguardtest.cpp
336 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
337
338 $(OBJS)\test_strings.o: ./strings/strings.cpp
339 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
340
341 $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
342 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
343
344 $(OBJS)\test_tokenizer.o: ./strings/tokenizer.cpp
345 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
346
347 $(OBJS)\test_unicode.o: ./strings/unicode.cpp
348 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
349
350 $(OBJS)\test_crt.o: ./strings/crt.cpp
351 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
352
353 $(OBJS)\test_bstream.o: ./streams/bstream.cpp
354 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
355
356 $(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp
357 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
358
359 $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
360 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
361
362 $(OBJS)\test_filestream.o: ./streams/filestream.cpp
363 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
364
365 $(OBJS)\test_largefile.o: ./streams/largefile.cpp
366 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
367
368 $(OBJS)\test_memstream.o: ./streams/memstream.cpp
369 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
370
371 $(OBJS)\test_sstream.o: ./streams/sstream.cpp
372 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
373
374 $(OBJS)\test_tempfile.o: ./streams/tempfile.cpp
375 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
376
377 $(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp
378 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
379
380 $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
381 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
382
383 $(OBJS)\test_textfiletest.o: ./textfile/textfiletest.cpp
384 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
385
386 $(OBJS)\test_uris.o: ./uris/uris.cpp
387 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
388
389 $(OBJS)\test_gui_sample_rc.o: ./../samples/sample.rc
390 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_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 --include-dir . $(__DLLFLAG_p_3) --include-dir ./../samples
391
392 $(OBJS)\test_gui_dummy.o: ./dummy.cpp
393 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
394
395 $(OBJS)\test_gui_test.o: ./test.cpp
396 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
397
398 $(OBJS)\test_gui_rect.o: ./geometry/rect.cpp
399 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
400
401 $(OBJS)\test_gui_size.o: ./geometry/size.cpp
402 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
403
404 $(OBJS)\test_gui_point.o: ./geometry/point.cpp
405 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
406
407 .PHONY: all clean data
408
409
410 # Dependencies tracking:
411 -include $(OBJS)/*.d