OSDN Git Service

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