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) $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\test_test.obj \
28 $(OBJS)\test_arrays.obj \
29 $(OBJS)\test_datetimetest.obj \
30 $(OBJS)\test_fileconftest.obj \
31 $(OBJS)\test_filenametest.obj \
32 $(OBJS)\test_filesystest.obj \
33 $(OBJS)\test_fontmaptest.obj \
34 $(OBJS)\test_formatconvertertest.obj \
35 $(OBJS)\test_hashes.obj \
36 $(OBJS)\test_longlongtest.obj \
37 $(OBJS)\test_mbconvtest.obj \
38 $(OBJS)\test_regextest.obj \
39 $(OBJS)\test_wxregextest.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 \
52 ### Conditionally set variables: ###
54 !if "$(USE_GUI)" == "0"
57 !if "$(USE_GUI)" == "1"
60 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
63 !if "$(DEBUG_FLAG)" == "1"
66 !if "$(UNICODE)" == "1"
69 !if "$(WXUNIV)" == "1"
72 !if "$(SHARED)" == "1"
75 !if "$(MONOLITHIC)" == "0"
78 !if "$(MONOLITHIC)" == "1"
81 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
84 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
87 !if "$(DEBUG_INFO)" == "0"
90 !if "$(DEBUG_INFO)" == "1"
93 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
94 __DEBUGINFO_1 = /DEBUG
96 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
99 !if "$(DEBUG_INFO)" == "0"
102 !if "$(DEBUG_INFO)" == "1"
103 __DEBUGINFO_1 = /DEBUG
105 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
106 ____DEBUGRUNTIME_2_p =
108 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
109 ____DEBUGRUNTIME_2_p = /D_DEBUG
111 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
112 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
114 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
115 ____DEBUGINFO_2_p = /D_DEBUG
117 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
120 !if "$(DEBUG_INFO)" == "0"
123 !if "$(DEBUG_INFO)" == "1"
124 ____DEBUGINFO_2_p = /D_DEBUG
126 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
129 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
132 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
133 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
135 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
138 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
141 !if "$(DEBUG_INFO)" == "0"
144 !if "$(DEBUG_INFO)" == "1"
147 !if "$(BUILD)" == "debug"
148 __OPTIMIZEFLAG_4 = /Od
150 !if "$(BUILD)" == "release"
151 __OPTIMIZEFLAG_4 = /O2
153 !if "$(RUNTIME_LIBS)" == "dynamic"
156 !if "$(RUNTIME_LIBS)" == "static"
159 !if "$(USE_EXCEPTIONS)" == "0"
162 !if "$(USE_EXCEPTIONS)" == "1"
163 __EXCEPTIONSFLAG_8 = /GR
165 !if "$(USE_EXCEPTIONS)" == "0"
168 !if "$(USE_EXCEPTIONS)" == "1"
169 __EXCEPTIONSFLAG_9 = /GX
171 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
172 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
174 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
175 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
177 !if "$(WXUNIV)" == "1"
178 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
180 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
181 __DEBUG_DEFINE_p = /D__WXDEBUG__
183 !if "$(DEBUG_FLAG)" == "1"
184 __DEBUG_DEFINE_p = /D__WXDEBUG__
186 !if "$(UNICODE)" == "1"
187 __UNICODE_DEFINE_p = /D_UNICODE
189 !if "$(SHARED)" == "1"
190 __DLLFLAG_p = /DWXUSINGDLL
192 !if "$(MONOLITHIC)" == "0"
194 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
196 !if "$(MONOLITHIC)" == "0"
198 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
200 !if "$(MONOLITHIC)" == "1"
202 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
204 !if "$(USE_GUI)" == "1"
205 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
207 !if "$(USE_GUI)" == "1"
208 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
210 !if "$(USE_GUI)" == "1"
211 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
214 __UNICOWS_LIB_p = unicows.lib
216 !if "$(SHARED)" == "0"
217 LIBDIRNAME = .\..\lib\vc_lib$(CFG)
219 !if "$(SHARED)" == "1"
220 LIBDIRNAME = .\..\lib\vc_dll$(CFG)
226 -if not exist $(OBJS) mkdir $(OBJS)
230 all: $(OBJS)\test.exe data
233 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
234 -if exist $(OBJS)\*.res del $(OBJS)\*.res
235 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
236 -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk
237 -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb
239 $(OBJS)\test.exe: $(TEST_OBJECTS)
240 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
241 $(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
245 if not exist $(OBJS) mkdir $(OBJS)
246 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
248 $(OBJS)\test_test.obj: .\test.cpp
249 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
251 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
252 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
254 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
255 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
257 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
258 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
260 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
261 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
263 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
264 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
266 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
267 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
269 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
270 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
272 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
273 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
275 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
276 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
278 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
279 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
281 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
282 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
284 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
285 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
287 $(OBJS)\test_strings.obj: .\strings\strings.cpp
288 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
290 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
291 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
293 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
294 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
296 $(OBJS)\test_crt.obj: .\strings\crt.cpp
297 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
299 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
300 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
302 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
303 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
305 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
306 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
308 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
309 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
311 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
312 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
314 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
315 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
317 $(OBJS)\test_uris.obj: .\uris\uris.cpp
318 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**