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)
27 $(OBJS)\test_formatconverter.o \
28 $(OBJS)\test_regex.o \
29 $(OBJS)\test_wxregex.o \
30 $(OBJS)\test_fileconf.o \
31 $(OBJS)\test_filename.o \
32 $(OBJS)\test_filesys.o \
33 $(OBJS)\test_arrays.o \
34 $(OBJS)\test_hashes.o \
35 $(OBJS)\test_longlong.o \
36 $(OBJS)\test_strings.o \
37 $(OBJS)\test_stdstrings.o \
38 $(OBJS)\test_unicode.o \
40 $(OBJS)\test_bstream.o \
41 $(OBJS)\test_ffilestream.o \
42 $(OBJS)\test_filestream.o \
43 $(OBJS)\test_memstream.o \
44 $(OBJS)\test_sstream.o \
45 $(OBJS)\test_zlibstream.o \
46 $(OBJS)\test_fontmap.o \
47 $(OBJS)\test_datetime.o
49 ### Conditionally set variables: ###
51 ifeq ($(GCC_VERSION),2.95)
52 GCCFLAGS = -fvtable-thunks
61 ifeq ($(DEBUG_FLAG),default)
65 ifeq ($(DEBUG_FLAG),1)
78 __OPTIMIZEFLAG_2 = -O0
80 ifeq ($(BUILD),release)
81 __OPTIMIZEFLAG_2 = -O2
83 ifeq ($(USE_EXCEPTIONS),0)
84 __EXCEPTIONSFLAG_4 = -fno-rtti
86 ifeq ($(USE_EXCEPTIONS),1)
89 ifeq ($(USE_EXCEPTIONS),0)
90 __EXCEPTIONSFLAG_5 = -fno-exceptions
92 ifeq ($(USE_EXCEPTIONS),1)
96 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
99 ifeq ($(DEBUG_FLAG),default)
100 __DEBUG_DEFINE_p = -D__WXDEBUG__
103 ifeq ($(DEBUG_FLAG),1)
104 __DEBUG_DEFINE_p = -D__WXDEBUG__
107 __UNICODE_DEFINE_p = -D_UNICODE
110 __DLLFLAG_p = -DWXUSINGDLL
112 ifeq ($(MONOLITHIC),0)
114 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
116 ifeq ($(MONOLITHIC),1)
118 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
121 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
124 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
127 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
130 __UNICOWS_LIB_p = -lunicows
133 LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
136 LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
138 ifeq ($(BUILD),debug)
139 ifeq ($(DEBUG_INFO),default)
143 ifeq ($(BUILD),release)
144 ifeq ($(DEBUG_INFO),default)
148 ifeq ($(DEBUG_INFO),0)
151 ifeq ($(DEBUG_INFO),1)
158 -if not exist $(OBJS) mkdir $(OBJS)
162 all: $(OBJS)\test.exe data
165 -if exist $(OBJS)\*.o del $(OBJS)\*.o
166 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
168 $(OBJS)\test.exe: $(TEST_OBJECTS)
169 $(CXX) -o $@ $(TEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(CPPUNIT_LIBS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
172 if not exist $(OBJS) mkdir $(OBJS)
173 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
175 $(OBJS)\test_test.o: ./test.cpp
176 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
178 $(OBJS)\test_main.o: ./mbconv/main.cpp
179 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
181 $(OBJS)\test_formatconverter.o: ./formatconverter/formatconverter.cpp
182 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
184 $(OBJS)\test_regex.o: ./regex/regex.cpp
185 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
187 $(OBJS)\test_wxregex.o: ./regex/wxregex.cpp
188 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
190 $(OBJS)\test_fileconf.o: ./fileconf/fileconf.cpp
191 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
193 $(OBJS)\test_filename.o: ./filename/filename.cpp
194 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
196 $(OBJS)\test_filesys.o: ./filesys/filesys.cpp
197 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
199 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
200 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
202 $(OBJS)\test_hashes.o: ./hashes/hashes.cpp
203 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
205 $(OBJS)\test_longlong.o: ./longlong/longlong.cpp
206 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
208 $(OBJS)\test_strings.o: ./strings/strings.cpp
209 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
211 $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
212 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
214 $(OBJS)\test_unicode.o: ./strings/unicode.cpp
215 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
217 $(OBJS)\test_crt.o: ./strings/crt.cpp
218 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
220 $(OBJS)\test_bstream.o: ./streams/bstream.cpp
221 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
223 $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
224 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
226 $(OBJS)\test_filestream.o: ./streams/filestream.cpp
227 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
229 $(OBJS)\test_memstream.o: ./streams/memstream.cpp
230 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
232 $(OBJS)\test_sstream.o: ./streams/sstream.cpp
233 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
235 $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
236 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
238 $(OBJS)\test_fontmap.o: ./fontmap/fontmap.cpp
239 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
241 $(OBJS)\test_datetime.o: ./datetime/datetime.cpp
242 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
244 .PHONY: all clean data