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