197403Sobrien## Makefile for the toplevel directory of the GNU C++ Standard library.
297403Sobrien##
3110614Skan## Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
497403Sobrien## Free Software Foundation, Inc.
597403Sobrien##
697403Sobrien## This file is part of the libstdc++ version 3 distribution.
797403Sobrien## Process this file with automake to produce Makefile.in.
897403Sobrien
997403Sobrien## This file is part of the GNU ISO C++ Library.  This library is free
1097403Sobrien## software; you can redistribute it and/or modify it under the
1197403Sobrien## terms of the GNU General Public License as published by the
1297403Sobrien## Free Software Foundation; either version 2, or (at your option)
1397403Sobrien## any later version.
1497403Sobrien
1597403Sobrien## This library is distributed in the hope that it will be useful,
1697403Sobrien## but WITHOUT ANY WARRANTY; without even the implied warranty of
1797403Sobrien## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1897403Sobrien## GNU General Public License for more details.
1997403Sobrien
2097403Sobrien## You should have received a copy of the GNU General Public License along
2197403Sobrien## with this library; see the file COPYING.  If not, write to the Free
22169691Skan## Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
2397403Sobrien## USA.
2497403Sobrien
25132720Skaninclude $(top_srcdir)/fragment.am
2697403Sobrien
27132720Skanif GLIBCXX_HOSTED
28169691Skan  hosted_source = libmath src po testsuite
29132720Skanendif
30132720Skan## Keep this list sync'd with acinclude.m4:GLIBCXX_CONFIGURE.
31169691SkanSUBDIRS = include libsupc++ $(hosted_source)
3297403Sobrien
33169691SkanACLOCAL_AMFLAGS = -I . -I .. -I ../config
34169691Skan
3597403Sobrien# These rules are messy, but are hella worth it.
3697403Sobriendoxygen:
37117397Skan	-(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
38117397Skan	  builddir=`${PWD_COMMAND}`; \
39132720Skan	  ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
40169691Skan	            --host_alias=${host_alias} \
4197403Sobrien	            --mode=user $${srcdir} $${builddir})
4297403Sobrien
4397403Sobriendoxygen-maint:
44117397Skan	-(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
45117397Skan	  builddir=`${PWD_COMMAND}`; \
46132720Skan	  ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
47169691Skan	            --host_alias=${host_alias} \
4897403Sobrien	            --mode=maint $${srcdir} $${builddir})
4997403Sobrien
5097403Sobriendoxygen-man:
51117397Skan	-(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
52117397Skan	  builddir=`${PWD_COMMAND}`; \
53132720Skan	  ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
54169691Skan	            --host_alias=${host_alias} \
5597403Sobrien	            --mode=man $${srcdir} $${builddir})
5697403Sobrien
5797403Sobrien.PHONY: doxygen doxygen-maint doxygen-man
5897403Sobrien
59132720Skan# Handy forwarding targets.
60132720Skancheck-%:
61132720Skan	cd testsuite && $(MAKE) $@
62132720Skan
6397403Sobrien# Multilib support.
6497403SobrienMAKEOVERRIDES=
6597403Sobrien
6697403Sobrien# All the machinations with string instantiations messes up the
6797403Sobrien# automake-generated TAGS rule. Make a simple one here.
6897403SobrienTAGS: tags-recursive $(LISP)
6997403Sobrien
7097403Sobrien# Work around what appears to be a GNU make bug handling MAKEFLAGS
7197403Sobrien# values defined in terms of make variables, as is the case for CC and
7297403Sobrien# friends when we are called from the top level Makefile.
7397403SobrienAM_MAKEFLAGS = \
7497403Sobrien	"AR_FLAGS=$(AR_FLAGS)" \
7597403Sobrien	"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
7697403Sobrien	"CC_FOR_TARGET=$(CC_FOR_TARGET)" \
7797403Sobrien	"CFLAGS=$(CFLAGS)" \
7897403Sobrien	"CXXFLAGS=$(CXXFLAGS)" \
7997403Sobrien	"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
8097403Sobrien	"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
8197403Sobrien	"INSTALL=$(INSTALL)" \
8297403Sobrien	"INSTALL_DATA=$(INSTALL_DATA)" \
8397403Sobrien	"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
8497403Sobrien	"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
8597403Sobrien	"LDFLAGS=$(LDFLAGS)" \
8697403Sobrien	"LIBCFLAGS=$(LIBCFLAGS)" \
8797403Sobrien	"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
8897403Sobrien	"MAKE=$(MAKE)" \
8997403Sobrien	"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
9097403Sobrien	"PICFLAG=$(PICFLAG)" \
9197403Sobrien	"PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
9297403Sobrien	"SHELL=$(SHELL)" \
9397403Sobrien	"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
9497403Sobrien	"exec_prefix=$(exec_prefix)" \
9597403Sobrien	"infodir=$(infodir)" \
9697403Sobrien	"libdir=$(libdir)" \
9797403Sobrien	"includedir=$(includedir)" \
9897403Sobrien	"prefix=$(prefix)" \
9997403Sobrien	"tooldir=$(tooldir)" \
100117397Skan	"gxx_include_dir=$(gxx_include_dir)" \
10197403Sobrien	"AR=$(AR)" \
10297403Sobrien	"AS=$(AS)" \
10397403Sobrien	"LD=$(LD)" \
10497403Sobrien	"RANLIB=$(RANLIB)" \
10597403Sobrien	"NM=$(NM)" \
10697403Sobrien	"NM_FOR_BUILD=$(NM_FOR_BUILD)" \
10797403Sobrien	"NM_FOR_TARGET=$(NM_FOR_TARGET)" \
10897403Sobrien	"DESTDIR=$(DESTDIR)" \
109132720Skan	"WERROR=$(WERROR)"
110117397Skan
111117397Skan# Subdir rules rely on $(FLAGS_TO_PASS)
112117397SkanFLAGS_TO_PASS = $(AM_MAKEFLAGS)
113169691Skan
114169691Skan# Installation of distribution html documentation not yet supported
115169691Skan# TODO: Write custom install-html rule.
116169691Skan.PHONY: install-html
117169691Skaninstall-html:
118169691Skan
119