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_filename.o \
30 $(OBJS)\test_filesys.o \
31 $(OBJS)\test_arrays.o \
32 $(OBJS)\test_hashes.o \
33 $(OBJS)\test_longlong.o \
34 $(OBJS)\test_strings.o \
35 $(OBJS)\test_stdstrings.o \
36 $(OBJS)\test_unicode.o \
38 $(OBJS)\test_bstream.o \
39 $(OBJS)\test_ffilestream.o \
40 $(OBJS)\test_filestream.o \
41 $(OBJS)\test_memstream.o \
42 $(OBJS)\test_zlibstream.o \
43 $(OBJS)\test_fontmap.o \
44 $(OBJS)\test_datetime.o
46 ### Conditionally set variables: ###
48 ifeq ($(GCC_VERSION),2.95)
49 GCCFLAGS = -fvtable-thunks
58 ifeq ($(DEBUG_FLAG),default)
62 ifeq ($(DEBUG_FLAG),1)
75 __OPTIMIZEFLAG_2 = -O0
77 ifeq ($(BUILD),release)
78 __OPTIMIZEFLAG_2 = -O2
80 ifeq ($(USE_EXCEPTIONS),0)
81 __EXCEPTIONSFLAG_4 = -fno-rtti
83 ifeq ($(USE_EXCEPTIONS),1)
86 ifeq ($(USE_EXCEPTIONS),0)
87 __EXCEPTIONSFLAG_5 = -fno-exceptions
89 ifeq ($(USE_EXCEPTIONS),1)
93 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
96 ifeq ($(DEBUG_FLAG),default)
97 __DEBUG_DEFINE_p = -D__WXDEBUG__
100 ifeq ($(DEBUG_FLAG),1)
101 __DEBUG_DEFINE_p = -D__WXDEBUG__
104 __UNICODE_DEFINE_p = -D_UNICODE
107 __DLLFLAG_p = -DWXUSINGDLL
109 ifeq ($(MONOLITHIC),0)
110 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
112 ifeq ($(MONOLITHIC),1)
114 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
117 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
120 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
123 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
126 __UNICOWS_LIB_p = -lunicows
129 LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
132 LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
134 ifeq ($(BUILD),debug)
135 ifeq ($(DEBUG_INFO),default)
139 ifeq ($(BUILD),release)
140 ifeq ($(DEBUG_INFO),default)
144 ifeq ($(DEBUG_INFO),0)
147 ifeq ($(DEBUG_INFO),1)
154 -if not exist $(OBJS) mkdir $(OBJS)
158 all: $(OBJS)\test.exe data
161 -if exist $(OBJS)\*.o del $(OBJS)\*.o
162 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
164 $(OBJS)\test.exe: $(TEST_OBJECTS)
165 $(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
168 if not exist $(OBJS) mkdir $(OBJS)
169 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
171 $(OBJS)\test_test.o: ./test.cpp
172 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
174 $(OBJS)\test_main.o: ./mbconv/main.cpp
175 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
177 $(OBJS)\test_formatconverter.o: ./formatconverter/formatconverter.cpp
178 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
180 $(OBJS)\test_regex.o: ./regex/regex.cpp
181 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
183 $(OBJS)\test_wxregex.o: ./regex/wxregex.cpp
184 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
186 $(OBJS)\test_filename.o: ./filename/filename.cpp
187 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
189 $(OBJS)\test_filesys.o: ./filesys/filesys.cpp
190 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
192 $(OBJS)\test_arrays.o: ./arrays/arrays.cpp
193 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
195 $(OBJS)\test_hashes.o: ./hashes/hashes.cpp
196 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
198 $(OBJS)\test_longlong.o: ./longlong/longlong.cpp
199 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
201 $(OBJS)\test_strings.o: ./strings/strings.cpp
202 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
204 $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
205 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
207 $(OBJS)\test_unicode.o: ./strings/unicode.cpp
208 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
210 $(OBJS)\test_crt.o: ./strings/crt.cpp
211 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
213 $(OBJS)\test_bstream.o: ./streams/bstream.cpp
214 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
216 $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
217 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
219 $(OBJS)\test_filestream.o: ./streams/filestream.cpp
220 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
222 $(OBJS)\test_memstream.o: ./streams/memstream.cpp
223 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
225 $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
226 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
228 $(OBJS)\test_fontmap.o: ./fontmap/fontmap.cpp
229 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
231 $(OBJS)\test_datetime.o: ./datetime/datetime.cpp
232 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
234 .PHONY: all clean data