1 ## Makefile for the toplevel directory of the GNU C++ Standard library.
3 ## Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
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 2, 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 COPYING. If not, write to the Free
22 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
25 include $(top_srcdir)/fragment.am
27 ## Keep this list sync'd with acinclude.m4:GLIBCXX_CONFIGURE.
28 SUBDIRS = include libmath libsupc++ src po testsuite
30 # These rules are messy, but are hella worth it.
32 -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
33 builddir=`${PWD_COMMAND}`; \
34 ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
35 --mode=user $${srcdir} $${builddir})
38 -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
39 builddir=`${PWD_COMMAND}`; \
40 ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
41 --mode=maint $${srcdir} $${builddir})
44 -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
45 builddir=`${PWD_COMMAND}`; \
46 ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
47 --mode=man $${srcdir} $${builddir})
49 .PHONY: doxygen doxygen-maint doxygen-man
54 # Multilib support variables.
63 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
64 maintainer-clean-multi
66 all-recursive: all-multi
67 install-recursive: install-multi
68 mostlyclean-recursive: mostlyclean-multi
69 clean-recursive: clean-multi
70 distclean-recursive: distclean-multi
71 maintainer-clean-recursive: maintainer-clean-multi
74 : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
76 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
78 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
80 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
82 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
83 maintainer-clean-multi:
84 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
86 # All the machinations with string instantiations messes up the
87 # automake-generated TAGS rule. Make a simple one here.
88 TAGS: tags-recursive $(LISP)
90 # Work around what appears to be a GNU make bug handling MAKEFLAGS
91 # values defined in terms of make variables, as is the case for CC and
92 # friends when we are called from the top level Makefile.
94 "AR_FLAGS=$(AR_FLAGS)" \
95 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
96 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
98 "CXXFLAGS=$(CXXFLAGS)" \
99 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
100 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
101 "INSTALL=$(INSTALL)" \
102 "INSTALL_DATA=$(INSTALL_DATA)" \
103 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
104 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
105 "LDFLAGS=$(LDFLAGS)" \
106 "LIBCFLAGS=$(LIBCFLAGS)" \
107 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
109 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
110 "PICFLAG=$(PICFLAG)" \
111 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
113 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
114 "exec_prefix=$(exec_prefix)" \
115 "infodir=$(infodir)" \
117 "includedir=$(includedir)" \
119 "tooldir=$(tooldir)" \
120 "gxx_include_dir=$(gxx_include_dir)" \
124 "LIBCFLAGS=$(LIBCFLAGS)" \
125 "PICFLAG=$(PICFLAG)" \
128 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
129 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
130 "DESTDIR=$(DESTDIR)" \
133 # Subdir rules rely on $(FLAGS_TO_PASS)
134 FLAGS_TO_PASS = $(AM_MAKEFLAGS)