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 # -------------------------------------------------------------------------
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 TEST_CXXFLAGS = /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
20 $(__DEBUGINFO_0) /Fd$(OBJS)\test.pdb $(____DEBUGRUNTIME_2_p) \
21 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
22 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\include /I$(SETUPHDIR) /W4 \
23 /I. $(__DLLFLAG_p) /D_CONSOLE $(CPPUNIT_CFLAGS) $(__EXCEPTIONSFLAG_8) \
24 $(__EXCEPTIONSFLAG_9) $(CPPFLAGS) $(CXXFLAGS)
26 $(OBJS)\test_test.obj \
27 $(OBJS)\test_main.obj \
28 $(OBJS)\test_formatconverter.obj \
29 $(OBJS)\test_regex.obj \
30 $(OBJS)\test_wxregex.obj \
31 $(OBJS)\test_filesys.obj \
32 $(OBJS)\test_arrays.obj \
33 $(OBJS)\test_hashes.obj \
34 $(OBJS)\test_longlong.obj \
35 $(OBJS)\test_strings.obj \
36 $(OBJS)\test_stdstrings.obj \
37 $(OBJS)\test_unicode.obj \
38 $(OBJS)\test_crt.obj \
39 $(OBJS)\test_bstream.obj \
40 $(OBJS)\test_ffilestream.obj \
41 $(OBJS)\test_filestream.obj \
42 $(OBJS)\test_memstream.obj \
43 $(OBJS)\test_zlibstream.obj \
44 $(OBJS)\test_fontmap.obj \
45 $(OBJS)\test_datetime.obj
47 ### Conditionally set variables: ###
49 !if "$(USE_GUI)" == "0"
52 !if "$(USE_GUI)" == "1"
55 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
58 !if "$(DEBUG_FLAG)" == "1"
61 !if "$(UNICODE)" == "1"
64 !if "$(WXUNIV)" == "1"
67 !if "$(SHARED)" == "1"
70 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
73 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
76 !if "$(DEBUG_INFO)" == "0"
79 !if "$(DEBUG_INFO)" == "1"
82 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
83 __DEBUGINFO_1 = /DEBUG
85 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
88 !if "$(DEBUG_INFO)" == "0"
91 !if "$(DEBUG_INFO)" == "1"
92 __DEBUGINFO_1 = /DEBUG
94 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
95 ____DEBUGRUNTIME_2_p =
97 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
98 ____DEBUGRUNTIME_2_p = /D_DEBUG
100 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
101 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
103 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
104 ____DEBUGINFO_2_p = /D_DEBUG
106 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
109 !if "$(DEBUG_INFO)" == "0"
112 !if "$(DEBUG_INFO)" == "1"
113 ____DEBUGINFO_2_p = /D_DEBUG
115 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
118 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
121 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
122 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
124 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
127 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
130 !if "$(DEBUG_INFO)" == "0"
133 !if "$(DEBUG_INFO)" == "1"
136 !if "$(BUILD)" == "debug"
137 __OPTIMIZEFLAG_4 = /Od
139 !if "$(BUILD)" == "release"
140 __OPTIMIZEFLAG_4 = /O2
142 !if "$(RUNTIME_LIBS)" == "dynamic"
145 !if "$(RUNTIME_LIBS)" == "static"
148 !if "$(USE_EXCEPTIONS)" == "0"
151 !if "$(USE_EXCEPTIONS)" == "1"
152 __EXCEPTIONSFLAG_8 = /GR
154 !if "$(USE_EXCEPTIONS)" == "0"
157 !if "$(USE_EXCEPTIONS)" == "1"
158 __EXCEPTIONSFLAG_9 = /GX
160 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
161 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
163 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
164 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
166 !if "$(WXUNIV)" == "1"
167 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
169 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
170 __DEBUG_DEFINE_p = /D__WXDEBUG__
172 !if "$(DEBUG_FLAG)" == "1"
173 __DEBUG_DEFINE_p = /D__WXDEBUG__
175 !if "$(UNICODE)" == "1"
176 __UNICODE_DEFINE_p = /D_UNICODE
178 !if "$(SHARED)" == "1"
179 __DLLFLAG_p = /DWXUSINGDLL
181 !if "$(MONOLITHIC)" == "0"
182 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
184 !if "$(MONOLITHIC)" == "1"
186 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
188 !if "$(USE_GUI)" == "1"
189 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
191 !if "$(USE_GUI)" == "1"
192 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
194 !if "$(USE_GUI)" == "1"
195 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
198 __UNICOWS_LIB_p = unicows.lib
200 !if "$(SHARED)" == "0"
201 LIBDIRNAME = .\..\lib\vc_lib$(CFG)
203 !if "$(SHARED)" == "1"
204 LIBDIRNAME = .\..\lib\vc_dll$(CFG)
210 -if not exist $(OBJS) mkdir $(OBJS)
214 all: $(OBJS)\test.exe data
217 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
218 -if exist $(OBJS)\*.res del $(OBJS)\*.res
219 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
220 -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk
221 -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb
223 $(OBJS)\test.exe: $(TEST_OBJECTS)
224 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
225 $(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 $(__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
229 if not exist $(OBJS) mkdir $(OBJS)
230 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
232 $(OBJS)\test_test.obj: .\test.cpp
233 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
235 $(OBJS)\test_main.obj: .\mbconv\main.cpp
236 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
238 $(OBJS)\test_formatconverter.obj: .\formatconverter\formatconverter.cpp
239 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
241 $(OBJS)\test_regex.obj: .\regex\regex.cpp
242 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
244 $(OBJS)\test_wxregex.obj: .\regex\wxregex.cpp
245 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
247 $(OBJS)\test_filesys.obj: .\filesys\filesys.cpp
248 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
250 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
251 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
253 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
254 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
256 $(OBJS)\test_longlong.obj: .\longlong\longlong.cpp
257 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
259 $(OBJS)\test_strings.obj: .\strings\strings.cpp
260 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
262 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
263 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
265 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
266 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
268 $(OBJS)\test_crt.obj: .\strings\crt.cpp
269 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
271 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
272 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
274 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
275 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
277 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
278 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
280 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
281 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
283 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
284 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
286 $(OBJS)\test_fontmap.obj: .\fontmap\fontmap.cpp
287 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
289 $(OBJS)\test_datetime.obj: .\datetime\datetime.cpp
290 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**