]>
Commit | Line | Data |
---|---|---|
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 | # ========================================================================= | |
6 | ||
7 | include ../build/msw/config.gcc | |
8 | ||
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
15 | WX_RELEASE_NODOT = 25 | |
16 | OBJS = \ | |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
18 | SETUPHDIR = \ | |
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) | |
24 | TEST_OBJECTS = \ | |
25 | $(OBJS)\test_dummy.o \ | |
26 | $(OBJS)\test_test.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_lists.o \ | |
37 | $(OBJS)\test_longlongtest.o \ | |
38 | $(OBJS)\test_mbconvtest.o \ | |
39 | $(OBJS)\test_regextest.o \ | |
40 | $(OBJS)\test_wxregextest.o \ | |
41 | $(OBJS)\test_strings.o \ | |
42 | $(OBJS)\test_stdstrings.o \ | |
43 | $(OBJS)\test_unicode.o \ | |
44 | $(OBJS)\test_crt.o \ | |
45 | $(OBJS)\test_bstream.o \ | |
46 | $(OBJS)\test_datastreamtest.o \ | |
47 | $(OBJS)\test_ffilestream.o \ | |
48 | $(OBJS)\test_filestream.o \ | |
49 | $(OBJS)\test_memstream.o \ | |
50 | $(OBJS)\test_sstream.o \ | |
51 | $(OBJS)\test_textstreamtest.o \ | |
52 | $(OBJS)\test_zlibstream.o \ | |
53 | $(OBJS)\test_uris.o | |
54 | ||
55 | ### Conditionally set variables: ### | |
56 | ||
57 | ifeq ($(GCC_VERSION),2.95) | |
58 | GCCFLAGS = -fvtable-thunks | |
59 | endif | |
60 | ifeq ($(USE_GUI),0) | |
61 | PORTNAME = base | |
62 | endif | |
63 | ifeq ($(USE_GUI),1) | |
64 | PORTNAME = msw | |
65 | endif | |
66 | ifeq ($(BUILD),debug) | |
67 | ifeq ($(DEBUG_FLAG),default) | |
68 | WXDEBUGFLAG = d | |
69 | endif | |
70 | endif | |
71 | ifeq ($(DEBUG_FLAG),1) | |
72 | WXDEBUGFLAG = d | |
73 | endif | |
74 | ifeq ($(UNICODE),1) | |
75 | WXUNICODEFLAG = u | |
76 | endif | |
77 | ifeq ($(WXUNIV),1) | |
78 | WXUNIVNAME = univ | |
79 | endif | |
80 | ifeq ($(SHARED),1) | |
81 | WXDLLFLAG = dll | |
82 | endif | |
83 | ifeq ($(MONOLITHIC),0) | |
84 | EXTRALIBS_FOR_BASE = | |
85 | endif | |
86 | ifeq ($(MONOLITHIC),1) | |
87 | EXTRALIBS_FOR_BASE = | |
88 | endif | |
89 | ifeq ($(BUILD),debug) | |
90 | __OPTIMIZEFLAG_2 = -O0 | |
91 | endif | |
92 | ifeq ($(BUILD),release) | |
93 | __OPTIMIZEFLAG_2 = -O2 | |
94 | endif | |
95 | ifeq ($(USE_EXCEPTIONS),0) | |
96 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
97 | endif | |
98 | ifeq ($(USE_EXCEPTIONS),1) | |
99 | __EXCEPTIONSFLAG_4 = | |
100 | endif | |
101 | ifeq ($(USE_EXCEPTIONS),0) | |
102 | __EXCEPTIONSFLAG_5 = -fno-exceptions | |
103 | endif | |
104 | ifeq ($(USE_EXCEPTIONS),1) | |
105 | __EXCEPTIONSFLAG_5 = | |
106 | endif | |
107 | ifeq ($(WXUNIV),1) | |
108 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
109 | endif | |
110 | ifeq ($(BUILD),debug) | |
111 | ifeq ($(DEBUG_FLAG),default) | |
112 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
113 | endif | |
114 | endif | |
115 | ifeq ($(DEBUG_FLAG),1) | |
116 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
117 | endif | |
118 | ifeq ($(UNICODE),1) | |
119 | __UNICODE_DEFINE_p = -D_UNICODE | |
120 | endif | |
121 | ifeq ($(SHARED),1) | |
122 | __DLLFLAG_p = -DWXUSINGDLL | |
123 | endif | |
124 | ifeq ($(MONOLITHIC),0) | |
125 | __WXLIB_NET_p = \ | |
126 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net | |
127 | endif | |
128 | ifeq ($(MONOLITHIC),0) | |
129 | __WXLIB_BASE_p = \ | |
130 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
131 | endif | |
132 | ifeq ($(MONOLITHIC),1) | |
133 | __WXLIB_MONO_p = \ | |
134 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
135 | endif | |
136 | ifeq ($(USE_GUI),1) | |
137 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
138 | endif | |
139 | ifeq ($(USE_GUI),1) | |
140 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
141 | endif | |
142 | ifeq ($(USE_GUI),1) | |
143 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
144 | endif | |
145 | ifeq ($(MSLU),1) | |
146 | __UNICOWS_LIB_p = -lunicows | |
147 | endif | |
148 | ifeq ($(SHARED),0) | |
149 | LIBDIRNAME = .\..\lib\gcc_lib$(CFG) | |
150 | endif | |
151 | ifeq ($(SHARED),1) | |
152 | LIBDIRNAME = .\..\lib\gcc_dll$(CFG) | |
153 | endif | |
154 | ifeq ($(BUILD),debug) | |
155 | ifeq ($(DEBUG_INFO),default) | |
156 | __DEBUGINFO = -g | |
157 | endif | |
158 | endif | |
159 | ifeq ($(BUILD),release) | |
160 | ifeq ($(DEBUG_INFO),default) | |
161 | __DEBUGINFO = | |
162 | endif | |
163 | endif | |
164 | ifeq ($(DEBUG_INFO),0) | |
165 | __DEBUGINFO = | |
166 | endif | |
167 | ifeq ($(DEBUG_INFO),1) | |
168 | __DEBUGINFO = -g | |
169 | endif | |
170 | ||
171 | ||
172 | all: $(OBJS) | |
173 | $(OBJS): | |
174 | -if not exist $(OBJS) mkdir $(OBJS) | |
175 | ||
176 | ### Targets: ### | |
177 | ||
178 | all: $(OBJS)\test.exe data | |
179 | ||
180 | clean: | |
181 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
182 | -if exist $(OBJS)\test.exe del $(OBJS)\test.exe | |
183 | ||
184 | $(OBJS)\test.exe: $(TEST_OBJECTS) | |
185 | $(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 | ||
187 | data: | |
188 | if not exist $(OBJS) mkdir $(OBJS) | |
189 | for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
190 | ||
191 | $(OBJS)\test_dummy.o: ./dummy.cpp | |
192 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
193 | ||
194 | $(OBJS)\test_test.o: ./test.cpp | |
195 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
196 | ||
197 | $(OBJS)\test_archivetest.o: ./archive/archivetest.cpp | |
198 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
199 | ||
200 | $(OBJS)\test_arrays.o: ./arrays/arrays.cpp | |
201 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
202 | ||
203 | $(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp | |
204 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
205 | ||
206 | $(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp | |
207 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
208 | ||
209 | $(OBJS)\test_filenametest.o: ./filename/filenametest.cpp | |
210 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
211 | ||
212 | $(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp | |
213 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
214 | ||
215 | $(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp | |
216 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
217 | ||
218 | $(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp | |
219 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
220 | ||
221 | $(OBJS)\test_hashes.o: ./hashes/hashes.cpp | |
222 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
223 | ||
224 | $(OBJS)\test_lists.o: ./lists/lists.cpp | |
225 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
226 | ||
227 | $(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp | |
228 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
229 | ||
230 | $(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp | |
231 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
232 | ||
233 | $(OBJS)\test_regextest.o: ./regex/regextest.cpp | |
234 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
235 | ||
236 | $(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp | |
237 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
238 | ||
239 | $(OBJS)\test_strings.o: ./strings/strings.cpp | |
240 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
241 | ||
242 | $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp | |
243 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
244 | ||
245 | $(OBJS)\test_unicode.o: ./strings/unicode.cpp | |
246 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
247 | ||
248 | $(OBJS)\test_crt.o: ./strings/crt.cpp | |
249 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
250 | ||
251 | $(OBJS)\test_bstream.o: ./streams/bstream.cpp | |
252 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
253 | ||
254 | $(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp | |
255 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
256 | ||
257 | $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp | |
258 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
259 | ||
260 | $(OBJS)\test_filestream.o: ./streams/filestream.cpp | |
261 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
262 | ||
263 | $(OBJS)\test_memstream.o: ./streams/memstream.cpp | |
264 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
265 | ||
266 | $(OBJS)\test_sstream.o: ./streams/sstream.cpp | |
267 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
268 | ||
269 | $(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp | |
270 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
271 | ||
272 | $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp | |
273 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
274 | ||
275 | $(OBJS)\test_uris.o: ./uris/uris.cpp | |
276 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
277 | ||
278 | .PHONY: all clean data |