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_arrays.o \
35 $(OBJS)\test_datetimetest.o \
36 $(OBJS)\test_fileconftest.o \
37 $(OBJS)\test_filekind.o \
38 $(OBJS)\test_filenametest.o \
39 $(OBJS)\test_filesystest.o \
40 $(OBJS)\test_fontmaptest.o \
41 $(OBJS)\test_formatconvertertest.o \
42 $(OBJS)\test_hashes.o \
43 $(OBJS)\test_lists.o \
44 $(OBJS)\test_longlongtest.o \
45 $(OBJS)\test_convautotest.o \
46 $(OBJS)\test_mbconvtest.o \
47 $(OBJS)\test_regextest.o \
48 $(OBJS)\test_wxregextest.o \
49 $(OBJS)\test_scopeguardtest.o \
50 $(OBJS)\test_strings.o \
51 $(OBJS)\test_stdstrings.o \
52 $(OBJS)\test_tokenizer.o \
53 $(OBJS)\test_unicode.o \
55 $(OBJS)\test_vsnprintf.o \
56 $(OBJS)\test_bstream.o \
57 $(OBJS)\test_datastreamtest.o \
58 $(OBJS)\test_ffilestream.o \
59 $(OBJS)\test_fileback.o \
60 $(OBJS)\test_filestream.o \
61 $(OBJS)\test_largefile.o \
62 $(OBJS)\test_memstream.o \
63 $(OBJS)\test_sstream.o \
64 $(OBJS)\test_tempfile.o \
65 $(OBJS)\test_textstreamtest.o \
66 $(OBJS)\test_zlibstream.o \
67 $(OBJS)\test_textfiletest.o \
69 TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
70 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
71 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
72 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
73 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\include -W -Wall -I. $(__DLLFLAG_p) \
74 -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
75 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
77 $(OBJS)\test_gui_sample_rc.o \
78 $(OBJS)\test_gui_dummy.o \
79 $(OBJS)\test_gui_test.o \
80 $(OBJS)\test_gui_rect.o \
81 $(OBJS)\test_gui_size.o \
82 $(OBJS)\test_gui_point.o
83 PRINTFBENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
84 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
85 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
86 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
87 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\include -W -Wall -I. $(__DLLFLAG_p) \
88 -DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
89 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
90 PRINTFBENCH_OBJECTS = \
91 $(OBJS)\printfbench_dummy.o \
92 $(OBJS)\printfbench_printfbench.o
94 ### Conditionally set variables: ###
96 ifeq ($(GCC_VERSION),2.95)
97 GCCFLAGS = -fvtable-thunks
105 ifeq ($(BUILD),debug)
106 ifeq ($(DEBUG_FLAG),default)
110 ifeq ($(DEBUG_FLAG),1)
128 ifeq ($(MONOLITHIC),0)
131 ifeq ($(MONOLITHIC),1)
134 ifeq ($(MONOLITHIC),0)
136 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
139 __test_gui___depname = $(OBJS)\test_gui.exe
142 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
144 ifeq ($(BUILD),debug)
145 ifeq ($(DEBUG_FLAG),default)
146 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
149 ifeq ($(DEBUG_FLAG),1)
150 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
152 ifeq ($(USE_EXCEPTIONS),0)
153 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
156 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
158 ifeq ($(USE_THREADS),0)
159 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
162 __UNICODE_DEFINE_p_3 = --define _UNICODE
165 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
167 ifeq ($(USE_GDIPLUS),1)
168 __GFXCTX_DEFINE_p_3 = --define wxUSE_GRAPHICS_CONTEXT=1
171 __DLLFLAG_p_3 = --define WXUSINGDLL
173 ifeq ($(MONOLITHIC),0)
175 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
178 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
181 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
184 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
186 ifeq ($(BUILD),debug)
189 ifeq ($(BUILD),release)
193 __RTTIFLAG = -fno-rtti
198 ifeq ($(USE_EXCEPTIONS),0)
199 __EXCEPTIONSFLAG = -fno-exceptions
201 ifeq ($(USE_EXCEPTIONS),1)
205 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
207 ifeq ($(BUILD),debug)
208 ifeq ($(DEBUG_FLAG),default)
209 __DEBUG_DEFINE_p = -D__WXDEBUG__
212 ifeq ($(DEBUG_FLAG),1)
213 __DEBUG_DEFINE_p = -D__WXDEBUG__
215 ifeq ($(USE_EXCEPTIONS),0)
216 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
219 __RTTI_DEFINE_p = -DwxNO_RTTI
221 ifeq ($(USE_THREADS),0)
222 __THREAD_DEFINE_p = -DwxNO_THREADS
225 __UNICODE_DEFINE_p = -D_UNICODE
228 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
230 ifeq ($(USE_GDIPLUS),1)
231 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
234 __DLLFLAG_p = -DWXUSINGDLL
236 ifeq ($(MONOLITHIC),0)
238 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
240 ifeq ($(MONOLITHIC),1)
242 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
245 __UNICOWS_LIB_p = -lunicows
247 ifeq ($(USE_GDIPLUS),1)
248 __GDIPLUS_LIB_p = -lgdiplus
250 ifeq ($(BUILD),debug)
251 ifeq ($(DEBUG_INFO),default)
255 ifeq ($(BUILD),release)
256 ifeq ($(DEBUG_INFO),default)
260 ifeq ($(DEBUG_INFO),0)
263 ifeq ($(DEBUG_INFO),1)
266 ifeq ($(USE_THREADS),0)
269 ifeq ($(USE_THREADS),1)
270 __THREADSFLAG = -mthreads
276 -if not exist $(OBJS) mkdir $(OBJS)
280 all: $(OBJS)\test.exe $(__test_gui___depname) data $(OBJS)\printfbench.exe
283 -if exist $(OBJS)\*.o del $(OBJS)\*.o
284 -if exist $(OBJS)\*.d del $(OBJS)\*.d
285 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
286 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
287 -if exist $(OBJS)\printfbench.exe del $(OBJS)\printfbench.exe
289 $(OBJS)\test.exe: $(TEST_OBJECTS)
290 $(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
293 $(OBJS)\test_gui.exe: $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample_rc.o
294 $(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
298 if not exist $(OBJS) mkdir $(OBJS)
299 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
301 $(OBJS)\printfbench.exe: $(PRINTFBENCH_OBJECTS)
302 $(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
304 $(OBJS)\test_dummy.o: ./dummy.cpp
305 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
307 $(OBJS)\test_test.o: ./test.cpp
308 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
310 $(OBJS)\test_archivetest.o: ./archive/archivetest.cpp
311 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
313 $(OBJS)\test_ziptest.o: ./archive/ziptest.cpp
314 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
316 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
317 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
319 $(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp
320 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
322 $(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp
323 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
325 $(OBJS)\test_filekind.o: ./filekind/filekind.cpp
326 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
328 $(OBJS)\test_filenametest.o: ./filename/filenametest.cpp
329 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
331 $(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp
332 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
334 $(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp
335 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
337 $(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp
338 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
340 $(OBJS)\test_hashes.o: ./hashes/hashes.cpp
341 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
343 $(OBJS)\test_lists.o: ./lists/lists.cpp
344 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
346 $(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp
347 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
349 $(OBJS)\test_convautotest.o: ./mbconv/convautotest.cpp
350 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
352 $(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp
353 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
355 $(OBJS)\test_regextest.o: ./regex/regextest.cpp
356 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
358 $(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp
359 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
361 $(OBJS)\test_scopeguardtest.o: ./scopeguard/scopeguardtest.cpp
362 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
364 $(OBJS)\test_strings.o: ./strings/strings.cpp
365 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
367 $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
368 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
370 $(OBJS)\test_tokenizer.o: ./strings/tokenizer.cpp
371 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
373 $(OBJS)\test_unicode.o: ./strings/unicode.cpp
374 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
376 $(OBJS)\test_crt.o: ./strings/crt.cpp
377 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
379 $(OBJS)\test_vsnprintf.o: ./strings/vsnprintf.cpp
380 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
382 $(OBJS)\test_bstream.o: ./streams/bstream.cpp
383 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
385 $(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp
386 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
388 $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
389 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
391 $(OBJS)\test_fileback.o: ./streams/fileback.cpp
392 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
394 $(OBJS)\test_filestream.o: ./streams/filestream.cpp
395 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
397 $(OBJS)\test_largefile.o: ./streams/largefile.cpp
398 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
400 $(OBJS)\test_memstream.o: ./streams/memstream.cpp
401 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
403 $(OBJS)\test_sstream.o: ./streams/sstream.cpp
404 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
406 $(OBJS)\test_tempfile.o: ./streams/tempfile.cpp
407 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
409 $(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp
410 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
412 $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
413 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
415 $(OBJS)\test_textfiletest.o: ./textfile/textfiletest.cpp
416 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
418 $(OBJS)\test_uris.o: ./uris/uris.cpp
419 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
421 $(OBJS)\test_gui_sample_rc.o: ./../samples/sample.rc
422 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
424 $(OBJS)\test_gui_dummy.o: ./dummy.cpp
425 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
427 $(OBJS)\test_gui_test.o: ./test.cpp
428 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
430 $(OBJS)\test_gui_rect.o: ./geometry/rect.cpp
431 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
433 $(OBJS)\test_gui_size.o: ./geometry/size.cpp
434 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
436 $(OBJS)\test_gui_point.o: ./geometry/point.cpp
437 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
439 $(OBJS)\printfbench_dummy.o: ./dummy.cpp
440 $(CXX) -c -o $@ $(PRINTFBENCH_CXXFLAGS) $(CPPDEPS) $<
442 $(OBJS)\printfbench_printfbench.o: ./benchmarks/printfbench.cpp
443 $(CXX) -c -o $@ $(PRINTFBENCH_CXXFLAGS) $(CPPDEPS) $<
445 .PHONY: all clean data
448 # Dependencies tracking: