1 ## Makefile for the toplevel directory of the GNU C++ Standard library.
3 ## Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2008, 2009, 2010
4 ## Free Software Foundation, Inc.
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)
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
27 hosted_source = doc src po testsuite
30 ## Keep this list sync'd with acinclude.m4:GLIBCXX_CONFIGURE.
31 ## Note that python must come after src.
32 SUBDIRS = include libsupc++ $(hosted_source) python
34 ACLOCAL_AMFLAGS = -I . -I .. -I ../config
36 # Testsuite/check forwarding targets.
38 cd testsuite && $(MAKE) $@
40 # Documentation forwarding targets.
44 # Documentation conditionals for output.
47 STAMP_INSTALL_XML = doc-install-xml
55 STAMP_INSTALL_HTML = doc-install-html
63 STAMP_INSTALL_MAN = doc-install-man
71 STAMP_INSTALL_PDF = doc-install-pdf
79 STAMP_INSTALL_EPUB = doc-install-epub
82 STAMP_INSTALL_EPUB = doc-install-epub
85 # Documentation primary rules.
105 install-xml: $(STAMP_INSTALL_XML)
108 install-html: $(STAMP_INSTALL_HTML)
111 install-man: $(STAMP_INSTALL_MAN)
114 install-pdf: $(STAMP_INSTALL_PDF)
117 install-epub: $(STAMP_INSTALL_EPUB)
131 # All the machinations with string instantiations messes up the
132 # automake-generated TAGS rule. Make a simple one here.
133 TAGS: tags-recursive $(LISP)
135 # Work around what appears to be a GNU make bug handling MAKEFLAGS
136 # values defined in terms of make variables, as is the case for CC and
137 # friends when we are called from the top level Makefile.
139 "AR_FLAGS=$(AR_FLAGS)" \
140 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
141 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
143 "CXXFLAGS=$(CXXFLAGS)" \
144 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
145 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
146 "INSTALL=$(INSTALL)" \
147 "INSTALL_DATA=$(INSTALL_DATA)" \
148 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
149 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
150 "LDFLAGS=$(LDFLAGS)" \
151 "LIBCFLAGS=$(LIBCFLAGS)" \
152 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
154 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
155 "PICFLAG=$(PICFLAG)" \
156 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
158 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
159 "exec_prefix=$(exec_prefix)" \
160 "infodir=$(infodir)" \
162 "includedir=$(includedir)" \
164 "tooldir=$(tooldir)" \
165 "gxx_include_dir=$(gxx_include_dir)" \
171 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
172 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
173 "DESTDIR=$(DESTDIR)" \
176 # Subdir rules rely on $(FLAGS_TO_PASS)
177 FLAGS_TO_PASS = $(AM_MAKEFLAGS)