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_main.obj \
29 $(OBJS)\test_formatconverter.obj \
30 $(OBJS)\test_regex.obj \
31 $(OBJS)\test_wxregex.obj \
32 $(OBJS)\test_filename.obj \
33 $(OBJS)\test_filesys.obj \
34 $(OBJS)\test_arrays.obj \
35 $(OBJS)\test_hashes.obj \
36 $(OBJS)\test_longlong.obj \
37 $(OBJS)\test_strings.obj \
38 $(OBJS)\test_stdstrings.obj \
39 $(OBJS)\test_unicode.obj \
40 $(OBJS)\test_crt.obj \
41 $(OBJS)\test_bstream.obj \
42 $(OBJS)\test_ffilestream.obj \
43 $(OBJS)\test_filestream.obj \
44 $(OBJS)\test_memstream.obj \
45 $(OBJS)\test_sstream.obj \
46 $(OBJS)\test_zlibstream.obj \
47 $(OBJS)\test_fontmap.obj \
48 $(OBJS)\test_datetime.obj
50 ### Conditionally set variables: ###
52 !if "$(USE_GUI)" == "0"
55 !if "$(USE_GUI)" == "1"
58 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
61 !if "$(DEBUG_FLAG)" == "1"
64 !if "$(UNICODE)" == "1"
67 !if "$(WXUNIV)" == "1"
70 !if "$(SHARED)" == "1"
73 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
76 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
79 !if "$(DEBUG_INFO)" == "0"
82 !if "$(DEBUG_INFO)" == "1"
85 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
86 __DEBUGINFO_1 = /DEBUG
88 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
91 !if "$(DEBUG_INFO)" == "0"
94 !if "$(DEBUG_INFO)" == "1"
95 __DEBUGINFO_1 = /DEBUG
97 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
98 ____DEBUGRUNTIME_2_p =
100 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
101 ____DEBUGRUNTIME_2_p = /D_DEBUG
103 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
104 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
106 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
107 ____DEBUGINFO_2_p = /D_DEBUG
109 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
112 !if "$(DEBUG_INFO)" == "0"
115 !if "$(DEBUG_INFO)" == "1"
116 ____DEBUGINFO_2_p = /D_DEBUG
118 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
121 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
124 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
125 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
127 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
130 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
133 !if "$(DEBUG_INFO)" == "0"
136 !if "$(DEBUG_INFO)" == "1"
139 !if "$(BUILD)" == "debug"
140 __OPTIMIZEFLAG_4 = /Od
142 !if "$(BUILD)" == "release"
143 __OPTIMIZEFLAG_4 = /O2
145 !if "$(RUNTIME_LIBS)" == "dynamic"
148 !if "$(RUNTIME_LIBS)" == "static"
151 !if "$(USE_EXCEPTIONS)" == "0"
154 !if "$(USE_EXCEPTIONS)" == "1"
155 __EXCEPTIONSFLAG_8 = /GR
157 !if "$(USE_EXCEPTIONS)" == "0"
160 !if "$(USE_EXCEPTIONS)" == "1"
161 __EXCEPTIONSFLAG_9 = /GX
163 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
164 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
166 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
167 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
169 !if "$(WXUNIV)" == "1"
170 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
172 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
173 __DEBUG_DEFINE_p = /D__WXDEBUG__
175 !if "$(DEBUG_FLAG)" == "1"
176 __DEBUG_DEFINE_p = /D__WXDEBUG__
178 !if "$(UNICODE)" == "1"
179 __UNICODE_DEFINE_p = /D_UNICODE
181 !if "$(SHARED)" == "1"
182 __DLLFLAG_p = /DWXUSINGDLL
184 !if "$(MONOLITHIC)" == "0"
186 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
188 !if "$(MONOLITHIC)" == "1"
190 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
192 !if "$(USE_GUI)" == "1"
193 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
195 !if "$(USE_GUI)" == "1"
196 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
198 !if "$(USE_GUI)" == "1"
199 __LIB_PNG_p = wxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
202 __UNICOWS_LIB_p = unicows.lib
204 !if "$(SHARED)" == "0"
205 LIBDIRNAME = .\..\lib\vc_lib$(CFG)
207 !if "$(SHARED)" == "1"
208 LIBDIRNAME = .\..\lib\vc_dll$(CFG)
214 -if not exist $(OBJS) mkdir $(OBJS)
218 all: $(OBJS)\test.exe data
221 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
222 -if exist $(OBJS)\*.res del $(OBJS)\*.res
223 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
224 -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk
225 -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb
227 $(OBJS)\test.exe: $(TEST_OBJECTS)
228 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
229 $(TEST_OBJECTS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__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
233 if not exist $(OBJS) mkdir $(OBJS)
234 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
236 $(OBJS)\test_test.obj: .\test.cpp
237 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
239 $(OBJS)\test_main.obj: .\mbconv\main.cpp
240 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
242 $(OBJS)\test_formatconverter.obj: .\formatconverter\formatconverter.cpp
243 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
245 $(OBJS)\test_regex.obj: .\regex\regex.cpp
246 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
248 $(OBJS)\test_wxregex.obj: .\regex\wxregex.cpp
249 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
251 $(OBJS)\test_filename.obj: .\filename\filename.cpp
252 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
254 $(OBJS)\test_filesys.obj: .\filesys\filesys.cpp
255 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
257 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
258 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
260 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
261 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
263 $(OBJS)\test_longlong.obj: .\longlong\longlong.cpp
264 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
266 $(OBJS)\test_strings.obj: .\strings\strings.cpp
267 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
269 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
270 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
272 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
273 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
275 $(OBJS)\test_crt.obj: .\strings\crt.cpp
276 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
278 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
279 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
281 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
282 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
284 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
285 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
287 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
288 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
290 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
291 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
293 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
294 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
296 $(OBJS)\test_fontmap.obj: .\fontmap\fontmap.cpp
297 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
299 $(OBJS)\test_datetime.obj: .\datetime\datetime.cpp
300 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**