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_datetime.obj \
30 $(OBJS)\test_fileconf.obj \
31 $(OBJS)\test_filename.obj \
32 $(OBJS)\test_filesys.obj \
33 $(OBJS)\test_fontmap.obj \
34 $(OBJS)\test_formatconverter.obj \
35 $(OBJS)\test_hashes.obj \
36 $(OBJS)\test_longlong.obj \
37 $(OBJS)\test_main.obj \
38 $(OBJS)\test_regex.obj \
39 $(OBJS)\test_wxregex.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).lib
196 !if "$(MONOLITHIC)" == "1"
198 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
200 !if "$(USE_GUI)" == "1"
201 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
203 !if "$(USE_GUI)" == "1"
204 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
206 !if "$(USE_GUI)" == "1"
207 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
210 __UNICOWS_LIB_p = unicows.lib
212 !if "$(SHARED)" == "0"
213 LIBDIRNAME = .\..\lib\vc_lib$(CFG)
215 !if "$(SHARED)" == "1"
216 LIBDIRNAME = .\..\lib\vc_dll$(CFG)
222 -if not exist $(OBJS) mkdir $(OBJS)
226 all: $(OBJS)\test.exe data
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
235 $(OBJS)\test.exe: $(TEST_OBJECTS)
236 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
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
241 if not exist $(OBJS) mkdir $(OBJS)
242 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
244 $(OBJS)\test_test.obj: .\test.cpp
245 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
247 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
248 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
250 $(OBJS)\test_datetime.obj: .\datetime\datetime.cpp
251 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
253 $(OBJS)\test_fileconf.obj: .\fileconf\fileconf.cpp
254 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
256 $(OBJS)\test_filename.obj: .\filename\filename.cpp
257 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
259 $(OBJS)\test_filesys.obj: .\filesys\filesys.cpp
260 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
262 $(OBJS)\test_fontmap.obj: .\fontmap\fontmap.cpp
263 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
265 $(OBJS)\test_formatconverter.obj: .\formatconverter\formatconverter.cpp
266 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
268 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
269 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
271 $(OBJS)\test_longlong.obj: .\longlong\longlong.cpp
272 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
274 $(OBJS)\test_main.obj: .\mbconv\main.cpp
275 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
277 $(OBJS)\test_regex.obj: .\regex\regex.cpp
278 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
280 $(OBJS)\test_wxregex.obj: .\regex\wxregex.cpp
281 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
283 $(OBJS)\test_strings.obj: .\strings\strings.cpp
284 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
286 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
287 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
289 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
290 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
292 $(OBJS)\test_crt.obj: .\strings\crt.cpp
293 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
295 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
296 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
298 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
299 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
301 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
302 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
304 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
305 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
307 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
308 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
310 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
311 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
313 $(OBJS)\test_uris.obj: .\uris\uris.cpp
314 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**