OSDN Git Service

2002-08-22 Benjamin Kosnik <bkoz@redhat.com>
[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 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_hooks --build-cxx`
41 CXX_fake = @glibcpp_CXX@ 
42 CXX=`echo $(CXX_fake) | sed 's/xgcc/g++/g'`
43 CXXLINK = \
44         $(LIBTOOL) --tag=CXX --mode=link $(CXX) \
45         $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
46
47 INCLUDES = \
48         -nostdinc++ \
49         @GLIBCPP_INCLUDES@ @LIBSUPCXX_INCLUDES@ @TOPLEVEL_INCLUDES@ 
50
51 ## Build support library.
52 noinst_LIBRARIES = libv3test.a
53 libv3test_a_SOURCES = testsuite_hooks.cc
54
55 ## Build support utilities.
56 noinst_PROGRAMS = abi_check
57 abi_check_SOURCES = abi_check.cc