]>
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) \ | |
25 | $(__EXCEPTIONSFLAG_9) $(CPPFLAGS) $(CXXFLAGS) | |
26 | TEST_OBJECTS = \ | |
27 | $(OBJS)\test_test.obj \ | |
e70833fb | 28 | $(OBJS)\test_main.obj \ |
7d5ab151 | 29 | $(OBJS)\test_formatconverter.obj \ |
4827cbd9 | 30 | $(OBJS)\test_regex.obj \ |
bc10103e | 31 | $(OBJS)\test_wxregex.obj \ |
3fa86423 | 32 | $(OBJS)\test_filename.obj \ |
cf1014a2 | 33 | $(OBJS)\test_filesys.obj \ |
1b035b8c | 34 | $(OBJS)\test_arrays.obj \ |
f9c3d39b | 35 | $(OBJS)\test_hashes.obj \ |
7735998c | 36 | $(OBJS)\test_longlong.obj \ |
1cd53e88 | 37 | $(OBJS)\test_strings.obj \ |
405b7d91 | 38 | $(OBJS)\test_stdstrings.obj \ |
387f829e | 39 | $(OBJS)\test_unicode.obj \ |
cf8ee08b | 40 | $(OBJS)\test_crt.obj \ |
7735998c VS |
41 | $(OBJS)\test_bstream.obj \ |
42 | $(OBJS)\test_ffilestream.obj \ | |
43 | $(OBJS)\test_filestream.obj \ | |
44 | $(OBJS)\test_memstream.obj \ | |
c33fae85 | 45 | $(OBJS)\test_sstream.obj \ |
816b59de | 46 | $(OBJS)\test_zlibstream.obj \ |
edcccd84 WS |
47 | $(OBJS)\test_fontmap.obj \ |
48 | $(OBJS)\test_datetime.obj | |
670ec357 VS |
49 | |
50 | ### Conditionally set variables: ### | |
51 | ||
52 | !if "$(USE_GUI)" == "0" | |
53 | PORTNAME = base | |
54 | !endif | |
55 | !if "$(USE_GUI)" == "1" | |
56 | PORTNAME = msw | |
57 | !endif | |
58 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
59 | WXDEBUGFLAG = d | |
60 | !endif | |
61 | !if "$(DEBUG_FLAG)" == "1" | |
62 | WXDEBUGFLAG = d | |
63 | !endif | |
64 | !if "$(UNICODE)" == "1" | |
65 | WXUNICODEFLAG = u | |
66 | !endif | |
67 | !if "$(WXUNIV)" == "1" | |
68 | WXUNIVNAME = univ | |
69 | !endif | |
70 | !if "$(SHARED)" == "1" | |
71 | WXDLLFLAG = dll | |
72 | !endif | |
73 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
74 | __DEBUGINFO_0 = /Zi | |
75 | !endif | |
76 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
77 | __DEBUGINFO_0 = | |
78 | !endif | |
79 | !if "$(DEBUG_INFO)" == "0" | |
80 | __DEBUGINFO_0 = | |
81 | !endif | |
82 | !if "$(DEBUG_INFO)" == "1" | |
83 | __DEBUGINFO_0 = /Zi | |
84 | !endif | |
85 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
86 | __DEBUGINFO_1 = /DEBUG | |
87 | !endif | |
88 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
89 | __DEBUGINFO_1 = | |
90 | !endif | |
91 | !if "$(DEBUG_INFO)" == "0" | |
92 | __DEBUGINFO_1 = | |
93 | !endif | |
94 | !if "$(DEBUG_INFO)" == "1" | |
95 | __DEBUGINFO_1 = /DEBUG | |
96 | !endif | |
97 | !if "$(DEBUG_RUNTIME_LIBS)" == "0" | |
98 | ____DEBUGRUNTIME_2_p = | |
99 | !endif | |
100 | !if "$(DEBUG_RUNTIME_LIBS)" == "1" | |
101 | ____DEBUGRUNTIME_2_p = /D_DEBUG | |
102 | !endif | |
103 | !if "$(DEBUG_RUNTIME_LIBS)" == "default" | |
104 | ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p) | |
105 | !endif | |
106 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
107 | ____DEBUGINFO_2_p = /D_DEBUG | |
108 | !endif | |
109 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
110 | ____DEBUGINFO_2_p = | |
111 | !endif | |
112 | !if "$(DEBUG_INFO)" == "0" | |
113 | ____DEBUGINFO_2_p = | |
114 | !endif | |
115 | !if "$(DEBUG_INFO)" == "1" | |
116 | ____DEBUGINFO_2_p = /D_DEBUG | |
117 | !endif | |
118 | !if "$(DEBUG_RUNTIME_LIBS)" == "0" | |
119 | __DEBUGRUNTIME_3 = | |
120 | !endif | |
121 | !if "$(DEBUG_RUNTIME_LIBS)" == "1" | |
122 | __DEBUGRUNTIME_3 = d | |
123 | !endif | |
124 | !if "$(DEBUG_RUNTIME_LIBS)" == "default" | |
125 | __DEBUGRUNTIME_3 = $(__DEBUGINFO_3) | |
126 | !endif | |
127 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
128 | __DEBUGINFO_3 = d | |
129 | !endif | |
130 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
131 | __DEBUGINFO_3 = | |
132 | !endif | |
133 | !if "$(DEBUG_INFO)" == "0" | |
134 | __DEBUGINFO_3 = | |
135 | !endif | |
136 | !if "$(DEBUG_INFO)" == "1" | |
137 | __DEBUGINFO_3 = d | |
138 | !endif | |
139 | !if "$(BUILD)" == "debug" | |
140 | __OPTIMIZEFLAG_4 = /Od | |
141 | !endif | |
142 | !if "$(BUILD)" == "release" | |
143 | __OPTIMIZEFLAG_4 = /O2 | |
144 | !endif | |
145 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
146 | __RUNTIME_LIBS_7 = D | |
147 | !endif | |
148 | !if "$(RUNTIME_LIBS)" == "static" | |
149 | __RUNTIME_LIBS_7 = T | |
150 | !endif | |
151 | !if "$(USE_EXCEPTIONS)" == "0" | |
152 | __EXCEPTIONSFLAG_8 = | |
153 | !endif | |
154 | !if "$(USE_EXCEPTIONS)" == "1" | |
155 | __EXCEPTIONSFLAG_8 = /GR | |
156 | !endif | |
157 | !if "$(USE_EXCEPTIONS)" == "0" | |
158 | __EXCEPTIONSFLAG_9 = | |
159 | !endif | |
160 | !if "$(USE_EXCEPTIONS)" == "1" | |
161 | __EXCEPTIONSFLAG_9 = /GX | |
162 | !endif | |
163 | !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0" | |
164 | __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__ | |
165 | !endif | |
166 | !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1" | |
167 | __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__ | |
168 | !endif | |
169 | !if "$(WXUNIV)" == "1" | |
170 | __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__ | |
171 | !endif | |
172 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
173 | __DEBUG_DEFINE_p = /D__WXDEBUG__ | |
174 | !endif | |
175 | !if "$(DEBUG_FLAG)" == "1" | |
176 | __DEBUG_DEFINE_p = /D__WXDEBUG__ | |
177 | !endif | |
178 | !if "$(UNICODE)" == "1" | |
179 | __UNICODE_DEFINE_p = /D_UNICODE | |
180 | !endif | |
181 | !if "$(SHARED)" == "1" | |
182 | __DLLFLAG_p = /DWXUSINGDLL | |
183 | !endif | |
184 | !if "$(MONOLITHIC)" == "0" | |
c33fae85 RN |
185 | __WXLIB_BASE_p = \ |
186 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
670ec357 VS |
187 | !endif |
188 | !if "$(MONOLITHIC)" == "1" | |
189 | __WXLIB_MONO_p = \ | |
c33fae85 | 190 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
670ec357 VS |
191 | !endif |
192 | !if "$(USE_GUI)" == "1" | |
c33fae85 | 193 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib |
670ec357 VS |
194 | !endif |
195 | !if "$(USE_GUI)" == "1" | |
c33fae85 | 196 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib |
670ec357 VS |
197 | !endif |
198 | !if "$(USE_GUI)" == "1" | |
c33fae85 | 199 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib |
670ec357 VS |
200 | !endif |
201 | !if "$(MSLU)" == "1" | |
202 | __UNICOWS_LIB_p = unicows.lib | |
203 | !endif | |
204 | !if "$(SHARED)" == "0" | |
205 | LIBDIRNAME = .\..\lib\vc_lib$(CFG) | |
206 | !endif | |
207 | !if "$(SHARED)" == "1" | |
208 | LIBDIRNAME = .\..\lib\vc_dll$(CFG) | |
209 | !endif | |
210 | ||
211 | ||
212 | all: $(OBJS) | |
213 | $(OBJS): | |
214 | -if not exist $(OBJS) mkdir $(OBJS) | |
215 | ||
216 | ### Targets: ### | |
217 | ||
387f829e | 218 | all: $(OBJS)\test.exe data |
670ec357 VS |
219 | |
220 | clean: | |
221 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
222 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
223 | -if exist $(OBJS)\test.exe del $(OBJS)\test.exe | |
224 | -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk | |
225 | -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb | |
226 | ||
227 | $(OBJS)\test.exe: $(TEST_OBJECTS) | |
228 | link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<< | |
c33fae85 | 229 | $(TEST_OBJECTS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__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 |
230 | << |
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 | ||
670ec357 VS |
236 | $(OBJS)\test_test.obj: .\test.cpp |
237 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
238 | ||
239 | $(OBJS)\test_main.obj: .\mbconv\main.cpp | |
240 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
e70833fb | 241 | |
7d5ab151 VS |
242 | $(OBJS)\test_formatconverter.obj: .\formatconverter\formatconverter.cpp |
243 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
244 | ||
e70833fb VS |
245 | $(OBJS)\test_regex.obj: .\regex\regex.cpp |
246 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
4827cbd9 | 247 | |
bc10103e VS |
248 | $(OBJS)\test_wxregex.obj: .\regex\wxregex.cpp |
249 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
250 | ||
3fa86423 WS |
251 | $(OBJS)\test_filename.obj: .\filename\filename.cpp |
252 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
253 | ||
4827cbd9 VS |
254 | $(OBJS)\test_filesys.obj: .\filesys\filesys.cpp |
255 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
cf1014a2 VS |
256 | |
257 | $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp | |
258 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
1b035b8c | 259 | |
f9c3d39b MB |
260 | $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp |
261 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
262 | ||
1b035b8c VS |
263 | $(OBJS)\test_longlong.obj: .\longlong\longlong.cpp |
264 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
7735998c | 265 | |
1cd53e88 VS |
266 | $(OBJS)\test_strings.obj: .\strings\strings.cpp |
267 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
268 | ||
405b7d91 WS |
269 | $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp |
270 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
271 | ||
387f829e VS |
272 | $(OBJS)\test_unicode.obj: .\strings\unicode.cpp |
273 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
274 | ||
cf8ee08b VS |
275 | $(OBJS)\test_crt.obj: .\strings\crt.cpp |
276 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
277 | ||
7735998c VS |
278 | $(OBJS)\test_bstream.obj: .\streams\bstream.cpp |
279 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
280 | ||
281 | $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp | |
282 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
283 | ||
284 | $(OBJS)\test_filestream.obj: .\streams\filestream.cpp | |
285 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
286 | ||
287 | $(OBJS)\test_memstream.obj: .\streams\memstream.cpp | |
288 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
289 | ||
c33fae85 RN |
290 | $(OBJS)\test_sstream.obj: .\streams\sstream.cpp |
291 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
292 | ||
7735998c VS |
293 | $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp |
294 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
816b59de VS |
295 | |
296 | $(OBJS)\test_fontmap.obj: .\fontmap\fontmap.cpp | |
297 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** | |
edcccd84 WS |
298 | |
299 | $(OBJS)\test_datetime.obj: .\datetime\datetime.cpp | |
300 | $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $** |