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)
26 $(OBJS)\test_arrays.o \
27 $(OBJS)\test_datetime.o \
28 $(OBJS)\test_fileconf.o \
29 $(OBJS)\test_filename.o \
30 $(OBJS)\test_filesys.o \
31 $(OBJS)\test_fontmap.o \
32 $(OBJS)\test_formatconverter.o \
33 $(OBJS)\test_hashes.o \
34 $(OBJS)\test_longlong.o \
36 $(OBJS)\test_regex.o \
37 $(OBJS)\test_wxregex.o \
38 $(OBJS)\test_strings.o \
39 $(OBJS)\test_stdstrings.o \
40 $(OBJS)\test_unicode.o \
42 $(OBJS)\test_bstream.o \
43 $(OBJS)\test_ffilestream.o \
44 $(OBJS)\test_filestream.o \
45 $(OBJS)\test_memstream.o \
46 $(OBJS)\test_sstream.o \
47 $(OBJS)\test_zlibstream.o \
50 ### Conditionally set variables: ###
52 ifeq ($(GCC_VERSION),2.95)
53 GCCFLAGS = -fvtable-thunks
62 ifeq ($(DEBUG_FLAG),default)
66 ifeq ($(DEBUG_FLAG),1)
78 ifeq ($(MONOLITHIC),0)
81 ifeq ($(MONOLITHIC),1)
85 __OPTIMIZEFLAG_2 = -O0
87 ifeq ($(BUILD),release)
88 __OPTIMIZEFLAG_2 = -O2
90 ifeq ($(USE_EXCEPTIONS),0)
91 __EXCEPTIONSFLAG_4 = -fno-rtti
93 ifeq ($(USE_EXCEPTIONS),1)
96 ifeq ($(USE_EXCEPTIONS),0)
97 __EXCEPTIONSFLAG_5 = -fno-exceptions
99 ifeq ($(USE_EXCEPTIONS),1)
103 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
105 ifeq ($(BUILD),debug)
106 ifeq ($(DEBUG_FLAG),default)
107 __DEBUG_DEFINE_p = -D__WXDEBUG__
110 ifeq ($(DEBUG_FLAG),1)
111 __DEBUG_DEFINE_p = -D__WXDEBUG__
114 __UNICODE_DEFINE_p = -D_UNICODE
117 __DLLFLAG_p = -DWXUSINGDLL
119 ifeq ($(MONOLITHIC),0)
121 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
123 ifeq ($(MONOLITHIC),1)
125 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
128 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
131 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
134 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
137 __UNICOWS_LIB_p = -lunicows
140 LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
143 LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
145 ifeq ($(BUILD),debug)
146 ifeq ($(DEBUG_INFO),default)
150 ifeq ($(BUILD),release)
151 ifeq ($(DEBUG_INFO),default)
155 ifeq ($(DEBUG_INFO),0)
158 ifeq ($(DEBUG_INFO),1)
165 -if not exist $(OBJS) mkdir $(OBJS)
169 all: $(OBJS)\test.exe data
172 -if exist $(OBJS)\*.o del $(OBJS)\*.o
173 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
175 $(OBJS)\test.exe: $(TEST_OBJECTS)
176 $(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) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
179 if not exist $(OBJS) mkdir $(OBJS)
180 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
182 $(OBJS)\test_test.o: ./test.cpp
183 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
185 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
186 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
188 $(OBJS)\test_datetime.o: ./datetime/datetime.cpp
189 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
191 $(OBJS)\test_fileconf.o: ./fileconf/fileconf.cpp
192 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
194 $(OBJS)\test_filename.o: ./filename/filename.cpp
195 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
197 $(OBJS)\test_filesys.o: ./filesys/filesys.cpp
198 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
200 $(OBJS)\test_fontmap.o: ./fontmap/fontmap.cpp
201 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
203 $(OBJS)\test_formatconverter.o: ./formatconverter/formatconverter.cpp
204 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
206 $(OBJS)\test_hashes.o: ./hashes/hashes.cpp
207 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
209 $(OBJS)\test_longlong.o: ./longlong/longlong.cpp
210 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
212 $(OBJS)\test_main.o: ./mbconv/main.cpp
213 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
215 $(OBJS)\test_regex.o: ./regex/regex.cpp
216 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
218 $(OBJS)\test_wxregex.o: ./regex/wxregex.cpp
219 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
221 $(OBJS)\test_strings.o: ./strings/strings.cpp
222 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
224 $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
225 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
227 $(OBJS)\test_unicode.o: ./strings/unicode.cpp
228 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
230 $(OBJS)\test_crt.o: ./strings/crt.cpp
231 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
233 $(OBJS)\test_bstream.o: ./streams/bstream.cpp
234 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
236 $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
237 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
239 $(OBJS)\test_filestream.o: ./streams/filestream.cpp
240 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
242 $(OBJS)\test_memstream.o: ./streams/memstream.cpp
243 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
245 $(OBJS)\test_sstream.o: ./streams/sstream.cpp
246 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
248 $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
249 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
251 $(OBJS)\test_uris.o: ./uris/uris.cpp
252 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
254 .PHONY: all clean data