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