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