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