]> git.saurik.com Git - wxWidgets.git/blob - tests/Makefile.in
optionally add the media library if not a MONOLITHIC build
[wxWidgets.git] / tests / Makefile.in
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 # =========================================================================
6
7
8 @MAKE_SET@
9
10 prefix = @prefix@
11 exec_prefix = @exec_prefix@
12 INSTALL = @INSTALL@
13 EXEEXT = @EXEEXT@
14 RESCOMP = @RESCOMP@
15 SETFILE = @SETFILE@
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 top_builddir = @top_builddir@
19 CXX = @CXX@
20 CXXFLAGS = @CXXFLAGS@
21 CPPFLAGS = @CPPFLAGS@
22 LDFLAGS = @LDFLAGS@
23 WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
24 CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@
25 CPPUNIT_LIBS = @CPPUNIT_LIBS@
26 TOOLKIT = @TOOLKIT@
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@
35
36 ### Variables: ###
37
38 DESTDIR =
39 WX_RELEASE = 2.5
40 WX_VERSION = $(WX_RELEASE).3
41 LIBDIRNAME = $(top_builddir)lib
42 TEST_CXXFLAGS = $(__test_PCH_INC) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
43 -I$(srcdir) $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) $(CPPFLAGS) $(CXXFLAGS)
44 TEST_OBJECTS = \
45 test_test.o \
46 test_archivetest.o \
47 test_arrays.o \
48 test_datetimetest.o \
49 test_fileconftest.o \
50 test_filenametest.o \
51 test_filesystest.o \
52 test_fontmaptest.o \
53 test_formatconvertertest.o \
54 test_hashes.o \
55 test_lists.o \
56 test_longlongtest.o \
57 test_mbconvtest.o \
58 test_regextest.o \
59 test_wxregextest.o \
60 test_strings.o \
61 test_stdstrings.o \
62 test_unicode.o \
63 test_crt.o \
64 test_bstream.o \
65 test_datastreamtest.o \
66 test_ffilestream.o \
67 test_filestream.o \
68 test_memstream.o \
69 test_sstream.o \
70 test_textstreamtest.o \
71 test_zlibstream.o \
72 test_uris.o
73 TEST_ODEP = $(___pch_testprec_test_testprec_h_gch___depname)
74 TEST_GUI_CXXFLAGS = $(__test_gui_PCH_INC) -D__WX$(TOOLKIT)__ \
75 $(__WXUNIV_DEFINE_p) -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../samples \
76 $(CPPUNIT_CFLAGS) $(CPPFLAGS) $(CXXFLAGS)
77 TEST_GUI_OBJECTS = \
78 $(__test_gui___win32rc) \
79 $(__test_gui_os2_lib_res) \
80 test_gui_test.o \
81 test_gui_rect.o
82 TEST_GUI_ODEP = $(___pch_testprec_test_gui_testprec_h_gch___depname)
83
84 ### Conditionally set variables: ###
85
86 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
87 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
88 @COND_USE_GUI_0@PORTNAME = base
89 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
90 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
91 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
92 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
93 @COND_UNICODE_1@WXUNICODEFLAG = u
94 @COND_WXUNIV_1@WXUNIVNAME = univ
95 @COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
96 @COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
97 @COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
98 @COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
99 @COND_PLATFORM_MAC_1@__test___mac_setfilecmd = \
100 @COND_PLATFORM_MAC_1@ $(SETFILE) -t APPL test$(EXEEXT)
101 @COND_GCC_PCH_1@__test_PCH_INC = -I.pch/testprec_test
102 @COND_GCC_PCH_1@___pch_testprec_test_testprec_h_gch___depname \
103 @COND_GCC_PCH_1@ = .pch/testprec_test/testprec.h.gch
104 COND_MONOLITHIC_0___WXLIB_NET_p = \
105 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net-$(WX_RELEASE)$(HOST_SUFFIX)
106 @COND_MONOLITHIC_0@__WXLIB_NET_p = $(COND_MONOLITHIC_0___WXLIB_NET_p)
107 @COND_USE_GUI_1@__test_gui___depname = test_gui$(EXEEXT)
108 @COND_PLATFORM_MAC_1@__test_gui___mac_setfilecmd = \
109 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C test_gui$(EXEEXT)
110 @COND_PLATFORM_MAC_1@__test_gui___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
111 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_4 = -d __WXUNIVERSAL__
112 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_5 = --define __WXUNIVERSAL__
113 @COND_SHARED_1@__DLLFLAG_p_4 = -d WXUSINGDLL
114 @COND_SHARED_1@__DLLFLAG_p_5 = --define WXUSINGDLL
115 @COND_PLATFORM_WIN32_1@__test_gui___win32rc = test_gui_sample_rc.o
116 @COND_PLATFORM_OS2_1@__test_gui_os2_lib_res = \
117 @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
118 @COND_PLATFORM_MACOSX_1@__test_gui_bundle___depname = test_gui_bundle
119 @COND_TOOLKIT_COCOA@____test_gui_BUNDLE_TGT_REF_DEP = \
120 @COND_TOOLKIT_COCOA@ test_gui.app/Contents/PkgInfo
121 @COND_TOOLKIT_MAC@____test_gui_BUNDLE_TGT_REF_DEP = \
122 @COND_TOOLKIT_MAC@ test_gui.app/Contents/PkgInfo
123 @COND_GCC_PCH_1@__test_gui_PCH_INC = -I.pch/testprec_test_gui
124 @COND_GCC_PCH_1@___pch_testprec_test_gui_testprec_h_gch___depname \
125 @COND_GCC_PCH_1@ = .pch/testprec_test_gui/testprec.h.gch
126 COND_MONOLITHIC_0___WXLIB_CORE_p = \
127 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
128 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
129 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
130 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_4) -i $(srcdir) $(__DLLFLAG_p_4) -i \
131 $(srcdir)/../samples -i $(top_srcdir)/include -o test_gui$(EXEEXT) Carbon.r \
132 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).3.r sample.r
133 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
134 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
135 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
136 COND_MONOLITHIC_0___WXLIB_BASE_p = \
137 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
138 @COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
139 COND_MONOLITHIC_1___WXLIB_MONO_p = \
140 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
141 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
142 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
143 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
144 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
145 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
146 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
147 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
148 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
149 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
150 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
151 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
152 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
153 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
154 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
155 COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \
156 -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
157 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p)
158 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
159 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
160
161 ### Targets: ###
162
163 all: test$(EXEEXT) $(__test_gui___depname) $(__test_gui_bundle___depname) data
164
165 install: all
166
167 uninstall:
168
169 install-strip: install
170
171 clean:
172 rm -rf ./.deps ./.pch
173 rm -f ./*.o
174 rm -f test$(EXEEXT)
175 rm -f test_gui$(EXEEXT)
176 rm -rf test_gui.app
177
178 distclean: clean
179 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
180
181 test$(EXEEXT): $(TEST_OBJECTS)
182 $(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)
183
184 $(__test___mac_setfilecmd) $(SAMPLES_RPATH_POSTLINK)
185
186 @COND_GCC_PCH_1@.pch/testprec_test/testprec.h.gch:
187 @COND_GCC_PCH_1@ $(top_builddir)./bk-make-pch .pch/testprec_test/testprec.h.gch testprec.h $(CXX) $(TEST_CXXFLAGS)
188
189 @COND_USE_GUI_1@test_gui$(EXEEXT): $(TEST_GUI_OBJECTS) $(__test_gui___win32rc)
190 @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)
191 @COND_USE_GUI_1@ $(__test_gui___mac_rezcmd)
192 @COND_USE_GUI_1@ $(__test_gui___mac_setfilecmd) $(SAMPLES_RPATH_POSTLINK)
193
194 test_gui.app/Contents/PkgInfo: $(__test_gui___depname) $(top_srcdir)/src/mac/carbon/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).3.rsrc $(top_srcdir)/src/mac/carbon/wxmac.icns
195 mkdir -p test_gui.app/Contents
196 mkdir -p test_gui.app/Contents/MacOS
197 mkdir -p test_gui.app/Contents/Resources
198
199
200 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
201 -e "s/EXECUTABLE/test_gui/" \
202 -e "s/VERSION/$(WX_VERSION)/" \
203 $(top_srcdir)/src/mac/carbon/Info.plist.in >test_gui.app/Contents/Info.plist
204
205
206 echo -n "APPL????" >test_gui.app/Contents/PkgInfo
207
208
209 ln -f test_gui$(EXEEXT) test_gui.app/Contents/MacOS/test_gui
210
211
212 cp -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).3.rsrc test_gui.app/Contents/Resources/test_gui.rsrc
213 cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns test_gui.app/Contents/Resources/wxmac.icns
214
215 @COND_PLATFORM_MACOSX_1@test_gui_bundle: $(____test_gui_BUNDLE_TGT_REF_DEP)
216
217 @COND_GCC_PCH_1@.pch/testprec_test_gui/testprec.h.gch:
218 @COND_GCC_PCH_1@ $(top_builddir)./bk-make-pch .pch/testprec_test_gui/testprec.h.gch testprec.h $(CXX) $(TEST_GUI_CXXFLAGS)
219
220 data:
221 @mkdir -p .
222 @for f in testdata.fc; do \
223 if test \( ! -s ./$$f \) -o \( $(srcdir)/$$f -nt ./$$f \) ; then \
224 cp -pRf $(srcdir)/$$f . ; \
225 fi; \
226 done
227
228 test_test.o: $(srcdir)/test.cpp $(TEST_ODEP)
229 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
230
231 test_archivetest.o: $(srcdir)/archive/archivetest.cpp $(TEST_ODEP)
232 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
233
234 test_arrays.o: $(srcdir)/arrays/arrays.cpp $(TEST_ODEP)
235 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
236
237 test_datetimetest.o: $(srcdir)/datetime/datetimetest.cpp $(TEST_ODEP)
238 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
239
240 test_fileconftest.o: $(srcdir)/fileconf/fileconftest.cpp $(TEST_ODEP)
241 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
242
243 test_filenametest.o: $(srcdir)/filename/filenametest.cpp $(TEST_ODEP)
244 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
245
246 test_filesystest.o: $(srcdir)/filesys/filesystest.cpp $(TEST_ODEP)
247 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
248
249 test_fontmaptest.o: $(srcdir)/fontmap/fontmaptest.cpp $(TEST_ODEP)
250 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
251
252 test_formatconvertertest.o: $(srcdir)/formatconverter/formatconvertertest.cpp $(TEST_ODEP)
253 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
254
255 test_hashes.o: $(srcdir)/hashes/hashes.cpp $(TEST_ODEP)
256 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
257
258 test_lists.o: $(srcdir)/lists/lists.cpp $(TEST_ODEP)
259 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
260
261 test_longlongtest.o: $(srcdir)/longlong/longlongtest.cpp $(TEST_ODEP)
262 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
263
264 test_mbconvtest.o: $(srcdir)/mbconv/mbconvtest.cpp $(TEST_ODEP)
265 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
266
267 test_regextest.o: $(srcdir)/regex/regextest.cpp $(TEST_ODEP)
268 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
269
270 test_wxregextest.o: $(srcdir)/regex/wxregextest.cpp $(TEST_ODEP)
271 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
272
273 test_strings.o: $(srcdir)/strings/strings.cpp $(TEST_ODEP)
274 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
275
276 test_stdstrings.o: $(srcdir)/strings/stdstrings.cpp $(TEST_ODEP)
277 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
278
279 test_unicode.o: $(srcdir)/strings/unicode.cpp $(TEST_ODEP)
280 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
281
282 test_crt.o: $(srcdir)/strings/crt.cpp $(TEST_ODEP)
283 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
284
285 test_bstream.o: $(srcdir)/streams/bstream.cpp $(TEST_ODEP)
286 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
287
288 test_datastreamtest.o: $(srcdir)/streams/datastreamtest.cpp $(TEST_ODEP)
289 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
290
291 test_ffilestream.o: $(srcdir)/streams/ffilestream.cpp $(TEST_ODEP)
292 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
293
294 test_filestream.o: $(srcdir)/streams/filestream.cpp $(TEST_ODEP)
295 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
296
297 test_memstream.o: $(srcdir)/streams/memstream.cpp $(TEST_ODEP)
298 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
299
300 test_sstream.o: $(srcdir)/streams/sstream.cpp $(TEST_ODEP)
301 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
302
303 test_textstreamtest.o: $(srcdir)/streams/textstreamtest.cpp $(TEST_ODEP)
304 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
305
306 test_zlibstream.o: $(srcdir)/streams/zlibstream.cpp $(TEST_ODEP)
307 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
308
309 test_uris.o: $(srcdir)/uris/uris.cpp $(TEST_ODEP)
310 $(CXXC) -c -o $@ $(TEST_CXXFLAGS) $<
311
312 test_gui_sample_rc.o: $(srcdir)/../samples/sample.rc $(TEST_GUI_ODEP)
313 $(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
314
315 test_gui_test.o: $(srcdir)/test.cpp $(TEST_GUI_ODEP)
316 $(CXXC) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
317
318 test_gui_rect.o: $(srcdir)/geometry/rect.cpp $(TEST_GUI_ODEP)
319 $(CXXC) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
320
321
322 # Include dependency info, if present:
323 @IF_GNU_MAKE@-include .deps/*.d
324
325 .PHONY: all install uninstall clean distclean test_gui_bundle data