OSDN Git Service

2012-08-02 Michael Hope <michael.hope@linaro.org>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / Makefile.in
1 # Makefile.in generated by automake 1.11.1 from Makefile.am.
2 # @configure_input@
3
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
6 # Inc.
7 # This Makefile.in is free software; the Free Software Foundation
8 # gives unlimited permission to copy and/or distribute it,
9 # with or without modifications, as long as this notice is preserved.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 # PARTICULAR PURPOSE.
15
16 @SET_MAKE@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 target_triplet = @target@
37 DIST_COMMON = $(top_srcdir)/fragment.am $(srcdir)/Makefile.in \
38         $(srcdir)/Makefile.am
39 subdir = testsuite
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
42         $(top_srcdir)/../config/enable.m4 \
43         $(top_srcdir)/../config/futex.m4 \
44         $(top_srcdir)/../config/iconv.m4 \
45         $(top_srcdir)/../config/lead-dot.m4 \
46         $(top_srcdir)/../config/lib-ld.m4 \
47         $(top_srcdir)/../config/lib-link.m4 \
48         $(top_srcdir)/../config/lib-prefix.m4 \
49         $(top_srcdir)/../config/lthostflags.m4 \
50         $(top_srcdir)/../config/multi.m4 \
51         $(top_srcdir)/../config/no-executables.m4 \
52         $(top_srcdir)/../config/override.m4 \
53         $(top_srcdir)/../config/stdint.m4 \
54         $(top_srcdir)/../config/unwind_ipinfo.m4 \
55         $(top_srcdir)/../libtool.m4 $(top_srcdir)/../ltoptions.m4 \
56         $(top_srcdir)/../ltsugar.m4 $(top_srcdir)/../ltversion.m4 \
57         $(top_srcdir)/../lt~obsolete.m4 $(top_srcdir)/crossconfig.m4 \
58         $(top_srcdir)/linkage.m4 $(top_srcdir)/acinclude.m4 \
59         $(top_srcdir)/../config/gc++filt.m4 \
60         $(top_srcdir)/../config/tls.m4 $(top_srcdir)/configure.ac
61 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
62         $(ACLOCAL_M4)
63 CONFIG_HEADER = $(top_builddir)/config.h
64 CONFIG_CLEAN_FILES =
65 CONFIG_CLEAN_VPATH_FILES =
66 depcomp =
67 am__depfiles_maybe =
68 SOURCES =
69 ABI_TWEAKS_SRCDIR = @ABI_TWEAKS_SRCDIR@
70 ACLOCAL = @ACLOCAL@
71 ALLOCATOR_H = @ALLOCATOR_H@
72 ALLOCATOR_NAME = @ALLOCATOR_NAME@
73 AMTAR = @AMTAR@
74 AR = @AR@
75 AS = @AS@
76 ATOMICITY_SRCDIR = @ATOMICITY_SRCDIR@
77 ATOMIC_FLAGS = @ATOMIC_FLAGS@
78 ATOMIC_WORD_SRCDIR = @ATOMIC_WORD_SRCDIR@
79 AUTOCONF = @AUTOCONF@
80 AUTOHEADER = @AUTOHEADER@
81 AUTOMAKE = @AUTOMAKE@
82 AWK = @AWK@
83 BASIC_FILE_CC = @BASIC_FILE_CC@
84 BASIC_FILE_H = @BASIC_FILE_H@
85 CC = @CC@
86 CCODECVT_CC = @CCODECVT_CC@
87 CCOLLATE_CC = @CCOLLATE_CC@
88 CCTYPE_CC = @CCTYPE_CC@
89 CFLAGS = @CFLAGS@
90 CLOCALE_CC = @CLOCALE_CC@
91 CLOCALE_H = @CLOCALE_H@
92 CLOCALE_INTERNAL_H = @CLOCALE_INTERNAL_H@
93 CMESSAGES_CC = @CMESSAGES_CC@
94 CMESSAGES_H = @CMESSAGES_H@
95 CMONEY_CC = @CMONEY_CC@
96 CNUMERIC_CC = @CNUMERIC_CC@
97 CPP = @CPP@
98 CPPFLAGS = @CPPFLAGS@
99 CPU_DEFINES_SRCDIR = @CPU_DEFINES_SRCDIR@
100 CSTDIO_H = @CSTDIO_H@
101 CTIME_CC = @CTIME_CC@
102 CTIME_H = @CTIME_H@
103 CXX = @CXX@
104 CXXCPP = @CXXCPP@
105 CXXFILT = @CXXFILT@
106 CXXFLAGS = @CXXFLAGS@
107 CYGPATH_W = @CYGPATH_W@
108 C_INCLUDE_DIR = @C_INCLUDE_DIR@
109 DBLATEX = @DBLATEX@
110 DEBUG_FLAGS = @DEBUG_FLAGS@
111 DEFS = @DEFS@
112 DOT = @DOT@
113 DOXYGEN = @DOXYGEN@
114 DSYMUTIL = @DSYMUTIL@
115 DUMPBIN = @DUMPBIN@
116 ECHO_C = @ECHO_C@
117 ECHO_N = @ECHO_N@
118 ECHO_T = @ECHO_T@
119 EGREP = @EGREP@
120 ERROR_CONSTANTS_SRCDIR = @ERROR_CONSTANTS_SRCDIR@
121 EXEEXT = @EXEEXT@
122 EXTRA_CXX_FLAGS = @EXTRA_CXX_FLAGS@
123 FGREP = @FGREP@
124 GLIBCXX_INCLUDES = @GLIBCXX_INCLUDES@
125 GLIBCXX_LIBS = @GLIBCXX_LIBS@
126 GREP = @GREP@
127 INSTALL = @INSTALL@
128 INSTALL_DATA = @INSTALL_DATA@
129 INSTALL_PROGRAM = @INSTALL_PROGRAM@
130 INSTALL_SCRIPT = @INSTALL_SCRIPT@
131 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
132 LD = @LD@
133 LDFLAGS = @LDFLAGS@
134 LIBICONV = @LIBICONV@
135 LIBOBJS = @LIBOBJS@
136 LIBS = @LIBS@
137 LIBTOOL = @LIBTOOL@
138 LIPO = @LIPO@
139 LN_S = @LN_S@
140 LTLIBICONV = @LTLIBICONV@
141 LTLIBOBJS = @LTLIBOBJS@
142 MAINT = @MAINT@
143 MAKEINFO = @MAKEINFO@
144 MKDIR_P = @MKDIR_P@
145 NM = @NM@
146 NMEDIT = @NMEDIT@
147 OBJDUMP = @OBJDUMP@
148 OBJEXT = @OBJEXT@
149 OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
150 OPT_LDFLAGS = @OPT_LDFLAGS@
151 OS_INC_SRCDIR = @OS_INC_SRCDIR@
152 OTOOL = @OTOOL@
153 OTOOL64 = @OTOOL64@
154 PACKAGE = @PACKAGE@
155 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
156 PACKAGE_NAME = @PACKAGE_NAME@
157 PACKAGE_STRING = @PACKAGE_STRING@
158 PACKAGE_TARNAME = @PACKAGE_TARNAME@
159 PACKAGE_URL = @PACKAGE_URL@
160 PACKAGE_VERSION = @PACKAGE_VERSION@
161 PATH_SEPARATOR = @PATH_SEPARATOR@
162 PDFLATEX = @PDFLATEX@
163 PIC_CXXFLAGS = @PIC_CXXFLAGS@
164 RANLIB = @RANLIB@
165 SECTION_FLAGS = @SECTION_FLAGS@
166 SECTION_LDFLAGS = @SECTION_LDFLAGS@
167 SED = @SED@
168 SET_MAKE = @SET_MAKE@
169 SHELL = @SHELL@
170 STRIP = @STRIP@
171 SYMVER_FILE = @SYMVER_FILE@
172 TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
173 USE_NLS = @USE_NLS@
174 VERSION = @VERSION@
175 WARN_FLAGS = @WARN_FLAGS@
176 WERROR = @WERROR@
177 XMLLINT = @XMLLINT@
178 XSLTPROC = @XSLTPROC@
179 XSL_STYLE_DIR = @XSL_STYLE_DIR@
180 abs_builddir = @abs_builddir@
181 abs_srcdir = @abs_srcdir@
182 abs_top_builddir = @abs_top_builddir@
183 abs_top_srcdir = @abs_top_srcdir@
184 ac_ct_CC = @ac_ct_CC@
185 ac_ct_CXX = @ac_ct_CXX@
186 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
187 am__leading_dot = @am__leading_dot@
188 am__tar = @am__tar@
189 am__untar = @am__untar@
190 baseline_dir = @baseline_dir@
191 baseline_subdir_switch = @baseline_subdir_switch@
192 bindir = @bindir@
193 build = @build@
194 build_alias = @build_alias@
195 build_cpu = @build_cpu@
196 build_os = @build_os@
197 build_vendor = @build_vendor@
198 builddir = @builddir@
199 check_msgfmt = @check_msgfmt@
200 datadir = @datadir@
201 datarootdir = @datarootdir@
202 docdir = @docdir@
203 dvidir = @dvidir@
204 enable_shared = @enable_shared@
205 enable_static = @enable_static@
206 exec_prefix = @exec_prefix@
207 glibcxx_MOFILES = @glibcxx_MOFILES@
208 glibcxx_PCHFLAGS = @glibcxx_PCHFLAGS@
209 glibcxx_POFILES = @glibcxx_POFILES@
210 glibcxx_builddir = @glibcxx_builddir@
211 glibcxx_localedir = @glibcxx_localedir@
212 glibcxx_prefixdir = @glibcxx_prefixdir@
213 glibcxx_srcdir = @glibcxx_srcdir@
214 glibcxx_toolexecdir = @glibcxx_toolexecdir@
215 glibcxx_toolexeclibdir = @glibcxx_toolexeclibdir@
216 gxx_include_dir = @gxx_include_dir@
217 host = @host@
218 host_alias = @host_alias@
219 host_cpu = @host_cpu@
220 host_os = @host_os@
221 host_vendor = @host_vendor@
222 htmldir = @htmldir@
223 includedir = @includedir@
224 infodir = @infodir@
225 install_sh = @install_sh@
226 libdir = @libdir@
227 libexecdir = @libexecdir@
228 libtool_VERSION = @libtool_VERSION@
229 localedir = @localedir@
230 localstatedir = @localstatedir@
231 lt_host_flags = @lt_host_flags@
232 mandir = @mandir@
233 mkdir_p = @mkdir_p@
234 multi_basedir = @multi_basedir@
235 oldincludedir = @oldincludedir@
236 pdfdir = @pdfdir@
237 port_specific_symbol_files = @port_specific_symbol_files@
238 prefix = @prefix@
239 program_transform_name = @program_transform_name@
240 psdir = @psdir@
241 python_mod_dir = @python_mod_dir@
242 sbindir = @sbindir@
243 sharedstatedir = @sharedstatedir@
244 srcdir = @srcdir@
245 sysconfdir = @sysconfdir@
246 target = @target@
247 target_alias = @target_alias@
248 target_cpu = @target_cpu@
249 target_os = @target_os@
250 target_vendor = @target_vendor@
251 top_build_prefix = @top_build_prefix@
252 top_builddir = @top_builddir@
253 top_srcdir = @top_srcdir@
254 toplevel_builddir = @toplevel_builddir@
255 toplevel_srcdir = @toplevel_srcdir@
256 AUTOMAKE_OPTIONS = nostdinc
257 RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
258 EXPECT = expect
259
260 # May be used by various substitution variables.
261 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
262 MAINT_CHARSET = latin1
263 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
264 PWD_COMMAND = $${PWDCMD-pwd}
265 STAMP = echo timestamp >
266 toolexecdir = $(glibcxx_toolexecdir)
267 toolexeclibdir = $(glibcxx_toolexeclibdir)
268 @ENABLE_WERROR_FALSE@WERROR_FLAG = 
269 @ENABLE_WERROR_TRUE@WERROR_FLAG = $(WERROR)
270
271 # These bits are all figured out from configure.  Look in acinclude.m4
272 # or configure.ac to see how they are set.  See GLIBCXX_EXPORT_FLAGS.
273 CONFIG_CXXFLAGS = \
274         $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -frandom-seed=$@
275
276 WARN_CXXFLAGS = \
277         $(WARN_FLAGS) $(WERROR_FLAG) -fdiagnostics-show-location=once 
278
279
280 # -I/-D flags to pass when compiling.
281 AM_CPPFLAGS = $(GLIBCXX_INCLUDES)
282
283 # Generated lists of files to run.  All of these names are valid make
284 # targets, if you wish to generate a list manually.
285 lists_of_files = \
286    testsuite_files \
287    testsuite_files_interactive \
288    testsuite_files_performance
289
290 extract_symvers = $(glibcxx_builddir)/scripts/extract_symvers
291 baseline_subdir := $(shell $(CXX) $(baseline_subdir_switch))
292 check_DEJAGNU_normal_targets = $(patsubst %,check-DEJAGNUnormal%,0 1 2 3 4 5 6 7 8 9)
293
294 # Runs the testsuite, but in compile only mode.
295 # Can be used to test sources with non-GNU FE's at various warning
296 # levels and for checking compile time across releases.
297 # See script.
298 compile_script = ${glibcxx_srcdir}/scripts/check_compile
299
300 # Runs the testsuite/performance tests.
301 # Some of these tests create large (~75MB) files, allocate huge
302 # ammounts of memory, or otherwise tie up machine resources. Thus,
303 # running this is off by default.
304 # XXX Need to add dependency on libtestc++.a
305 check_performance_script = ${glibcxx_srcdir}/scripts/check_performance
306
307 # Runs the testsuite in debug mode.
308 debug_flags = "unix/-D_GLIBCXX_DEBUG"
309
310 # Runs the testsuite in parallel mode.
311 libgomp_dir = ${glibcxx_builddir}/../libgomp
312 libgomp_flags = -B${glibcxx_builddir}/../libgomp \
313               -I${glibcxx_builddir}/../libgomp \
314               -L${glibcxx_builddir}/../libgomp/.libs -lgomp
315
316 atomic_flags = $(ATOMIC_FLAGS)
317 parallel_flags = "unix/-D_GLIBCXX_PARALLEL/-fopenmp"
318
319 # Runs the testsuite in profile mode.
320 profile_flags = "unix/-D_GLIBCXX_PROFILE"
321
322 # By adding these files here, automake will remove them for 'make clean'
323 CLEANFILES = *.txt *.tst *.exe core* filebuf_* tmp* ostream_* *.log *.sum \
324              testsuite_* site.exp abi_check baseline_symbols *TEST* *.dat \
325              *.ii *.s *.o *.cc *.x *.a *.so *.xml *.raw *.out *.gdb
326
327 all: all-am
328
329 .SUFFIXES:
330 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/fragment.am $(am__configure_deps)
331         @for dep in $?; do \
332           case '$(am__configure_deps)' in \
333             *$$dep*) \
334               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
335                 && { if test -f $@; then exit 0; else break; fi; }; \
336               exit 1;; \
337           esac; \
338         done; \
339         echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps testsuite/Makefile'; \
340         $(am__cd) $(top_srcdir) && \
341           $(AUTOMAKE) --foreign --ignore-deps testsuite/Makefile
342 .PRECIOUS: Makefile
343 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
344         @case '$?' in \
345           *config.status*) \
346             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
347           *) \
348             echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
349             cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
350         esac;
351
352 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
353         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
354
355 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
356         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
357 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
358         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
359 $(am__aclocal_m4_deps):
360
361 mostlyclean-libtool:
362         -rm -f *.lo
363
364 clean-libtool:
365         -rm -rf .libs _libs
366 tags: TAGS
367 TAGS:
368
369 ctags: CTAGS
370 CTAGS:
371
372 check-am: all-am
373 check: check-am
374 all-am: Makefile
375 installdirs:
376 install: install-am
377 install-exec: install-exec-am
378 install-data: install-data-am
379 uninstall: uninstall-am
380
381 install-am: all-am
382         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
383
384 installcheck: installcheck-am
385 install-strip:
386         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
387           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
388           `test -z '$(STRIP)' || \
389             echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
390 mostlyclean-generic:
391
392 clean-generic:
393         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
394
395 distclean-generic:
396         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
397         -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
398
399 maintainer-clean-generic:
400         @echo "This command is intended for maintainers to use"
401         @echo "it deletes files that may require special tools to rebuild."
402 clean: clean-am
403
404 clean-am: clean-generic clean-libtool clean-local mostlyclean-am
405
406 distclean: distclean-am
407         -rm -f Makefile
408 distclean-am: clean-am distclean-generic
409
410 dvi: dvi-am
411
412 dvi-am:
413
414 html: html-am
415
416 html-am:
417
418 info: info-am
419
420 info-am:
421
422 install-data-am:
423
424 install-dvi: install-dvi-am
425
426 install-dvi-am:
427
428 install-exec-am:
429
430 install-html: install-html-am
431
432 install-html-am:
433
434 install-info: install-info-am
435
436 install-info-am:
437
438 install-man:
439
440 install-pdf: install-pdf-am
441
442 install-pdf-am:
443
444 install-ps: install-ps-am
445
446 install-ps-am:
447
448 installcheck-am:
449
450 maintainer-clean: maintainer-clean-am
451         -rm -f Makefile
452 maintainer-clean-am: distclean-am maintainer-clean-generic
453
454 mostlyclean: mostlyclean-am
455
456 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
457
458 pdf: pdf-am
459
460 pdf-am:
461
462 ps: ps-am
463
464 ps-am:
465
466 uninstall-am:
467
468 .MAKE: install-am install-strip
469
470 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
471         clean-local distclean distclean-generic distclean-libtool dvi \
472         dvi-am html html-am info info-am install install-am \
473         install-data install-data-am install-dvi install-dvi-am \
474         install-exec install-exec-am install-html install-html-am \
475         install-info install-info-am install-man install-pdf \
476         install-pdf-am install-ps install-ps-am install-strip \
477         installcheck installcheck-am installdirs maintainer-clean \
478         maintainer-clean-generic mostlyclean mostlyclean-generic \
479         mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
480
481
482 # This rule generates all of the testsuite_files* lists at once.
483 ${lists_of_files}:
484         ${glibcxx_srcdir}/scripts/create_testsuite_files \
485           ${glibcxx_srcdir}/testsuite `${PWD_COMMAND}`
486
487 # We need more things in site.exp, but automake completely controls the
488 # creation of that file; there's no way to append to it without messing up
489 # the dependancy chains.  So we overrule automake.  This rule is exactly
490 # what it would have generated, plus our own additions.
491 site.exp: Makefile
492         @echo 'Making a new site.exp file...'
493         @echo '## these variables are automatically generated by make ##' >site.tmp
494         @echo '# Do not edit here.  If you wish to override these values' >>site.tmp
495         @echo '# edit the last section' >>site.tmp
496         @echo 'set srcdir $(srcdir)' >>site.tmp
497         @echo "set objdir `pwd`" >>site.tmp
498         @echo 'set build_alias "$(build_alias)"' >>site.tmp
499         @echo 'set build_triplet $(build_triplet)' >>site.tmp
500         @echo 'set host_alias "$(host_alias)"' >>site.tmp
501         @echo 'set host_triplet $(host_triplet)' >>site.tmp
502         @echo 'set target_alias "$(target_alias)"' >>site.tmp
503         @echo 'set target_triplet $(target_triplet)' >>site.tmp
504         @echo 'set target_triplet $(target_triplet)' >>site.tmp
505         @echo 'set libiconv "$(LIBICONV)"' >>site.tmp
506         @echo 'set baseline_dir "$(baseline_dir)"' >> site.tmp
507         @echo 'set baseline_subdir_switch "$(baseline_subdir_switch)"' >> site.tmp
508         @echo 'set TEST_GCC_EXEC_PREFIX "$(libdir)/gcc/"' >> site.tmp
509         @echo '## All variables above are generated by configure. Do Not Edit ##' >>site.tmp
510         @test ! -f site.exp || \
511           sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
512         @-rm -f site.bak
513         @test ! -f site.exp || mv site.exp site.bak
514         @mv site.tmp site.exp
515
516 baseline_symbols:
517         -@(output=${baseline_dir}/${baseline_subdir}/baseline_symbols.txt; \
518           if test ! -f $${output}; then \
519             echo "Baseline file doesn't exist."; \
520             echo "Try 'make new-abi-baseline' to create it."; \
521             exit 1; \
522           fi; true)
523
524 new-abi-baseline:
525         -@$(mkinstalldirs) ${baseline_dir}/${baseline_subdir}
526         -@(output=${baseline_dir}/${baseline_subdir}/baseline_symbols.txt; \
527           if test -f $${output}; then \
528             output=$${output}.new; \
529             t=`echo $${output} | sed 's=.*config/abi/=='`; \
530             echo "Baseline file already exists, writing to $${t} instead."; \
531           fi; \
532           ${extract_symvers} ../src/.libs/libstdc++.so $${output})
533
534 %/site.exp: site.exp
535         -test -d $* || mkdir $*
536         @srcdir=`cd $(srcdir); ${PWD_COMMAND}`;
537         objdir=`${PWD_COMMAND}`/$*; \
538         sed -e "s|^set srcdir .*$$|set srcdir $$srcdir|" \
539             -e "s|^set objdir .*$$|set objdir $$objdir|" \
540             site.exp > $*/site.exp.tmp
541         @-rm -f $*/site.bak
542         @test ! -f $*/site.exp || mv $*/site.exp $*/site.bak
543         @mv $*/site.exp.tmp $*/site.exp
544 $(check_DEJAGNU_normal_targets): check-DEJAGNUnormal%: normal%/site.exp
545
546 # Run the testsuite in normal mode.
547 check-DEJAGNU $(check_DEJAGNU_normal_targets): check-DEJAGNU%: site.exp
548         AR="$(AR)"; export AR; \
549         RANLIB="$(RANLIB)"; export RANLIB; \
550         if [ -z "$*$(filter-out --target_board=%, $(RUNTESTFLAGS))" ] \
551             && [ "$(filter -j, $(MFLAGS))" = "-j" ]; then \
552           $(MAKE) $(AM_MAKEFLAGS) $(check_DEJAGNU_normal_targets); \
553           for idx in 0 1 2 3 4 5 6 7 8 9; do \
554             mv -f normal$$idx/libstdc++.sum normal$$idx/libstdc++.sum.sep; \
555             mv -f normal$$idx/libstdc++.log normal$$idx/libstdc++.log.sep; \
556           done; \
557           mv -f libstdc++.sum libstdc++.sum.sep; \
558           mv -f libstdc++.log libstdc++.log.sep; \
559           $(SHELL) $(srcdir)/../../contrib/dg-extract-results.sh \
560             libstdc++.sum.sep normal[0-9]/libstdc++.sum.sep > libstdc++.sum; \
561           $(SHELL) $(srcdir)/../../contrib/dg-extract-results.sh -L \
562             libstdc++.log.sep normal[0-9]/libstdc++.log.sep > libstdc++.log; \
563           exit 0; \
564         fi; \
565         srcdir=`$(am__cd) $(srcdir) && pwd`; export srcdir; \
566         EXPECT=$(EXPECT); export EXPECT; \
567         runtest=$(RUNTEST); \
568         if [ -z "$$runtest" ]; then runtest=runtest; fi; \
569         tool=libstdc++; \
570         dirs=; \
571         case "$*" in \
572           normal0) \
573             if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
574               $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) \
575                         $(RUNTESTFLAGS) abi.exp prettyprinters.exp; \
576             else echo "WARNING: could not find \`runtest'" 1>&2; :;\
577             fi; \
578             dirs="`cd $$srcdir; echo [013-9][0-9]_*/*`";; \
579           normal1) \
580             dirs="`cd $$srcdir; echo [ab]* de* [ep]*/*`";; \
581           normal2) \
582             dirs="`cd $$srcdir; echo 2[01]_*/*`";; \
583           normal3) \
584             dirs="`cd $$srcdir; echo 22_*/*`";; \
585           normal4) \
586             dirs="`cd $$srcdir; echo 23_*/[a-km-tw-z]*`";; \
587           normal5) \
588             dirs="`cd $$srcdir; echo 23_*/[luv]*`";; \
589           normal6) \
590             dirs="`cd $$srcdir; echo 2[459]_*/*`";; \
591           normal7) \
592             dirs="`cd $$srcdir; echo 2[68]_*/*`";; \
593           normal8) \
594             dirs="`cd $$srcdir; echo 27_*/*`";; \
595           normal9) \
596             dirs="`cd $$srcdir; echo t*/*`";; \
597         esac; \
598         if [ -n "$*" ]; then cd "$*"; fi; \
599         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
600           if [ -n "$$dirs" ]; then \
601             $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) \
602                     $(RUNTESTFLAGS) \
603                     "conformance.exp=`echo $$dirs | sed 's/ /* /g;s/$$/*/'`"; \
604           else \
605             $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) \
606                     $(RUNTESTFLAGS); \
607           fi; \
608         else echo "WARNING: could not find \`runtest'" 1>&2; :;\
609         fi
610
611 check-am:
612         $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
613 .PHONY: check-DEJAGNU
614
615 # Use 'new-abi-baseline' to create an initial symbol file.  Then run
616 # 'check-abi' to test for changes against that file.
617 check-abi: site.exp baseline_symbols 
618         -@runtest $(AM_RUNTESTFLAGS) --tool libstdc++ $(RUNTESTFLAGS) abi.exp
619 check-compile: testsuite_files ${compile_script}
620         -@(chmod + ${compile_script}; \
621           ${compile_script} ${glibcxx_srcdir} ${glibcxx_builddir})
622 check-performance: testsuite_files_performance ${performance_script}
623         -@(chmod + ${check_performance_script}; \
624           ${check_performance_script} ${glibcxx_srcdir} ${glibcxx_builddir})
625
626 check-debug: site.exp
627         outputdir=debug; export outputdir; \
628         if test ! -d $${outputdir}; then \
629           mkdir $${outputdir}; \
630         fi; \
631         srcdir=`$(am__cd) $(srcdir) && pwd`; export srcdir; \
632         EXPECT=$(EXPECT); export EXPECT; \
633         $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) conformance.exp --outdir $${outputdir} --objdir $${outputdir} --target_board=$(debug_flags)" check-DEJAGNU;
634
635 check-parallel: site.exp
636         -@(if test ! -d $${libgomp_dir}; then \
637           echo "Testing parallel mode failed as libgomp not present."; \
638           exit 1; \
639         fi; \
640         outputdir=parallel; export outputdir; \
641         if test ! -d $${outputdir}; then \
642           mkdir $${outputdir}; \
643         fi; \
644         srcdir=`$(am__cd) $(srcdir) && pwd`; export srcdir; \
645         EXPECT=$(EXPECT); export EXPECT; \
646         $(MAKE) CXXFLAGS="$(atomic_flags) $(libgomp_flags)" RUNTESTFLAGS="$(RUNTESTFLAGS) conformance.exp --outdir $${outputdir} --objdir $${outputdir} --target_board=$(parallel_flags)" check-DEJAGNU; )
647
648 check-performance-parallel: testsuite_files_performance ${performance_script}
649         -@(chmod + ${check_performance_script}; \
650         CXXFLAGS="-D_GLIBCXX_PARALLEL -fopenmp $(atomic_flags) $(libgomp_flags)"; export CXXFLAGS; \
651         ${check_performance_script} ${glibcxx_srcdir} ${glibcxx_builddir})
652
653 check-profile: site.exp
654         -@(outputdir=profile; export outputdir; \
655         if test ! -d $${outputdir}; then \
656           mkdir $${outputdir}; \
657         fi; \
658         srcdir=`$(am__cd) $(srcdir) && pwd`; export srcdir; \
659         EXPECT=$(EXPECT); export EXPECT; \
660         $(MAKE) CXXFLAGS="$(atomic_flags) " RUNTESTFLAGS="$(RUNTESTFLAGS) conformance.exp --outdir $${outputdir} --objdir $${outputdir} --target_board=$(profile_flags)" check-DEJAGNU; )
661
662 .PHONY: baseline_symbols new-abi-baseline \
663         check-abi check-compile check-performance check-parallel check-profile
664
665 # To remove directories.
666 clean-local:
667         rm -rf de fr debug parallel profile binaries normal* 
668
669 # Tell versions [3.59,3.63) of GNU make to not export all variables.
670 # Otherwise a system limit (for SysV at least) may be exceeded.
671 .NOEXPORT: