1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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)$(__DEBUGRUNTIME_3) /DWIN32 $(__DEBUGINFO) \
22 /Fd$(OBJS)\test.pdb $(____DEBUGRUNTIME_2_p) $(__OPTIMIZEFLAG) \
23 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__UNICODE_DEFINE_p) /I.\..\include /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) \
25 /D_CONSOLE /DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) $(__EXCEPTIONSFLAG) \
26 $(__EXCEPTIONSFLAG_0) /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_filenametest.obj \
37 $(OBJS)\test_filesystest.obj \
38 $(OBJS)\test_filetype.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_textstreamtest.obj \
59 $(OBJS)\test_zlibstream.obj \
61 TEST_GUI_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_17) /DWIN32 \
62 $(__DEBUGINFO) /Fd$(OBJS)\test_gui.pdb $(____DEBUGRUNTIME_16_p) \
63 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
64 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\include /I$(SETUPHDIR) /W4 \
65 /I. $(__DLLFLAG_p) /I.\..\samples /DNOPCH $(CPPUNIT_CFLAGS) /D_CONSOLE \
66 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) /Yu"testprec.h" \
67 /Fp"$(OBJS)\testprec_test_gui.pch" $(CPPFLAGS) $(CXXFLAGS)
69 $(OBJS)\test_gui_sample.res \
70 $(OBJS)\test_gui_dummy.obj \
71 $(OBJS)\test_gui_test.obj \
72 $(OBJS)\test_gui_rect.obj \
73 $(OBJS)\test_gui_size.obj \
74 $(OBJS)\test_gui_point.obj
76 ### Conditionally set variables: ###
78 !if "$(USE_GUI)" == "0"
81 !if "$(USE_GUI)" == "1"
84 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
87 !if "$(DEBUG_FLAG)" == "1"
90 !if "$(UNICODE)" == "1"
93 !if "$(WXUNIV)" == "1"
96 !if "$(SHARED)" == "1"
99 !if "$(SHARED)" == "0"
102 !if "$(SHARED)" == "1"
105 !if "$(MONOLITHIC)" == "0"
108 !if "$(MONOLITHIC)" == "1"
111 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
112 ____DEBUGRUNTIME_2_p =
114 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
115 ____DEBUGRUNTIME_2_p = /D_DEBUG
117 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
118 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
120 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
123 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
126 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
127 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
129 !if "$(MONOLITHIC)" == "0"
131 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
133 !if "$(USE_GUI)" == "1"
134 __test_gui___depname = $(OBJS)\test_gui.exe
136 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
137 ____DEBUGRUNTIME_16_p =
139 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
140 ____DEBUGRUNTIME_16_p = /D_DEBUG
142 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
143 ____DEBUGRUNTIME_16_p = $(____DEBUGINFO)
145 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
146 ____DEBUGRUNTIME_16_p_1 =
148 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
149 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
151 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
152 ____DEBUGRUNTIME_16_p_1 = $(____DEBUGINFO_16_p_1)
154 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
155 ____DEBUGINFO_16_p_1 = /d _DEBUG
157 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
158 ____DEBUGINFO_16_p_1 =
160 !if "$(DEBUG_INFO)" == "0"
161 ____DEBUGINFO_16_p_1 =
163 !if "$(DEBUG_INFO)" == "1"
164 ____DEBUGINFO_16_p_1 = /d _DEBUG
166 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
169 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
170 __DEBUGRUNTIME_17 = d
172 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
173 __DEBUGRUNTIME_17 = $(__DEBUGINFO_2)
175 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
176 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
178 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
179 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
181 !if "$(WXUNIV)" == "1"
182 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
184 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
185 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
187 !if "$(DEBUG_FLAG)" == "1"
188 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
190 !if "$(UNICODE)" == "1"
191 __UNICODE_DEFINE_p_3 = /d _UNICODE
193 !if "$(SHARED)" == "1"
194 __DLLFLAG_p_3 = /d WXUSINGDLL
196 !if "$(MONOLITHIC)" == "0"
198 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
200 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
203 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
206 !if "$(DEBUG_INFO)" == "0"
209 !if "$(DEBUG_INFO)" == "1"
212 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
213 __DEBUGINFO_1 = /DEBUG
215 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
218 !if "$(DEBUG_INFO)" == "0"
221 !if "$(DEBUG_INFO)" == "1"
222 __DEBUGINFO_1 = /DEBUG
224 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
225 ____DEBUGINFO = /D_DEBUG
227 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
230 !if "$(DEBUG_INFO)" == "0"
233 !if "$(DEBUG_INFO)" == "1"
234 ____DEBUGINFO = /D_DEBUG
236 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
239 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
242 !if "$(DEBUG_INFO)" == "0"
245 !if "$(DEBUG_INFO)" == "1"
248 !if "$(BUILD)" == "debug"
251 !if "$(BUILD)" == "release"
254 !if "$(RUNTIME_LIBS)" == "dynamic"
257 !if "$(RUNTIME_LIBS)" == "static"
260 !if "$(USE_EXCEPTIONS)" == "0"
263 !if "$(USE_EXCEPTIONS)" == "1"
264 __EXCEPTIONSFLAG = /GR
266 !if "$(USE_EXCEPTIONS)" == "0"
269 !if "$(USE_EXCEPTIONS)" == "1"
270 __EXCEPTIONSFLAG_0 = /GX
272 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
273 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
275 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
276 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
278 !if "$(WXUNIV)" == "1"
279 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
281 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
282 __DEBUG_DEFINE_p = /D__WXDEBUG__
284 !if "$(DEBUG_FLAG)" == "1"
285 __DEBUG_DEFINE_p = /D__WXDEBUG__
287 !if "$(UNICODE)" == "1"
288 __UNICODE_DEFINE_p = /D_UNICODE
290 !if "$(SHARED)" == "1"
291 __DLLFLAG_p = /DWXUSINGDLL
293 !if "$(MONOLITHIC)" == "0"
295 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
297 !if "$(MONOLITHIC)" == "1"
299 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
301 !if "$(USE_GUI)" == "1"
302 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
304 !if "$(USE_GUI)" == "1"
305 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
307 !if "$(USE_GUI)" == "1"
308 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
311 __UNICOWS_LIB_p = unicows.lib
317 -if not exist $(OBJS) mkdir $(OBJS)
321 all: $(OBJS)\test.exe $(__test_gui___depname) data
324 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
325 -if exist $(OBJS)\*.res del $(OBJS)\*.res
326 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
327 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
328 -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk
329 -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb
330 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
331 -if exist $(OBJS)\test_gui.ilk del $(OBJS)\test_gui.ilk
332 -if exist $(OBJS)\test_gui.pdb del $(OBJS)\test_gui.pdb
334 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
335 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
336 $(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
339 !if "$(USE_GUI)" == "1"
340 $(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
341 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) $(CPPUNIT_LIBS) /SUBSYSTEM:CONSOLE @<<
342 $(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
347 if not exist $(OBJS) mkdir $(OBJS)
348 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
350 $(OBJS)\test_dummy.obj: .\dummy.cpp
351 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) /Yctestprec.h $**
353 $(OBJS)\test_test.obj: .\test.cpp
354 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
356 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
357 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
359 $(OBJS)\test_ziptest.obj: .\archive\ziptest.cpp
360 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
362 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
363 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
365 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
366 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
368 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
369 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
371 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
372 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
374 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
375 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
377 $(OBJS)\test_filetype.obj: .\filetype\filetype.cpp
378 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
380 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
381 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
383 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
384 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
386 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
387 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
389 $(OBJS)\test_lists.obj: .\lists\lists.cpp
390 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
392 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
393 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
395 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
396 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
398 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
399 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
401 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
402 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
404 $(OBJS)\test_strings.obj: .\strings\strings.cpp
405 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
407 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
408 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
410 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
411 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
413 $(OBJS)\test_crt.obj: .\strings\crt.cpp
414 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
416 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
417 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
419 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
420 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
422 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
423 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
425 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
426 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
428 $(OBJS)\test_largefile.obj: .\streams\largefile.cpp
429 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
431 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
432 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
434 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
435 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
437 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
438 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
440 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
441 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
443 $(OBJS)\test_uris.obj: .\uris\uris.cpp
444 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
446 $(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
447 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 $**
449 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
450 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) /Yctestprec.h $**
452 $(OBJS)\test_gui_test.obj: .\test.cpp
453 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
455 $(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
456 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
458 $(OBJS)\test_gui_size.obj: .\geometry\size.cpp
459 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
461 $(OBJS)\test_gui_point.obj: .\geometry\point.cpp
462 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**