2012-11-28 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / libstdc++-v3 / Makefile.am
blob8be4f6c3c43bbefe901bcffbb4e05fa27e02c67d
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, 2010,
4 ## 2012 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.
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.
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
26 if GLIBCXX_HOSTED
27   hosted_source = src doc po testsuite
28 endif
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.
37 check-%:
38         cd testsuite && $(MAKE) $@
40 # Documentation forwarding targets.
41 doc-%:
42         cd doc && $(MAKE) $@
44 # Documentation conditionals for output.
45 if BUILD_XML
46 STAMP_XML = doc-xml
47 STAMP_INSTALL_XML = doc-install-xml
48 else
49 STAMP_XML =
50 STAMP_INSTALL_XML =
51 endif
53 if BUILD_HTML
54 STAMP_HTML = doc-html
55 STAMP_INSTALL_HTML = doc-install-html
56 else
57 STAMP_HTML =
58 STAMP_INSTALL_HTML =
59 endif
61 if BUILD_MAN
62 STAMP_MAN = doc-man
63 STAMP_INSTALL_MAN = doc-install-man
64 else
65 STAMP_MAN =
66 STAMP_INSTALL_MAN =
67 endif
69 if BUILD_PDF
70 STAMP_PDF = doc-pdf
71 STAMP_INSTALL_PDF = doc-install-pdf
72 else
73 STAMP_PDF =
74 STAMP_INSTALL_PDF =
75 endif
77 if BUILD_EPUB
78 STAMP_EPUB = doc-epub
79 STAMP_INSTALL_EPUB = doc-install-epub
80 else
81 STAMP_EPUB = doc-epub
82 STAMP_INSTALL_EPUB = doc-install-epub
83 endif
85 # Documentation primary rules.
87 # xml:
88 # html:
89 # pdf:
90 # man:
91 # info:
92 # ps:
93 # dvi:
94 # epub:
95 # install-xml:
96 # install-html:
97 # install-pdf:
98 # install-man:
99 # install-info:
100 # install-ps:
101 # install-dvi:
102 # install-epub:
104 xml: $(STAMP_XML)
105 install-xml: $(STAMP_INSTALL_XML)
107 html: $(STAMP_HTML)
108 install-html: $(STAMP_INSTALL_HTML)
110 man: $(STAMP_MAN)
111 install-man: $(STAMP_INSTALL_MAN)
113 pdf: $(STAMP_PDF)
114 install-pdf: $(STAMP_INSTALL_PDF)
116 epub: $(STAMP_EPUB)
117 install-epub: $(STAMP_INSTALL_EPUB)
119 info:
120 install-info:
123 install-ps:
125 dvi:
126 install-dvi:
128 # Multilib support.
129 MAKEOVERRIDES=
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.
138 AM_MAKEFLAGS = \
139         "AR_FLAGS=$(AR_FLAGS)" \
140         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
141         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
142         "CFLAGS=$(CFLAGS)" \
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)" \
153         "MAKE=$(MAKE)" \
154         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
155         "SHELL=$(SHELL)" \
156         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
157         "exec_prefix=$(exec_prefix)" \
158         "infodir=$(infodir)" \
159         "libdir=$(libdir)" \
160         "includedir=$(includedir)" \
161         "prefix=$(prefix)" \
162         "tooldir=$(tooldir)" \
163         "gxx_include_dir=$(gxx_include_dir)" \
164         "AR=$(AR)" \
165         "AS=$(AS)" \
166         "LD=$(LD)" \
167         "RANLIB=$(RANLIB)" \
168         "NM=$(NM)" \
169         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
170         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
171         "DESTDIR=$(DESTDIR)" \
172         "WERROR=$(WERROR)"
174 # Subdir rules rely on $(FLAGS_TO_PASS)
175 FLAGS_TO_PASS = $(AM_MAKEFLAGS)