OSDN Git Service

* doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / Makefile.am
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.
8
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.
14
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.
19
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/>.
23
24 include $(top_srcdir)/fragment.am
25
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
32
33 ACLOCAL_AMFLAGS = -I . -I .. -I ../config
34
35 # Handy forwarding targets.
36 check-%:
37         cd testsuite && $(MAKE) $@
38
39 doc-%:
40         cd doc && $(MAKE) $@
41
42 # Multilib support.
43 MAKEOVERRIDES=
44
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)
48
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)"
89
90 # Subdir rules rely on $(FLAGS_TO_PASS)
91 FLAGS_TO_PASS = $(AM_MAKEFLAGS)