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 # =========================================================================
7 !include <../build/msw/config.vc>
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
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)
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 \
56 ### Conditionally set variables: ###
58 !if "$(USE_GUI)" == "0"
61 !if "$(USE_GUI)" == "1"
64 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
67 !if "$(DEBUG_FLAG)" == "1"
70 !if "$(UNICODE)" == "1"
73 !if "$(WXUNIV)" == "1"
76 !if "$(SHARED)" == "1"
79 !if "$(MONOLITHIC)" == "0"
82 !if "$(MONOLITHIC)" == "1"
85 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
88 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
91 !if "$(DEBUG_INFO)" == "0"
94 !if "$(DEBUG_INFO)" == "1"
97 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
98 __DEBUGINFO_1 = /DEBUG
100 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
103 !if "$(DEBUG_INFO)" == "0"
106 !if "$(DEBUG_INFO)" == "1"
107 __DEBUGINFO_1 = /DEBUG
109 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
110 ____DEBUGRUNTIME_2_p =
112 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
113 ____DEBUGRUNTIME_2_p = /D_DEBUG
115 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
116 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
118 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
119 ____DEBUGINFO_2_p = /D_DEBUG
121 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
124 !if "$(DEBUG_INFO)" == "0"
127 !if "$(DEBUG_INFO)" == "1"
128 ____DEBUGINFO_2_p = /D_DEBUG
130 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
133 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
136 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
137 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
139 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
142 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
145 !if "$(DEBUG_INFO)" == "0"
148 !if "$(DEBUG_INFO)" == "1"
151 !if "$(BUILD)" == "debug"
152 __OPTIMIZEFLAG_4 = /Od
154 !if "$(BUILD)" == "release"
155 __OPTIMIZEFLAG_4 = /O2
157 !if "$(RUNTIME_LIBS)" == "dynamic"
160 !if "$(RUNTIME_LIBS)" == "static"
163 !if "$(USE_EXCEPTIONS)" == "0"
166 !if "$(USE_EXCEPTIONS)" == "1"
167 __EXCEPTIONSFLAG_8 = /GR
169 !if "$(USE_EXCEPTIONS)" == "0"
172 !if "$(USE_EXCEPTIONS)" == "1"
173 __EXCEPTIONSFLAG_9 = /GX
175 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
176 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
178 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
179 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
181 !if "$(WXUNIV)" == "1"
182 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
184 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
185 __DEBUG_DEFINE_p = /D__WXDEBUG__
187 !if "$(DEBUG_FLAG)" == "1"
188 __DEBUG_DEFINE_p = /D__WXDEBUG__
190 !if "$(UNICODE)" == "1"
191 __UNICODE_DEFINE_p = /D_UNICODE
193 !if "$(SHARED)" == "1"
194 __DLLFLAG_p = /DWXUSINGDLL
196 !if "$(MONOLITHIC)" == "0"
198 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
200 !if "$(MONOLITHIC)" == "0"
202 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
204 !if "$(MONOLITHIC)" == "1"
206 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
208 !if "$(USE_GUI)" == "1"
209 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
211 !if "$(USE_GUI)" == "1"
212 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
214 !if "$(USE_GUI)" == "1"
215 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
218 __UNICOWS_LIB_p = unicows.lib
220 !if "$(SHARED)" == "0"
221 LIBDIRNAME = .\..\lib\vc_lib$(CFG)
223 !if "$(SHARED)" == "1"
224 LIBDIRNAME = .\..\lib\vc_dll$(CFG)
230 -if not exist $(OBJS) mkdir $(OBJS)
234 all: $(OBJS)\test.exe data
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
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
249 if not exist $(OBJS) mkdir $(OBJS)
250 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
252 $(OBJS)\test_dummy.obj: .\dummy.cpp
253 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) /Yctestprec.h $**
255 $(OBJS)\test_test.obj: .\test.cpp
256 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
258 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
259 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
261 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
262 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
264 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
265 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
267 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
268 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
270 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
271 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
273 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
274 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
276 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
277 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
279 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
280 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
282 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
283 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
285 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
286 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
288 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
289 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
291 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
292 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
294 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
295 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
297 $(OBJS)\test_strings.obj: .\strings\strings.cpp
298 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
300 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
301 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
303 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
304 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
306 $(OBJS)\test_crt.obj: .\strings\crt.cpp
307 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
309 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
310 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
312 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
313 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
315 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
316 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
318 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
319 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
321 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
324 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
327 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
328 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
330 $(OBJS)\test_uris.obj: .\uris\uris.cpp
331 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**