1 ## Makefile for the testsuite subdirectory of the GNU C++ Standard library.
3 ## Copyright (C) 2001, 2002 Free Software Foundation, Inc.
5 ## This file is part of the libstdc++ version 3 distribution.
6 ## Process this file with automake to produce Makefile.in.
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)
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.
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,
24 AUTOMAKE_OPTIONS = cygnus dejagnu
26 DEJATOOL = libstdc++-v3
28 EXPECT = `if [ -f @glibcpp_builddir@/../../expect/expect ] ; then \
29 echo @glibcpp_builddir@/../../expect/expect ; \
30 else echo expect ; fi`
32 RUNTEST = `if [ -f @glibcpp_srcdir@/../dejagnu/runtest ] ; then \
33 echo @glibcpp_srcdir@/../dejagnu/runtest ; \
34 else echo runtest; fi`
39 ## CXX is actually a "C" compiler. These are real C++ programs.
40 ## Do the same thing as `testsuite_flags --build-cxx`
41 CXX_fake = @glibcpp_CXX@
42 CXX=`echo $(CXX_fake) | sed 's/xgcc/g++/g'`
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 $@
50 @GLIBCPP_INCLUDES@ @LIBSUPCXX_INCLUDES@ @TOPLEVEL_INCLUDES@
52 ## Build support library.
53 noinst_LIBRARIES = libv3test.a
54 libv3test_a_SOURCES = testsuite_hooks.cc testsuite_allocator.cc
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
63 abi_check_SOURCES = abi_check.cc