]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.vc
note broken code, cast hack to fix warning on pickier compilers
[wxWidgets.git] / tests / makefile.vc
CommitLineData
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 15WX_RELEASE_NODOT = 25
670ec357
VS
16OBJS = \
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20TEST_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)
26TEST_OBJECTS = \
27 $(OBJS)\test_test.obj \
dd65d8c8
RN
28 $(OBJS)\test_arrays.obj \
29 $(OBJS)\test_datetime.obj \
ab921f5f 30 $(OBJS)\test_fileconf.obj \
3fa86423 31 $(OBJS)\test_filename.obj \
cf1014a2 32 $(OBJS)\test_filesys.obj \
dd65d8c8
RN
33 $(OBJS)\test_fontmap.obj \
34 $(OBJS)\test_formatconverter.obj \
f9c3d39b 35 $(OBJS)\test_hashes.obj \
7735998c 36 $(OBJS)\test_longlong.obj \
dd65d8c8
RN
37 $(OBJS)\test_main.obj \
38 $(OBJS)\test_regex.obj \
39 $(OBJS)\test_wxregex.obj \
1cd53e88 40 $(OBJS)\test_strings.obj \
405b7d91 41 $(OBJS)\test_stdstrings.obj \
387f829e 42 $(OBJS)\test_unicode.obj \
cf8ee08b 43 $(OBJS)\test_crt.obj \
7735998c
VS
44 $(OBJS)\test_bstream.obj \
45 $(OBJS)\test_ffilestream.obj \
46 $(OBJS)\test_filestream.obj \
47 $(OBJS)\test_memstream.obj \
c33fae85 48 $(OBJS)\test_sstream.obj \
816b59de 49 $(OBJS)\test_zlibstream.obj \
dd65d8c8 50 $(OBJS)\test_uris.obj
670ec357
VS
51
52### Conditionally set variables: ###
53
54!if "$(USE_GUI)" == "0"
55PORTNAME = base
56!endif
57!if "$(USE_GUI)" == "1"
58PORTNAME = msw
59!endif
60!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
61WXDEBUGFLAG = d
62!endif
63!if "$(DEBUG_FLAG)" == "1"
64WXDEBUGFLAG = d
65!endif
66!if "$(UNICODE)" == "1"
67WXUNICODEFLAG = u
68!endif
69!if "$(WXUNIV)" == "1"
70WXUNIVNAME = univ
71!endif
72!if "$(SHARED)" == "1"
73WXDLLFLAG = dll
74!endif
dd65d8c8
RN
75!if "$(MONOLITHIC)" == "0"
76EXTRALIBS_FOR_BASE =
77!endif
78!if "$(MONOLITHIC)" == "1"
79EXTRALIBS_FOR_BASE =
80!endif
670ec357
VS
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"
c33fae85
RN
193__WXLIB_BASE_p = \
194 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
195!endif
196!if "$(MONOLITHIC)" == "1"
197__WXLIB_MONO_p = \
c33fae85 198 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
199!endif
200!if "$(USE_GUI)" == "1"
9c2d002b 201__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
670ec357
VS
202!endif
203!if "$(USE_GUI)" == "1"
9c2d002b 204__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
670ec357
VS
205!endif
206!if "$(USE_GUI)" == "1"
9c2d002b 207__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
670ec357
VS
208!endif
209!if "$(MSLU)" == "1"
210__UNICOWS_LIB_p = unicows.lib
211!endif
212!if "$(SHARED)" == "0"
213LIBDIRNAME = .\..\lib\vc_lib$(CFG)
214!endif
215!if "$(SHARED)" == "1"
216LIBDIRNAME = .\..\lib\vc_dll$(CFG)
217!endif
218
219
220all: $(OBJS)
221$(OBJS):
222 -if not exist $(OBJS) mkdir $(OBJS)
223
224### Targets: ###
225
387f829e 226all: $(OBJS)\test.exe data
670ec357
VS
227
228clean:
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) @<<
dd65d8c8 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
670ec357
VS
238<<
239
387f829e
VS
240data:
241 if not exist $(OBJS) mkdir $(OBJS)
242 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
243
670ec357
VS
244$(OBJS)\test_test.obj: .\test.cpp
245 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
246
dd65d8c8 247$(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
e70833fb 248 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
4827cbd9 249
dd65d8c8 250$(OBJS)\test_datetime.obj: .\datetime\datetime.cpp
bc10103e
VS
251 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
252
ab921f5f
RN
253$(OBJS)\test_fileconf.obj: .\fileconf\fileconf.cpp
254 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
255
3fa86423
WS
256$(OBJS)\test_filename.obj: .\filename\filename.cpp
257 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
258
4827cbd9
VS
259$(OBJS)\test_filesys.obj: .\filesys\filesys.cpp
260 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
cf1014a2 261
dd65d8c8
RN
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
cf1014a2 266 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
1b035b8c 267
f9c3d39b
MB
268$(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
269 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
270
1b035b8c
VS
271$(OBJS)\test_longlong.obj: .\longlong\longlong.cpp
272 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
7735998c 273
dd65d8c8
RN
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
1cd53e88
VS
283$(OBJS)\test_strings.obj: .\strings\strings.cpp
284 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
285
405b7d91
WS
286$(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
287 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
288
387f829e
VS
289$(OBJS)\test_unicode.obj: .\strings\unicode.cpp
290 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
291
cf8ee08b
VS
292$(OBJS)\test_crt.obj: .\strings\crt.cpp
293 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
294
7735998c
VS
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
c33fae85
RN
307$(OBJS)\test_sstream.obj: .\streams\sstream.cpp
308 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
309
7735998c
VS
310$(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
311 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
816b59de 312
dd65d8c8 313$(OBJS)\test_uris.obj: .\uris\uris.cpp
edcccd84 314 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**