OSDN Git Service

* Makefile.am (hosted_source): Add libmath and testsuite.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / Makefile.in
1 # Makefile.in generated by automake 1.7.9 from Makefile.am.
2 # @configure_input@
3
4 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
5 # Free Software Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkglibdir = $(libdir)/@PACKAGE@
22 pkgincludedir = $(includedir)/@PACKAGE@
23 top_builddir = ..
24
25 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
26 INSTALL = @INSTALL@
27 install_sh_DATA = $(install_sh) -c -m 644
28 install_sh_PROGRAM = $(install_sh) -c
29 install_sh_SCRIPT = $(install_sh) -c
30 INSTALL_HEADER = $(INSTALL_DATA)
31 transform = $(program_transform_name)
32 NORMAL_INSTALL = :
33 PRE_INSTALL = :
34 POST_INSTALL = :
35 NORMAL_UNINSTALL = :
36 PRE_UNINSTALL = :
37 POST_UNINSTALL = :
38 build_triplet = @build@
39 host_triplet = @host@
40 target_triplet = @target@
41 ABI_TWEAKS_SRCDIR = @ABI_TWEAKS_SRCDIR@
42 ACLOCAL = @ACLOCAL@
43 ALLOCATOR_H = @ALLOCATOR_H@
44 ALLOCATOR_NAME = @ALLOCATOR_NAME@
45 AMTAR = @AMTAR@
46 AR = @AR@
47 AS = @AS@
48 ATOMICITY_SRCDIR = @ATOMICITY_SRCDIR@
49 ATOMIC_WORD_SRCDIR = @ATOMIC_WORD_SRCDIR@
50 AUTOCONF = @AUTOCONF@
51 AUTOHEADER = @AUTOHEADER@
52 AUTOMAKE = @AUTOMAKE@
53 AWK = @AWK@
54 BASIC_FILE_CC = @BASIC_FILE_CC@
55 BASIC_FILE_H = @BASIC_FILE_H@
56 CC = @CC@
57 CCODECVT_CC = @CCODECVT_CC@
58 CCODECVT_H = @CCODECVT_H@
59 CCOLLATE_CC = @CCOLLATE_CC@
60 CCTYPE_CC = @CCTYPE_CC@
61 CFLAGS = @CFLAGS@
62 CLOCALE_CC = @CLOCALE_CC@
63 CLOCALE_H = @CLOCALE_H@
64 CLOCALE_INTERNAL_H = @CLOCALE_INTERNAL_H@
65 CMESSAGES_CC = @CMESSAGES_CC@
66 CMESSAGES_H = @CMESSAGES_H@
67 CMONEY_CC = @CMONEY_CC@
68 CNUMERIC_CC = @CNUMERIC_CC@
69 CPP = @CPP@
70 CPPFLAGS = @CPPFLAGS@
71 CSTDIO_H = @CSTDIO_H@
72 CTIME_CC = @CTIME_CC@
73 CTIME_H = @CTIME_H@
74 CXX = $(shell ${testsuite_flags_script} --build-cxx)
75 CXXCPP = @CXXCPP@
76 CXXFLAGS = @CXXFLAGS@
77 CYGPATH_W = @CYGPATH_W@
78 C_INCLUDE_DIR = @C_INCLUDE_DIR@
79 DEBUG_FLAGS = @DEBUG_FLAGS@
80 DEFS = @DEFS@
81 ECHO_C = @ECHO_C@
82 ECHO_N = @ECHO_N@
83 ECHO_T = @ECHO_T@
84 EGREP = @EGREP@
85 EXEEXT = @EXEEXT@
86 EXTRA_CXX_FLAGS = @EXTRA_CXX_FLAGS@
87 GLIBCXX_BUILD_DEBUG_FALSE = @GLIBCXX_BUILD_DEBUG_FALSE@
88 GLIBCXX_BUILD_DEBUG_TRUE = @GLIBCXX_BUILD_DEBUG_TRUE@
89 GLIBCXX_BUILD_PCH_FALSE = @GLIBCXX_BUILD_PCH_FALSE@
90 GLIBCXX_BUILD_PCH_TRUE = @GLIBCXX_BUILD_PCH_TRUE@
91 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE = @GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@
92 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE = @GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@
93 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE = @GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@
94 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE = @GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@
95 GLIBCXX_C_HEADERS_C_FALSE = @GLIBCXX_C_HEADERS_C_FALSE@
96 GLIBCXX_C_HEADERS_C_STD_FALSE = @GLIBCXX_C_HEADERS_C_STD_FALSE@
97 GLIBCXX_C_HEADERS_C_STD_TRUE = @GLIBCXX_C_HEADERS_C_STD_TRUE@
98 GLIBCXX_C_HEADERS_C_TRUE = @GLIBCXX_C_HEADERS_C_TRUE@
99 GLIBCXX_HOSTED_FALSE = @GLIBCXX_HOSTED_FALSE@
100 GLIBCXX_HOSTED_TRUE = @GLIBCXX_HOSTED_TRUE@
101 GLIBCXX_INCLUDES = @GLIBCXX_INCLUDES@
102 GLIBCXX_TEST_ABI_FALSE = @GLIBCXX_TEST_ABI_FALSE@
103 GLIBCXX_TEST_ABI_TRUE = @GLIBCXX_TEST_ABI_TRUE@
104 GLIBCXX_TEST_WCHAR_T_FALSE = @GLIBCXX_TEST_WCHAR_T_FALSE@
105 GLIBCXX_TEST_WCHAR_T_TRUE = @GLIBCXX_TEST_WCHAR_T_TRUE@
106 INSTALL_DATA = @INSTALL_DATA@
107 INSTALL_PROGRAM = @INSTALL_PROGRAM@
108 INSTALL_SCRIPT = @INSTALL_SCRIPT@
109 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
110 LIBICONV = @LIBICONV@
111 LIBMATHOBJS = @LIBMATHOBJS@
112 LIBOBJS = @LIBOBJS@
113 LIBS = @LIBS@
114 LIBSUPCXX_PICFLAGS = @LIBSUPCXX_PICFLAGS@
115 LIBTOOL = @LIBTOOL@
116 LN_S = @LN_S@
117 LTLIBOBJS = @LTLIBOBJS@
118 MAINT = @MAINT@
119 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
120 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
121 MAKEINFO = @MAKEINFO@
122 OBJEXT = @OBJEXT@
123 OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
124 OPT_LDFLAGS = @OPT_LDFLAGS@
125 OS_INC_SRCDIR = @OS_INC_SRCDIR@
126 PACKAGE = @PACKAGE@
127 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
128 PACKAGE_NAME = @PACKAGE_NAME@
129 PACKAGE_STRING = @PACKAGE_STRING@
130 PACKAGE_TARNAME = @PACKAGE_TARNAME@
131 PACKAGE_VERSION = @PACKAGE_VERSION@
132 PATH_SEPARATOR = @PATH_SEPARATOR@
133 RANLIB = @RANLIB@
134 SECTION_FLAGS = @SECTION_FLAGS@
135 SECTION_LDFLAGS = @SECTION_LDFLAGS@
136 SET_MAKE = @SET_MAKE@
137 SHELL = @SHELL@
138 STRIP = @STRIP@
139 SYMVER_MAP = @SYMVER_MAP@
140 TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
141 USE_NLS = @USE_NLS@
142 VERSION = @VERSION@
143 WARN_FLAGS = @WARN_FLAGS@
144 WERROR = @WERROR@
145 ac_ct_AR = @ac_ct_AR@
146 ac_ct_AS = @ac_ct_AS@
147 ac_ct_CC = @ac_ct_CC@
148 ac_ct_CXX = @ac_ct_CXX@
149 ac_ct_RANLIB = @ac_ct_RANLIB@
150 ac_ct_STRIP = @ac_ct_STRIP@
151 am__leading_dot = @am__leading_dot@
152 baseline_dir = @baseline_dir@
153 bindir = @bindir@
154 build = @build@
155 build_alias = @build_alias@
156 build_cpu = @build_cpu@
157 build_os = @build_os@
158 build_vendor = @build_vendor@
159 check_msgfmt = @check_msgfmt@
160 datadir = @datadir@
161 enable_shared = @enable_shared@
162 enable_static = @enable_static@
163 exec_prefix = @exec_prefix@
164 glibcxx_MOFILES = @glibcxx_MOFILES@
165 glibcxx_PCHFLAGS = @glibcxx_PCHFLAGS@
166 glibcxx_POFILES = @glibcxx_POFILES@
167 glibcxx_builddir = @glibcxx_builddir@
168 glibcxx_localedir = @glibcxx_localedir@
169 glibcxx_prefixdir = @glibcxx_prefixdir@
170 glibcxx_srcdir = @glibcxx_srcdir@
171 glibcxx_thread_h = @glibcxx_thread_h@
172 glibcxx_toolexecdir = @glibcxx_toolexecdir@
173 glibcxx_toolexeclibdir = @glibcxx_toolexeclibdir@
174 gxx_include_dir = @gxx_include_dir@
175 host = @host@
176 host_alias = @host_alias@
177 host_cpu = @host_cpu@
178 host_os = @host_os@
179 host_vendor = @host_vendor@
180 includedir = @includedir@
181 infodir = @infodir@
182 install_sh = @install_sh@
183 libdir = @libdir@
184 libexecdir = @libexecdir@
185 libtool_VERSION = @libtool_VERSION@
186 localstatedir = @localstatedir@
187 mandir = @mandir@
188 multi_basedir = @multi_basedir@
189 oldincludedir = @oldincludedir@
190 port_specific_symbol_files = @port_specific_symbol_files@
191 prefix = @prefix@
192 program_transform_name = @program_transform_name@
193 sbindir = @sbindir@
194 sharedstatedir = @sharedstatedir@
195 sysconfdir = @sysconfdir@
196 target = @target@
197 target_alias = @target_alias@
198 target_cpu = @target_cpu@
199 target_os = @target_os@
200 target_vendor = @target_vendor@
201 toplevel_srcdir = @toplevel_srcdir@
202
203 AUTOMAKE_OPTIONS = dejagnu
204
205 MAINT_CHARSET = latin1
206
207 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
208 PWD_COMMAND = $${PWDCMD-pwd}
209 STAMP = echo timestamp >
210
211 toolexecdir = $(glibcxx_toolexecdir)
212 toolexeclibdir = $(glibcxx_toolexeclibdir)
213
214 # These bits are all figured out from configure.  Look in acinclude.m4
215 # or configure.ac to see how they are set.  See GLIBCXX_EXPORT_FLAGS.
216 CONFIG_CXXFLAGS = \
217         $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS)
218
219 WARN_CXXFLAGS = \
220         $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once
221
222
223 # -I/-D flags to pass when compiling.
224 AM_CPPFLAGS = $(GLIBCXX_INCLUDES)
225
226 AM_MAKEFLAGS = -j1
227 AM_RUNTESTFLAGS = 
228
229 testsuite_flags_script = ${glibcxx_builddir}/scripts/testsuite_flags
230 AM_CXXFLAGS = $(shell ${testsuite_flags_script} --cxxflags)
231
232 GLIBGCC_DIR = `$(CC) -print-libgcc-file-name | sed 's,/[^/]*$$,,'`
233 GLIBCXX_DIR = ${glibcxx_builddir}/src/.libs
234
235 CXXLINK = \
236         $(LIBTOOL) --tag=CXX --mode=link $(CXX) \
237         -R $(GLIBGCC_DIR) -R $(GLIBCXX_DIR) \
238         $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -lv3test -L. -o $@
239
240
241 noinst_LIBRARIES = libv3test.a
242 libv3test_a_SOURCES = \
243         testsuite_abi.cc \
244         testsuite_allocator.cc \
245         testsuite_hooks.cc 
246
247 @GLIBCXX_TEST_ABI_FALSE@noinst_PROGRAMS = 
248
249 @GLIBCXX_TEST_ABI_TRUE@noinst_PROGRAMS = abi_check
250 abi_check_SOURCES = abi_check.cc
251 abi_check_DEPENDENCIES = libv3test.a
252
253 # Generated lists of files to run.  All of these names are valid make
254 # targets, if you wish to generate a list manually.
255 lists_of_files = \
256    testsuite_files \
257    testsuite_files_interactive \
258    testsuite_files_performance
259
260
261 baseline_file = ${baseline_dir}/baseline_symbols.txt
262 extract_symvers = $(glibcxx_srcdir)/scripts/extract_symvers
263
264 # These two special 'check-script' rules use the bash script
265 # 'check_survey' to do testing. This script is not as portable as the
266 # dejagnu test harness, and is thus off by default. It does produce
267 # interesting output however, including various performance analysis
268 # items like compile time, execution time, and binary size.
269 survey_script = ${glibcxx_builddir}/scripts/check_survey
270
271 # Runs the testsuite/performance tests.
272 # Some of these tests create large (~75MB) files, allocate huge
273 # ammounts of memory, or otherwise tie up machine resources. Thus,
274 # running this is off by default.
275 performance_script = ${glibcxx_srcdir}/scripts/check_performance
276
277 # By adding these files here, automake will remove them for 'make clean'
278 CLEANFILES = *.txt *.tst *.exe core* filebuf_* tmp* ostream_* *.log *.sum \
279              testsuite_* site.exp abi_check baseline_symbols
280
281 subdir = testsuite
282 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
283 CONFIG_HEADER = $(top_builddir)/config.h
284 CONFIG_CLEAN_FILES =
285 LIBRARIES = $(noinst_LIBRARIES)
286
287 libv3test_a_AR = $(AR) cru
288 libv3test_a_LIBADD =
289 am_libv3test_a_OBJECTS = testsuite_abi.$(OBJEXT) \
290         testsuite_allocator.$(OBJEXT) testsuite_hooks.$(OBJEXT)
291 libv3test_a_OBJECTS = $(am_libv3test_a_OBJECTS)
292 @GLIBCXX_TEST_ABI_TRUE@noinst_PROGRAMS = abi_check$(EXEEXT)
293 @GLIBCXX_TEST_ABI_FALSE@noinst_PROGRAMS =
294 PROGRAMS = $(noinst_PROGRAMS)
295
296 am_abi_check_OBJECTS = abi_check.$(OBJEXT)
297 abi_check_OBJECTS = $(am_abi_check_OBJECTS)
298 abi_check_LDADD = $(LDADD)
299 abi_check_LDFLAGS =
300
301 DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
302 depcomp =
303 am__depfiles_maybe =
304 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
305         $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
306 LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
307         $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
308         $(AM_CXXFLAGS) $(CXXFLAGS)
309 CXXLD = $(CXX)
310 DIST_SOURCES = $(libv3test_a_SOURCES) $(abi_check_SOURCES)
311 DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/fragment.am \
312         Makefile.am
313 SOURCES = $(libv3test_a_SOURCES) $(abi_check_SOURCES)
314
315 all: all-am
316
317 .SUFFIXES:
318 .SUFFIXES: .cc .lo .o .obj
319 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/fragment.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
320         cd $(top_srcdir) && \
321           $(AUTOMAKE) --foreign  testsuite/Makefile
322 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  $(top_builddir)/config.status
323         cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
324
325 clean-noinstLIBRARIES:
326         -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
327 libv3test.a: $(libv3test_a_OBJECTS) $(libv3test_a_DEPENDENCIES) 
328         -rm -f libv3test.a
329         $(libv3test_a_AR) libv3test.a $(libv3test_a_OBJECTS) $(libv3test_a_LIBADD)
330         $(RANLIB) libv3test.a
331
332 clean-noinstPROGRAMS:
333         @list='$(noinst_PROGRAMS)'; for p in $$list; do \
334           f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
335           echo " rm -f $$p $$f"; \
336           rm -f $$p $$f ; \
337         done
338 abi_check$(EXEEXT): $(abi_check_OBJECTS) $(abi_check_DEPENDENCIES) 
339         @rm -f abi_check$(EXEEXT)
340         $(CXXLINK) $(abi_check_LDFLAGS) $(abi_check_OBJECTS) $(abi_check_LDADD) $(LIBS)
341
342 mostlyclean-compile:
343         -rm -f *.$(OBJEXT) core *.core
344
345 distclean-compile:
346         -rm -f *.tab.c
347
348 .cc.o:
349         $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
350
351 .cc.obj:
352         $(CXXCOMPILE) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
353
354 .cc.lo:
355         $(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
356
357 mostlyclean-libtool:
358         -rm -f *.lo
359
360 clean-libtool:
361         -rm -rf .libs _libs
362
363 distclean-libtool:
364         -rm -f libtool
365 uninstall-info-am:
366
367 ETAGS = etags
368 ETAGSFLAGS =
369
370 CTAGS = ctags
371 CTAGSFLAGS =
372
373 tags: TAGS
374
375 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
376         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
377         unique=`for i in $$list; do \
378             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
379           done | \
380           $(AWK) '    { files[$$0] = 1; } \
381                END { for (i in files) print i; }'`; \
382         mkid -fID $$unique
383
384 TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
385                 $(TAGS_FILES) $(LISP)
386         tags=; \
387         here=`pwd`; \
388         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
389         unique=`for i in $$list; do \
390             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
391           done | \
392           $(AWK) '    { files[$$0] = 1; } \
393                END { for (i in files) print i; }'`; \
394         test -z "$(ETAGS_ARGS)$$tags$$unique" \
395           || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
396              $$tags $$unique
397
398 ctags: CTAGS
399 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
400                 $(TAGS_FILES) $(LISP)
401         tags=; \
402         here=`pwd`; \
403         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
404         unique=`for i in $$list; do \
405             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
406           done | \
407           $(AWK) '    { files[$$0] = 1; } \
408                END { for (i in files) print i; }'`; \
409         test -z "$(CTAGS_ARGS)$$tags$$unique" \
410           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
411              $$tags $$unique
412
413 GTAGS:
414         here=`$(am__cd) $(top_builddir) && pwd` \
415           && cd $(top_srcdir) \
416           && gtags -i $(GTAGS_ARGS) $$here
417
418 distclean-tags:
419         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
420 RUNTESTFLAGS =
421 DEJATOOL = $(PACKAGE)
422 RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
423 EXPECT = expect
424 RUNTEST = runtest
425
426 check-DEJAGNU: site.exp
427         srcdir=`$(am__cd) $(srcdir) && pwd`; export srcdir; \
428         EXPECT=$(EXPECT); export EXPECT; \
429         runtest=$(RUNTEST); \
430         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
431           l='$(DEJATOOL)'; for tool in $$l; do \
432             $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \
433           done; \
434         else echo "WARNING: could not find \`runtest'" 1>&2; :;\
435         fi
436
437 distclean-DEJAGNU:
438         -rm -f site.exp site.bak
439         -l='$(DEJATOOL)'; for tool in $$l; do \
440           rm -f $$tool.sum $$tool.log; \
441         done
442 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
443
444 top_distdir = ..
445 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
446
447 distdir: $(DISTFILES)
448         $(mkinstalldirs) $(distdir)/..
449         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
450         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
451         list='$(DISTFILES)'; for file in $$list; do \
452           case $$file in \
453             $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
454             $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
455           esac; \
456           if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
457           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
458           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
459             dir="/$$dir"; \
460             $(mkinstalldirs) "$(distdir)$$dir"; \
461           else \
462             dir=''; \
463           fi; \
464           if test -d $$d/$$file; then \
465             if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
466               cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
467             fi; \
468             cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
469           else \
470             test -f $(distdir)/$$file \
471             || cp -p $$d/$$file $(distdir)/$$file \
472             || exit 1; \
473           fi; \
474         done
475 check-am: all-am
476         $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU check-local
477 check: check-am
478 all-am: Makefile $(LIBRARIES) $(PROGRAMS) all-local
479
480 installdirs:
481 install: install-am
482 install-exec: install-exec-am
483 install-data: install-data-am
484 uninstall: uninstall-am
485
486 install-am: all-am
487         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
488
489 installcheck: installcheck-am
490 install-strip:
491         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
492           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
493           `test -z '$(STRIP)' || \
494             echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
495 mostlyclean-generic:
496
497 clean-generic:
498         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
499
500 distclean-generic:
501         -rm -f $(CONFIG_CLEAN_FILES)
502
503 maintainer-clean-generic:
504         @echo "This command is intended for maintainers to use"
505         @echo "it deletes files that may require special tools to rebuild."
506 clean: clean-am
507
508 clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
509         clean-noinstPROGRAMS mostlyclean-am
510
511 distclean: distclean-am
512         -rm -f Makefile
513 distclean-am: clean-am distclean-DEJAGNU distclean-compile \
514         distclean-generic distclean-libtool distclean-tags
515
516 dvi: dvi-am
517
518 dvi-am:
519
520 info: info-am
521
522 info-am:
523
524 install-data-am:
525
526 install-exec-am:
527
528 install-info: install-info-am
529
530 install-man:
531
532 installcheck-am:
533
534 maintainer-clean: maintainer-clean-am
535         -rm -f Makefile
536 maintainer-clean-am: distclean-am maintainer-clean-generic
537
538 mostlyclean: mostlyclean-am
539
540 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
541         mostlyclean-libtool
542
543 pdf: pdf-am
544
545 pdf-am:
546
547 ps: ps-am
548
549 ps-am:
550
551 uninstall-am: uninstall-info-am
552
553 .PHONY: CTAGS GTAGS all all-am all-local check check-DEJAGNU check-am \
554         check-local clean clean-generic clean-libtool \
555         clean-noinstLIBRARIES clean-noinstPROGRAMS ctags distclean \
556         distclean-DEJAGNU distclean-compile distclean-generic \
557         distclean-libtool distclean-tags distdir dvi dvi-am info \
558         info-am install install-am install-data install-data-am \
559         install-exec install-exec-am install-info install-info-am \
560         install-man install-strip installcheck installcheck-am \
561         installdirs maintainer-clean maintainer-clean-generic \
562         mostlyclean mostlyclean-compile mostlyclean-generic \
563         mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
564         uninstall-am uninstall-info-am
565
566
567 all-local: stamp_wchar testsuite_files
568
569 # Enable wchar_t tests if capable.
570 @GLIBCXX_TEST_WCHAR_T_TRUE@stamp_wchar:
571 @GLIBCXX_TEST_WCHAR_T_TRUE@     touch testsuite_wchar_t
572 @GLIBCXX_TEST_WCHAR_T_FALSE@stamp_wchar:
573
574 # We need more things in site.exp, but automake completely controls the
575 # creation of that file; there's no way to append to it without messing up
576 # the dependancy chains.  So we overrule automake.  This rule is exactly
577 # what it would have generated, plus our own additions.
578 site.exp: Makefile
579         @echo 'Making a new site.exp file...'
580         @echo '## these variables are automatically generated by make ##' >site.tmp
581         @echo '# Do not edit here.  If you wish to override these values' >>site.tmp
582         @echo '# edit the last section' >>site.tmp
583         @echo 'set srcdir $(srcdir)' >>site.tmp
584         @echo "set objdir `pwd`" >>site.tmp
585         @echo 'set build_alias "$(build_alias)"' >>site.tmp
586         @echo 'set build_triplet $(build_triplet)' >>site.tmp
587         @echo 'set host_alias "$(host_alias)"' >>site.tmp
588         @echo 'set host_triplet $(host_triplet)' >>site.tmp
589         @echo 'set target_alias "$(target_alias)"' >>site.tmp
590         @echo 'set target_triplet $(target_triplet)' >>site.tmp
591         @echo 'set target_triplet $(target_triplet)' >>site.tmp
592         @echo 'set libiconv "$(LIBICONV)"' >>site.tmp
593         @echo '## All variables above are generated by configure. Do Not Edit ##' >>site.tmp
594         @test ! -f site.exp || \
595           sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
596         @-rm -f site.bak
597         @test ! -f site.exp || mv site.exp site.bak
598         @mv site.tmp site.exp
599
600 # This is automatically run after the generated check-DEJAGNU rule.
601 check-local: check-abi
602
603 current_symbols.txt: ${extract_symvers} ../src/.libs/libstdc++.so
604           -@(${extract_symvers} ../src/.libs/libstdc++.so current_symbols.txt)
605
606 baseline_symbols:
607         -@(output=${baseline_file}; \
608           if test ! -f $${output}; then \
609             echo "Baseline file doesn't exist."; \
610             echo "Try 'make new-abi-baseline' to create it."; \
611             exit 1; \
612           fi; true)
613
614 new-abi-baseline:
615         -@$(mkinstalldirs) ${baseline_dir}
616         -@(output=${baseline_file}; \
617           if test -f $${output}; then \
618             output=$${output}.new; \
619             t=`echo $${output} | sed 's=.*config/abi/=='`; \
620             echo "Baseline file already exists, writing to $${t} instead."; \
621           fi; \
622           ${extract_symvers} ../src/.libs/libstdc++.so $${output})
623
624 # Use 'new-abi-baseline' to create an initial symbol file.  Then run
625 # 'check-abi' to test for changes against that file.
626 @GLIBCXX_TEST_ABI_TRUE@check-abi: abi_check baseline_symbols current_symbols.txt
627 @GLIBCXX_TEST_ABI_TRUE@ -@./abi_check --check ./current_symbols.txt ${baseline_file} \
628 @GLIBCXX_TEST_ABI_TRUE@   2>&1 | tee libstdc++-abi.sum
629 @GLIBCXX_TEST_ABI_TRUE@ -@cp libstdc++-abi.sum libstdc++-abi.log
630
631 @GLIBCXX_TEST_ABI_TRUE@check-abi-verbose: abi_check baseline_symbols current_symbols.txt
632 @GLIBCXX_TEST_ABI_TRUE@ -@./abi_check --check-verbose ./current_symbols.txt ${baseline_file} \
633 @GLIBCXX_TEST_ABI_TRUE@   2>&1 | tee libstdc++-abi.sum
634 @GLIBCXX_TEST_ABI_TRUE@ -@cp libstdc++-abi.sum libstdc++-abi.log
635
636 @GLIBCXX_TEST_ABI_FALSE@check-abi:
637 @GLIBCXX_TEST_ABI_FALSE@check-abi-verbose:
638 check-script: ${survey_script}
639         -@(chmod + ${survey_script}; \
640           ${survey_script} 0)
641
642 check-script-install: ${survey_script}
643         -@(chmod + ${survey_script}; \
644           ${survey_script} 0)
645 check-performance: testsuite_files_performance ${performance_script}
646         -@(chmod + ${performance_script}; \
647           ${performance_script} ${glibcxx_srcdir} ${glibcxx_builddir})
648
649 # This rule generates all of the testsuite_files* lists at once.
650 ${lists_of_files}:
651         ${glibcxx_srcdir}/scripts/create_testsuite_files \
652           ${glibcxx_srcdir}/testsuite `${PWD_COMMAND}`
653
654 .PHONY: baseline_symbols new-abi-baseline check-abi check-abi-verbose \
655 check-script check-script-install check-performance
656 # Tell versions [3.59,3.63) of GNU make to not export all variables.
657 # Otherwise a system limit (for SysV at least) may be exceeded.
658 .NOEXPORT: