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 # -------------------------------------------------------------------------
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
20 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
21 -I.\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) \
22 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
26 $(OBJS)\test_formatconverter.o \
27 $(OBJS)\test_regex.o \
28 $(OBJS)\test_wxregex.o \
29 $(OBJS)\test_filesys.o \
30 $(OBJS)\test_arrays.o \
31 $(OBJS)\test_hashes.o \
32 $(OBJS)\test_longlong.o \
33 $(OBJS)\test_strings.o \
34 $(OBJS)\test_stdstrings.o \
35 $(OBJS)\test_unicode.o \
36 $(OBJS)\test_bstream.o \
37 $(OBJS)\test_ffilestream.o \
38 $(OBJS)\test_filestream.o \
39 $(OBJS)\test_memstream.o \
40 $(OBJS)\test_zlibstream.o
42 ### Conditionally set variables: ###
44 ifeq ($(GCC_VERSION),2.95)
45 GCCFLAGS = -fvtable-thunks
54 ifeq ($(DEBUG_FLAG),default)
58 ifeq ($(DEBUG_FLAG),1)
71 __OPTIMIZEFLAG_2 = -O0
73 ifeq ($(BUILD),release)
74 __OPTIMIZEFLAG_2 = -O2
76 ifeq ($(USE_EXCEPTIONS),0)
77 __EXCEPTIONSFLAG_4 = -fno-rtti
79 ifeq ($(USE_EXCEPTIONS),1)
82 ifeq ($(USE_EXCEPTIONS),0)
83 __EXCEPTIONSFLAG_5 = -fno-exceptions
85 ifeq ($(USE_EXCEPTIONS),1)
89 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
92 ifeq ($(DEBUG_FLAG),default)
93 __DEBUG_DEFINE_p = -D__WXDEBUG__
96 ifeq ($(DEBUG_FLAG),1)
97 __DEBUG_DEFINE_p = -D__WXDEBUG__
100 __UNICODE_DEFINE_p = -D_UNICODE
103 __DLLFLAG_p = -DWXUSINGDLL
105 ifeq ($(MONOLITHIC),0)
106 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
108 ifeq ($(MONOLITHIC),1)
110 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
113 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
116 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
119 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
122 __UNICOWS_LIB_p = -lunicows
125 LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
128 LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
130 ifeq ($(BUILD),debug)
131 ifeq ($(DEBUG_INFO),default)
135 ifeq ($(BUILD),release)
136 ifeq ($(DEBUG_INFO),default)
140 ifeq ($(DEBUG_INFO),0)
143 ifeq ($(DEBUG_INFO),1)
150 -if not exist $(OBJS) mkdir $(OBJS)
154 all: $(OBJS)\test.exe data
157 -if exist $(OBJS)\*.o del $(OBJS)\*.o
158 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
160 $(OBJS)\test.exe: $(TEST_OBJECTS)
161 $(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
164 if not exist $(OBJS) mkdir $(OBJS)
165 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
167 $(OBJS)\test_test.o: ./test.cpp
168 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
170 $(OBJS)\test_main.o: ./mbconv/main.cpp
171 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
173 $(OBJS)\test_formatconverter.o: ./formatconverter/formatconverter.cpp
174 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
176 $(OBJS)\test_regex.o: ./regex/regex.cpp
177 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
179 $(OBJS)\test_wxregex.o: ./regex/wxregex.cpp
180 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
182 $(OBJS)\test_filesys.o: ./filesys/filesys.cpp
183 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
185 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
186 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
188 $(OBJS)\test_hashes.o: ./hashes/hashes.cpp
189 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
191 $(OBJS)\test_longlong.o: ./longlong/longlong.cpp
192 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
194 $(OBJS)\test_strings.o: ./strings/strings.cpp
195 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
197 $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
198 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
200 $(OBJS)\test_unicode.o: ./strings/unicode.cpp
201 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
203 $(OBJS)\test_bstream.o: ./streams/bstream.cpp
204 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
206 $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
207 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
209 $(OBJS)\test_filestream.o: ./streams/filestream.cpp
210 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
212 $(OBJS)\test_memstream.o: ./streams/memstream.cpp
213 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
215 $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
216 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
218 .PHONY: all clean data