1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.2 (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_unichar.o \
55 $(OBJS)\test_unicode.o \
56 $(OBJS)\test_vararg.o \
58 $(OBJS)\test_vsnprintf.o \
59 $(OBJS)\test_bstream.o \
60 $(OBJS)\test_datastreamtest.o \
61 $(OBJS)\test_ffilestream.o \
62 $(OBJS)\test_fileback.o \
63 $(OBJS)\test_filestream.o \
64 $(OBJS)\test_largefile.o \
65 $(OBJS)\test_memstream.o \
66 $(OBJS)\test_sstream.o \
67 $(OBJS)\test_tempfile.o \
68 $(OBJS)\test_textstreamtest.o \
69 $(OBJS)\test_zlibstream.o \
70 $(OBJS)\test_textfiletest.o \
72 TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
73 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
74 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
75 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
76 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\include -W -Wall -I. $(__DLLFLAG_p) \
77 -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
78 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
80 $(OBJS)\test_gui_sample_rc.o \
81 $(OBJS)\test_gui_dummy.o \
82 $(OBJS)\test_gui_test.o \
83 $(OBJS)\test_gui_rect.o \
84 $(OBJS)\test_gui_size.o \
85 $(OBJS)\test_gui_point.o
86 PRINTFBENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
87 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
88 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
89 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
90 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\include -W -Wall -I. $(__DLLFLAG_p) \
91 -DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
92 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
93 PRINTFBENCH_OBJECTS = \
94 $(OBJS)\printfbench_dummy.o \
95 $(OBJS)\printfbench_printfbench.o
97 ### Conditionally set variables: ###
99 ifeq ($(GCC_VERSION),2.95)
100 GCCFLAGS = -fvtable-thunks
108 ifeq ($(BUILD),debug)
109 ifeq ($(DEBUG_FLAG),default)
113 ifeq ($(DEBUG_FLAG),1)
131 ifeq ($(MONOLITHIC),0)
134 ifeq ($(MONOLITHIC),1)
137 ifeq ($(MONOLITHIC),0)
139 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
142 __test_gui___depname = $(OBJS)\test_gui.exe
145 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
147 ifeq ($(BUILD),debug)
148 ifeq ($(DEBUG_FLAG),default)
149 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
152 ifeq ($(DEBUG_FLAG),1)
153 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
155 ifeq ($(USE_EXCEPTIONS),0)
156 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
159 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
161 ifeq ($(USE_THREADS),0)
162 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
165 __UNICODE_DEFINE_p_3 = --define _UNICODE
168 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
170 ifeq ($(USE_GDIPLUS),1)
171 __GFXCTX_DEFINE_p_3 = --define wxUSE_GRAPHICS_CONTEXT=1
174 __DLLFLAG_p_3 = --define WXUSINGDLL
176 ifeq ($(MONOLITHIC),0)
178 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
181 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
184 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
187 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
189 ifeq ($(BUILD),debug)
192 ifeq ($(BUILD),release)
196 __RTTIFLAG = -fno-rtti
201 ifeq ($(USE_EXCEPTIONS),0)
202 __EXCEPTIONSFLAG = -fno-exceptions
204 ifeq ($(USE_EXCEPTIONS),1)
208 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
210 ifeq ($(BUILD),debug)
211 ifeq ($(DEBUG_FLAG),default)
212 __DEBUG_DEFINE_p = -D__WXDEBUG__
215 ifeq ($(DEBUG_FLAG),1)
216 __DEBUG_DEFINE_p = -D__WXDEBUG__
218 ifeq ($(USE_EXCEPTIONS),0)
219 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
222 __RTTI_DEFINE_p = -DwxNO_RTTI
224 ifeq ($(USE_THREADS),0)
225 __THREAD_DEFINE_p = -DwxNO_THREADS
228 __UNICODE_DEFINE_p = -D_UNICODE
231 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
233 ifeq ($(USE_GDIPLUS),1)
234 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
237 __DLLFLAG_p = -DWXUSINGDLL
239 ifeq ($(MONOLITHIC),0)
241 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
243 ifeq ($(MONOLITHIC),1)
245 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
248 __UNICOWS_LIB_p = -lunicows
250 ifeq ($(USE_GDIPLUS),1)
251 __GDIPLUS_LIB_p = -lgdiplus
253 ifeq ($(BUILD),debug)
254 ifeq ($(DEBUG_INFO),default)
258 ifeq ($(BUILD),release)
259 ifeq ($(DEBUG_INFO),default)
263 ifeq ($(DEBUG_INFO),0)
266 ifeq ($(DEBUG_INFO),1)
269 ifeq ($(USE_THREADS),0)
272 ifeq ($(USE_THREADS),1)
273 __THREADSFLAG = -mthreads
279 -if not exist $(OBJS) mkdir $(OBJS)
283 all: $(OBJS)\test.exe $(__test_gui___depname) data $(OBJS)\printfbench.exe
286 -if exist $(OBJS)\*.o del $(OBJS)\*.o
287 -if exist $(OBJS)\*.d del $(OBJS)\*.d
288 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
289 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
290 -if exist $(OBJS)\printfbench.exe del $(OBJS)\printfbench.exe
292 $(OBJS)\test.exe: $(TEST_OBJECTS)
293 $(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
296 $(OBJS)\test_gui.exe: $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample_rc.o
297 $(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
301 if not exist $(OBJS) mkdir $(OBJS)
302 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
304 $(OBJS)\printfbench.exe: $(PRINTFBENCH_OBJECTS)
305 $(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
307 $(OBJS)\test_dummy.o: ./dummy.cpp
308 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
310 $(OBJS)\test_test.o: ./test.cpp
311 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
313 $(OBJS)\test_archivetest.o: ./archive/archivetest.cpp
314 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
316 $(OBJS)\test_ziptest.o: ./archive/ziptest.cpp
317 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
319 $(OBJS)\test_tartest.o: ./archive/tartest.cpp
320 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
322 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
323 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
325 $(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp
326 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
328 $(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp
329 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
331 $(OBJS)\test_filekind.o: ./filekind/filekind.cpp
332 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
334 $(OBJS)\test_filenametest.o: ./filename/filenametest.cpp
335 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
337 $(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp
338 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
340 $(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp
341 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
343 $(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp
344 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
346 $(OBJS)\test_hashes.o: ./hashes/hashes.cpp
347 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
349 $(OBJS)\test_lists.o: ./lists/lists.cpp
350 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
352 $(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp
353 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
355 $(OBJS)\test_convautotest.o: ./mbconv/convautotest.cpp
356 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
358 $(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp
359 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
361 $(OBJS)\test_regextest.o: ./regex/regextest.cpp
362 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
364 $(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp
365 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
367 $(OBJS)\test_scopeguardtest.o: ./scopeguard/scopeguardtest.cpp
368 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
370 $(OBJS)\test_strings.o: ./strings/strings.cpp
371 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
373 $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
374 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
376 $(OBJS)\test_tokenizer.o: ./strings/tokenizer.cpp
377 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
379 $(OBJS)\test_unichar.o: ./strings/unichar.cpp
380 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
382 $(OBJS)\test_unicode.o: ./strings/unicode.cpp
383 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
385 $(OBJS)\test_vararg.o: ./strings/vararg.cpp
386 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
388 $(OBJS)\test_crt.o: ./strings/crt.cpp
389 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
391 $(OBJS)\test_vsnprintf.o: ./strings/vsnprintf.cpp
392 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
394 $(OBJS)\test_bstream.o: ./streams/bstream.cpp
395 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
397 $(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp
398 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
400 $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
401 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
403 $(OBJS)\test_fileback.o: ./streams/fileback.cpp
404 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
406 $(OBJS)\test_filestream.o: ./streams/filestream.cpp
407 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
409 $(OBJS)\test_largefile.o: ./streams/largefile.cpp
410 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
412 $(OBJS)\test_memstream.o: ./streams/memstream.cpp
413 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
415 $(OBJS)\test_sstream.o: ./streams/sstream.cpp
416 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
418 $(OBJS)\test_tempfile.o: ./streams/tempfile.cpp
419 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
421 $(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp
422 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
424 $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
425 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
427 $(OBJS)\test_textfiletest.o: ./textfile/textfiletest.cpp
428 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
430 $(OBJS)\test_uris.o: ./uris/uris.cpp
431 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
433 $(OBJS)\test_gui_sample_rc.o: ./../samples/sample.rc
434 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 --define NOPCH
436 $(OBJS)\test_gui_dummy.o: ./dummy.cpp
437 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
439 $(OBJS)\test_gui_test.o: ./test.cpp
440 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
442 $(OBJS)\test_gui_rect.o: ./geometry/rect.cpp
443 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
445 $(OBJS)\test_gui_size.o: ./geometry/size.cpp
446 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
448 $(OBJS)\test_gui_point.o: ./geometry/point.cpp
449 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
451 $(OBJS)\printfbench_dummy.o: ./dummy.cpp
452 $(CXX) -c -o $@ $(PRINTFBENCH_CXXFLAGS) $(CPPDEPS) $<
454 $(OBJS)\printfbench_printfbench.o: ./benchmarks/printfbench.cpp
455 $(CXX) -c -o $@ $(PRINTFBENCH_CXXFLAGS) $(CPPDEPS) $<
457 .PHONY: all clean data
460 # Dependencies tracking: