OSDN Git Service

2004-08-23 Paolo Carlini <pcarlini@suse.de>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / Makefile.in
1 # Makefile.in generated by automake 1.9.1 from Makefile.am.
2 # @configure_input@
3
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004  Free Software Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17
18 SOURCES = $(libv3test_a_SOURCES) $(abi_check_SOURCES)
19
20 srcdir = @srcdir@
21 top_srcdir = @top_srcdir@
22 VPATH = @srcdir@
23 pkgdatadir = $(datadir)/@PACKAGE@
24 pkglibdir = $(libdir)/@PACKAGE@
25 pkgincludedir = $(includedir)/@PACKAGE@
26 top_builddir = ..
27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
28 INSTALL = @INSTALL@
29 install_sh_DATA = $(install_sh) -c -m 644
30 install_sh_PROGRAM = $(install_sh) -c
31 install_sh_SCRIPT = $(install_sh) -c
32 INSTALL_HEADER = $(INSTALL_DATA)
33 transform = $(program_transform_name)
34 NORMAL_INSTALL = :
35 PRE_INSTALL = :
36 POST_INSTALL = :
37 NORMAL_UNINSTALL = :
38 PRE_UNINSTALL = :
39 POST_UNINSTALL = :
40 build_triplet = @build@
41 host_triplet = @host@
42 target_triplet = @target@
43 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
44         $(top_srcdir)/fragment.am
45 @GLIBCXX_TEST_ABI_TRUE@noinst_PROGRAMS = abi_check$(EXEEXT)
46 subdir = testsuite
47 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
48 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
49         $(top_srcdir)/linkage.m4 \
50         $(top_srcdir)/../config/no-executables.m4 \
51         $(top_srcdir)/../libtool.m4 $(top_srcdir)/crossconfig.m4 \
52         $(top_srcdir)/configure.ac
53 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54         $(ACLOCAL_M4)
55 CONFIG_HEADER = $(top_builddir)/config.h
56 CONFIG_CLEAN_FILES =
57 LIBRARIES = $(noinst_LIBRARIES)
58 ARFLAGS = cru
59 libv3test_a_AR = $(AR) $(ARFLAGS)
60 libv3test_a_LIBADD =
61 am_libv3test_a_OBJECTS = testsuite_abi.$(OBJEXT) \
62         testsuite_allocator.$(OBJEXT) testsuite_hooks.$(OBJEXT)
63 libv3test_a_OBJECTS = $(am_libv3test_a_OBJECTS)
64 PROGRAMS = $(noinst_PROGRAMS)
65 am_abi_check_OBJECTS = abi_check.$(OBJEXT)
66 abi_check_OBJECTS = $(am_abi_check_OBJECTS)
67 abi_check_LDADD = $(LDADD)
68 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
69 depcomp =
70 am__depfiles_maybe =
71 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
72         $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
73 LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
74         $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
75         $(AM_CXXFLAGS) $(CXXFLAGS)
76 CXXLD = $(CXX)
77 SOURCES = $(libv3test_a_SOURCES) $(abi_check_SOURCES)
78 DIST_SOURCES = $(libv3test_a_SOURCES) $(abi_check_SOURCES)
79 ETAGS = etags
80 CTAGS = ctags
81 DEJATOOL = $(PACKAGE)
82 RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
83 EXPECT = expect
84 RUNTEST = runtest
85 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
86 ABI_TWEAKS_SRCDIR = @ABI_TWEAKS_SRCDIR@
87 ACLOCAL = @ACLOCAL@
88 ALLOCATOR_H = @ALLOCATOR_H@
89 ALLOCATOR_NAME = @ALLOCATOR_NAME@
90 AMTAR = @AMTAR@
91 AR = @AR@
92 AS = @AS@
93 ATOMICITY_SRCDIR = @ATOMICITY_SRCDIR@
94 ATOMIC_WORD_SRCDIR = @ATOMIC_WORD_SRCDIR@
95 AUTOCONF = @AUTOCONF@
96 AUTOHEADER = @AUTOHEADER@
97 AUTOMAKE = @AUTOMAKE@
98 AWK = @AWK@
99 BASIC_FILE_CC = @BASIC_FILE_CC@
100 BASIC_FILE_H = @BASIC_FILE_H@
101 CC = @CC@
102 CCODECVT_CC = @CCODECVT_CC@
103 CCODECVT_H = @CCODECVT_H@
104 CCOLLATE_CC = @CCOLLATE_CC@
105 CCTYPE_CC = @CCTYPE_CC@
106 CFLAGS = @CFLAGS@
107 CLOCALE_CC = @CLOCALE_CC@
108 CLOCALE_H = @CLOCALE_H@
109 CLOCALE_INTERNAL_H = @CLOCALE_INTERNAL_H@
110 CMESSAGES_CC = @CMESSAGES_CC@
111 CMESSAGES_H = @CMESSAGES_H@
112 CMONEY_CC = @CMONEY_CC@
113 CNUMERIC_CC = @CNUMERIC_CC@
114 CPP = @CPP@
115 CPPFLAGS = @CPPFLAGS@
116 CSTDIO_H = @CSTDIO_H@
117 CTIME_CC = @CTIME_CC@
118 CTIME_H = @CTIME_H@
119 CXX = $(shell ${testsuite_flags_script} --build-cxx)
120 CXXCPP = @CXXCPP@
121 CXXFLAGS = @CXXFLAGS@
122 CYGPATH_W = @CYGPATH_W@
123 C_INCLUDE_DIR = @C_INCLUDE_DIR@
124 DEBUG_FLAGS = @DEBUG_FLAGS@
125 DEFS = @DEFS@
126 ECHO_C = @ECHO_C@
127 ECHO_N = @ECHO_N@
128 ECHO_T = @ECHO_T@
129 EGREP = @EGREP@
130 EXEEXT = @EXEEXT@
131 EXTRA_CXX_FLAGS = @EXTRA_CXX_FLAGS@
132 GLIBCXX_BUILD_DEBUG_FALSE = @GLIBCXX_BUILD_DEBUG_FALSE@
133 GLIBCXX_BUILD_DEBUG_TRUE = @GLIBCXX_BUILD_DEBUG_TRUE@
134 GLIBCXX_BUILD_PCH_FALSE = @GLIBCXX_BUILD_PCH_FALSE@
135 GLIBCXX_BUILD_PCH_TRUE = @GLIBCXX_BUILD_PCH_TRUE@
136 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE = @GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@
137 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE = @GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@
138 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE = @GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@
139 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE = @GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@
140 GLIBCXX_C_HEADERS_C_FALSE = @GLIBCXX_C_HEADERS_C_FALSE@
141 GLIBCXX_C_HEADERS_C_STD_FALSE = @GLIBCXX_C_HEADERS_C_STD_FALSE@
142 GLIBCXX_C_HEADERS_C_STD_TRUE = @GLIBCXX_C_HEADERS_C_STD_TRUE@
143 GLIBCXX_C_HEADERS_C_TRUE = @GLIBCXX_C_HEADERS_C_TRUE@
144 GLIBCXX_HOSTED_FALSE = @GLIBCXX_HOSTED_FALSE@
145 GLIBCXX_HOSTED_TRUE = @GLIBCXX_HOSTED_TRUE@
146 GLIBCXX_INCLUDES = @GLIBCXX_INCLUDES@
147 GLIBCXX_TEST_ABI_FALSE = @GLIBCXX_TEST_ABI_FALSE@
148 GLIBCXX_TEST_ABI_TRUE = @GLIBCXX_TEST_ABI_TRUE@
149 GLIBCXX_TEST_WCHAR_T_FALSE = @GLIBCXX_TEST_WCHAR_T_FALSE@
150 GLIBCXX_TEST_WCHAR_T_TRUE = @GLIBCXX_TEST_WCHAR_T_TRUE@
151 INSTALL_DATA = @INSTALL_DATA@
152 INSTALL_PROGRAM = @INSTALL_PROGRAM@
153 INSTALL_SCRIPT = @INSTALL_SCRIPT@
154 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
155 LIBICONV = @LIBICONV@
156 LIBMATHOBJS = @LIBMATHOBJS@
157 LIBOBJS = @LIBOBJS@
158 LIBS = @LIBS@
159 LIBSUPCXX_PICFLAGS = @LIBSUPCXX_PICFLAGS@
160 LIBTOOL = @LIBTOOL@
161 LN_S = @LN_S@
162 LTLIBOBJS = @LTLIBOBJS@
163 MAINT = @MAINT@
164 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
165 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
166 MAKEINFO = @MAKEINFO@
167 OBJEXT = @OBJEXT@
168 OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
169 OPT_LDFLAGS = @OPT_LDFLAGS@
170 OS_INC_SRCDIR = @OS_INC_SRCDIR@
171 PACKAGE = @PACKAGE@
172 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
173 PACKAGE_NAME = @PACKAGE_NAME@
174 PACKAGE_STRING = @PACKAGE_STRING@
175 PACKAGE_TARNAME = @PACKAGE_TARNAME@
176 PACKAGE_VERSION = @PACKAGE_VERSION@
177 PATH_SEPARATOR = @PATH_SEPARATOR@
178 RANLIB = @RANLIB@
179 SECTION_FLAGS = @SECTION_FLAGS@
180 SECTION_LDFLAGS = @SECTION_LDFLAGS@
181 SET_MAKE = @SET_MAKE@
182 SHELL = @SHELL@
183 STRIP = @STRIP@
184 SYMVER_MAP = @SYMVER_MAP@
185 TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
186 USE_NLS = @USE_NLS@
187 VERSION = @VERSION@
188 WARN_FLAGS = @WARN_FLAGS@
189 WERROR = @WERROR@
190 ac_ct_AR = @ac_ct_AR@
191 ac_ct_AS = @ac_ct_AS@
192 ac_ct_CC = @ac_ct_CC@
193 ac_ct_CXX = @ac_ct_CXX@
194 ac_ct_RANLIB = @ac_ct_RANLIB@
195 ac_ct_STRIP = @ac_ct_STRIP@
196 am__leading_dot = @am__leading_dot@
197 am__tar = @am__tar@
198 am__untar = @am__untar@
199 baseline_dir = @baseline_dir@
200 bindir = @bindir@
201 build = @build@
202 build_alias = @build_alias@
203 build_cpu = @build_cpu@
204 build_os = @build_os@
205 build_vendor = @build_vendor@
206 check_msgfmt = @check_msgfmt@
207 datadir = @datadir@
208 enable_shared = @enable_shared@
209 enable_static = @enable_static@
210 exec_prefix = @exec_prefix@
211 glibcxx_MOFILES = @glibcxx_MOFILES@
212 glibcxx_PCHFLAGS = @glibcxx_PCHFLAGS@
213 glibcxx_POFILES = @glibcxx_POFILES@
214 glibcxx_builddir = @glibcxx_builddir@
215 glibcxx_localedir = @glibcxx_localedir@
216 glibcxx_prefixdir = @glibcxx_prefixdir@
217 glibcxx_srcdir = @glibcxx_srcdir@
218 glibcxx_thread_h = @glibcxx_thread_h@
219 glibcxx_toolexecdir = @glibcxx_toolexecdir@
220 glibcxx_toolexeclibdir = @glibcxx_toolexeclibdir@
221 gxx_include_dir = @gxx_include_dir@
222 host = @host@
223 host_alias = @host_alias@
224 host_cpu = @host_cpu@
225 host_os = @host_os@
226 host_vendor = @host_vendor@
227 includedir = @includedir@
228 infodir = @infodir@
229 install_sh = @install_sh@
230 libdir = @libdir@
231 libexecdir = @libexecdir@
232 libtool_VERSION = @libtool_VERSION@
233 localstatedir = @localstatedir@
234 mandir = @mandir@
235 mkdir_p = @mkdir_p@
236 multi_basedir = @multi_basedir@
237 oldincludedir = @oldincludedir@
238 port_specific_symbol_files = @port_specific_symbol_files@
239 prefix = @prefix@
240 program_transform_name = @program_transform_name@
241 sbindir = @sbindir@
242 sharedstatedir = @sharedstatedir@
243 sysconfdir = @sysconfdir@
244 target = @target@
245 target_alias = @target_alias@
246 target_cpu = @target_cpu@
247 target_os = @target_os@
248 target_vendor = @target_vendor@
249 toplevel_srcdir = @toplevel_srcdir@
250 AUTOMAKE_OPTIONS = dejagnu
251 MAINT_CHARSET = latin1
252 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
253 PWD_COMMAND = $${PWDCMD-pwd}
254 STAMP = echo timestamp >
255 toolexecdir = $(glibcxx_toolexecdir)
256 toolexeclibdir = $(glibcxx_toolexeclibdir)
257
258 # These bits are all figured out from configure.  Look in acinclude.m4
259 # or configure.ac to see how they are set.  See GLIBCXX_EXPORT_FLAGS.
260 CONFIG_CXXFLAGS = \
261         $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS)
262
263 WARN_CXXFLAGS = \
264         $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once
265
266
267 # -I/-D flags to pass when compiling.
268 AM_CPPFLAGS = $(GLIBCXX_INCLUDES)
269 AM_MAKEFLAGS = -j1
270 AM_RUNTESTFLAGS = 
271 testsuite_flags_script = ${glibcxx_builddir}/scripts/testsuite_flags
272 AM_CXXFLAGS = $(shell ${testsuite_flags_script} --cxxflags)
273 GLIBGCC_DIR = `$(CC) -print-libgcc-file-name | sed 's,/[^/]*$$,,'`
274 GLIBCXX_DIR = ${glibcxx_builddir}/src/.libs
275 CXXLINK = \
276         $(LIBTOOL) --tag=CXX --mode=link $(CXX) \
277         -R $(GLIBGCC_DIR) -R $(GLIBCXX_DIR) \
278         $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -lv3test -L. -o $@
279
280 noinst_LIBRARIES = libv3test.a
281 libv3test_a_SOURCES = \
282         testsuite_abi.cc \
283         testsuite_allocator.cc \
284         testsuite_hooks.cc 
285
286 abi_check_SOURCES = abi_check.cc
287 abi_check_DEPENDENCIES = libv3test.a
288
289 # Generated lists of files to run.  All of these names are valid make
290 # targets, if you wish to generate a list manually.
291 lists_of_files = \
292    testsuite_files \
293    testsuite_files_interactive \
294    testsuite_files_performance
295
296 baseline_file = ${baseline_dir}/baseline_symbols.txt
297 extract_symvers = $(glibcxx_srcdir)/scripts/extract_symvers
298
299 # These two special 'check-script' rules use the bash script
300 # 'check_survey' to do testing. This script is not as portable as the
301 # dejagnu test harness, and is thus off by default. It does produce
302 # interesting output however, including various performance analysis
303 # items like compile time, execution time, and binary size.
304 survey_script = ${glibcxx_builddir}/scripts/check_survey
305
306 # Runs the testsuite/performance tests.
307 # Some of these tests create large (~75MB) files, allocate huge
308 # ammounts of memory, or otherwise tie up machine resources. Thus,
309 # running this is off by default.
310 performance_script = ${glibcxx_srcdir}/scripts/check_performance
311
312 # By adding these files here, automake will remove them for 'make clean'
313 CLEANFILES = *.txt *.tst *.exe core* filebuf_* tmp* ostream_* *.log *.sum \
314              testsuite_* site.exp abi_check baseline_symbols
315
316 all: all-am
317
318 .SUFFIXES:
319 .SUFFIXES: .cc .lo .o .obj
320 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/fragment.am $(am__configure_deps)
321         @for dep in $?; do \
322           case '$(am__configure_deps)' in \
323             *$$dep*) \
324               cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
325                 && exit 0; \
326               exit 1;; \
327           esac; \
328         done; \
329         echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  --ignore-deps testsuite/Makefile'; \
330         cd $(top_srcdir) && \
331           $(AUTOMAKE) --foreign  --ignore-deps testsuite/Makefile
332 .PRECIOUS: Makefile
333 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
334         @case '$?' in \
335           *config.status*) \
336             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
337           *) \
338             echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
339             cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
340         esac;
341
342 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
343         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
344
345 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
346         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
347 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
348         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
349
350 clean-noinstLIBRARIES:
351         -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
352 libv3test.a: $(libv3test_a_OBJECTS) $(libv3test_a_DEPENDENCIES) 
353         -rm -f libv3test.a
354         $(libv3test_a_AR) libv3test.a $(libv3test_a_OBJECTS) $(libv3test_a_LIBADD)
355         $(RANLIB) libv3test.a
356
357 clean-noinstPROGRAMS:
358         @list='$(noinst_PROGRAMS)'; for p in $$list; do \
359           f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
360           echo " rm -f $$p $$f"; \
361           rm -f $$p $$f ; \
362         done
363 abi_check$(EXEEXT): $(abi_check_OBJECTS) $(abi_check_DEPENDENCIES) 
364         @rm -f abi_check$(EXEEXT)
365         $(CXXLINK) $(abi_check_LDFLAGS) $(abi_check_OBJECTS) $(abi_check_LDADD) $(LIBS)
366
367 mostlyclean-compile:
368         -rm -f *.$(OBJEXT)
369
370 distclean-compile:
371         -rm -f *.tab.c
372
373 .cc.o:
374         $(CXXCOMPILE) -c -o $@ $<
375
376 .cc.obj:
377         $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
378
379 .cc.lo:
380         $(LTCXXCOMPILE) -c -o $@ $<
381
382 mostlyclean-libtool:
383         -rm -f *.lo
384
385 clean-libtool:
386         -rm -rf .libs _libs
387
388 distclean-libtool:
389         -rm -f libtool
390 uninstall-info-am:
391
392 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
393         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
394         unique=`for i in $$list; do \
395             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
396           done | \
397           $(AWK) '    { files[$$0] = 1; } \
398                END { for (i in files) print i; }'`; \
399         mkid -fID $$unique
400 tags: TAGS
401
402 TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
403                 $(TAGS_FILES) $(LISP)
404         tags=; \
405         here=`pwd`; \
406         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
407         unique=`for i in $$list; do \
408             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
409           done | \
410           $(AWK) '    { files[$$0] = 1; } \
411                END { for (i in files) print i; }'`; \
412         if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
413           test -n "$$unique" || unique=$$empty_fix; \
414           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
415             $$tags $$unique; \
416         fi
417 ctags: CTAGS
418 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
419                 $(TAGS_FILES) $(LISP)
420         tags=; \
421         here=`pwd`; \
422         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
423         unique=`for i in $$list; do \
424             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
425           done | \
426           $(AWK) '    { files[$$0] = 1; } \
427                END { for (i in files) print i; }'`; \
428         test -z "$(CTAGS_ARGS)$$tags$$unique" \
429           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
430              $$tags $$unique
431
432 GTAGS:
433         here=`$(am__cd) $(top_builddir) && pwd` \
434           && cd $(top_srcdir) \
435           && gtags -i $(GTAGS_ARGS) $$here
436
437 distclean-tags:
438         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
439
440 check-DEJAGNU: site.exp
441         srcdir=`$(am__cd) $(srcdir) && pwd`; export srcdir; \
442         EXPECT=$(EXPECT); export EXPECT; \
443         runtest=$(RUNTEST); \
444         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
445           l='$(DEJATOOL)'; for tool in $$l; do \
446             $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \
447           done; \
448         else echo "WARNING: could not find \`runtest'" 1>&2; :;\
449         fi
450
451 distclean-DEJAGNU:
452         -rm -f site.exp site.bak
453         -l='$(DEJATOOL)'; for tool in $$l; do \
454           rm -f $$tool.sum $$tool.log; \
455         done
456
457 distdir: $(DISTFILES)
458         $(mkdir_p) $(distdir)/..
459         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
460         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
461         list='$(DISTFILES)'; for file in $$list; do \
462           case $$file in \
463             $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
464             $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
465           esac; \
466           if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
467           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
468           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
469             dir="/$$dir"; \
470             $(mkdir_p) "$(distdir)$$dir"; \
471           else \
472             dir=''; \
473           fi; \
474           if test -d $$d/$$file; then \
475             if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
476               cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
477             fi; \
478             cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
479           else \
480             test -f $(distdir)/$$file \
481             || cp -p $$d/$$file $(distdir)/$$file \
482             || exit 1; \
483           fi; \
484         done
485 check-am: all-am
486         $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU check-local
487 check: check-am
488 all-am: Makefile $(LIBRARIES) $(PROGRAMS) all-local
489 installdirs:
490 install: install-am
491 install-exec: install-exec-am
492 install-data: install-data-am
493 uninstall: uninstall-am
494
495 install-am: all-am
496         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
497
498 installcheck: installcheck-am
499 install-strip:
500         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
501           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
502           `test -z '$(STRIP)' || \
503             echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
504 mostlyclean-generic:
505
506 clean-generic:
507         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
508
509 distclean-generic:
510         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
511
512 maintainer-clean-generic:
513         @echo "This command is intended for maintainers to use"
514         @echo "it deletes files that may require special tools to rebuild."
515 clean: clean-am
516
517 clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
518         clean-noinstPROGRAMS mostlyclean-am
519
520 distclean: distclean-am
521         -rm -f Makefile
522 distclean-am: clean-am distclean-DEJAGNU distclean-compile \
523         distclean-generic distclean-libtool distclean-tags
524
525 dvi: dvi-am
526
527 dvi-am:
528
529 html: html-am
530
531 info: info-am
532
533 info-am:
534
535 install-data-am:
536
537 install-exec-am:
538
539 install-info: install-info-am
540
541 install-man:
542
543 installcheck-am:
544
545 maintainer-clean: maintainer-clean-am
546         -rm -f Makefile
547 maintainer-clean-am: distclean-am maintainer-clean-generic
548
549 mostlyclean: mostlyclean-am
550
551 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
552         mostlyclean-libtool
553
554 pdf: pdf-am
555
556 pdf-am:
557
558 ps: ps-am
559
560 ps-am:
561
562 uninstall-am: uninstall-info-am
563
564 .PHONY: CTAGS GTAGS all all-am all-local check check-DEJAGNU check-am \
565         check-local clean clean-generic clean-libtool \
566         clean-noinstLIBRARIES clean-noinstPROGRAMS ctags distclean \
567         distclean-DEJAGNU distclean-compile distclean-generic \
568         distclean-libtool distclean-tags distdir dvi dvi-am html \
569         html-am info info-am install install-am install-data \
570         install-data-am install-exec install-exec-am install-info \
571         install-info-am install-man install-strip installcheck \
572         installcheck-am installdirs maintainer-clean \
573         maintainer-clean-generic mostlyclean mostlyclean-compile \
574         mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
575         tags uninstall uninstall-am uninstall-info-am
576
577
578 all-local: stamp_wchar testsuite_files
579
580 # Enable wchar_t tests if capable.
581 @GLIBCXX_TEST_WCHAR_T_TRUE@stamp_wchar:
582 @GLIBCXX_TEST_WCHAR_T_TRUE@     touch testsuite_wchar_t
583 @GLIBCXX_TEST_WCHAR_T_FALSE@stamp_wchar:
584
585 # We need more things in site.exp, but automake completely controls the
586 # creation of that file; there's no way to append to it without messing up
587 # the dependancy chains.  So we overrule automake.  This rule is exactly
588 # what it would have generated, plus our own additions.
589 site.exp: Makefile
590         @echo 'Making a new site.exp file...'
591         @echo '## these variables are automatically generated by make ##' >site.tmp
592         @echo '# Do not edit here.  If you wish to override these values' >>site.tmp
593         @echo '# edit the last section' >>site.tmp
594         @echo 'set srcdir $(srcdir)' >>site.tmp
595         @echo "set objdir `pwd`" >>site.tmp
596         @echo 'set build_alias "$(build_alias)"' >>site.tmp
597         @echo 'set build_triplet $(build_triplet)' >>site.tmp
598         @echo 'set host_alias "$(host_alias)"' >>site.tmp
599         @echo 'set host_triplet $(host_triplet)' >>site.tmp
600         @echo 'set target_alias "$(target_alias)"' >>site.tmp
601         @echo 'set target_triplet $(target_triplet)' >>site.tmp
602         @echo 'set target_triplet $(target_triplet)' >>site.tmp
603         @echo 'set libiconv "$(LIBICONV)"' >>site.tmp
604         @echo '## All variables above are generated by configure. Do Not Edit ##' >>site.tmp
605         @test ! -f site.exp || \
606           sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
607         @-rm -f site.bak
608         @test ! -f site.exp || mv site.exp site.bak
609         @mv site.tmp site.exp
610
611 # This is automatically run after the generated check-DEJAGNU rule.
612 check-local: check-abi
613
614 current_symbols.txt: ${extract_symvers} ../src/.libs/libstdc++.so
615           -@(${extract_symvers} ../src/.libs/libstdc++.so current_symbols.txt)
616
617 baseline_symbols:
618         -@(output=${baseline_file}; \
619           if test ! -f $${output}; then \
620             echo "Baseline file doesn't exist."; \
621             echo "Try 'make new-abi-baseline' to create it."; \
622             exit 1; \
623           fi; true)
624
625 new-abi-baseline:
626         -@$(mkinstalldirs) ${baseline_dir}
627         -@(output=${baseline_file}; \
628           if test -f $${output}; then \
629             output=$${output}.new; \
630             t=`echo $${output} | sed 's=.*config/abi/=='`; \
631             echo "Baseline file already exists, writing to $${t} instead."; \
632           fi; \
633           ${extract_symvers} ../src/.libs/libstdc++.so $${output})
634
635 # Use 'new-abi-baseline' to create an initial symbol file.  Then run
636 # 'check-abi' to test for changes against that file.
637 @GLIBCXX_TEST_ABI_TRUE@check-abi: abi_check baseline_symbols current_symbols.txt
638 @GLIBCXX_TEST_ABI_TRUE@ -@./abi_check --check ./current_symbols.txt ${baseline_file} \
639 @GLIBCXX_TEST_ABI_TRUE@   2>&1 | tee libstdc++-abi.sum
640 @GLIBCXX_TEST_ABI_TRUE@ -@cp libstdc++-abi.sum libstdc++-abi.log
641
642 @GLIBCXX_TEST_ABI_TRUE@check-abi-verbose: abi_check baseline_symbols current_symbols.txt
643 @GLIBCXX_TEST_ABI_TRUE@ -@./abi_check --check-verbose ./current_symbols.txt ${baseline_file} \
644 @GLIBCXX_TEST_ABI_TRUE@   2>&1 | tee libstdc++-abi.sum
645 @GLIBCXX_TEST_ABI_TRUE@ -@cp libstdc++-abi.sum libstdc++-abi.log
646
647 @GLIBCXX_TEST_ABI_FALSE@check-abi:
648 @GLIBCXX_TEST_ABI_FALSE@check-abi-verbose:
649 check-script: ${survey_script}
650         -@(chmod + ${survey_script}; \
651           ${survey_script} 0)
652
653 check-script-install: ${survey_script}
654         -@(chmod + ${survey_script}; \
655           ${survey_script} 0)
656 check-performance: testsuite_files_performance ${performance_script}
657         -@(chmod + ${performance_script}; \
658           ${performance_script} ${glibcxx_srcdir} ${glibcxx_builddir})
659
660 # This rule generates all of the testsuite_files* lists at once.
661 ${lists_of_files}:
662         ${glibcxx_srcdir}/scripts/create_testsuite_files \
663           ${glibcxx_srcdir}/testsuite `${PWD_COMMAND}`
664
665 .PHONY: baseline_symbols new-abi-baseline check-abi check-abi-verbose \
666 check-script check-script-install check-performance
667 # Tell versions [3.59,3.63) of GNU make to not export all variables.
668 # Otherwise a system limit (for SysV at least) may be exceeded.
669 .NOEXPORT: