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