1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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)
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
21 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
22 -I.\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) \
23 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
25 $(OBJS)\test_dummy.o \
27 $(OBJS)\test_archivetest.o \
28 $(OBJS)\test_arrays.o \
29 $(OBJS)\test_datetimetest.o \
30 $(OBJS)\test_fileconftest.o \
31 $(OBJS)\test_filenametest.o \
32 $(OBJS)\test_filesystest.o \
33 $(OBJS)\test_fontmaptest.o \
34 $(OBJS)\test_formatconvertertest.o \
35 $(OBJS)\test_hashes.o \
36 $(OBJS)\test_longlongtest.o \
37 $(OBJS)\test_mbconvtest.o \
38 $(OBJS)\test_regextest.o \
39 $(OBJS)\test_wxregextest.o \
40 $(OBJS)\test_strings.o \
41 $(OBJS)\test_stdstrings.o \
42 $(OBJS)\test_unicode.o \
44 $(OBJS)\test_bstream.o \
45 $(OBJS)\test_ffilestream.o \
46 $(OBJS)\test_filestream.o \
47 $(OBJS)\test_memstream.o \
48 $(OBJS)\test_sstream.o \
49 $(OBJS)\test_textstreamtest.o \
50 $(OBJS)\test_zlibstream.o \
53 ### Conditionally set variables: ###
55 ifeq ($(GCC_VERSION),2.95)
56 GCCFLAGS = -fvtable-thunks
65 ifeq ($(DEBUG_FLAG),default)
69 ifeq ($(DEBUG_FLAG),1)
81 ifeq ($(MONOLITHIC),0)
84 ifeq ($(MONOLITHIC),1)
88 __OPTIMIZEFLAG_2 = -O0
90 ifeq ($(BUILD),release)
91 __OPTIMIZEFLAG_2 = -O2
93 ifeq ($(USE_EXCEPTIONS),0)
94 __EXCEPTIONSFLAG_4 = -fno-rtti
96 ifeq ($(USE_EXCEPTIONS),1)
99 ifeq ($(USE_EXCEPTIONS),0)
100 __EXCEPTIONSFLAG_5 = -fno-exceptions
102 ifeq ($(USE_EXCEPTIONS),1)
106 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
108 ifeq ($(BUILD),debug)
109 ifeq ($(DEBUG_FLAG),default)
110 __DEBUG_DEFINE_p = -D__WXDEBUG__
113 ifeq ($(DEBUG_FLAG),1)
114 __DEBUG_DEFINE_p = -D__WXDEBUG__
117 __UNICODE_DEFINE_p = -D_UNICODE
120 __DLLFLAG_p = -DWXUSINGDLL
122 ifeq ($(MONOLITHIC),0)
124 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
126 ifeq ($(MONOLITHIC),0)
128 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
130 ifeq ($(MONOLITHIC),1)
132 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
135 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
138 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
141 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
144 __UNICOWS_LIB_p = -lunicows
147 LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
150 LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
152 ifeq ($(BUILD),debug)
153 ifeq ($(DEBUG_INFO),default)
157 ifeq ($(BUILD),release)
158 ifeq ($(DEBUG_INFO),default)
162 ifeq ($(DEBUG_INFO),0)
165 ifeq ($(DEBUG_INFO),1)
172 -if not exist $(OBJS) mkdir $(OBJS)
176 all: $(OBJS)\test.exe data
179 -if exist $(OBJS)\*.o del $(OBJS)\*.o
180 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
182 $(OBJS)\test.exe: $(TEST_OBJECTS)
183 $(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
186 if not exist $(OBJS) mkdir $(OBJS)
187 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
189 $(OBJS)\test_dummy.o: ./dummy.cpp
190 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
192 $(OBJS)\test_test.o: ./test.cpp
193 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
195 $(OBJS)\test_archivetest.o: ./archive/archivetest.cpp
196 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
198 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
199 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
201 $(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp
202 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
204 $(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp
205 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
207 $(OBJS)\test_filenametest.o: ./filename/filenametest.cpp
208 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
210 $(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp
211 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
213 $(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp
214 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
216 $(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp
217 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
219 $(OBJS)\test_hashes.o: ./hashes/hashes.cpp
220 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
222 $(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp
223 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
225 $(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp
226 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
228 $(OBJS)\test_regextest.o: ./regex/regextest.cpp
229 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
231 $(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp
232 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
234 $(OBJS)\test_strings.o: ./strings/strings.cpp
235 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
237 $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
238 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
240 $(OBJS)\test_unicode.o: ./strings/unicode.cpp
241 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
243 $(OBJS)\test_crt.o: ./strings/crt.cpp
244 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
246 $(OBJS)\test_bstream.o: ./streams/bstream.cpp
247 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
249 $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
250 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
252 $(OBJS)\test_filestream.o: ./streams/filestream.cpp
253 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
255 $(OBJS)\test_memstream.o: ./streams/memstream.cpp
256 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
258 $(OBJS)\test_sstream.o: ./streams/sstream.cpp
259 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
261 $(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp
262 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
264 $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
265 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
267 $(OBJS)\test_uris.o: ./uris/uris.cpp
268 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
270 .PHONY: all clean data