1 ## Makefile for the toplevel directory of the GNU C++ Standard library.
3 ## Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2008
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, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
25 include $(top_srcdir)/fragment.am
28 hosted_source = libmath doc src po testsuite
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 # Handy forwarding targets.
37 cd testsuite && $(MAKE) $@
45 # All the machinations with string instantiations messes up the
46 # automake-generated TAGS rule. Make a simple one here.
47 TAGS: tags-recursive $(LISP)
49 # Work around what appears to be a GNU make bug handling MAKEFLAGS
50 # values defined in terms of make variables, as is the case for CC and
51 # friends when we are called from the top level Makefile.
53 "AR_FLAGS=$(AR_FLAGS)" \
54 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
55 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
57 "CXXFLAGS=$(CXXFLAGS)" \
58 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
59 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
60 "INSTALL=$(INSTALL)" \
61 "INSTALL_DATA=$(INSTALL_DATA)" \
62 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
63 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
64 "LDFLAGS=$(LDFLAGS)" \
65 "LIBCFLAGS=$(LIBCFLAGS)" \
66 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
68 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
69 "PICFLAG=$(PICFLAG)" \
70 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
72 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
73 "exec_prefix=$(exec_prefix)" \
74 "infodir=$(infodir)" \
76 "includedir=$(includedir)" \
78 "tooldir=$(tooldir)" \
79 "gxx_include_dir=$(gxx_include_dir)" \
85 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
86 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
87 "DESTDIR=$(DESTDIR)" \
90 # Subdir rules rely on $(FLAGS_TO_PASS)
91 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
93 .PHONY: install-html install-pdf