]>
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.vc> | |
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 | vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
18 | SETUPHDIR = \ | |
19 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
20 | TEST_CXXFLAGS = /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \ | |
21 | $(__DEBUGINFO_0) /Fd$(OBJS)\test.pdb $(____DEBUGRUNTIME_2_p) \ | |
22 | $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
23 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\include /I$(SETUPHDIR) /W4 \ | |
24 | /I. $(__DLLFLAG_p) /D_CONSOLE $(CPPUNIT_CFLAGS) $(__EXCEPTIONSFLAG_8) \ | |
8899b155 RN |
25 | $(__EXCEPTIONSFLAG_9) /Yu"testprec.h" /Fp"$(OBJS)\testprec_test.pch" \ |
26 | $(CPPFLAGS) $(CXXFLAGS) | |
670ec357 | 27 | TEST_OBJECTS = \ |
8899b155 | 28 | $(OBJS)\test_dummy.obj \ |
670ec357 | 29 | $(OBJS)\test_test.obj \ |
8899b155 | 30 | $(OBJS)\test_archivetest.obj \ |
dd65d8c8 | 31 | $(OBJS)\test_arrays.obj \ |
113e181a RN |
32 | $(OBJS)\test_datetimetest.obj \ |
33 | $(OBJS)\test_fileconftest.obj \ | |
34 | $(OBJS)\test_filenametest.obj \ | |
35 | $(OBJS)\test_filesystest.obj \ | |
36 | $(OBJS)\test_fontmaptest.obj \ | |
37 | $(OBJS)\test_formatconvertertest.obj \ | |
f9c3d39b | 38 | $(OBJS)\test_hashes.obj \ |
113e181a RN |
39 | $(OBJS)\test_longlongtest.obj \ |
40 | $(OBJS)\test_mbconvtest.obj \ | |
41 | $(OBJS)\test_regextest.obj \ | |
42 | $(OBJS)\test_wxregextest.obj \ | |
1cd53e88 | 43 | $(OBJS)\test_strings.obj \ |
405b7d91 | 44 | $(OBJS)\test_stdstrings.obj \ |
387f829e | 45 | $(OBJS)\test_unicode.obj \ |
cf8ee08b | 46 | $(OBJS)\test_crt.obj \ |
7735998c VS |
47 | $(OBJS)\test_bstream.obj \ |
48 | $(OBJS)\test_ffilestream.obj \ | |
49 | $(OBJS)\test_filestream.obj \ | |
50 | $(OBJS)\test_memstream.obj \ | |
c33fae85 | 51 | $(OBJS)\test_sstream.obj \ |
8899b155 | 52 | $(OBJS)\test_textstreamtest.obj \ |
816b59de | 53 | $(OBJS)\test_zlibstream.obj \ |
dd65d8c8 | 54 | $(OBJS)\test_uris.obj |
670ec357 VS |
55 | |
56 | ### Conditionally set variables: ### | |
57 | ||
58 | !if "$(USE_GUI)" == "0" | |
59 | PORTNAME = base | |
60 | !endif | |
61 | !if "$(USE_GUI)" == "1" | |
62 | PORTNAME = msw | |
63 | !endif | |
64 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
65 | WXDEBUGFLAG = d | |
66 | !endif | |
67 | !if "$(DEBUG_FLAG)" == "1" | |
68 | WXDEBUGFLAG = d | |
69 | !endif | |
70 | !if "$(UNICODE)" == "1" | |
71 | WXUNICODEFLAG = u | |
72 | !endif | |
73 | !if "$(WXUNIV)" == "1" | |
74 | WXUNIVNAME = univ | |
75 | !endif | |
76 | !if "$(SHARED)" == "1" | |
77 | WXDLLFLAG = dll | |
78 | !endif | |
dd65d8c8 RN |
79 | !if "$(MONOLITHIC)" == "0" |
80 | EXTRALIBS_FOR_BASE = | |
81 | !endif | |
82 | !if "$(MONOLITHIC)" == "1" | |
83 | EXTRALIBS_FOR_BASE = | |
84 | !endif | |
670ec357 VS |
85 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
86 | __DEBUGINFO_0 = /Zi | |
87 | !endif | |
88 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
89 | __DEBUGINFO_0 = | |
90 | !endif | |
91 | !if "$(DEBUG_INFO)" == "0" | |
92 | __DEBUGINFO_0 = | |
93 | !endif | |
94 | !if "$(DEBUG_INFO)" == "1" | |
95 | __DEBUGINFO_0 = /Zi | |
96 | !endif | |
97 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
98 | __DEBUGINFO_1 = /DEBUG | |
99 | !endif | |
100 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
101 | __DEBUGINFO_1 = | |
102 | !endif | |
103 | !if "$(DEBUG_INFO)" == "0" | |
104 | __DEBUGINFO_1 = | |
105 | !endif | |
106 | !if "$(DEBUG_INFO)" == "1" | |
107 | __DEBUGINFO_1 = /DEBUG | |
108 | !endif | |
109 | !if "$(DEBUG_RUNTIME_LIBS)" == "0" | |
110 | ____DEBUGRUNTIME_2_p = | |
111 | !endif | |
112 | !if "$(DEBUG_RUNTIME_LIBS)" == "1" | |
113 | ____DEBUGRUNTIME_2_p = /D_DEBUG | |
114 | !endif | |
115 | !if "$(DEBUG_RUNTIME_LIBS)" == "default" | |
116 | ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p) | |
117 | !endif | |
118 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
119 | ____DEBUGINFO_2_p = /D_DEBUG | |
120 | !endif | |
121 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
122 | ____DEBUGINFO_2_p = | |
123 | !endif | |
124 | !if "$(DEBUG_INFO)" == "0" | |
125 | ____DEBUGINFO_2_p = | |
126 | !endif | |
127 | !if "$(DEBUG_INFO)" == "1" | |
128 | ____DEBUGINFO_2_p = /D_DEBUG | |
129 | !endif | |
130 | !if "$(DEBUG_RUNTIME_LIBS)" == "0" | |
131 | __DEBUGRUNTIME_3 = | |
132 | !endif | |
133 | !if "$(DEBUG_RUNTIME_LIBS)" == "1" | |
134 | __DEBUGRUNTIME_3 = d | |
135 | !endif | |
136 | !if "$(DEBUG_RUNTIME_LIBS)" == "default" | |
137 | __DEBUGRUNTIME_3 = $(__DEBUGINFO_3) | |
138 | !endif | |
139 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
140 | __DEBUGINFO_3 = d | |
141 | !endif | |
142 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
143 | __DEBUGINFO_3 = | |
144 | !endif | |
145 | !if "$(DEBUG_INFO)" == "0" | |
146 | __DEBUGINFO_3 = | |
147 | !endif | |
148 | !if "$(DEBUG_INFO)" == "1" | |
149 | __DEBUGINFO_3 = d | |
150 | !endif | |
151 | !if "$(BUILD)" == "debug" | |
152 | __OPTIMIZEFLAG_4 = /Od | |
153 | !endif | |
154 | !if "$(BUILD)" == "release" | |
155 | __OPTIMIZEFLAG_4 = /O2 | |
156 | !endif | |
157 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
158 | __RUNTIME_LIBS_7 = D | |
159 | !endif | |
160 | !if "$(RUNTIME_LIBS)" == "static" | |
161 | __RUNTIME_LIBS_7 = T | |
162 | !endif | |
163 | !if "$(USE_EXCEPTIONS)" == "0" | |
164 | __EXCEPTIONSFLAG_8 = | |
165 | !endif | |
166 | !if "$(USE_EXCEPTIONS)" == "1" | |
167 | __EXCEPTIONSFLAG_8 = /GR | |
168 | !endif | |
169 | !if "$(USE_EXCEPTIONS)" == "0" | |
170 | __EXCEPTIONSFLAG_9 = | |
171 | !endif | |
172 | !if "$(USE_EXCEPTIONS)" == "1" | |
173 | __EXCEPTIONSFLAG_9 = /GX | |
174 | !endif | |
175 | !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0" | |
176 | __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__ | |
177 | !endif | |
178 | !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1" | |
179 | __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__ | |
180 | !endif | |
181 | !if "$(WXUNIV)" == "1" | |
182 | __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__ | |
183 | !endif | |
184 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
185 | __DEBUG_DEFINE_p = /D__WXDEBUG__ | |
186 | !endif | |
187 | !if "$(DEBUG_FLAG)" == "1" | |
188 | __DEBUG_DEFINE_p = /D__WXDEBUG__ | |
189 | !endif | |
190 | !if "$(UNICODE)" == "1" | |
191 | __UNICODE_DEFINE_p = /D_UNICODE | |
192 | !endif | |
193 | !if "$(SHARED)" == "1" | |
194 | __DLLFLAG_p = /DWXUSINGDLL | |
195 | !endif | |
196 | !if "$(MONOLITHIC)" == "0" | |
113e181a RN |
197 | __WXLIB_NET_p = \ |
198 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib | |
199 | !endif | |
200 | !if "$(MONOLITHIC)" == "0" | |
c33fae85 RN |
201 | __WXLIB_BASE_p = \ |
202 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
670ec357 VS |
203 | !endif |
204 | !if "$(MONOLITHIC)" == "1" | |
205 | __WXLIB_MONO_p = \ | |
c33fae85 | 206 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
670ec357 VS |
207 | !endif |
208 | !if "$(USE_GUI)" == "1" | |
9c2d002b | 209 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib |
670ec357 VS |
210 | !endif |
211 | !if "$(USE_GUI)" == "1" | |
9c2d002b | 212 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib |
670ec357 VS |
213 | !endif |
214 | !if "$(USE_GUI)" == "1" | |
9c2d002b | 215 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib |
670ec357 VS |
216 | !endif |
217 | !if "$(MSLU)" == "1" | |
218 | __UNICOWS_LIB_p = unicows.lib | |
219 | !endif | |
220 | !if "$(SHARED)" == "0" | |
221 | LIBDIRNAME = .\..\lib\vc_lib$(CFG) | |
222 | !endif | |
223 | !if "$(SHARED)" == "1" | |
224 | LIBDIRNAME = .\..\lib\vc_dll$(CFG) | |
225 | !endif | |
226 | ||
227 | ||
228 | all: $(OBJS) | |
229 | $(OBJS): | |
230 | -if not exist $(OBJS) mkdir $(OBJS) | |
231 | ||
232 | ### Targets: ### | |
233 | ||
387f829e | 234 | all: $(OBJS)\test.exe data |
670ec357 VS |
235 | |
236 | clean: | |
237 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
238 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
239 | -if exist $(OBJS)\test.exe del $(OBJS)\test.exe | |
240 | -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk | |
241 | -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb | |
242 | ||
8899b155 | 243 | $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS) |
670ec357 | 244 | link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<< |
113e181a | 245 | $(TEST_OBJECTS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib odbc32.lib |
670ec357 VS |
246 | << |
247 | ||
387f829e VS |
248 | data: |
249 | if not exist $(OBJS) mkdir $(OBJS) | |
250 | for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS) | |
251 | ||
8899b155 RN |
252 | $(OBJS)\test_dummy.obj: .\dummy.cpp |
253 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) /Yctestprec.h $** | |
254 | ||
670ec357 VS |
255 | $(OBJS)\test_test.obj: .\test.cpp |
256 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
257 | ||
8899b155 RN |
258 | $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp |
259 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
260 | ||
dd65d8c8 | 261 | $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp |
e70833fb | 262 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |
4827cbd9 | 263 | |
113e181a | 264 | $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp |
bc10103e VS |
265 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |
266 | ||
113e181a | 267 | $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp |
ab921f5f RN |
268 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |
269 | ||
113e181a | 270 | $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp |
3fa86423 WS |
271 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |
272 | ||
113e181a | 273 | $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp |
4827cbd9 | 274 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |
cf1014a2 | 275 | |
113e181a | 276 | $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp |
dd65d8c8 RN |
277 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |
278 | ||
113e181a | 279 | $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp |
cf1014a2 | 280 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |
1b035b8c | 281 | |
f9c3d39b MB |
282 | $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp |
283 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
284 | ||
113e181a | 285 | $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp |
1b035b8c | 286 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |
7735998c | 287 | |
113e181a | 288 | $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp |
dd65d8c8 RN |
289 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |
290 | ||
113e181a | 291 | $(OBJS)\test_regextest.obj: .\regex\regextest.cpp |
dd65d8c8 RN |
292 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |
293 | ||
113e181a | 294 | $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp |
dd65d8c8 RN |
295 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |
296 | ||
1cd53e88 VS |
297 | $(OBJS)\test_strings.obj: .\strings\strings.cpp |
298 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
299 | ||
405b7d91 WS |
300 | $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp |
301 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
302 | ||
387f829e VS |
303 | $(OBJS)\test_unicode.obj: .\strings\unicode.cpp |
304 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
305 | ||
cf8ee08b VS |
306 | $(OBJS)\test_crt.obj: .\strings\crt.cpp |
307 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
308 | ||
7735998c VS |
309 | $(OBJS)\test_bstream.obj: .\streams\bstream.cpp |
310 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
311 | ||
312 | $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp | |
313 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
314 | ||
315 | $(OBJS)\test_filestream.obj: .\streams\filestream.cpp | |
316 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
317 | ||
318 | $(OBJS)\test_memstream.obj: .\streams\memstream.cpp | |
319 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
320 | ||
c33fae85 RN |
321 | $(OBJS)\test_sstream.obj: .\streams\sstream.cpp |
322 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
323 | ||
8899b155 RN |
324 | $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp |
325 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
326 | ||
7735998c VS |
327 | $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp |
328 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
816b59de | 329 | |
dd65d8c8 | 330 | $(OBJS)\test_uris.obj: .\uris\uris.cpp |
edcccd84 | 331 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |