* gcc.c-torture/execute/pr44683.x: New.
[official-gcc.git] / libstdc++-v3 / Makefile.am
blobc7a22aaa33c7e5861e3c74c077d30772666829f8
1 ## Makefile for the toplevel directory of the GNU C++ Standard library.
2 ##
3 ## Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2008, 2009
4 ## Free Software Foundation, Inc.
5 ##
6 ## This file is part of the libstdc++ version 3 distribution.
7 ## Process this file with automake to produce Makefile.in.
9 ## This file is part of the GNU ISO C++ Library.  This library is free
10 ## software; you can redistribute it and/or modify it under the
11 ## terms of the GNU General Public License as published by the
12 ## Free Software Foundation; either version 3, or (at your option)
13 ## any later version.
15 ## This library is distributed in the hope that it will be useful,
16 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 ## GNU General Public License for more details.
20 ## You should have received a copy of the GNU General Public License along
21 ## with this library; see the file COPYING3.  If not see
22 ## <http://www.gnu.org/licenses/>.
24 include $(top_srcdir)/fragment.am
26 if GLIBCXX_HOSTED
27   hosted_source = doc src po testsuite
28 endif
29 ## Keep this list sync'd with acinclude.m4:GLIBCXX_CONFIGURE.
30 ## Note that python must come after src.
31 SUBDIRS = include libsupc++ $(hosted_source) python
33 ACLOCAL_AMFLAGS = -I . -I .. -I ../config
35 # Handy forwarding targets.
36 check-%:
37         cd testsuite && $(MAKE) $@
39 doc-%:
40         cd doc && $(MAKE) $@
42 # Multilib support.
43 MAKEOVERRIDES=
45 # All the machinations with string instantiations messes up the
46 # automake-generated TAGS rule. Make a simple one here.
47 TAGS: tags-recursive $(LISP)
49 # Work around what appears to be a GNU make bug handling MAKEFLAGS
50 # values defined in terms of make variables, as is the case for CC and
51 # friends when we are called from the top level Makefile.
52 AM_MAKEFLAGS = \
53         "AR_FLAGS=$(AR_FLAGS)" \
54         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
55         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
56         "CFLAGS=$(CFLAGS)" \
57         "CXXFLAGS=$(CXXFLAGS)" \
58         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
59         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
60         "INSTALL=$(INSTALL)" \
61         "INSTALL_DATA=$(INSTALL_DATA)" \
62         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
63         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
64         "LDFLAGS=$(LDFLAGS)" \
65         "LIBCFLAGS=$(LIBCFLAGS)" \
66         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
67         "MAKE=$(MAKE)" \
68         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
69         "PICFLAG=$(PICFLAG)" \
70         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
71         "SHELL=$(SHELL)" \
72         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
73         "exec_prefix=$(exec_prefix)" \
74         "infodir=$(infodir)" \
75         "libdir=$(libdir)" \
76         "includedir=$(includedir)" \
77         "prefix=$(prefix)" \
78         "tooldir=$(tooldir)" \
79         "gxx_include_dir=$(gxx_include_dir)" \
80         "AR=$(AR)" \
81         "AS=$(AS)" \
82         "LD=$(LD)" \
83         "RANLIB=$(RANLIB)" \
84         "NM=$(NM)" \
85         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
86         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
87         "DESTDIR=$(DESTDIR)" \
88         "WERROR=$(WERROR)"
90 # Subdir rules rely on $(FLAGS_TO_PASS)
91 FLAGS_TO_PASS = $(AM_MAKEFLAGS)