]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/Makefile.am
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[thirdparty/gcc.git] / libstdc++-v3 / Makefile.am
CommitLineData
b2dad0e3
BK
1## Makefile for the toplevel directory of the GNU C++ Standard library.
2##
85ec4feb 3## Copyright (C) 1997-2018 Free Software Foundation, Inc.
b2dad0e3
BK
4##
5## This file is part of the libstdc++ version 3 distribution.
6## Process this file with automake to produce Makefile.in.
7
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
748086b7 11## Free Software Foundation; either version 3, or (at your option)
b2dad0e3
BK
12## any later version.
13
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.
18
19## You should have received a copy of the GNU General Public License along
748086b7
JJ
20## with this library; see the file COPYING3. If not see
21## <http://www.gnu.org/licenses/>.
b2dad0e3 22
0df3f383 23include $(top_srcdir)/fragment.am
b2dad0e3 24
92eabea2 25if GLIBCXX_HOSTED
0088583b
JW
26## Note that python must come after src.
27 hosted_source = src doc po testsuite python
92eabea2 28endif
b25e6b79 29
82ba99d5 30## Keep this list sync'd with acinclude.m4:GLIBCXX_CONFIGURE.
0088583b 31SUBDIRS = include libsupc++ $(hosted_source)
c7053b70 32
c41f82b2
KC
33ACLOCAL_AMFLAGS = -I . -I .. -I ../config
34
b25e6b79 35# Testsuite/check forwarding targets.
2d52e9e3
PE
36check-%:
37 cd testsuite && $(MAKE) $@
38
b25e6b79 39# Documentation forwarding targets.
4312e020
BK
40doc-%:
41 cd doc && $(MAKE) $@
42
b25e6b79
BK
43# Documentation conditionals for output.
44if BUILD_XML
45STAMP_XML = doc-xml
46STAMP_INSTALL_XML = doc-install-xml
47else
48STAMP_XML =
49STAMP_INSTALL_XML =
50endif
51
52if BUILD_HTML
53STAMP_HTML = doc-html
54STAMP_INSTALL_HTML = doc-install-html
55else
56STAMP_HTML =
57STAMP_INSTALL_HTML =
58endif
59
60if BUILD_MAN
61STAMP_MAN = doc-man
62STAMP_INSTALL_MAN = doc-install-man
63else
64STAMP_MAN =
65STAMP_INSTALL_MAN =
66endif
67
68if BUILD_PDF
69STAMP_PDF = doc-pdf
70STAMP_INSTALL_PDF = doc-install-pdf
71else
72STAMP_PDF =
73STAMP_INSTALL_PDF =
74endif
75
76if BUILD_EPUB
77STAMP_EPUB = doc-epub
78STAMP_INSTALL_EPUB = doc-install-epub
79else
80STAMP_EPUB = doc-epub
81STAMP_INSTALL_EPUB = doc-install-epub
82endif
83
84# Documentation primary rules.
85#
86# xml:
87# html:
88# pdf:
89# man:
90# info:
91# ps:
92# dvi:
93# epub:
94# install-xml:
95# install-html:
96# install-pdf:
97# install-man:
98# install-info:
99# install-ps:
100# install-dvi:
101# install-epub:
102
103xml: $(STAMP_XML)
104install-xml: $(STAMP_INSTALL_XML)
105
106html: $(STAMP_HTML)
107install-html: $(STAMP_INSTALL_HTML)
108
109man: $(STAMP_MAN)
110install-man: $(STAMP_INSTALL_MAN)
111
112pdf: $(STAMP_PDF)
113install-pdf: $(STAMP_INSTALL_PDF)
114
115epub: $(STAMP_EPUB)
116install-epub: $(STAMP_INSTALL_EPUB)
117
118info:
119install-info:
120
121ps:
122install-ps:
123
124dvi:
125install-dvi:
126
b2dad0e3
BK
127# Multilib support.
128MAKEOVERRIDES=
129
d94611f1 130# All the machinations with string instantiations messes up the
bf93f43b 131# automake-generated TAGS rule. Make a simple one here.
d94611f1
BK
132TAGS: tags-recursive $(LISP)
133
b2dad0e3
BK
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.
137AM_MAKEFLAGS = \
138 "AR_FLAGS=$(AR_FLAGS)" \
139 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
140 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
141 "CFLAGS=$(CFLAGS)" \
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)" \
152 "MAKE=$(MAKE)" \
153 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
b2dad0e3 154 "SHELL=$(SHELL)" \
c6192d88 155 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
b2dad0e3
BK
156 "exec_prefix=$(exec_prefix)" \
157 "infodir=$(infodir)" \
158 "libdir=$(libdir)" \
159 "includedir=$(includedir)" \
160 "prefix=$(prefix)" \
161 "tooldir=$(tooldir)" \
3bf74da2 162 "gxx_include_dir=$(gxx_include_dir)" \
b2dad0e3
BK
163 "AR=$(AR)" \
164 "AS=$(AS)" \
b2dad0e3 165 "LD=$(LD)" \
b2dad0e3
BK
166 "RANLIB=$(RANLIB)" \
167 "NM=$(NM)" \
168 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
169 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
f5e79dda 170 "DESTDIR=$(DESTDIR)" \
ca618b60 171 "WERROR=$(WERROR)"
8ddfd7e5
DJ
172
173# Subdir rules rely on $(FLAGS_TO_PASS)
174FLAGS_TO_PASS = $(AM_MAKEFLAGS)
22e05272
JM
175
176include $(top_srcdir)/../multilib.am