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 # =========================================================================
11 exec_prefix = @exec_prefix@
17 top_srcdir = @top_srcdir@
18 top_builddir = @top_builddir@
23 WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
24 CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@
25 CPPUNIT_LIBS = @CPPUNIT_LIBS@
27 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
28 TOOLKIT_VERSION = @TOOLKIT_VERSION@
29 TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
30 EXTRALIBS = @EXTRALIBS@
31 EXTRALIBS_GUI = @EXTRALIBS_GUI@
32 HOST_SUFFIX = @HOST_SUFFIX@
33 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
34 SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
40 WX_VERSION = $(WX_RELEASE).4
41 LIBDIRNAME = $(top_builddir)lib
42 TEST_CXXFLAGS = $(__test_PCH_INC) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
43 -I$(srcdir) $(__DLLFLAG_p) -DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) $(CPPFLAGS) \
56 test_formatconvertertest.o \
68 test_datastreamtest.o \
74 test_textstreamtest.o \
77 TEST_ODEP = $(___pch_testprec_test_testprec_h_gch___depname)
78 TEST_GUI_CXXFLAGS = $(__test_gui_PCH_INC) -D__WX$(TOOLKIT)__ \
79 $(__WXUNIV_DEFINE_p) -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../samples \
80 $(CPPUNIT_CFLAGS) $(CPPFLAGS) $(CXXFLAGS)
82 $(__test_gui___win32rc) \
83 $(__test_gui_os2_lib_res) \
88 TEST_GUI_ODEP = $(___pch_testprec_test_gui_testprec_h_gch___depname)
90 ### Conditionally set variables: ###
92 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
93 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
94 @COND_USE_GUI_0@PORTNAME = base
95 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
96 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
97 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
98 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
99 @COND_UNICODE_1@WXUNICODEFLAG = u
100 @COND_WXUNIV_1@WXUNIVNAME = univ
101 @COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
102 @COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
103 @COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
104 @COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
105 @COND_PLATFORM_MAC_1@__test___mac_setfilecmd = \
106 @COND_PLATFORM_MAC_1@ $(SETFILE) -t APPL test$(EXEEXT)
107 @COND_GCC_PCH_1@__test_PCH_INC = -I.pch/testprec_test
108 @COND_GCC_PCH_1@___pch_testprec_test_testprec_h_gch___depname \
109 @COND_GCC_PCH_1@ = .pch/testprec_test/testprec.h.gch
110 COND_MONOLITHIC_0___WXLIB_NET_p = \
111 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net-$(WX_RELEASE)$(HOST_SUFFIX)
112 @COND_MONOLITHIC_0@__WXLIB_NET_p = $(COND_MONOLITHIC_0___WXLIB_NET_p)
113 @COND_USE_GUI_1@__test_gui___depname = test_gui$(EXEEXT)
114 @COND_PLATFORM_MAC_1@__test_gui___mac_setfilecmd = \
115 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C test_gui$(EXEEXT)
116 @COND_PLATFORM_MAC_1@__test_gui___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
117 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_4 = -d __WXUNIVERSAL__
118 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_5 = --define __WXUNIVERSAL__
119 @COND_SHARED_1@__DLLFLAG_p_4 = -d WXUSINGDLL
120 @COND_SHARED_1@__DLLFLAG_p_5 = --define WXUSINGDLL
121 @COND_PLATFORM_WIN32_1@__test_gui___win32rc = test_gui_sample_rc.o
122 @COND_PLATFORM_OS2_1@__test_gui_os2_lib_res = \
123 @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
124 @COND_PLATFORM_MACOSX_1@__test_gui_bundle___depname = test_gui_bundle
125 @COND_TOOLKIT_COCOA@____test_gui_BUNDLE_TGT_REF_DEP = \
126 @COND_TOOLKIT_COCOA@ test_gui.app/Contents/PkgInfo
127 @COND_TOOLKIT_MAC@____test_gui_BUNDLE_TGT_REF_DEP = \
128 @COND_TOOLKIT_MAC@ test_gui.app/Contents/PkgInfo
129 @COND_GCC_PCH_1@__test_gui_PCH_INC = -I.pch/testprec_test_gui
130 @COND_GCC_PCH_1@___pch_testprec_test_gui_testprec_h_gch___depname \
131 @COND_GCC_PCH_1@ = .pch/testprec_test_gui/testprec.h.gch
132 COND_MONOLITHIC_0___WXLIB_CORE_p = \
133 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
134 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
135 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
136 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_4) -i $(srcdir) $(__DLLFLAG_p_4) -i \
137 $(srcdir)/../samples -i $(top_srcdir)/include -o test_gui$(EXEEXT) Carbon.r \
138 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).4.r sample.r
139 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
140 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
141 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
142 COND_MONOLITHIC_0___WXLIB_BASE_p = \
143 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
144 @COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
145 COND_MONOLITHIC_1___WXLIB_MONO_p = \
146 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
147 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
148 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
149 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
150 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
151 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
152 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
153 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
154 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
155 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
156 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
157 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
158 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
159 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
160 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
161 COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \
162 -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
163 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p)
164 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
165 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
169 all: test$(EXEEXT) $(__test_gui___depname) $(__test_gui_bundle___depname) data
175 install-strip: install
178 rm -rf ./.deps ./.pch
181 rm -f test_gui$(EXEEXT)
185 rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
187 test$(EXEEXT): $(TEST_OBJECTS)
188 $(CXX) -o $@ $(TEST_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(SAMPLES_RPATH_FLAG) $(CPPUNIT_LIBS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE)
190 $(__test___mac_setfilecmd)
191 $(SAMPLES_RPATH_POSTLINK)
193 @COND_GCC_PCH_1@.pch/testprec_test/testprec.h.gch:
194 @COND_GCC_PCH_1@ $(top_builddir)./bk-make-pch .pch/testprec_test/testprec.h.gch testprec.h $(CXX) $(TEST_CXXFLAGS)
196 @COND_USE_GUI_1@test_gui$(EXEEXT): $(TEST_GUI_OBJECTS) $(__test_gui___win32rc)
197 @COND_USE_GUI_1@ $(CXX) -o $@ $(TEST_GUI_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(SAMPLES_RPATH_FLAG) $(CPPUNIT_LIBS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE) $(EXTRALIBS_FOR_GUI)
198 @COND_USE_GUI_1@ $(__test_gui___mac_rezcmd)
199 @COND_USE_GUI_1@ $(__test_gui___mac_setfilecmd)
200 @COND_USE_GUI_1@ $(SAMPLES_RPATH_POSTLINK)
202 test_gui.app/Contents/PkgInfo: $(__test_gui___depname) $(top_srcdir)/src/mac/carbon/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).4.rsrc $(top_srcdir)/src/mac/carbon/wxmac.icns
203 mkdir -p test_gui.app/Contents
204 mkdir -p test_gui.app/Contents/MacOS
205 mkdir -p test_gui.app/Contents/Resources
208 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
209 -e "s/EXECUTABLE/test_gui/" \
210 -e "s/VERSION/$(WX_VERSION)/" \
211 $(top_srcdir)/src/mac/carbon/Info.plist.in >test_gui.app/Contents/Info.plist
214 echo -n "APPL????" >test_gui.app/Contents/PkgInfo
217 ln -f test_gui$(EXEEXT) test_gui.app/Contents/MacOS/test_gui
220 cp -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).4.rsrc test_gui.app/Contents/Resources/test_gui.rsrc
221 cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns test_gui.app/Contents/Resources/wxmac.icns
223 @COND_PLATFORM_MACOSX_1@test_gui_bundle: $(____test_gui_BUNDLE_TGT_REF_DEP)
225 @COND_GCC_PCH_1@.pch/testprec_test_gui/testprec.h.gch:
226 @COND_GCC_PCH_1@ $(top_builddir)./bk-make-pch .pch/testprec_test_gui/testprec.h.gch testprec.h $(CXX) $(TEST_GUI_CXXFLAGS)
230 @for f in testdata.fc; do \
231 if test ! -e ./$$f ; \
233 else x=`find $(srcdir)/$$f -newer ./$$f -print` ; \
236 cp -pRf $(srcdir)/$$f . ;; \
240 test_test.o: $(srcdir)/test.cpp $(TEST_ODEP)
241 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/test.cpp
243 test_archivetest.o: $(srcdir)/archive/archivetest.cpp $(TEST_ODEP)
244 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/archive/archivetest.cpp
246 test_ziptest.o: $(srcdir)/archive/ziptest.cpp $(TEST_ODEP)
247 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/archive/ziptest.cpp
249 test_arrays.o: $(srcdir)/arrays/arrays.cpp $(TEST_ODEP)
250 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/arrays/arrays.cpp
252 test_datetimetest.o: $(srcdir)/datetime/datetimetest.cpp $(TEST_ODEP)
253 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/datetime/datetimetest.cpp
255 test_fileconftest.o: $(srcdir)/fileconf/fileconftest.cpp $(TEST_ODEP)
256 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/fileconf/fileconftest.cpp
258 test_filekind.o: $(srcdir)/filekind/filekind.cpp $(TEST_ODEP)
259 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/filekind/filekind.cpp
261 test_filenametest.o: $(srcdir)/filename/filenametest.cpp $(TEST_ODEP)
262 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/filename/filenametest.cpp
264 test_filesystest.o: $(srcdir)/filesys/filesystest.cpp $(TEST_ODEP)
265 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/filesys/filesystest.cpp
267 test_fontmaptest.o: $(srcdir)/fontmap/fontmaptest.cpp $(TEST_ODEP)
268 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/fontmap/fontmaptest.cpp
270 test_formatconvertertest.o: $(srcdir)/formatconverter/formatconvertertest.cpp $(TEST_ODEP)
271 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/formatconverter/formatconvertertest.cpp
273 test_hashes.o: $(srcdir)/hashes/hashes.cpp $(TEST_ODEP)
274 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/hashes/hashes.cpp
276 test_lists.o: $(srcdir)/lists/lists.cpp $(TEST_ODEP)
277 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/lists/lists.cpp
279 test_longlongtest.o: $(srcdir)/longlong/longlongtest.cpp $(TEST_ODEP)
280 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/longlong/longlongtest.cpp
282 test_mbconvtest.o: $(srcdir)/mbconv/mbconvtest.cpp $(TEST_ODEP)
283 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/mbconv/mbconvtest.cpp
285 test_regextest.o: $(srcdir)/regex/regextest.cpp $(TEST_ODEP)
286 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/regex/regextest.cpp
288 test_wxregextest.o: $(srcdir)/regex/wxregextest.cpp $(TEST_ODEP)
289 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/regex/wxregextest.cpp
291 test_strings.o: $(srcdir)/strings/strings.cpp $(TEST_ODEP)
292 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/strings/strings.cpp
294 test_stdstrings.o: $(srcdir)/strings/stdstrings.cpp $(TEST_ODEP)
295 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/strings/stdstrings.cpp
297 test_unicode.o: $(srcdir)/strings/unicode.cpp $(TEST_ODEP)
298 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/strings/unicode.cpp
300 test_crt.o: $(srcdir)/strings/crt.cpp $(TEST_ODEP)
301 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/strings/crt.cpp
303 test_bstream.o: $(srcdir)/streams/bstream.cpp $(TEST_ODEP)
304 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/streams/bstream.cpp
306 test_datastreamtest.o: $(srcdir)/streams/datastreamtest.cpp $(TEST_ODEP)
307 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/streams/datastreamtest.cpp
309 test_ffilestream.o: $(srcdir)/streams/ffilestream.cpp $(TEST_ODEP)
310 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/streams/ffilestream.cpp
312 test_filestream.o: $(srcdir)/streams/filestream.cpp $(TEST_ODEP)
313 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/streams/filestream.cpp
315 test_largefile.o: $(srcdir)/streams/largefile.cpp $(TEST_ODEP)
316 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/streams/largefile.cpp
318 test_memstream.o: $(srcdir)/streams/memstream.cpp $(TEST_ODEP)
319 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/streams/memstream.cpp
321 test_sstream.o: $(srcdir)/streams/sstream.cpp $(TEST_ODEP)
322 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/streams/sstream.cpp
324 test_textstreamtest.o: $(srcdir)/streams/textstreamtest.cpp $(TEST_ODEP)
325 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/streams/textstreamtest.cpp
327 test_zlibstream.o: $(srcdir)/streams/zlibstream.cpp $(TEST_ODEP)
328 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/streams/zlibstream.cpp
330 test_uris.o: $(srcdir)/uris/uris.cpp $(TEST_ODEP)
331 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $(srcdir)/uris/uris.cpp
333 test_gui_sample_rc.o: $(srcdir)/../samples/sample.rc $(TEST_GUI_ODEP)
334 $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_5) --include-dir $(srcdir) $(__DLLFLAG_p_5) --include-dir $(srcdir)/../samples --include-dir $(top_srcdir)/include
336 test_gui_test.o: $(srcdir)/test.cpp $(TEST_GUI_ODEP)
337 $(CXXC) -c -o $@ $(TEST_GUI_CXXFLAGS) $(srcdir)/test.cpp
339 test_gui_rect.o: $(srcdir)/geometry/rect.cpp $(TEST_GUI_ODEP)
340 $(CXXC) -c -o $@ $(TEST_GUI_CXXFLAGS) $(srcdir)/geometry/rect.cpp
342 test_gui_size.o: $(srcdir)/geometry/size.cpp $(TEST_GUI_ODEP)
343 $(CXXC) -c -o $@ $(TEST_GUI_CXXFLAGS) $(srcdir)/geometry/size.cpp
345 test_gui_point.o: $(srcdir)/geometry/point.cpp $(TEST_GUI_ODEP)
346 $(CXXC) -c -o $@ $(TEST_GUI_CXXFLAGS) $(srcdir)/geometry/point.cpp
349 # Include dependency info, if present:
350 @IF_GNU_MAKE@-include .deps/*.d
352 .PHONY: all install uninstall clean distclean test_gui_bundle data