1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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_8)$(__DEBUGRUNTIME) /DWIN32 $(__DEBUGINFO) \
22 /Fd$(OBJS)\test.pdb $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) \
23 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) /I.\..\include /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) \
26 /D_CONSOLE /DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
27 /Yu"testprec.h" /Fp"$(OBJS)\testprec_test.pch" $(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_23)$(__DEBUGRUNTIME) /DWIN32 \
63 $(__DEBUGINFO) /Fd$(OBJS)\test_gui.pdb $(____DEBUGRUNTIME) \
64 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
65 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
66 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\include /I$(SETUPHDIR) /W4 \
67 /I. $(__DLLFLAG_p) /I.\..\samples /DNOPCH $(CPPUNIT_CFLAGS) /D_CONSOLE \
68 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) /Yu"testprec.h" \
69 /Fp"$(OBJS)\testprec_test_gui.pch" $(CPPFLAGS) $(CXXFLAGS)
71 $(OBJS)\test_gui_sample.res \
72 $(OBJS)\test_gui_dummy.obj \
73 $(OBJS)\test_gui_test.obj \
74 $(OBJS)\test_gui_rect.obj \
75 $(OBJS)\test_gui_size.obj \
76 $(OBJS)\test_gui_point.obj
78 ### Conditionally set variables: ###
80 !if "$(USE_GUI)" == "0"
83 !if "$(USE_GUI)" == "1"
86 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
89 !if "$(DEBUG_FLAG)" == "1"
92 !if "$(UNICODE)" == "1"
95 !if "$(WXUNIV)" == "1"
98 !if "$(SHARED)" == "1"
101 !if "$(SHARED)" == "0"
104 !if "$(SHARED)" == "1"
107 !if "$(MONOLITHIC)" == "0"
110 !if "$(MONOLITHIC)" == "1"
113 !if "$(RUNTIME_LIBS)" == "dynamic"
116 !if "$(RUNTIME_LIBS)" == "static"
117 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
119 !if "$(MONOLITHIC)" == "0"
121 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
123 !if "$(USE_GUI)" == "1"
124 __test_gui___depname = $(OBJS)\test_gui.exe
126 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
127 ____DEBUGRUNTIME_17_p_1 = /d _DEBUG
129 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
130 ____DEBUGRUNTIME_17_p_1 =
132 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
133 ____DEBUGRUNTIME_17_p_1 =
135 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
136 ____DEBUGRUNTIME_17_p_1 = /d _DEBUG
138 !if "$(RUNTIME_LIBS)" == "dynamic"
139 __RUNTIME_LIBS_23 = D
141 !if "$(RUNTIME_LIBS)" == "static"
142 __RUNTIME_LIBS_23 = $(__THREADSFLAG)
144 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
145 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
147 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
148 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
150 !if "$(WXUNIV)" == "1"
151 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
153 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
154 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
156 !if "$(DEBUG_FLAG)" == "1"
157 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
159 !if "$(USE_EXCEPTIONS)" == "0"
160 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
162 !if "$(USE_RTTI)" == "0"
163 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
165 !if "$(USE_THREADS)" == "0"
166 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
168 !if "$(UNICODE)" == "1"
169 __UNICODE_DEFINE_p_3 = /d _UNICODE
171 !if "$(SHARED)" == "1"
172 __DLLFLAG_p_3 = /d WXUSINGDLL
174 !if "$(MONOLITHIC)" == "0"
176 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
178 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
181 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
184 !if "$(DEBUG_INFO)" == "0"
187 !if "$(DEBUG_INFO)" == "1"
190 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
191 __DEBUGINFO_1 = /DEBUG
193 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
196 !if "$(DEBUG_INFO)" == "0"
199 !if "$(DEBUG_INFO)" == "1"
200 __DEBUGINFO_1 = /DEBUG
202 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
203 ____DEBUGRUNTIME = /D_DEBUG
205 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
208 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
211 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
212 ____DEBUGRUNTIME = /D_DEBUG
214 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
217 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
220 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
223 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
226 !if "$(BUILD)" == "debug"
229 !if "$(BUILD)" == "release"
232 !if "$(USE_THREADS)" == "0"
235 !if "$(USE_THREADS)" == "1"
238 !if "$(USE_RTTI)" == "0"
241 !if "$(USE_RTTI)" == "1"
244 !if "$(USE_EXCEPTIONS)" == "0"
247 !if "$(USE_EXCEPTIONS)" == "1"
248 __EXCEPTIONSFLAG = /EHsc
250 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
251 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
253 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
254 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
256 !if "$(WXUNIV)" == "1"
257 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
259 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
260 __DEBUG_DEFINE_p = /D__WXDEBUG__
262 !if "$(DEBUG_FLAG)" == "1"
263 __DEBUG_DEFINE_p = /D__WXDEBUG__
265 !if "$(USE_EXCEPTIONS)" == "0"
266 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
268 !if "$(USE_RTTI)" == "0"
269 __RTTI_DEFINE_p = /DwxNO_RTTI
271 !if "$(USE_THREADS)" == "0"
272 __THREAD_DEFINE_p = /DwxNO_THREADS
274 !if "$(UNICODE)" == "1"
275 __UNICODE_DEFINE_p = /D_UNICODE
277 !if "$(SHARED)" == "1"
278 __DLLFLAG_p = /DWXUSINGDLL
280 !if "$(MONOLITHIC)" == "0"
282 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
284 !if "$(MONOLITHIC)" == "1"
286 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
288 !if "$(USE_GUI)" == "1"
289 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
291 !if "$(USE_GUI)" == "1"
292 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
294 !if "$(USE_GUI)" == "1"
295 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
298 __UNICOWS_LIB_p = unicows.lib
304 -if not exist $(OBJS) mkdir $(OBJS)
308 all: $(OBJS)\test.exe $(__test_gui___depname) data
311 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
312 -if exist $(OBJS)\*.res del $(OBJS)\*.res
313 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
314 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
315 -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk
316 -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb
317 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
318 -if exist $(OBJS)\test_gui.ilk del $(OBJS)\test_gui.ilk
319 -if exist $(OBJS)\test_gui.pdb del $(OBJS)\test_gui.pdb
321 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
322 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
323 $(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
326 !if "$(USE_GUI)" == "1"
327 $(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
328 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) $(CPPUNIT_LIBS) /SUBSYSTEM:CONSOLE @<<
329 $(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
334 if not exist $(OBJS) mkdir $(OBJS)
335 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
337 $(OBJS)\test_dummy.obj: .\dummy.cpp
338 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) /Yctestprec.h $**
340 $(OBJS)\test_test.obj: .\test.cpp
341 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
343 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
344 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
346 $(OBJS)\test_ziptest.obj: .\archive\ziptest.cpp
347 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
349 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
350 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
352 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
353 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
355 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
356 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
358 $(OBJS)\test_filekind.obj: .\filekind\filekind.cpp
359 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
361 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
362 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
364 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
365 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
367 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
368 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
370 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
371 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
373 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
374 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
376 $(OBJS)\test_lists.obj: .\lists\lists.cpp
377 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
379 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
380 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
382 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
383 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
385 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
386 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
388 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
389 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
391 $(OBJS)\test_strings.obj: .\strings\strings.cpp
392 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
394 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
395 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
397 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
398 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
400 $(OBJS)\test_crt.obj: .\strings\crt.cpp
401 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
403 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
404 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
406 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
407 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
409 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
410 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
412 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
413 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
415 $(OBJS)\test_largefile.obj: .\streams\largefile.cpp
416 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
418 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
419 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
421 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
422 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
424 $(OBJS)\test_tempfile.obj: .\streams\tempfile.cpp
425 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
427 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
428 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
430 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
431 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
433 $(OBJS)\test_uris.obj: .\uris\uris.cpp
434 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
436 $(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
437 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_17_p_1) $(__NO_VC_CRTDBG_p_3) /d __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) /i .\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_3) /i .\..\samples $**
439 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
440 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) /Yctestprec.h $**
442 $(OBJS)\test_gui_test.obj: .\test.cpp
443 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
445 $(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
446 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
448 $(OBJS)\test_gui_size.obj: .\geometry\size.cpp
449 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
451 $(OBJS)\test_gui_point.obj: .\geometry\point.cpp
452 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**