OSDN Git Service

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