OSDN Git Service

2003-05-11 Phil Edwards <pme@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / Makefile.am
1 ## Makefile for the testsuite subdirectory of the GNU C++ Standard library.
2 ##
3 ## Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
4 ##
5 ## This file is part of the libstdc++ version 3 distribution.
6 ## Process this file with automake to produce Makefile.in.
7
8 ## This file is part of the GNU ISO C++ Library.  This library is free
9 ## software; you can redistribute it and/or modify it under the
10 ## terms of the GNU General Public License as published by the
11 ## Free Software Foundation; either version 2, or (at your option)
12 ## any later version.
13
14 ## This library is distributed in the hope that it will be useful,
15 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 ## GNU General Public License for more details.
18
19 ## You should have received a copy of the GNU General Public License along
20 ## with this library; see the file COPYING.  If not, write to the Free
21 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22 ## USA.
23
24 AUTOMAKE_OPTIONS =  cygnus dejagnu
25
26 DEJATOOL = libstdc++-v3
27
28 EXPECT = `if [ -f @glibcpp_builddir@/../../expect/expect ] ; then \
29             echo @glibcpp_builddir@/../../expect/expect ; \
30           else echo expect ; fi`
31
32 RUNTEST = `if [ -f @glibcpp_srcdir@/../dejagnu/runtest ] ; then \
33                echo @glibcpp_srcdir@/../dejagnu/runtest ; \
34             else echo runtest; fi`
35
36 AM_RUNTESTFLAGS =
37 RUNTESTFLAGS =
38
39 ## CXX is actually a "C" compiler. These are real C++ programs.
40 ## Do the same thing as `testsuite_flags --build-cxx`
41 CXX_build = @glibcpp_CXX@ 
42 CXX=`echo "$(CXX_build)" | sed 's,gcc/xgcc ,gcc/g++ ,'`
43 CXXLINK = \
44         LD_RUN_PATH=$${LD_RUN_PATH:+$LD_RUN_PATH:}${glibcpp_builddir}/src/.libs\
45         $(LIBTOOL) --tag=CXX --mode=link $(CXX) \
46         $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
47
48 INCLUDES = \
49         -nostdinc++ \
50         @GLIBCPP_INCLUDES@ @LIBSUPCXX_INCLUDES@ @TOPLEVEL_INCLUDES@ 
51
52 ## Build support library.
53 noinst_LIBRARIES = libv3test.a
54 libv3test_a_SOURCES = testsuite_hooks.cc testsuite_allocator.cc
55
56 ## Build support utilities.
57 ## Only build this as native, as need to find startup files and libc to link.
58 if GLIBCPP_BUILD_ABI_CHECK
59 noinst_PROGRAMS = abi_check
60 else
61 noinst_PROGRAMS = 
62 endif
63 abi_check_SOURCES = abi_check.cc
64
65 # Enable wchar_t tests if capable.
66 if GLIBCPP_TEST_WCHAR_T
67 all-local: stamp_wchar
68 else
69 all-local:
70 endif
71
72 stamp_wchar:
73         touch testsuite_wchar_t
74
75 # By adding these files here, automake will remove them for 'make clean'
76 CLEANFILES = *.txt *.tst *.exe core* filebuf_* tmp* ostream_* *.log *.sum \
77              testsuite_* site.exp abi_check