]> git.saurik.com Git - wxWidgets.git/blob - tests/makefile.vc
DMC conflicts with old SC.
[wxWidgets.git] / tests / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (http://bakefile.sourceforge.net)
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
15 WX_RELEASE_NODOT = 25
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) /Yu"testprec.h" /Fp"$(OBJS)\testprec_test.pch" \
26 $(CPPFLAGS) $(CXXFLAGS)
27 TEST_OBJECTS = \
28 $(OBJS)\test_dummy.obj \
29 $(OBJS)\test_test.obj \
30 $(OBJS)\test_archivetest.obj \
31 $(OBJS)\test_arrays.obj \
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 \
38 $(OBJS)\test_hashes.obj \
39 $(OBJS)\test_longlongtest.obj \
40 $(OBJS)\test_mbconvtest.obj \
41 $(OBJS)\test_regextest.obj \
42 $(OBJS)\test_wxregextest.obj \
43 $(OBJS)\test_strings.obj \
44 $(OBJS)\test_stdstrings.obj \
45 $(OBJS)\test_unicode.obj \
46 $(OBJS)\test_crt.obj \
47 $(OBJS)\test_bstream.obj \
48 $(OBJS)\test_ffilestream.obj \
49 $(OBJS)\test_filestream.obj \
50 $(OBJS)\test_memstream.obj \
51 $(OBJS)\test_sstream.obj \
52 $(OBJS)\test_textstreamtest.obj \
53 $(OBJS)\test_zlibstream.obj \
54 $(OBJS)\test_uris.obj
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
79 !if "$(MONOLITHIC)" == "0"
80 EXTRALIBS_FOR_BASE =
81 !endif
82 !if "$(MONOLITHIC)" == "1"
83 EXTRALIBS_FOR_BASE =
84 !endif
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"
197 __WXLIB_NET_p = \
198 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
199 !endif
200 !if "$(MONOLITHIC)" == "0"
201 __WXLIB_BASE_p = \
202 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
203 !endif
204 !if "$(MONOLITHIC)" == "1"
205 __WXLIB_MONO_p = \
206 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
207 !endif
208 !if "$(USE_GUI)" == "1"
209 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
210 !endif
211 !if "$(USE_GUI)" == "1"
212 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
213 !endif
214 !if "$(USE_GUI)" == "1"
215 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
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
234 all: $(OBJS)\test.exe data
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
243 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
244 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
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
246 <<
247
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
252 $(OBJS)\test_dummy.obj: .\dummy.cpp
253 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) /Yctestprec.h $**
254
255 $(OBJS)\test_test.obj: .\test.cpp
256 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
257
258 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
259 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
260
261 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
262 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
263
264 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
265 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
266
267 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
268 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
269
270 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
271 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
272
273 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
274 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
275
276 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
277 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
278
279 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
280 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
281
282 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
283 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
284
285 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
286 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
287
288 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
289 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
290
291 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
292 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
293
294 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
295 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
296
297 $(OBJS)\test_strings.obj: .\strings\strings.cpp
298 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
299
300 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
301 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
302
303 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
304 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
305
306 $(OBJS)\test_crt.obj: .\strings\crt.cpp
307 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
308
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
321 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
323
324 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
326
327 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
328 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
329
330 $(OBJS)\test_uris.obj: .\uris\uris.cpp
331 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**