1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.7 (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)
18 LIBDIRNAME = .\..\lib\vc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 TEST_CXXFLAGS = /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
22 $(__DEBUGINFO) /Fd$(OBJS)\test.pdb $(____DEBUGRUNTIME_2_p) \
23 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\include /I$(SETUPHDIR) /W4 \
25 /I. $(__DLLFLAG_p) /D_CONSOLE /DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) $(__RTTIFLAG) \
26 $(__EXCEPTIONSFLAG) /Yu"testprec.h" /Fp"$(OBJS)\testprec_test.pch" \
27 $(CPPFLAGS) $(CXXFLAGS)
29 $(OBJS)\test_dummy.obj \
30 $(OBJS)\test_test.obj \
31 $(OBJS)\test_archivetest.obj \
32 $(OBJS)\test_ziptest.obj \
33 $(OBJS)\test_arrays.obj \
34 $(OBJS)\test_datetimetest.obj \
35 $(OBJS)\test_fileconftest.obj \
36 $(OBJS)\test_filekind.obj \
37 $(OBJS)\test_filenametest.obj \
38 $(OBJS)\test_filesystest.obj \
39 $(OBJS)\test_fontmaptest.obj \
40 $(OBJS)\test_formatconvertertest.obj \
41 $(OBJS)\test_hashes.obj \
42 $(OBJS)\test_lists.obj \
43 $(OBJS)\test_longlongtest.obj \
44 $(OBJS)\test_mbconvtest.obj \
45 $(OBJS)\test_regextest.obj \
46 $(OBJS)\test_wxregextest.obj \
47 $(OBJS)\test_strings.obj \
48 $(OBJS)\test_stdstrings.obj \
49 $(OBJS)\test_unicode.obj \
50 $(OBJS)\test_crt.obj \
51 $(OBJS)\test_bstream.obj \
52 $(OBJS)\test_datastreamtest.obj \
53 $(OBJS)\test_ffilestream.obj \
54 $(OBJS)\test_filestream.obj \
55 $(OBJS)\test_largefile.obj \
56 $(OBJS)\test_memstream.obj \
57 $(OBJS)\test_sstream.obj \
58 $(OBJS)\test_tempfile.obj \
59 $(OBJS)\test_textstreamtest.obj \
60 $(OBJS)\test_zlibstream.obj \
62 TEST_GUI_CXXFLAGS = /M$(__RUNTIME_LIBS_21)$(__DEBUGRUNTIME_17) /DWIN32 \
63 $(__DEBUGINFO) /Fd$(OBJS)\test_gui.pdb $(____DEBUGRUNTIME_16_p) \
64 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
65 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\include /I$(SETUPHDIR) /W4 \
66 /I. $(__DLLFLAG_p) /I.\..\samples /DNOPCH $(CPPUNIT_CFLAGS) /D_CONSOLE \
67 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) /Yu"testprec.h" \
68 /Fp"$(OBJS)\testprec_test_gui.pch" $(CPPFLAGS) $(CXXFLAGS)
70 $(OBJS)\test_gui_sample.res \
71 $(OBJS)\test_gui_dummy.obj \
72 $(OBJS)\test_gui_test.obj \
73 $(OBJS)\test_gui_rect.obj \
74 $(OBJS)\test_gui_size.obj \
75 $(OBJS)\test_gui_point.obj
77 ### Conditionally set variables: ###
79 !if "$(USE_GUI)" == "0"
82 !if "$(USE_GUI)" == "1"
85 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
88 !if "$(DEBUG_FLAG)" == "1"
91 !if "$(UNICODE)" == "1"
94 !if "$(WXUNIV)" == "1"
97 !if "$(SHARED)" == "1"
100 !if "$(SHARED)" == "0"
103 !if "$(SHARED)" == "1"
106 !if "$(MONOLITHIC)" == "0"
109 !if "$(MONOLITHIC)" == "1"
112 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
113 ____DEBUGRUNTIME_2_p =
115 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
116 ____DEBUGRUNTIME_2_p = /D_DEBUG
118 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
119 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
121 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
124 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
127 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
128 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
130 !if "$(RUNTIME_LIBS)" == "dynamic"
133 !if "$(RUNTIME_LIBS)" == "static"
134 __RUNTIME_LIBS_7 = $(__THREADSFLAG)
136 !if "$(MONOLITHIC)" == "0"
138 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
140 !if "$(USE_GUI)" == "1"
141 __test_gui___depname = $(OBJS)\test_gui.exe
143 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
144 ____DEBUGRUNTIME_16_p =
146 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
147 ____DEBUGRUNTIME_16_p = /D_DEBUG
149 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
150 ____DEBUGRUNTIME_16_p = $(____DEBUGINFO)
152 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
153 ____DEBUGRUNTIME_16_p_1 =
155 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
156 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
158 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
159 ____DEBUGRUNTIME_16_p_1 = $(____DEBUGINFO_16_p_1)
161 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
162 ____DEBUGINFO_16_p_1 = /d _DEBUG
164 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
165 ____DEBUGINFO_16_p_1 =
167 !if "$(DEBUG_INFO)" == "0"
168 ____DEBUGINFO_16_p_1 =
170 !if "$(DEBUG_INFO)" == "1"
171 ____DEBUGINFO_16_p_1 = /d _DEBUG
173 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
176 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
177 __DEBUGRUNTIME_17 = d
179 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
180 __DEBUGRUNTIME_17 = $(__DEBUGINFO_2)
182 !if "$(RUNTIME_LIBS)" == "dynamic"
183 __RUNTIME_LIBS_21 = D
185 !if "$(RUNTIME_LIBS)" == "static"
186 __RUNTIME_LIBS_21 = $(__THREADSFLAG)
188 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
189 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
191 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
192 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
194 !if "$(WXUNIV)" == "1"
195 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
197 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
198 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
200 !if "$(DEBUG_FLAG)" == "1"
201 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
203 !if "$(UNICODE)" == "1"
204 __UNICODE_DEFINE_p_3 = /d _UNICODE
206 !if "$(SHARED)" == "1"
207 __DLLFLAG_p_3 = /d WXUSINGDLL
209 !if "$(MONOLITHIC)" == "0"
211 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
213 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
216 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
219 !if "$(DEBUG_INFO)" == "0"
222 !if "$(DEBUG_INFO)" == "1"
225 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
226 __DEBUGINFO_1 = /DEBUG
228 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
231 !if "$(DEBUG_INFO)" == "0"
234 !if "$(DEBUG_INFO)" == "1"
235 __DEBUGINFO_1 = /DEBUG
237 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
238 ____DEBUGINFO = /D_DEBUG
240 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
243 !if "$(DEBUG_INFO)" == "0"
246 !if "$(DEBUG_INFO)" == "1"
247 ____DEBUGINFO = /D_DEBUG
249 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
252 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
255 !if "$(DEBUG_INFO)" == "0"
258 !if "$(DEBUG_INFO)" == "1"
261 !if "$(BUILD)" == "debug"
264 !if "$(BUILD)" == "release"
267 !if "$(USE_THREADS)" == "0"
270 !if "$(USE_THREADS)" == "1"
273 !if "$(USE_RTTI)" == "0"
276 !if "$(USE_RTTI)" == "1"
279 !if "$(USE_EXCEPTIONS)" == "0"
282 !if "$(USE_EXCEPTIONS)" == "1"
283 __EXCEPTIONSFLAG = /GX
285 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
286 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
288 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
289 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
291 !if "$(WXUNIV)" == "1"
292 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
294 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
295 __DEBUG_DEFINE_p = /D__WXDEBUG__
297 !if "$(DEBUG_FLAG)" == "1"
298 __DEBUG_DEFINE_p = /D__WXDEBUG__
300 !if "$(UNICODE)" == "1"
301 __UNICODE_DEFINE_p = /D_UNICODE
303 !if "$(SHARED)" == "1"
304 __DLLFLAG_p = /DWXUSINGDLL
306 !if "$(MONOLITHIC)" == "0"
308 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
310 !if "$(MONOLITHIC)" == "1"
312 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
314 !if "$(USE_GUI)" == "1"
315 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
317 !if "$(USE_GUI)" == "1"
318 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
320 !if "$(USE_GUI)" == "1"
321 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
324 __UNICOWS_LIB_p = unicows.lib
330 -if not exist $(OBJS) mkdir $(OBJS)
334 all: $(OBJS)\test.exe $(__test_gui___depname) data
337 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
338 -if exist $(OBJS)\*.res del $(OBJS)\*.res
339 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
340 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
341 -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk
342 -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb
343 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
344 -if exist $(OBJS)\test_gui.ilk del $(OBJS)\test_gui.ilk
345 -if exist $(OBJS)\test_gui.pdb del $(OBJS)\test_gui.pdb
347 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
348 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
349 $(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
352 !if "$(USE_GUI)" == "1"
353 $(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
354 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) $(CPPUNIT_LIBS) /SUBSYSTEM:CONSOLE @<<
355 $(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
360 if not exist $(OBJS) mkdir $(OBJS)
361 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
363 $(OBJS)\test_dummy.obj: .\dummy.cpp
364 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) /Yctestprec.h $**
366 $(OBJS)\test_test.obj: .\test.cpp
367 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
369 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
370 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
372 $(OBJS)\test_ziptest.obj: .\archive\ziptest.cpp
373 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
375 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
376 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
378 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
379 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
381 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
382 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
384 $(OBJS)\test_filekind.obj: .\filekind\filekind.cpp
385 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
387 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
388 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
390 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
391 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
393 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
394 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
396 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
397 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
399 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
400 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
402 $(OBJS)\test_lists.obj: .\lists\lists.cpp
403 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
405 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
406 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
408 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
409 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
411 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
412 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
414 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
415 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
417 $(OBJS)\test_strings.obj: .\strings\strings.cpp
418 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
420 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
421 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
423 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
424 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
426 $(OBJS)\test_crt.obj: .\strings\crt.cpp
427 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
429 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
430 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
432 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
433 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
435 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
436 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
438 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
439 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
441 $(OBJS)\test_largefile.obj: .\streams\largefile.cpp
442 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
444 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
445 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
447 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
448 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
450 $(OBJS)\test_tempfile.obj: .\streams\tempfile.cpp
451 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
453 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
454 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
456 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
457 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
459 $(OBJS)\test_uris.obj: .\uris\uris.cpp
460 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
462 $(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
463 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) /i .\..\samples $**
465 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
466 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) /Yctestprec.h $**
468 $(OBJS)\test_gui_test.obj: .\test.cpp
469 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
471 $(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
472 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
474 $(OBJS)\test_gui_size.obj: .\geometry\size.cpp
475 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
477 $(OBJS)\test_gui_point.obj: .\geometry\point.cpp
478 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**