]>
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) | |
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 = \ | |
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 |
670ec357 VS |
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 | |
dd65d8c8 RN |
83 | ifeq ($(MONOLITHIC),0) |
84 | EXTRALIBS_FOR_BASE = | |
85 | endif | |
86 | ifeq ($(MONOLITHIC),1) | |
87 | EXTRALIBS_FOR_BASE = | |
88 | endif | |
670ec357 VS |
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) | |
113e181a RN |
125 | __WXLIB_NET_p = \ |
126 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net | |
127 | endif | |
128 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
129 | __WXLIB_BASE_p = \ |
130 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
670ec357 VS |
131 | endif |
132 | ifeq ($(MONOLITHIC),1) | |
133 | __WXLIB_MONO_p = \ | |
c33fae85 | 134 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
670ec357 VS |
135 | endif |
136 | ifeq ($(USE_GUI),1) | |
9c2d002b | 137 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
670ec357 VS |
138 | endif |
139 | ifeq ($(USE_GUI),1) | |
9c2d002b | 140 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
670ec357 VS |
141 | endif |
142 | ifeq ($(USE_GUI),1) | |
9c2d002b | 143 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
670ec357 VS |
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 | ||
387f829e | 178 | all: $(OBJS)\test.exe data |
670ec357 VS |
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) | |
113e181a | 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 |
670ec357 | 186 | |
387f829e VS |
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 | ||
8899b155 RN |
191 | $(OBJS)\test_dummy.o: ./dummy.cpp |
192 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
193 | ||
670ec357 VS |
194 | $(OBJS)\test_test.o: ./test.cpp |
195 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
196 | ||
8899b155 RN |
197 | $(OBJS)\test_archivetest.o: ./archive/archivetest.cpp |
198 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
199 | ||
dd65d8c8 | 200 | $(OBJS)\test_arrays.o: ./arrays/arrays.cpp |
e70833fb VS |
201 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
202 | ||
113e181a | 203 | $(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp |
bc10103e VS |
204 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
205 | ||
113e181a | 206 | $(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp |
ab921f5f RN |
207 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
208 | ||
113e181a | 209 | $(OBJS)\test_filenametest.o: ./filename/filenametest.cpp |
3fa86423 WS |
210 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
211 | ||
113e181a | 212 | $(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp |
4827cbd9 VS |
213 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
214 | ||
113e181a | 215 | $(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp |
dd65d8c8 RN |
216 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
217 | ||
113e181a | 218 | $(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp |
cf1014a2 VS |
219 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
220 | ||
f9c3d39b MB |
221 | $(OBJS)\test_hashes.o: ./hashes/hashes.cpp |
222 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
223 | ||
7d9cfc54 MB |
224 | $(OBJS)\test_lists.o: ./lists/lists.cpp |
225 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
226 | ||
113e181a | 227 | $(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp |
1b035b8c VS |
228 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
229 | ||
113e181a | 230 | $(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp |
dd65d8c8 RN |
231 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
232 | ||
113e181a | 233 | $(OBJS)\test_regextest.o: ./regex/regextest.cpp |
dd65d8c8 RN |
234 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
235 | ||
113e181a | 236 | $(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp |
dd65d8c8 RN |
237 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
238 | ||
1cd53e88 VS |
239 | $(OBJS)\test_strings.o: ./strings/strings.cpp |
240 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
241 | ||
405b7d91 WS |
242 | $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp |
243 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
244 | ||
387f829e VS |
245 | $(OBJS)\test_unicode.o: ./strings/unicode.cpp |
246 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
247 | ||
cf8ee08b VS |
248 | $(OBJS)\test_crt.o: ./strings/crt.cpp |
249 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
250 | ||
7735998c VS |
251 | $(OBJS)\test_bstream.o: ./streams/bstream.cpp |
252 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
253 | ||
7d9cfc54 MB |
254 | $(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp |
255 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
256 | ||
7735998c VS |
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 | ||
c33fae85 RN |
266 | $(OBJS)\test_sstream.o: ./streams/sstream.cpp |
267 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
268 | ||
8899b155 RN |
269 | $(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp |
270 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
271 | ||
7735998c VS |
272 | $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp |
273 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
274 | ||
dd65d8c8 | 275 | $(OBJS)\test_uris.o: ./uris/uris.cpp |
edcccd84 WS |
276 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< |
277 | ||
387f829e | 278 | .PHONY: all clean data |