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) /I.\..\samples /DNOPCH $(CPPUNIT_CFLAGS) /D_CONSOLE \
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 \
67 $(OBJS)\test_gui_rect.obj
69 ### Conditionally set variables: ###
71 !if "$(USE_GUI)" == "0"
74 !if "$(USE_GUI)" == "1"
77 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
80 !if "$(DEBUG_FLAG)" == "1"
83 !if "$(UNICODE)" == "1"
86 !if "$(WXUNIV)" == "1"
89 !if "$(SHARED)" == "1"
92 !if "$(MONOLITHIC)" == "0"
95 !if "$(MONOLITHIC)" == "1"
98 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
99 ____DEBUGRUNTIME_2_p =
101 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
102 ____DEBUGRUNTIME_2_p = /D_DEBUG
104 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
105 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
107 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
110 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
113 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
114 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
116 !if "$(MONOLITHIC)" == "0"
118 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
120 !if "$(USE_GUI)" == "1"
121 __test_gui___depname = $(OBJS)\test_gui.exe
123 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
124 ____DEBUGRUNTIME_16_p =
126 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
127 ____DEBUGRUNTIME_16_p = /D_DEBUG
129 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
130 ____DEBUGRUNTIME_16_p = $(____DEBUGINFO)
132 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
133 ____DEBUGRUNTIME_16_p_1 =
135 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
136 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
138 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
139 ____DEBUGRUNTIME_16_p_1 = $(____DEBUGINFO_16_p_1)
141 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
142 ____DEBUGINFO_16_p_1 = /d _DEBUG
144 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
145 ____DEBUGINFO_16_p_1 =
147 !if "$(DEBUG_INFO)" == "0"
148 ____DEBUGINFO_16_p_1 =
150 !if "$(DEBUG_INFO)" == "1"
151 ____DEBUGINFO_16_p_1 = /d _DEBUG
153 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
156 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
157 __DEBUGRUNTIME_17 = d
159 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
160 __DEBUGRUNTIME_17 = $(__DEBUGINFO_2)
162 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
163 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
165 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
166 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
168 !if "$(WXUNIV)" == "1"
169 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
171 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
172 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
174 !if "$(DEBUG_FLAG)" == "1"
175 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
177 !if "$(UNICODE)" == "1"
178 __UNICODE_DEFINE_p_3 = /d _UNICODE
180 !if "$(SHARED)" == "1"
181 __DLLFLAG_p_3 = /d WXUSINGDLL
183 !if "$(MONOLITHIC)" == "0"
185 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
187 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
190 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
193 !if "$(DEBUG_INFO)" == "0"
196 !if "$(DEBUG_INFO)" == "1"
199 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
200 __DEBUGINFO_1 = /DEBUG
202 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
205 !if "$(DEBUG_INFO)" == "0"
208 !if "$(DEBUG_INFO)" == "1"
209 __DEBUGINFO_1 = /DEBUG
211 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
212 ____DEBUGINFO = /D_DEBUG
214 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
217 !if "$(DEBUG_INFO)" == "0"
220 !if "$(DEBUG_INFO)" == "1"
221 ____DEBUGINFO = /D_DEBUG
223 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
226 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
229 !if "$(DEBUG_INFO)" == "0"
232 !if "$(DEBUG_INFO)" == "1"
235 !if "$(BUILD)" == "debug"
238 !if "$(BUILD)" == "release"
241 !if "$(RUNTIME_LIBS)" == "dynamic"
244 !if "$(RUNTIME_LIBS)" == "static"
247 !if "$(USE_EXCEPTIONS)" == "0"
250 !if "$(USE_EXCEPTIONS)" == "1"
251 __EXCEPTIONSFLAG = /GR
253 !if "$(USE_EXCEPTIONS)" == "0"
256 !if "$(USE_EXCEPTIONS)" == "1"
257 __EXCEPTIONSFLAG_0 = /GX
259 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
260 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
262 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
263 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
265 !if "$(WXUNIV)" == "1"
266 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
268 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
269 __DEBUG_DEFINE_p = /D__WXDEBUG__
271 !if "$(DEBUG_FLAG)" == "1"
272 __DEBUG_DEFINE_p = /D__WXDEBUG__
274 !if "$(UNICODE)" == "1"
275 __UNICODE_DEFINE_p = /D_UNICODE
277 !if "$(SHARED)" == "0"
278 LIBDIRNAME = .\..\lib\vc_lib$(CFG)
280 !if "$(SHARED)" == "1"
281 LIBDIRNAME = .\..\lib\vc_dll$(CFG)
283 !if "$(SHARED)" == "1"
284 __DLLFLAG_p = /DWXUSINGDLL
286 !if "$(MONOLITHIC)" == "0"
288 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
290 !if "$(MONOLITHIC)" == "1"
292 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
294 !if "$(USE_GUI)" == "1"
295 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
297 !if "$(USE_GUI)" == "1"
298 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
300 !if "$(USE_GUI)" == "1"
301 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
304 __UNICOWS_LIB_p = unicows.lib
310 -if not exist $(OBJS) mkdir $(OBJS)
314 all: $(OBJS)\test.exe $(__test_gui___depname) data
317 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
318 -if exist $(OBJS)\*.res del $(OBJS)\*.res
319 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
320 -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk
321 -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb
322 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
323 -if exist $(OBJS)\test_gui.ilk del $(OBJS)\test_gui.ilk
324 -if exist $(OBJS)\test_gui.pdb del $(OBJS)\test_gui.pdb
326 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
327 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
328 $(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
331 !if "$(USE_GUI)" == "1"
332 $(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
333 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) $(CPPUNIT_LIBS) /SUBSYSTEM:CONSOLE @<<
334 $(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
339 if not exist $(OBJS) mkdir $(OBJS)
340 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
342 $(OBJS)\test_dummy.obj: .\dummy.cpp
343 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) /Yctestprec.h $**
345 $(OBJS)\test_test.obj: .\test.cpp
346 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
348 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
349 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
351 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
352 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
354 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
355 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
357 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
358 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
360 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
361 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
363 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
364 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
366 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
367 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
369 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
370 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
372 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
373 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
375 $(OBJS)\test_lists.obj: .\lists\lists.cpp
376 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
378 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
379 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
381 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
382 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
384 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
385 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
387 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
388 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
390 $(OBJS)\test_strings.obj: .\strings\strings.cpp
391 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
393 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
394 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
396 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
397 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
399 $(OBJS)\test_crt.obj: .\strings\crt.cpp
400 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
402 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
403 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
405 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
406 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
408 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
409 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
411 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
412 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
414 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
415 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
417 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
418 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
420 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
421 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
423 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
424 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
426 $(OBJS)\test_uris.obj: .\uris\uris.cpp
427 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
429 $(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
430 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 $**
432 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
433 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) /Yctestprec.h $**
435 $(OBJS)\test_gui_test.obj: .\test.cpp
436 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
438 $(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
439 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**