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