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