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)$(__DEBUGRUNTIME_3) /DWIN32 $(__DEBUGINFO) \
21 /Fd$(OBJS)\test.pdb $(____DEBUGRUNTIME_2_p) $(__OPTIMIZEFLAG) \
22 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) /I.\..\include /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) \
24 /D_CONSOLE $(CPPUNIT_CFLAGS) $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
25 /Yu"testprec.h" /Fp"$(OBJS)\testprec_test.pch" $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\test_dummy.obj \
28 $(OBJS)\test_test.obj \
29 $(OBJS)\test_archivetest.obj \
30 $(OBJS)\test_arrays.obj \
31 $(OBJS)\test_datetimetest.obj \
32 $(OBJS)\test_fileconftest.obj \
33 $(OBJS)\test_filenametest.obj \
34 $(OBJS)\test_filesystest.obj \
35 $(OBJS)\test_fontmaptest.obj \
36 $(OBJS)\test_formatconvertertest.obj \
37 $(OBJS)\test_hashes.obj \
38 $(OBJS)\test_lists.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_datastreamtest.obj \
49 $(OBJS)\test_ffilestream.obj \
50 $(OBJS)\test_filestream.obj \
51 $(OBJS)\test_memstream.obj \
52 $(OBJS)\test_sstream.obj \
53 $(OBJS)\test_textstreamtest.obj \
54 $(OBJS)\test_zlibstream.obj \
56 TEST_GUI_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_17) /DWIN32 \
57 $(__DEBUGINFO) /Fd$(OBJS)\test_gui.pdb $(____DEBUGRUNTIME_16_p) \
58 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
59 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\include /I$(SETUPHDIR) /W4 \
60 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\samples /DNOPCH $(CPPUNIT_CFLAGS) \
61 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) /Yu"testprec.h" \
62 /Fp"$(OBJS)\testprec_test_gui.pch" $(CPPFLAGS) $(CXXFLAGS)
64 $(OBJS)\test_gui_sample.res \
65 $(OBJS)\test_gui_dummy.obj \
66 $(OBJS)\test_gui_test.obj
68 ### Conditionally set variables: ###
70 !if "$(USE_GUI)" == "0"
73 !if "$(USE_GUI)" == "1"
76 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
79 !if "$(DEBUG_FLAG)" == "1"
82 !if "$(UNICODE)" == "1"
85 !if "$(WXUNIV)" == "1"
88 !if "$(SHARED)" == "1"
91 !if "$(MONOLITHIC)" == "0"
94 !if "$(MONOLITHIC)" == "1"
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)
106 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
109 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
112 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
113 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
115 !if "$(MONOLITHIC)" == "0"
117 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
119 !if "$(USE_GUI)" == "1"
120 __test_gui___depname = $(OBJS)\test_gui.exe
122 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
123 ____DEBUGRUNTIME_16_p =
125 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
126 ____DEBUGRUNTIME_16_p = /D_DEBUG
128 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
129 ____DEBUGRUNTIME_16_p = $(____DEBUGINFO)
131 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
132 ____DEBUGRUNTIME_16_p_1 =
134 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
135 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
137 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
138 ____DEBUGRUNTIME_16_p_1 = $(____DEBUGINFO_16_p_1)
140 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
141 ____DEBUGINFO_16_p_1 = /d _DEBUG
143 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
144 ____DEBUGINFO_16_p_1 =
146 !if "$(DEBUG_INFO)" == "0"
147 ____DEBUGINFO_16_p_1 =
149 !if "$(DEBUG_INFO)" == "1"
150 ____DEBUGINFO_16_p_1 = /d _DEBUG
152 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
155 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
156 __DEBUGRUNTIME_17 = d
158 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
159 __DEBUGRUNTIME_17 = $(__DEBUGINFO_2)
161 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
162 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
164 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
165 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
167 !if "$(WXUNIV)" == "1"
168 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
170 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
171 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
173 !if "$(DEBUG_FLAG)" == "1"
174 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
176 !if "$(UNICODE)" == "1"
177 __UNICODE_DEFINE_p_3 = /d _UNICODE
179 !if "$(SHARED)" == "1"
180 __DLLFLAG_p_3 = /d WXUSINGDLL
182 !if "$(MONOLITHIC)" == "0"
184 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
186 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
189 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
192 !if "$(DEBUG_INFO)" == "0"
195 !if "$(DEBUG_INFO)" == "1"
198 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
199 __DEBUGINFO_1 = /DEBUG
201 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
204 !if "$(DEBUG_INFO)" == "0"
207 !if "$(DEBUG_INFO)" == "1"
208 __DEBUGINFO_1 = /DEBUG
210 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
211 ____DEBUGINFO = /D_DEBUG
213 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
216 !if "$(DEBUG_INFO)" == "0"
219 !if "$(DEBUG_INFO)" == "1"
220 ____DEBUGINFO = /D_DEBUG
222 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
225 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
228 !if "$(DEBUG_INFO)" == "0"
231 !if "$(DEBUG_INFO)" == "1"
234 !if "$(BUILD)" == "debug"
237 !if "$(BUILD)" == "release"
240 !if "$(RUNTIME_LIBS)" == "dynamic"
243 !if "$(RUNTIME_LIBS)" == "static"
246 !if "$(USE_EXCEPTIONS)" == "0"
249 !if "$(USE_EXCEPTIONS)" == "1"
250 __EXCEPTIONSFLAG = /GR
252 !if "$(USE_EXCEPTIONS)" == "0"
255 !if "$(USE_EXCEPTIONS)" == "1"
256 __EXCEPTIONSFLAG_0 = /GX
258 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
259 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
261 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
262 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
264 !if "$(WXUNIV)" == "1"
265 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
267 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
268 __DEBUG_DEFINE_p = /D__WXDEBUG__
270 !if "$(DEBUG_FLAG)" == "1"
271 __DEBUG_DEFINE_p = /D__WXDEBUG__
273 !if "$(UNICODE)" == "1"
274 __UNICODE_DEFINE_p = /D_UNICODE
276 !if "$(SHARED)" == "0"
277 LIBDIRNAME = .\..\lib\vc_lib$(CFG)
279 !if "$(SHARED)" == "1"
280 LIBDIRNAME = .\..\lib\vc_dll$(CFG)
282 !if "$(SHARED)" == "1"
283 __DLLFLAG_p = /DWXUSINGDLL
285 !if "$(MONOLITHIC)" == "0"
287 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
289 !if "$(MONOLITHIC)" == "1"
291 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
293 !if "$(USE_GUI)" == "1"
294 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
296 !if "$(USE_GUI)" == "1"
297 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
299 !if "$(USE_GUI)" == "1"
300 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
303 __UNICOWS_LIB_p = unicows.lib
309 -if not exist $(OBJS) mkdir $(OBJS)
313 all: $(OBJS)\test.exe $(__test_gui___depname) data
316 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
317 -if exist $(OBJS)\*.res del $(OBJS)\*.res
318 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
319 -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk
320 -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb
321 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
322 -if exist $(OBJS)\test_gui.ilk del $(OBJS)\test_gui.ilk
323 -if exist $(OBJS)\test_gui.pdb del $(OBJS)\test_gui.pdb
325 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
326 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
327 $(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
330 !if "$(USE_GUI)" == "1"
331 $(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
332 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(CPPUNIT_LIBS) @<<
333 $(TEST_GUI_OBJECTS) $(__WXLIB_CORE_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
338 if not exist $(OBJS) mkdir $(OBJS)
339 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
341 $(OBJS)\test_dummy.obj: .\dummy.cpp
342 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) /Yctestprec.h $**
344 $(OBJS)\test_test.obj: .\test.cpp
345 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
347 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
348 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
350 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
351 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
353 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
354 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
356 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
357 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
359 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
360 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
362 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
363 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
365 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
366 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
368 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
369 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
371 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
372 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
374 $(OBJS)\test_lists.obj: .\lists\lists.cpp
375 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
377 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
378 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
380 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
381 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
383 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
384 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
386 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
387 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
389 $(OBJS)\test_strings.obj: .\strings\strings.cpp
390 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
392 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
393 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
395 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
396 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
398 $(OBJS)\test_crt.obj: .\strings\crt.cpp
399 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
401 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
402 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
404 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
405 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
407 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
408 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
410 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
411 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
413 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
414 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
416 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
417 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
419 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
420 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
422 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
423 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
425 $(OBJS)\test_uris.obj: .\uris\uris.cpp
426 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
428 $(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
429 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_16_p_1) $(__NO_VC_CRTDBG_p_3) /d __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) /i .\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_3) /d _WINDOWS /i .\..\samples $**
431 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
432 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) /Yctestprec.h $**
434 $(OBJS)\test_gui_test.obj: .\test.cpp
435 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**