OSDN Git Service

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