]>
Commit | Line | Data |
---|---|---|
670ec357 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
1b035b8c | 3 | # Bakefile 0.1.4 (http://bakefile.sourceforge.net) |
670ec357 VS |
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 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
670ec357 VS |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
18 | SETUPHDIR = \ | |
19 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
a0744a6b | 20 | TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ |
670ec357 VS |
21 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ |
22 | -I.\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) \ | |
a0744a6b | 23 | $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) |
670ec357 | 24 | TEST_OBJECTS = \ |
8899b155 | 25 | $(OBJS)\test_dummy.o \ |
670ec357 | 26 | $(OBJS)\test_test.o \ |
8899b155 | 27 | $(OBJS)\test_archivetest.o \ |
dd65d8c8 | 28 | $(OBJS)\test_arrays.o \ |
113e181a RN |
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 \ | |
f9c3d39b | 35 | $(OBJS)\test_hashes.o \ |
7d9cfc54 | 36 | $(OBJS)\test_lists.o \ |
113e181a RN |
37 | $(OBJS)\test_longlongtest.o \ |
38 | $(OBJS)\test_mbconvtest.o \ | |
39 | $(OBJS)\test_regextest.o \ | |
40 | $(OBJS)\test_wxregextest.o \ | |
1cd53e88 | 41 | $(OBJS)\test_strings.o \ |
405b7d91 | 42 | $(OBJS)\test_stdstrings.o \ |
387f829e | 43 | $(OBJS)\test_unicode.o \ |
cf8ee08b | 44 | $(OBJS)\test_crt.o \ |
7735998c | 45 | $(OBJS)\test_bstream.o \ |
7d9cfc54 | 46 | $(OBJS)\test_datastreamtest.o \ |
7735998c VS |
47 | $(OBJS)\test_ffilestream.o \ |
48 | $(OBJS)\test_filestream.o \ | |
49 | $(OBJS)\test_memstream.o \ | |
c33fae85 | 50 | $(OBJS)\test_sstream.o \ |
8899b155 | 51 | $(OBJS)\test_textstreamtest.o \ |
816b59de | 52 | $(OBJS)\test_zlibstream.o \ |
dd65d8c8 | 53 | $(OBJS)\test_uris.o |
a0744a6b VS |
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 \ | |
98a50e20 VS |
62 | $(OBJS)\test_gui_test.o \ |
63 | $(OBJS)\test_gui_rect.o | |
670ec357 VS |
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 | |
dd65d8c8 RN |
93 | ifeq ($(MONOLITHIC),0) |
94 | EXTRALIBS_FOR_BASE = | |
95 | endif | |
96 | ifeq ($(MONOLITHIC),1) | |
97 | EXTRALIBS_FOR_BASE = | |
98 | endif | |
a0744a6b VS |
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 | |
670ec357 | 109 | ifeq ($(BUILD),debug) |
a0744a6b VS |
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 | |
670ec357 VS |
129 | endif |
130 | ifeq ($(BUILD),release) | |
a0744a6b | 131 | __OPTIMIZEFLAG = -O2 |
670ec357 VS |
132 | endif |
133 | ifeq ($(USE_EXCEPTIONS),0) | |
a0744a6b | 134 | __EXCEPTIONSFLAG = -fno-rtti |
670ec357 VS |
135 | endif |
136 | ifeq ($(USE_EXCEPTIONS),1) | |
a0744a6b | 137 | __EXCEPTIONSFLAG = |
670ec357 VS |
138 | endif |
139 | ifeq ($(USE_EXCEPTIONS),0) | |
a0744a6b | 140 | __EXCEPTIONSFLAG_0 = -fno-exceptions |
670ec357 VS |
141 | endif |
142 | ifeq ($(USE_EXCEPTIONS),1) | |
a0744a6b | 143 | __EXCEPTIONSFLAG_0 = |
670ec357 VS |
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 | |
a0744a6b VS |
159 | ifeq ($(SHARED),0) |
160 | LIBDIRNAME = .\..\lib\gcc_lib$(CFG) | |
161 | endif | |
670ec357 | 162 | ifeq ($(SHARED),1) |
a0744a6b | 163 | LIBDIRNAME = .\..\lib\gcc_dll$(CFG) |
670ec357 | 164 | endif |
a0744a6b VS |
165 | ifeq ($(SHARED),1) |
166 | __DLLFLAG_p = -DWXUSINGDLL | |
113e181a RN |
167 | endif |
168 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
169 | __WXLIB_BASE_p = \ |
170 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
670ec357 VS |
171 | endif |
172 | ifeq ($(MONOLITHIC),1) | |
173 | __WXLIB_MONO_p = \ | |
c33fae85 | 174 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
670ec357 VS |
175 | endif |
176 | ifeq ($(USE_GUI),1) | |
9c2d002b | 177 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
670ec357 VS |
178 | endif |
179 | ifeq ($(USE_GUI),1) | |
9c2d002b | 180 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
670ec357 VS |
181 | endif |
182 | ifeq ($(USE_GUI),1) | |
9c2d002b | 183 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
670ec357 VS |
184 | endif |
185 | ifeq ($(MSLU),1) | |
186 | __UNICOWS_LIB_p = -lunicows | |
187 | endif | |
670ec357 VS |
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 | ||
a0744a6b | 212 | all: $(OBJS)\test.exe $(__test_gui___depname) data |
670ec357 VS |
213 | |
214 | clean: | |
215 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
216 | -if exist $(OBJS)\test.exe del $(OBJS)\test.exe | |
a0744a6b | 217 | -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe |
670ec357 VS |
218 | |
219 | $(OBJS)\test.exe: $(TEST_OBJECTS) | |
113e181a | 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 |
670ec357 | 221 | |
a0744a6b VS |
222 | ifeq ($(USE_GUI),1) |
223 | $(OBJS)\test_gui.exe: $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample_rc.o | |
98a50e20 | 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 |
a0744a6b VS |
225 | endif |
226 | ||
387f829e VS |
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 | ||
8899b155 RN |
231 | $(OBJS)\test_dummy.o: ./dummy.cpp |
232 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
233 | ||
670ec357 VS |
234 | $(OBJS)\test_test.o: ./test.cpp |
235 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
236 | ||
8899b155 RN |
237 | $(OBJS)\test_archivetest.o: ./archive/archivetest.cpp |
238 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
239 | ||
dd65d8c8 | 240 | $(OBJS)\test_arrays.o: ./arrays/arrays.cpp |
e70833fb VS |
241 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
242 | ||
113e181a | 243 | $(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp |
bc10103e VS |
244 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
245 | ||
113e181a | 246 | $(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp |
ab921f5f RN |
247 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
248 | ||
113e181a | 249 | $(OBJS)\test_filenametest.o: ./filename/filenametest.cpp |
3fa86423 WS |
250 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
251 | ||
113e181a | 252 | $(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp |
4827cbd9 VS |
253 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
254 | ||
113e181a | 255 | $(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp |
dd65d8c8 RN |
256 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
257 | ||
113e181a | 258 | $(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp |
cf1014a2 VS |
259 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
260 | ||
f9c3d39b MB |
261 | $(OBJS)\test_hashes.o: ./hashes/hashes.cpp |
262 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
263 | ||
7d9cfc54 MB |
264 | $(OBJS)\test_lists.o: ./lists/lists.cpp |
265 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
266 | ||
113e181a | 267 | $(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp |
1b035b8c VS |
268 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
269 | ||
113e181a | 270 | $(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp |
dd65d8c8 RN |
271 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
272 | ||
113e181a | 273 | $(OBJS)\test_regextest.o: ./regex/regextest.cpp |
dd65d8c8 RN |
274 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
275 | ||
113e181a | 276 | $(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp |
dd65d8c8 RN |
277 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
278 | ||
1cd53e88 VS |
279 | $(OBJS)\test_strings.o: ./strings/strings.cpp |
280 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
281 | ||
405b7d91 WS |
282 | $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp |
283 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
284 | ||
387f829e VS |
285 | $(OBJS)\test_unicode.o: ./strings/unicode.cpp |
286 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
287 | ||
cf8ee08b VS |
288 | $(OBJS)\test_crt.o: ./strings/crt.cpp |
289 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
290 | ||
7735998c VS |
291 | $(OBJS)\test_bstream.o: ./streams/bstream.cpp |
292 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
293 | ||
7d9cfc54 MB |
294 | $(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp |
295 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
296 | ||
7735998c VS |
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 | ||
c33fae85 RN |
306 | $(OBJS)\test_sstream.o: ./streams/sstream.cpp |
307 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
308 | ||
8899b155 RN |
309 | $(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp |
310 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
311 | ||
7735998c VS |
312 | $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp |
313 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
314 | ||
dd65d8c8 | 315 | $(OBJS)\test_uris.o: ./uris/uris.cpp |
edcccd84 WS |
316 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
317 | ||
a0744a6b VS |
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 | ||
98a50e20 VS |
327 | $(OBJS)\test_gui_rect.o: ./geometry/rect.cpp |
328 | $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $< | |
329 | ||
387f829e | 330 | .PHONY: all clean data |