./:
[official-gcc.git] / libstdc++-v3 / Makefile.am
blobc1f17b651bc51cc97494bb10c2463458a1ba3d29
1 ## Makefile for the toplevel directory of the GNU C++ Standard library.
2 ##
3 ## Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
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.
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 2, 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 COPYING.  If not, write to the Free
22 ## Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
23 ## USA.
25 include $(top_srcdir)/fragment.am
27 if GLIBCXX_HOSTED
28   hosted_source = libmath src po testsuite
29 endif
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 # These rules are messy, but are hella worth it.
36 doxygen:
37         -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
38           builddir=`${PWD_COMMAND}`; \
39           ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
40                     --host_alias=${host_alias} \
41                     --mode=user $${srcdir} $${builddir})
43 doxygen-maint:
44         -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
45           builddir=`${PWD_COMMAND}`; \
46           ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
47                     --host_alias=${host_alias} \
48                     --mode=maint $${srcdir} $${builddir})
50 doxygen-man:
51         -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
52           builddir=`${PWD_COMMAND}`; \
53           ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
54                     --host_alias=${host_alias} \
55                     --mode=man $${srcdir} $${builddir})
57 .PHONY: doxygen doxygen-maint doxygen-man
59 # Handy forwarding targets.
60 check-%:
61         cd testsuite && $(MAKE) $@
63 # Multilib support.
64 MAKEOVERRIDES=
66 # All the machinations with string instantiations messes up the
67 # automake-generated TAGS rule. Make a simple one here.
68 TAGS: tags-recursive $(LISP)
70 # Work around what appears to be a GNU make bug handling MAKEFLAGS
71 # values defined in terms of make variables, as is the case for CC and
72 # friends when we are called from the top level Makefile.
73 AM_MAKEFLAGS = \
74         "AR_FLAGS=$(AR_FLAGS)" \
75         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
76         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
77         "CFLAGS=$(CFLAGS)" \
78         "CXXFLAGS=$(CXXFLAGS)" \
79         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
80         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
81         "INSTALL=$(INSTALL)" \
82         "INSTALL_DATA=$(INSTALL_DATA)" \
83         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
84         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
85         "LDFLAGS=$(LDFLAGS)" \
86         "LIBCFLAGS=$(LIBCFLAGS)" \
87         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
88         "MAKE=$(MAKE)" \
89         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
90         "PICFLAG=$(PICFLAG)" \
91         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
92         "SHELL=$(SHELL)" \
93         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
94         "exec_prefix=$(exec_prefix)" \
95         "infodir=$(infodir)" \
96         "libdir=$(libdir)" \
97         "includedir=$(includedir)" \
98         "prefix=$(prefix)" \
99         "tooldir=$(tooldir)" \
100         "gxx_include_dir=$(gxx_include_dir)" \
101         "AR=$(AR)" \
102         "AS=$(AS)" \
103         "LD=$(LD)" \
104         "RANLIB=$(RANLIB)" \
105         "NM=$(NM)" \
106         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
107         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
108         "DESTDIR=$(DESTDIR)" \
109         "WERROR=$(WERROR)"
111 # Subdir rules rely on $(FLAGS_TO_PASS)
112 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
114 # Installation of distribution html documentation not yet supported
115 # TODO: Write custom install-html rule.
116 .PHONY: install-html
117 install-html: