1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
23 -I.\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) \
24 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
25 $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\test_dummy.o \
29 $(OBJS)\test_archivetest.o \
30 $(OBJS)\test_ziptest.o \
31 $(OBJS)\test_arrays.o \
32 $(OBJS)\test_datetimetest.o \
33 $(OBJS)\test_fileconftest.o \
34 $(OBJS)\test_filenametest.o \
35 $(OBJS)\test_filesystest.o \
36 $(OBJS)\test_fontmaptest.o \
37 $(OBJS)\test_formatconvertertest.o \
38 $(OBJS)\test_hashes.o \
39 $(OBJS)\test_lists.o \
40 $(OBJS)\test_longlongtest.o \
41 $(OBJS)\test_mbconvtest.o \
42 $(OBJS)\test_regextest.o \
43 $(OBJS)\test_wxregextest.o \
44 $(OBJS)\test_strings.o \
45 $(OBJS)\test_stdstrings.o \
46 $(OBJS)\test_unicode.o \
48 $(OBJS)\test_bstream.o \
49 $(OBJS)\test_datastreamtest.o \
50 $(OBJS)\test_ffilestream.o \
51 $(OBJS)\test_filestream.o \
52 $(OBJS)\test_largefile.o \
53 $(OBJS)\test_memstream.o \
54 $(OBJS)\test_sstream.o \
55 $(OBJS)\test_textstreamtest.o \
56 $(OBJS)\test_zlibstream.o \
58 TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
59 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
60 $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -W -Wall -I. \
61 $(__DLLFLAG_p) -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) $(__EXCEPTIONSFLAG) \
62 $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
64 $(OBJS)\test_gui_sample_rc.o \
65 $(OBJS)\test_gui_dummy.o \
66 $(OBJS)\test_gui_test.o \
67 $(OBJS)\test_gui_rect.o \
68 $(OBJS)\test_gui_size.o \
69 $(OBJS)\test_gui_point.o
71 ### Conditionally set variables: ###
73 ifeq ($(GCC_VERSION),2.95)
74 GCCFLAGS = -fvtable-thunks
83 ifeq ($(DEBUG_FLAG),default)
87 ifeq ($(DEBUG_FLAG),1)
105 ifeq ($(MONOLITHIC),0)
108 ifeq ($(MONOLITHIC),1)
111 ifeq ($(MONOLITHIC),0)
113 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
116 __test_gui___depname = $(OBJS)\test_gui.exe
119 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
121 ifeq ($(BUILD),debug)
122 ifeq ($(DEBUG_FLAG),default)
123 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
126 ifeq ($(DEBUG_FLAG),1)
127 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
130 __UNICODE_DEFINE_p_3 = --define _UNICODE
133 __DLLFLAG_p_3 = --define WXUSINGDLL
135 ifeq ($(MONOLITHIC),0)
137 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
139 ifeq ($(BUILD),debug)
142 ifeq ($(BUILD),release)
145 ifeq ($(USE_EXCEPTIONS),0)
146 __EXCEPTIONSFLAG = -fno-rtti
148 ifeq ($(USE_EXCEPTIONS),1)
151 ifeq ($(USE_EXCEPTIONS),0)
152 __EXCEPTIONSFLAG_0 = -fno-exceptions
154 ifeq ($(USE_EXCEPTIONS),1)
158 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160 ifeq ($(BUILD),debug)
161 ifeq ($(DEBUG_FLAG),default)
162 __DEBUG_DEFINE_p = -D__WXDEBUG__
165 ifeq ($(DEBUG_FLAG),1)
166 __DEBUG_DEFINE_p = -D__WXDEBUG__
169 __UNICODE_DEFINE_p = -D_UNICODE
172 __DLLFLAG_p = -DWXUSINGDLL
174 ifeq ($(MONOLITHIC),0)
176 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
178 ifeq ($(MONOLITHIC),1)
180 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
183 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
186 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
189 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
192 __UNICOWS_LIB_p = -lunicows
194 ifeq ($(BUILD),debug)
195 ifeq ($(DEBUG_INFO),default)
199 ifeq ($(BUILD),release)
200 ifeq ($(DEBUG_INFO),default)
204 ifeq ($(DEBUG_INFO),0)
207 ifeq ($(DEBUG_INFO),1)
214 -if not exist $(OBJS) mkdir $(OBJS)
218 all: $(OBJS)\test.exe $(__test_gui___depname) data
221 -if exist $(OBJS)\*.o del $(OBJS)\*.o
222 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
223 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
225 $(OBJS)\test.exe: $(TEST_OBJECTS)
226 $(CXX) -o $@ $(TEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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
229 $(OBJS)\test_gui.exe: $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample_rc.o
230 $(CXX) -o $@ $(TEST_GUI_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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
234 if not exist $(OBJS) mkdir $(OBJS)
235 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
237 $(OBJS)\test_dummy.o: ./dummy.cpp
238 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
240 $(OBJS)\test_test.o: ./test.cpp
241 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
243 $(OBJS)\test_archivetest.o: ./archive/archivetest.cpp
244 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
246 $(OBJS)\test_ziptest.o: ./archive/ziptest.cpp
247 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
249 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
250 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
252 $(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp
253 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
255 $(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp
256 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
258 $(OBJS)\test_filenametest.o: ./filename/filenametest.cpp
259 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
261 $(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp
262 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
264 $(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp
265 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
267 $(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp
268 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
270 $(OBJS)\test_hashes.o: ./hashes/hashes.cpp
271 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
273 $(OBJS)\test_lists.o: ./lists/lists.cpp
274 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
276 $(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp
277 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
279 $(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp
280 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
282 $(OBJS)\test_regextest.o: ./regex/regextest.cpp
283 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
285 $(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp
286 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
288 $(OBJS)\test_strings.o: ./strings/strings.cpp
289 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
291 $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
292 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
294 $(OBJS)\test_unicode.o: ./strings/unicode.cpp
295 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
297 $(OBJS)\test_crt.o: ./strings/crt.cpp
298 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
300 $(OBJS)\test_bstream.o: ./streams/bstream.cpp
301 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
303 $(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp
304 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
306 $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
307 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
309 $(OBJS)\test_filestream.o: ./streams/filestream.cpp
310 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
312 $(OBJS)\test_largefile.o: ./streams/largefile.cpp
313 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
315 $(OBJS)\test_memstream.o: ./streams/memstream.cpp
316 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
318 $(OBJS)\test_sstream.o: ./streams/sstream.cpp
319 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
321 $(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp
322 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
324 $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
325 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
327 $(OBJS)\test_uris.o: ./uris/uris.cpp
328 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
330 $(OBJS)\test_gui_sample_rc.o: ./../samples/sample.rc
331 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) --include-dir ./../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../samples
333 $(OBJS)\test_gui_dummy.o: ./dummy.cpp
334 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
336 $(OBJS)\test_gui_test.o: ./test.cpp
337 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
339 $(OBJS)\test_gui_rect.o: ./geometry/rect.cpp
340 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
342 $(OBJS)\test_gui_size.o: ./geometry/size.cpp
343 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
345 $(OBJS)\test_gui_point.o: ./geometry/point.cpp
346 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
348 .PHONY: all clean data