]>
Commit | Line | Data |
---|---|---|
670ec357 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
cb327439 | 3 | # Bakefile 0.1.6 (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) | |
cb327439 | 18 | LIBDIRNAME = .\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
670ec357 VS |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
a0744a6b | 21 | TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ |
670ec357 | 22 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ |
cb327439 MW |
23 | -I.\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) \ |
24 | $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \ | |
25 | $(CPPFLAGS) $(CXXFLAGS) | |
670ec357 | 26 | TEST_OBJECTS = \ |
8899b155 | 27 | $(OBJS)\test_dummy.o \ |
670ec357 | 28 | $(OBJS)\test_test.o \ |
8899b155 | 29 | $(OBJS)\test_archivetest.o \ |
dd65d8c8 | 30 | $(OBJS)\test_arrays.o \ |
113e181a RN |
31 | $(OBJS)\test_datetimetest.o \ |
32 | $(OBJS)\test_fileconftest.o \ | |
33 | $(OBJS)\test_filenametest.o \ | |
34 | $(OBJS)\test_filesystest.o \ | |
35 | $(OBJS)\test_fontmaptest.o \ | |
36 | $(OBJS)\test_formatconvertertest.o \ | |
f9c3d39b | 37 | $(OBJS)\test_hashes.o \ |
7d9cfc54 | 38 | $(OBJS)\test_lists.o \ |
113e181a RN |
39 | $(OBJS)\test_longlongtest.o \ |
40 | $(OBJS)\test_mbconvtest.o \ | |
41 | $(OBJS)\test_regextest.o \ | |
42 | $(OBJS)\test_wxregextest.o \ | |
1cd53e88 | 43 | $(OBJS)\test_strings.o \ |
405b7d91 | 44 | $(OBJS)\test_stdstrings.o \ |
387f829e | 45 | $(OBJS)\test_unicode.o \ |
cf8ee08b | 46 | $(OBJS)\test_crt.o \ |
7735998c | 47 | $(OBJS)\test_bstream.o \ |
7d9cfc54 | 48 | $(OBJS)\test_datastreamtest.o \ |
7735998c VS |
49 | $(OBJS)\test_ffilestream.o \ |
50 | $(OBJS)\test_filestream.o \ | |
cb327439 | 51 | $(OBJS)\test_largefile.o \ |
7735998c | 52 | $(OBJS)\test_memstream.o \ |
c33fae85 | 53 | $(OBJS)\test_sstream.o \ |
8899b155 | 54 | $(OBJS)\test_textstreamtest.o \ |
816b59de | 55 | $(OBJS)\test_zlibstream.o \ |
dd65d8c8 | 56 | $(OBJS)\test_uris.o |
a0744a6b VS |
57 | TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
58 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
cb327439 MW |
59 | $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -W -Wall -I. \ |
60 | $(__DLLFLAG_p) -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) $(__EXCEPTIONSFLAG) \ | |
61 | $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
a0744a6b VS |
62 | TEST_GUI_OBJECTS = \ |
63 | $(OBJS)\test_gui_sample_rc.o \ | |
64 | $(OBJS)\test_gui_dummy.o \ | |
98a50e20 | 65 | $(OBJS)\test_gui_test.o \ |
cb327439 MW |
66 | $(OBJS)\test_gui_rect.o \ |
67 | $(OBJS)\test_gui_size.o \ | |
68 | $(OBJS)\test_gui_point.o | |
670ec357 VS |
69 | |
70 | ### Conditionally set variables: ### | |
71 | ||
72 | ifeq ($(GCC_VERSION),2.95) | |
73 | GCCFLAGS = -fvtable-thunks | |
74 | endif | |
75 | ifeq ($(USE_GUI),0) | |
76 | PORTNAME = base | |
77 | endif | |
78 | ifeq ($(USE_GUI),1) | |
79 | PORTNAME = msw | |
80 | endif | |
81 | ifeq ($(BUILD),debug) | |
82 | ifeq ($(DEBUG_FLAG),default) | |
83 | WXDEBUGFLAG = d | |
84 | endif | |
85 | endif | |
86 | ifeq ($(DEBUG_FLAG),1) | |
87 | WXDEBUGFLAG = d | |
88 | endif | |
89 | ifeq ($(UNICODE),1) | |
90 | WXUNICODEFLAG = u | |
91 | endif | |
92 | ifeq ($(WXUNIV),1) | |
93 | WXUNIVNAME = univ | |
94 | endif | |
95 | ifeq ($(SHARED),1) | |
96 | WXDLLFLAG = dll | |
97 | endif | |
cb327439 MW |
98 | ifeq ($(SHARED),0) |
99 | LIBTYPE_SUFFIX = lib | |
100 | endif | |
101 | ifeq ($(SHARED),1) | |
102 | LIBTYPE_SUFFIX = dll | |
103 | endif | |
dd65d8c8 RN |
104 | ifeq ($(MONOLITHIC),0) |
105 | EXTRALIBS_FOR_BASE = | |
106 | endif | |
107 | ifeq ($(MONOLITHIC),1) | |
108 | EXTRALIBS_FOR_BASE = | |
109 | endif | |
a0744a6b VS |
110 | ifeq ($(MONOLITHIC),0) |
111 | __WXLIB_NET_p = \ | |
112 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net | |
113 | endif | |
114 | ifeq ($(USE_GUI),1) | |
115 | __test_gui___depname = $(OBJS)\test_gui.exe | |
116 | endif | |
117 | ifeq ($(WXUNIV),1) | |
118 | __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__ | |
119 | endif | |
670ec357 | 120 | ifeq ($(BUILD),debug) |
a0744a6b VS |
121 | ifeq ($(DEBUG_FLAG),default) |
122 | __DEBUG_DEFINE_p_3 = --define __WXDEBUG__ | |
123 | endif | |
124 | endif | |
125 | ifeq ($(DEBUG_FLAG),1) | |
126 | __DEBUG_DEFINE_p_3 = --define __WXDEBUG__ | |
127 | endif | |
128 | ifeq ($(UNICODE),1) | |
129 | __UNICODE_DEFINE_p_3 = --define _UNICODE | |
130 | endif | |
131 | ifeq ($(SHARED),1) | |
132 | __DLLFLAG_p_3 = --define WXUSINGDLL | |
133 | endif | |
134 | ifeq ($(MONOLITHIC),0) | |
135 | __WXLIB_CORE_p = \ | |
136 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core | |
137 | endif | |
138 | ifeq ($(BUILD),debug) | |
139 | __OPTIMIZEFLAG = -O0 | |
670ec357 VS |
140 | endif |
141 | ifeq ($(BUILD),release) | |
a0744a6b | 142 | __OPTIMIZEFLAG = -O2 |
670ec357 VS |
143 | endif |
144 | ifeq ($(USE_EXCEPTIONS),0) | |
a0744a6b | 145 | __EXCEPTIONSFLAG = -fno-rtti |
670ec357 VS |
146 | endif |
147 | ifeq ($(USE_EXCEPTIONS),1) | |
a0744a6b | 148 | __EXCEPTIONSFLAG = |
670ec357 VS |
149 | endif |
150 | ifeq ($(USE_EXCEPTIONS),0) | |
a0744a6b | 151 | __EXCEPTIONSFLAG_0 = -fno-exceptions |
670ec357 VS |
152 | endif |
153 | ifeq ($(USE_EXCEPTIONS),1) | |
a0744a6b | 154 | __EXCEPTIONSFLAG_0 = |
670ec357 VS |
155 | endif |
156 | ifeq ($(WXUNIV),1) | |
157 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
158 | endif | |
159 | ifeq ($(BUILD),debug) | |
160 | ifeq ($(DEBUG_FLAG),default) | |
161 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
162 | endif | |
163 | endif | |
164 | ifeq ($(DEBUG_FLAG),1) | |
165 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
166 | endif | |
167 | ifeq ($(UNICODE),1) | |
168 | __UNICODE_DEFINE_p = -D_UNICODE | |
169 | endif | |
a0744a6b VS |
170 | ifeq ($(SHARED),1) |
171 | __DLLFLAG_p = -DWXUSINGDLL | |
113e181a RN |
172 | endif |
173 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
174 | __WXLIB_BASE_p = \ |
175 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
670ec357 VS |
176 | endif |
177 | ifeq ($(MONOLITHIC),1) | |
178 | __WXLIB_MONO_p = \ | |
c33fae85 | 179 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
670ec357 VS |
180 | endif |
181 | ifeq ($(USE_GUI),1) | |
9c2d002b | 182 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
670ec357 VS |
183 | endif |
184 | ifeq ($(USE_GUI),1) | |
9c2d002b | 185 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
670ec357 VS |
186 | endif |
187 | ifeq ($(USE_GUI),1) | |
9c2d002b | 188 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
670ec357 VS |
189 | endif |
190 | ifeq ($(MSLU),1) | |
191 | __UNICOWS_LIB_p = -lunicows | |
192 | endif | |
670ec357 VS |
193 | ifeq ($(BUILD),debug) |
194 | ifeq ($(DEBUG_INFO),default) | |
195 | __DEBUGINFO = -g | |
196 | endif | |
197 | endif | |
198 | ifeq ($(BUILD),release) | |
199 | ifeq ($(DEBUG_INFO),default) | |
200 | __DEBUGINFO = | |
201 | endif | |
202 | endif | |
203 | ifeq ($(DEBUG_INFO),0) | |
204 | __DEBUGINFO = | |
205 | endif | |
206 | ifeq ($(DEBUG_INFO),1) | |
207 | __DEBUGINFO = -g | |
208 | endif | |
209 | ||
210 | ||
211 | all: $(OBJS) | |
212 | $(OBJS): | |
213 | -if not exist $(OBJS) mkdir $(OBJS) | |
214 | ||
215 | ### Targets: ### | |
216 | ||
a0744a6b | 217 | all: $(OBJS)\test.exe $(__test_gui___depname) data |
670ec357 VS |
218 | |
219 | clean: | |
220 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
221 | -if exist $(OBJS)\test.exe del $(OBJS)\test.exe | |
a0744a6b | 222 | -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe |
670ec357 VS |
223 | |
224 | $(OBJS)\test.exe: $(TEST_OBJECTS) | |
113e181a | 225 | $(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 | 226 | |
a0744a6b VS |
227 | ifeq ($(USE_GUI),1) |
228 | $(OBJS)\test_gui.exe: $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample_rc.o | |
98a50e20 | 229 | $(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 |
230 | endif |
231 | ||
387f829e VS |
232 | data: |
233 | if not exist $(OBJS) mkdir $(OBJS) | |
234 | for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
235 | ||
8899b155 RN |
236 | $(OBJS)\test_dummy.o: ./dummy.cpp |
237 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
238 | ||
670ec357 VS |
239 | $(OBJS)\test_test.o: ./test.cpp |
240 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
241 | ||
8899b155 RN |
242 | $(OBJS)\test_archivetest.o: ./archive/archivetest.cpp |
243 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
244 | ||
dd65d8c8 | 245 | $(OBJS)\test_arrays.o: ./arrays/arrays.cpp |
e70833fb VS |
246 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
247 | ||
113e181a | 248 | $(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp |
bc10103e VS |
249 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
250 | ||
113e181a | 251 | $(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp |
ab921f5f RN |
252 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
253 | ||
113e181a | 254 | $(OBJS)\test_filenametest.o: ./filename/filenametest.cpp |
3fa86423 WS |
255 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
256 | ||
113e181a | 257 | $(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp |
4827cbd9 VS |
258 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
259 | ||
113e181a | 260 | $(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp |
dd65d8c8 RN |
261 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
262 | ||
113e181a | 263 | $(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp |
cf1014a2 VS |
264 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
265 | ||
f9c3d39b MB |
266 | $(OBJS)\test_hashes.o: ./hashes/hashes.cpp |
267 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
268 | ||
7d9cfc54 MB |
269 | $(OBJS)\test_lists.o: ./lists/lists.cpp |
270 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
271 | ||
113e181a | 272 | $(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp |
1b035b8c VS |
273 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
274 | ||
113e181a | 275 | $(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp |
dd65d8c8 RN |
276 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
277 | ||
113e181a | 278 | $(OBJS)\test_regextest.o: ./regex/regextest.cpp |
dd65d8c8 RN |
279 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
280 | ||
113e181a | 281 | $(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp |
dd65d8c8 RN |
282 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
283 | ||
1cd53e88 VS |
284 | $(OBJS)\test_strings.o: ./strings/strings.cpp |
285 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
286 | ||
405b7d91 WS |
287 | $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp |
288 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
289 | ||
387f829e VS |
290 | $(OBJS)\test_unicode.o: ./strings/unicode.cpp |
291 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
292 | ||
cf8ee08b VS |
293 | $(OBJS)\test_crt.o: ./strings/crt.cpp |
294 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
295 | ||
7735998c VS |
296 | $(OBJS)\test_bstream.o: ./streams/bstream.cpp |
297 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
298 | ||
7d9cfc54 MB |
299 | $(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp |
300 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
301 | ||
7735998c VS |
302 | $(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp |
303 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
304 | ||
305 | $(OBJS)\test_filestream.o: ./streams/filestream.cpp | |
306 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
307 | ||
cb327439 MW |
308 | $(OBJS)\test_largefile.o: ./streams/largefile.cpp |
309 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
310 | ||
7735998c VS |
311 | $(OBJS)\test_memstream.o: ./streams/memstream.cpp |
312 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
313 | ||
c33fae85 RN |
314 | $(OBJS)\test_sstream.o: ./streams/sstream.cpp |
315 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
316 | ||
8899b155 RN |
317 | $(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp |
318 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
319 | ||
7735998c VS |
320 | $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp |
321 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
322 | ||
dd65d8c8 | 323 | $(OBJS)\test_uris.o: ./uris/uris.cpp |
edcccd84 WS |
324 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
325 | ||
a0744a6b | 326 | $(OBJS)\test_gui_sample_rc.o: ./../samples/sample.rc |
cb327439 | 327 | 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 |
a0744a6b VS |
328 | |
329 | $(OBJS)\test_gui_dummy.o: ./dummy.cpp | |
330 | $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $< | |
331 | ||
332 | $(OBJS)\test_gui_test.o: ./test.cpp | |
333 | $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $< | |
334 | ||
98a50e20 VS |
335 | $(OBJS)\test_gui_rect.o: ./geometry/rect.cpp |
336 | $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $< | |
337 | ||
cb327439 MW |
338 | $(OBJS)\test_gui_size.o: ./geometry/size.cpp |
339 | $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $< | |
340 | ||
341 | $(OBJS)\test_gui_point.o: ./geometry/point.cpp | |
342 | $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $< | |
343 | ||
387f829e | 344 | .PHONY: all clean data |
cb327439 | 345 |