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 # =========================================================================
7 include ../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
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) $(__GFXCTX_DEFINE_p) \
26 -I$(SETUPHDIR) -I.\..\include -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
27 $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy \
28 $(CPPFLAGS) $(CXXFLAGS)
30 $(OBJS)\test_dummy.o \
32 $(OBJS)\test_archivetest.o \
33 $(OBJS)\test_ziptest.o \
34 $(OBJS)\test_tartest.o \
35 $(OBJS)\test_arrays.o \
36 $(OBJS)\test_datetimetest.o \
37 $(OBJS)\test_fileconftest.o \
38 $(OBJS)\test_filekind.o \
39 $(OBJS)\test_filenametest.o \
40 $(OBJS)\test_filesystest.o \
41 $(OBJS)\test_fontmaptest.o \
42 $(OBJS)\test_formatconvertertest.o \
43 $(OBJS)\test_hashes.o \
44 $(OBJS)\test_lists.o \
45 $(OBJS)\test_longlongtest.o \
46 $(OBJS)\test_convautotest.o \
47 $(OBJS)\test_mbconvtest.o \
48 $(OBJS)\test_regextest.o \
49 $(OBJS)\test_wxregextest.o \
50 $(OBJS)\test_scopeguardtest.o \
51 $(OBJS)\test_strings.o \
52 $(OBJS)\test_stdstrings.o \
53 $(OBJS)\test_tokenizer.o \
54 $(OBJS)\test_unicode.o \
56 $(OBJS)\test_vsnprintf.o \
57 $(OBJS)\test_bstream.o \
58 $(OBJS)\test_datastreamtest.o \
59 $(OBJS)\test_ffilestream.o \
60 $(OBJS)\test_fileback.o \
61 $(OBJS)\test_filestream.o \
62 $(OBJS)\test_largefile.o \
63 $(OBJS)\test_memstream.o \
64 $(OBJS)\test_sstream.o \
65 $(OBJS)\test_tempfile.o \
66 $(OBJS)\test_textstreamtest.o \
67 $(OBJS)\test_zlibstream.o \
68 $(OBJS)\test_textfiletest.o \
70 TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
71 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
72 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
73 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
74 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\include -W -Wall -I. $(__DLLFLAG_p) \
75 -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
76 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
78 $(OBJS)\test_gui_sample_rc.o \
79 $(OBJS)\test_gui_dummy.o \
80 $(OBJS)\test_gui_test.o \
81 $(OBJS)\test_gui_rect.o \
82 $(OBJS)\test_gui_size.o \
83 $(OBJS)\test_gui_point.o
84 PRINTFBENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
85 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
86 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
87 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
88 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\include -W -Wall -I. $(__DLLFLAG_p) \
89 -DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
90 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
91 PRINTFBENCH_OBJECTS = \
92 $(OBJS)\printfbench_dummy.o \
93 $(OBJS)\printfbench_printfbench.o
95 ### Conditionally set variables: ###
97 ifeq ($(GCC_VERSION),2.95)
98 GCCFLAGS = -fvtable-thunks
106 ifeq ($(BUILD),debug)
107 ifeq ($(DEBUG_FLAG),default)
111 ifeq ($(DEBUG_FLAG),1)
129 ifeq ($(MONOLITHIC),0)
132 ifeq ($(MONOLITHIC),1)
135 ifeq ($(MONOLITHIC),0)
137 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
140 __test_gui___depname = $(OBJS)\test_gui.exe
143 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
145 ifeq ($(BUILD),debug)
146 ifeq ($(DEBUG_FLAG),default)
147 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
150 ifeq ($(DEBUG_FLAG),1)
151 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
153 ifeq ($(USE_EXCEPTIONS),0)
154 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
157 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
159 ifeq ($(USE_THREADS),0)
160 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
163 __UNICODE_DEFINE_p_3 = --define _UNICODE
166 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
168 ifeq ($(USE_GDIPLUS),1)
169 __GFXCTX_DEFINE_p_3 = --define wxUSE_GRAPHICS_CONTEXT=1
172 __DLLFLAG_p_3 = --define WXUSINGDLL
174 ifeq ($(MONOLITHIC),0)
176 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
179 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
182 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
185 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
187 ifeq ($(BUILD),debug)
190 ifeq ($(BUILD),release)
194 __RTTIFLAG = -fno-rtti
199 ifeq ($(USE_EXCEPTIONS),0)
200 __EXCEPTIONSFLAG = -fno-exceptions
202 ifeq ($(USE_EXCEPTIONS),1)
206 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
208 ifeq ($(BUILD),debug)
209 ifeq ($(DEBUG_FLAG),default)
210 __DEBUG_DEFINE_p = -D__WXDEBUG__
213 ifeq ($(DEBUG_FLAG),1)
214 __DEBUG_DEFINE_p = -D__WXDEBUG__
216 ifeq ($(USE_EXCEPTIONS),0)
217 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
220 __RTTI_DEFINE_p = -DwxNO_RTTI
222 ifeq ($(USE_THREADS),0)
223 __THREAD_DEFINE_p = -DwxNO_THREADS
226 __UNICODE_DEFINE_p = -D_UNICODE
229 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
231 ifeq ($(USE_GDIPLUS),1)
232 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
235 __DLLFLAG_p = -DWXUSINGDLL
237 ifeq ($(MONOLITHIC),0)
239 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
241 ifeq ($(MONOLITHIC),1)
243 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
246 __UNICOWS_LIB_p = -lunicows
248 ifeq ($(USE_GDIPLUS),1)
249 __GDIPLUS_LIB_p = -lgdiplus
251 ifeq ($(BUILD),debug)
252 ifeq ($(DEBUG_INFO),default)
256 ifeq ($(BUILD),release)
257 ifeq ($(DEBUG_INFO),default)
261 ifeq ($(DEBUG_INFO),0)
264 ifeq ($(DEBUG_INFO),1)
267 ifeq ($(USE_THREADS),0)
270 ifeq ($(USE_THREADS),1)
271 __THREADSFLAG = -mthreads
277 -if not exist $(OBJS) mkdir $(OBJS)
281 all: $(OBJS)\test.exe $(__test_gui___depname) data $(OBJS)\printfbench.exe
284 -if exist $(OBJS)\*.o del $(OBJS)\*.o
285 -if exist $(OBJS)\*.d del $(OBJS)\*.d
286 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
287 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
288 -if exist $(OBJS)\printfbench.exe del $(OBJS)\printfbench.exe
290 $(OBJS)\test.exe: $(TEST_OBJECTS)
291 $(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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
294 $(OBJS)\test_gui.exe: $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample_rc.o
295 $(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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
299 if not exist $(OBJS) mkdir $(OBJS)
300 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
302 $(OBJS)\printfbench.exe: $(PRINTFBENCH_OBJECTS)
303 $(CXX) -o $@ $(PRINTFBENCH_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(CPPUNIT_LIBS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
305 $(OBJS)\test_dummy.o: ./dummy.cpp
306 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
308 $(OBJS)\test_test.o: ./test.cpp
309 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
311 $(OBJS)\test_archivetest.o: ./archive/archivetest.cpp
312 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
314 $(OBJS)\test_ziptest.o: ./archive/ziptest.cpp
315 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
317 $(OBJS)\test_tartest.o: ./archive/tartest.cpp
318 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
320 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
321 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
323 $(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp
324 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
326 $(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp
327 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
329 $(OBJS)\test_filekind.o: ./filekind/filekind.cpp
330 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
332 $(OBJS)\test_filenametest.o: ./filename/filenametest.cpp
333 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
335 $(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp
336 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
338 $(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp
339 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
341 $(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp
342 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
344 $(OBJS)\test_hashes.o: ./hashes/hashes.cpp
345 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
347 $(OBJS)\test_lists.o: ./lists/lists.cpp
348 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
350 $(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp
351 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
353 $(OBJS)\test_convautotest.o: ./mbconv/convautotest.cpp
354 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
356 $(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp
357 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
359 $(OBJS)\test_regextest.o: ./regex/regextest.cpp
360 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
362 $(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp
363 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
365 $(OBJS)\test_scopeguardtest.o: ./scopeguard/scopeguardtest.cpp
366 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
368 $(OBJS)\test_strings.o: ./strings/strings.cpp
369 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
371 $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
372 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
374 $(OBJS)\test_tokenizer.o: ./strings/tokenizer.cpp
375 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
377 $(OBJS)\test_unicode.o: ./strings/unicode.cpp
378 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
380 $(OBJS)\test_crt.o: ./strings/crt.cpp
381 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
383 $(OBJS)\test_vsnprintf.o: ./strings/vsnprintf.cpp
384 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
386 $(OBJS)\test_bstream.o: ./streams/bstream.cpp
387 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
389 $(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp
390 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
392 $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
393 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
395 $(OBJS)\test_fileback.o: ./streams/fileback.cpp
396 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
398 $(OBJS)\test_filestream.o: ./streams/filestream.cpp
399 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
401 $(OBJS)\test_largefile.o: ./streams/largefile.cpp
402 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
404 $(OBJS)\test_memstream.o: ./streams/memstream.cpp
405 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
407 $(OBJS)\test_sstream.o: ./streams/sstream.cpp
408 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
410 $(OBJS)\test_tempfile.o: ./streams/tempfile.cpp
411 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
413 $(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp
414 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
416 $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
417 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
419 $(OBJS)\test_textfiletest.o: ./textfile/textfiletest.cpp
420 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
422 $(OBJS)\test_uris.o: ./uris/uris.cpp
423 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
425 $(OBJS)\test_gui_sample_rc.o: ./../samples/sample.rc
426 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) $(__GFXCTX_DEFINE_p_3) --include-dir $(SETUPHDIR) --include-dir ./../include --include-dir . $(__DLLFLAG_p_3) --include-dir ./../samples
428 $(OBJS)\test_gui_dummy.o: ./dummy.cpp
429 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
431 $(OBJS)\test_gui_test.o: ./test.cpp
432 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
434 $(OBJS)\test_gui_rect.o: ./geometry/rect.cpp
435 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
437 $(OBJS)\test_gui_size.o: ./geometry/size.cpp
438 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
440 $(OBJS)\test_gui_point.o: ./geometry/point.cpp
441 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
443 $(OBJS)\printfbench_dummy.o: ./dummy.cpp
444 $(CXX) -c -o $@ $(PRINTFBENCH_CXXFLAGS) $(CPPDEPS) $<
446 $(OBJS)\printfbench_printfbench.o: ./benchmarks/printfbench.cpp
447 $(CXX) -c -o $@ $(PRINTFBENCH_CXXFLAGS) $(CPPDEPS) $<
449 .PHONY: all clean data
452 # Dependencies tracking: