1 ## Makefile for the toplevel directory of the GNU C++ Standard library.
3 ## Copyright (C) 1997-2016 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 3, 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 COPYING3. If not see
21 ## <http://www.gnu.org/licenses/>.
23 include $(top_srcdir)/fragment.am
26 ## Note that python must come after src.
27 hosted_source = src doc po testsuite python
30 ## Keep this list sync'd with acinclude.m4:GLIBCXX_CONFIGURE.
31 SUBDIRS = include libsupc++ $(hosted_source)
33 ACLOCAL_AMFLAGS = -I . -I .. -I ../config
35 # Testsuite/check forwarding targets.
37 cd testsuite && $(MAKE) $@
39 # Documentation forwarding targets.
43 # Documentation conditionals for output.
46 STAMP_INSTALL_XML = doc-install-xml
54 STAMP_INSTALL_HTML = doc-install-html
62 STAMP_INSTALL_MAN = doc-install-man
70 STAMP_INSTALL_PDF = doc-install-pdf
78 STAMP_INSTALL_EPUB = doc-install-epub
81 STAMP_INSTALL_EPUB = doc-install-epub
84 # Documentation primary rules.
104 install-xml: $(STAMP_INSTALL_XML)
107 install-html: $(STAMP_INSTALL_HTML)
110 install-man: $(STAMP_INSTALL_MAN)
113 install-pdf: $(STAMP_INSTALL_PDF)
116 install-epub: $(STAMP_INSTALL_EPUB)
130 # All the machinations with string instantiations messes up the
131 # automake-generated TAGS rule. Make a simple one here.
132 TAGS: tags-recursive $(LISP)
134 # Work around what appears to be a GNU make bug handling MAKEFLAGS
135 # values defined in terms of make variables, as is the case for CC and
136 # friends when we are called from the top level Makefile.
138 "AR_FLAGS=$(AR_FLAGS)" \
139 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
140 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
142 "CXXFLAGS=$(CXXFLAGS)" \
143 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
144 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
145 "INSTALL=$(INSTALL)" \
146 "INSTALL_DATA=$(INSTALL_DATA)" \
147 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
148 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
149 "LDFLAGS=$(LDFLAGS)" \
150 "LIBCFLAGS=$(LIBCFLAGS)" \
151 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
153 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
155 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
156 "exec_prefix=$(exec_prefix)" \
157 "infodir=$(infodir)" \
159 "includedir=$(includedir)" \
161 "tooldir=$(tooldir)" \
162 "gxx_include_dir=$(gxx_include_dir)" \
168 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
169 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
170 "DESTDIR=$(DESTDIR)" \
173 # Subdir rules rely on $(FLAGS_TO_PASS)
174 FLAGS_TO_PASS = $(AM_MAKEFLAGS)