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