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