]>
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) $(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) $(__EXCEPTIONSFLAG_0) $(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 | TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
55 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
56 | $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) \ | |
57 | -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) $(__EXCEPTIONSFLAG) \ | |
58 | $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) | |
59 | TEST_GUI_OBJECTS = \ | |
60 | $(OBJS)\test_gui_sample_rc.o \ | |
61 | $(OBJS)\test_gui_dummy.o \ | |
62 | $(OBJS)\test_gui_test.o \ | |
63 | $(OBJS)\test_gui_rect.o | |
64 | ||
65 | ### Conditionally set variables: ### | |
66 | ||
67 | ifeq ($(GCC_VERSION),2.95) | |
68 | GCCFLAGS = -fvtable-thunks | |
69 | endif | |
70 | ifeq ($(USE_GUI),0) | |
71 | PORTNAME = base | |
72 | endif | |
73 | ifeq ($(USE_GUI),1) | |
74 | PORTNAME = msw | |
75 | endif | |
76 | ifeq ($(BUILD),debug) | |
77 | ifeq ($(DEBUG_FLAG),default) | |
78 | WXDEBUGFLAG = d | |
79 | endif | |
80 | endif | |
81 | ifeq ($(DEBUG_FLAG),1) | |
82 | WXDEBUGFLAG = d | |
83 | endif | |
84 | ifeq ($(UNICODE),1) | |
85 | WXUNICODEFLAG = u | |
86 | endif | |
87 | ifeq ($(WXUNIV),1) | |
88 | WXUNIVNAME = univ | |
89 | endif | |
90 | ifeq ($(SHARED),1) | |
91 | WXDLLFLAG = dll | |
92 | endif | |
93 | ifeq ($(MONOLITHIC),0) | |
94 | EXTRALIBS_FOR_BASE = | |
95 | endif | |
96 | ifeq ($(MONOLITHIC),1) | |
97 | EXTRALIBS_FOR_BASE = | |
98 | endif | |
99 | ifeq ($(MONOLITHIC),0) | |
100 | __WXLIB_NET_p = \ | |
101 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net | |
102 | endif | |
103 | ifeq ($(USE_GUI),1) | |
104 | __test_gui___depname = $(OBJS)\test_gui.exe | |
105 | endif | |
106 | ifeq ($(WXUNIV),1) | |
107 | __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__ | |
108 | endif | |
109 | ifeq ($(BUILD),debug) | |
110 | ifeq ($(DEBUG_FLAG),default) | |
111 | __DEBUG_DEFINE_p_3 = --define __WXDEBUG__ | |
112 | endif | |
113 | endif | |
114 | ifeq ($(DEBUG_FLAG),1) | |
115 | __DEBUG_DEFINE_p_3 = --define __WXDEBUG__ | |
116 | endif | |
117 | ifeq ($(UNICODE),1) | |
118 | __UNICODE_DEFINE_p_3 = --define _UNICODE | |
119 | endif | |
120 | ifeq ($(SHARED),1) | |
121 | __DLLFLAG_p_3 = --define WXUSINGDLL | |
122 | endif | |
123 | ifeq ($(MONOLITHIC),0) | |
124 | __WXLIB_CORE_p = \ | |
125 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core | |
126 | endif | |
127 | ifeq ($(BUILD),debug) | |
128 | __OPTIMIZEFLAG = -O0 | |
129 | endif | |
130 | ifeq ($(BUILD),release) | |
131 | __OPTIMIZEFLAG = -O2 | |
132 | endif | |
133 | ifeq ($(USE_EXCEPTIONS),0) | |
134 | __EXCEPTIONSFLAG = -fno-rtti | |
135 | endif | |
136 | ifeq ($(USE_EXCEPTIONS),1) | |
137 | __EXCEPTIONSFLAG = | |
138 | endif | |
139 | ifeq ($(USE_EXCEPTIONS),0) | |
140 | __EXCEPTIONSFLAG_0 = -fno-exceptions | |
141 | endif | |
142 | ifeq ($(USE_EXCEPTIONS),1) | |
143 | __EXCEPTIONSFLAG_0 = | |
144 | endif | |
145 | ifeq ($(WXUNIV),1) | |
146 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
147 | endif | |
148 | ifeq ($(BUILD),debug) | |
149 | ifeq ($(DEBUG_FLAG),default) | |
150 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
151 | endif | |
152 | endif | |
153 | ifeq ($(DEBUG_FLAG),1) | |
154 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
155 | endif | |
156 | ifeq ($(UNICODE),1) | |
157 | __UNICODE_DEFINE_p = -D_UNICODE | |
158 | endif | |
159 | ifeq ($(SHARED),0) | |
160 | LIBDIRNAME = .\..\lib\gcc_lib$(CFG) | |
161 | endif | |
162 | ifeq ($(SHARED),1) | |
163 | LIBDIRNAME = .\..\lib\gcc_dll$(CFG) | |
164 | endif | |
165 | ifeq ($(SHARED),1) | |
166 | __DLLFLAG_p = -DWXUSINGDLL | |
167 | endif | |
168 | ifeq ($(MONOLITHIC),0) | |
169 | __WXLIB_BASE_p = \ | |
170 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
171 | endif | |
172 | ifeq ($(MONOLITHIC),1) | |
173 | __WXLIB_MONO_p = \ | |
174 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
175 | endif | |
176 | ifeq ($(USE_GUI),1) | |
177 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
178 | endif | |
179 | ifeq ($(USE_GUI),1) | |
180 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
181 | endif | |
182 | ifeq ($(USE_GUI),1) | |
183 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
184 | endif | |
185 | ifeq ($(MSLU),1) | |
186 | __UNICOWS_LIB_p = -lunicows | |
187 | endif | |
188 | ifeq ($(BUILD),debug) | |
189 | ifeq ($(DEBUG_INFO),default) | |
190 | __DEBUGINFO = -g | |
191 | endif | |
192 | endif | |
193 | ifeq ($(BUILD),release) | |
194 | ifeq ($(DEBUG_INFO),default) | |
195 | __DEBUGINFO = | |
196 | endif | |
197 | endif | |
198 | ifeq ($(DEBUG_INFO),0) | |
199 | __DEBUGINFO = | |
200 | endif | |
201 | ifeq ($(DEBUG_INFO),1) | |
202 | __DEBUGINFO = -g | |
203 | endif | |
204 | ||
205 | ||
206 | all: $(OBJS) | |
207 | $(OBJS): | |
208 | -if not exist $(OBJS) mkdir $(OBJS) | |
209 | ||
210 | ### Targets: ### | |
211 | ||
212 | all: $(OBJS)\test.exe $(__test_gui___depname) data | |
213 | ||
214 | clean: | |
215 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
216 | -if exist $(OBJS)\test.exe del $(OBJS)\test.exe | |
217 | -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe | |
218 | ||
219 | $(OBJS)\test.exe: $(TEST_OBJECTS) | |
220 | $(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 | |
221 | ||
222 | ifeq ($(USE_GUI),1) | |
223 | $(OBJS)\test_gui.exe: $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample_rc.o | |
224 | $(CXX) -o $@ $(TEST_GUI_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(CPPUNIT_LIBS) $(__WXLIB_CORE_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 | |
225 | endif | |
226 | ||
227 | data: | |
228 | if not exist $(OBJS) mkdir $(OBJS) | |
229 | for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
230 | ||
231 | $(OBJS)\test_dummy.o: ./dummy.cpp | |
232 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
233 | ||
234 | $(OBJS)\test_test.o: ./test.cpp | |
235 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
236 | ||
237 | $(OBJS)\test_archivetest.o: ./archive/archivetest.cpp | |
238 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
239 | ||
240 | $(OBJS)\test_arrays.o: ./arrays/arrays.cpp | |
241 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
242 | ||
243 | $(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp | |
244 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
245 | ||
246 | $(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp | |
247 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
248 | ||
249 | $(OBJS)\test_filenametest.o: ./filename/filenametest.cpp | |
250 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
251 | ||
252 | $(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp | |
253 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
254 | ||
255 | $(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp | |
256 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
257 | ||
258 | $(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp | |
259 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
260 | ||
261 | $(OBJS)\test_hashes.o: ./hashes/hashes.cpp | |
262 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
263 | ||
264 | $(OBJS)\test_lists.o: ./lists/lists.cpp | |
265 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
266 | ||
267 | $(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp | |
268 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
269 | ||
270 | $(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp | |
271 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
272 | ||
273 | $(OBJS)\test_regextest.o: ./regex/regextest.cpp | |
274 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
275 | ||
276 | $(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp | |
277 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
278 | ||
279 | $(OBJS)\test_strings.o: ./strings/strings.cpp | |
280 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
281 | ||
282 | $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp | |
283 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
284 | ||
285 | $(OBJS)\test_unicode.o: ./strings/unicode.cpp | |
286 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
287 | ||
288 | $(OBJS)\test_crt.o: ./strings/crt.cpp | |
289 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
290 | ||
291 | $(OBJS)\test_bstream.o: ./streams/bstream.cpp | |
292 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
293 | ||
294 | $(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp | |
295 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
296 | ||
297 | $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp | |
298 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
299 | ||
300 | $(OBJS)\test_filestream.o: ./streams/filestream.cpp | |
301 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
302 | ||
303 | $(OBJS)\test_memstream.o: ./streams/memstream.cpp | |
304 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
305 | ||
306 | $(OBJS)\test_sstream.o: ./streams/sstream.cpp | |
307 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
308 | ||
309 | $(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp | |
310 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
311 | ||
312 | $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp | |
313 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
314 | ||
315 | $(OBJS)\test_uris.o: ./uris/uris.cpp | |
316 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
317 | ||
318 | $(OBJS)\test_gui_sample_rc.o: ./../samples/sample.rc | |
319 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) --include-dir ./../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../samples | |
320 | ||
321 | $(OBJS)\test_gui_dummy.o: ./dummy.cpp | |
322 | $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $< | |
323 | ||
324 | $(OBJS)\test_gui_test.o: ./test.cpp | |
325 | $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $< | |
326 | ||
327 | $(OBJS)\test_gui_rect.o: ./geometry/rect.cpp | |
328 | $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $< | |
329 | ||
330 | .PHONY: all clean data |