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_filestream.o \
60 $(OBJS)\test_largefile.o \
61 $(OBJS)\test_memstream.o \
62 $(OBJS)\test_sstream.o \
63 $(OBJS)\test_tempfile.o \
64 $(OBJS)\test_textstreamtest.o \
65 $(OBJS)\test_zlibstream.o \
66 $(OBJS)\test_textfiletest.o \
68 TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
69 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
70 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
71 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
72 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\include -W -Wall -I. $(__DLLFLAG_p) \
73 -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
74 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
76 $(OBJS)\test_gui_sample_rc.o \
77 $(OBJS)\test_gui_dummy.o \
78 $(OBJS)\test_gui_test.o \
79 $(OBJS)\test_gui_rect.o \
80 $(OBJS)\test_gui_size.o \
81 $(OBJS)\test_gui_point.o
82 PRINTFBENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
83 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
84 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
85 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
86 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\include -W -Wall -I. $(__DLLFLAG_p) \
87 -DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
88 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
89 PRINTFBENCH_OBJECTS = \
90 $(OBJS)\printfbench_dummy.o \
91 $(OBJS)\printfbench_printfbench.o
93 ### Conditionally set variables: ###
95 ifeq ($(GCC_VERSION),2.95)
96 GCCFLAGS = -fvtable-thunks
104 ifeq ($(BUILD),debug)
105 ifeq ($(DEBUG_FLAG),default)
109 ifeq ($(DEBUG_FLAG),1)
127 ifeq ($(MONOLITHIC),0)
130 ifeq ($(MONOLITHIC),1)
133 ifeq ($(MONOLITHIC),0)
135 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
138 __test_gui___depname = $(OBJS)\test_gui.exe
141 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
143 ifeq ($(BUILD),debug)
144 ifeq ($(DEBUG_FLAG),default)
145 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
148 ifeq ($(DEBUG_FLAG),1)
149 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
151 ifeq ($(USE_EXCEPTIONS),0)
152 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
155 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
157 ifeq ($(USE_THREADS),0)
158 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
161 __UNICODE_DEFINE_p_3 = --define _UNICODE
164 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
166 ifeq ($(USE_GDIPLUS),1)
167 __GFXCTX_DEFINE_p_3 = --define wxUSE_GRAPHICS_CONTEXT=1
170 __DLLFLAG_p_3 = --define WXUSINGDLL
172 ifeq ($(MONOLITHIC),0)
174 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
177 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
180 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
183 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
185 ifeq ($(BUILD),debug)
188 ifeq ($(BUILD),release)
192 __RTTIFLAG = -fno-rtti
197 ifeq ($(USE_EXCEPTIONS),0)
198 __EXCEPTIONSFLAG = -fno-exceptions
200 ifeq ($(USE_EXCEPTIONS),1)
204 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
206 ifeq ($(BUILD),debug)
207 ifeq ($(DEBUG_FLAG),default)
208 __DEBUG_DEFINE_p = -D__WXDEBUG__
211 ifeq ($(DEBUG_FLAG),1)
212 __DEBUG_DEFINE_p = -D__WXDEBUG__
214 ifeq ($(USE_EXCEPTIONS),0)
215 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
218 __RTTI_DEFINE_p = -DwxNO_RTTI
220 ifeq ($(USE_THREADS),0)
221 __THREAD_DEFINE_p = -DwxNO_THREADS
224 __UNICODE_DEFINE_p = -D_UNICODE
227 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
229 ifeq ($(USE_GDIPLUS),1)
230 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
233 __DLLFLAG_p = -DWXUSINGDLL
235 ifeq ($(MONOLITHIC),0)
237 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
239 ifeq ($(MONOLITHIC),1)
241 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
244 __UNICOWS_LIB_p = -lunicows
246 ifeq ($(USE_GDIPLUS),1)
247 __GDIPLUS_LIB_p = -lgdiplus
249 ifeq ($(BUILD),debug)
250 ifeq ($(DEBUG_INFO),default)
254 ifeq ($(BUILD),release)
255 ifeq ($(DEBUG_INFO),default)
259 ifeq ($(DEBUG_INFO),0)
262 ifeq ($(DEBUG_INFO),1)
265 ifeq ($(USE_THREADS),0)
268 ifeq ($(USE_THREADS),1)
269 __THREADSFLAG = -mthreads
275 -if not exist $(OBJS) mkdir $(OBJS)
279 all: $(OBJS)\test.exe $(__test_gui___depname) data $(OBJS)\printfbench.exe
282 -if exist $(OBJS)\*.o del $(OBJS)\*.o
283 -if exist $(OBJS)\*.d del $(OBJS)\*.d
284 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
285 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
286 -if exist $(OBJS)\printfbench.exe del $(OBJS)\printfbench.exe
288 $(OBJS)\test.exe: $(TEST_OBJECTS)
289 $(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
292 $(OBJS)\test_gui.exe: $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample_rc.o
293 $(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
297 if not exist $(OBJS) mkdir $(OBJS)
298 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
300 $(OBJS)\printfbench.exe: $(PRINTFBENCH_OBJECTS)
301 $(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
303 $(OBJS)\test_dummy.o: ./dummy.cpp
304 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
306 $(OBJS)\test_test.o: ./test.cpp
307 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
309 $(OBJS)\test_archivetest.o: ./archive/archivetest.cpp
310 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
312 $(OBJS)\test_ziptest.o: ./archive/ziptest.cpp
313 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
315 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
316 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
318 $(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp
319 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
321 $(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp
322 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
324 $(OBJS)\test_filekind.o: ./filekind/filekind.cpp
325 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
327 $(OBJS)\test_filenametest.o: ./filename/filenametest.cpp
328 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
330 $(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp
331 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
333 $(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp
334 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
336 $(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp
337 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
339 $(OBJS)\test_hashes.o: ./hashes/hashes.cpp
340 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
342 $(OBJS)\test_lists.o: ./lists/lists.cpp
343 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
345 $(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp
346 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
348 $(OBJS)\test_convautotest.o: ./mbconv/convautotest.cpp
349 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
351 $(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp
352 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
354 $(OBJS)\test_regextest.o: ./regex/regextest.cpp
355 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
357 $(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp
358 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
360 $(OBJS)\test_scopeguardtest.o: ./scopeguard/scopeguardtest.cpp
361 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
363 $(OBJS)\test_strings.o: ./strings/strings.cpp
364 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
366 $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
367 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
369 $(OBJS)\test_tokenizer.o: ./strings/tokenizer.cpp
370 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
372 $(OBJS)\test_unicode.o: ./strings/unicode.cpp
373 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
375 $(OBJS)\test_crt.o: ./strings/crt.cpp
376 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
378 $(OBJS)\test_vsnprintf.o: ./strings/vsnprintf.cpp
379 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
381 $(OBJS)\test_bstream.o: ./streams/bstream.cpp
382 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
384 $(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp
385 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
387 $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
388 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
390 $(OBJS)\test_filestream.o: ./streams/filestream.cpp
391 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
393 $(OBJS)\test_largefile.o: ./streams/largefile.cpp
394 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
396 $(OBJS)\test_memstream.o: ./streams/memstream.cpp
397 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
399 $(OBJS)\test_sstream.o: ./streams/sstream.cpp
400 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
402 $(OBJS)\test_tempfile.o: ./streams/tempfile.cpp
403 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
405 $(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp
406 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
408 $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
409 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
411 $(OBJS)\test_textfiletest.o: ./textfile/textfiletest.cpp
412 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
414 $(OBJS)\test_uris.o: ./uris/uris.cpp
415 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $(CPPDEPS) $<
417 $(OBJS)\test_gui_sample_rc.o: ./../samples/sample.rc
418 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
420 $(OBJS)\test_gui_dummy.o: ./dummy.cpp
421 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
423 $(OBJS)\test_gui_test.o: ./test.cpp
424 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
426 $(OBJS)\test_gui_rect.o: ./geometry/rect.cpp
427 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
429 $(OBJS)\test_gui_size.o: ./geometry/size.cpp
430 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
432 $(OBJS)\test_gui_point.o: ./geometry/point.cpp
433 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
435 $(OBJS)\printfbench_dummy.o: ./dummy.cpp
436 $(CXX) -c -o $@ $(PRINTFBENCH_CXXFLAGS) $(CPPDEPS) $<
438 $(OBJS)\printfbench_printfbench.o: ./benchmarks/printfbench.cpp
439 $(CXX) -c -o $@ $(PRINTFBENCH_CXXFLAGS) $(CPPDEPS) $<
441 .PHONY: all clean data
444 # Dependencies tracking: