]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/Makefile.am
7c8f9c2df1de0a6de52daa371e0a2e7509a0e62d
[thirdparty/gcc.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 SUBDIRS = include libsupc++ $(hosted_source)
31
32 ACLOCAL_AMFLAGS = -I . -I .. -I ../config
33
34 # Handy forwarding targets.
35 check-%:
36 cd testsuite && $(MAKE) $@
37
38 doc-%:
39 cd doc && $(MAKE) $@
40
41 # Multilib support.
42 MAKEOVERRIDES=
43
44 # All the machinations with string instantiations messes up the
45 # automake-generated TAGS rule. Make a simple one here.
46 TAGS: tags-recursive $(LISP)
47
48 # Work around what appears to be a GNU make bug handling MAKEFLAGS
49 # values defined in terms of make variables, as is the case for CC and
50 # friends when we are called from the top level Makefile.
51 AM_MAKEFLAGS = \
52 "AR_FLAGS=$(AR_FLAGS)" \
53 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
54 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
55 "CFLAGS=$(CFLAGS)" \
56 "CXXFLAGS=$(CXXFLAGS)" \
57 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
58 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
59 "INSTALL=$(INSTALL)" \
60 "INSTALL_DATA=$(INSTALL_DATA)" \
61 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
62 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
63 "LDFLAGS=$(LDFLAGS)" \
64 "LIBCFLAGS=$(LIBCFLAGS)" \
65 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
66 "MAKE=$(MAKE)" \
67 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
68 "PICFLAG=$(PICFLAG)" \
69 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
70 "SHELL=$(SHELL)" \
71 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
72 "exec_prefix=$(exec_prefix)" \
73 "infodir=$(infodir)" \
74 "libdir=$(libdir)" \
75 "includedir=$(includedir)" \
76 "prefix=$(prefix)" \
77 "tooldir=$(tooldir)" \
78 "gxx_include_dir=$(gxx_include_dir)" \
79 "AR=$(AR)" \
80 "AS=$(AS)" \
81 "LD=$(LD)" \
82 "RANLIB=$(RANLIB)" \
83 "NM=$(NM)" \
84 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
85 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
86 "DESTDIR=$(DESTDIR)" \
87 "WERROR=$(WERROR)"
88
89 # Subdir rules rely on $(FLAGS_TO_PASS)
90 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
91
92 .PHONY: install-html install-pdf
93 install-html:
94 install-pdf: