Makefile.am revision 267654
190792Sgshapiro## Makefile for the toplevel directory of the GNU C++ Standard library.
2261370Sgshapiro##
390792Sgshapiro## Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
490792Sgshapiro## Free Software Foundation, Inc.
590792Sgshapiro##
690792Sgshapiro## This file is part of the libstdc++ version 3 distribution.
790792Sgshapiro## Process this file with automake to produce Makefile.in.
890792Sgshapiro
990792Sgshapiro## This file is part of the GNU ISO C++ Library.  This library is free
1090792Sgshapiro## software; you can redistribute it and/or modify it under the
1190792Sgshapiro## terms of the GNU General Public License as published by the
1290792Sgshapiro## Free Software Foundation; either version 2, or (at your option)
1390792Sgshapiro## any later version.
1490792Sgshapiro
1590792Sgshapiro## This library is distributed in the hope that it will be useful,
16266711Sgshapiro## but WITHOUT ANY WARRANTY; without even the implied warranty of
1790792Sgshapiro## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1890792Sgshapiro## GNU General Public License for more details.
1990792Sgshapiro
2090792Sgshapiro## You should have received a copy of the GNU General Public License along
2190792Sgshapiro## with this library; see the file COPYING.  If not, write to the Free
2290792Sgshapiro## Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
2390792Sgshapiro## USA.
2490792Sgshapiro
2590792Sgshapiroinclude $(top_srcdir)/fragment.am
2690792Sgshapiro
2790792Sgshapiroif GLIBCXX_HOSTED
2890792Sgshapiro  hosted_source = libmath src po testsuite
2990792Sgshapiroendif
3090792Sgshapiro## Keep this list sync'd with acinclude.m4:GLIBCXX_CONFIGURE.
3190792SgshapiroSUBDIRS = include libsupc++ $(hosted_source)
3290792Sgshapiro
3390792SgshapiroACLOCAL_AMFLAGS = -I . -I .. -I ../config
3490792Sgshapiro
3590792Sgshapiro# These rules are messy, but are hella worth it.
3690792Sgshapirodoxygen:
3790792Sgshapiro	-(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
3890792Sgshapiro	  builddir=`${PWD_COMMAND}`; \
3990792Sgshapiro	  ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
4090792Sgshapiro	            --host_alias=${host_alias} \
4190792Sgshapiro	            --mode=user $${srcdir} $${builddir})
4290792Sgshapiro
4390792Sgshapirodoxygen-maint:
4490792Sgshapiro	-(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
4590792Sgshapiro	  builddir=`${PWD_COMMAND}`; \
4690792Sgshapiro	  ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
4790792Sgshapiro	            --host_alias=${host_alias} \
4890792Sgshapiro	            --mode=maint $${srcdir} $${builddir})
4990792Sgshapiro
5090792Sgshapirodoxygen-man:
5190792Sgshapiro	-(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
5290792Sgshapiro	  builddir=`${PWD_COMMAND}`; \
5390792Sgshapiro	  ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
5490792Sgshapiro	            --host_alias=${host_alias} \
5590792Sgshapiro	            --mode=man $${srcdir} $${builddir})
5690792Sgshapiro
5790792Sgshapiro.PHONY: doxygen doxygen-maint doxygen-man
5890792Sgshapiro
5990792Sgshapiro# Handy forwarding targets.
6090792Sgshapirocheck-%:
6190792Sgshapiro	cd testsuite && $(MAKE) $@
62
63# Multilib support.
64MAKEOVERRIDES=
65
66# All the machinations with string instantiations messes up the
67# automake-generated TAGS rule. Make a simple one here.
68TAGS: tags-recursive $(LISP)
69
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.
73AM_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)"
110
111# Subdir rules rely on $(FLAGS_TO_PASS)
112FLAGS_TO_PASS = $(AM_MAKEFLAGS)
113
114# Installation of distribution html documentation not yet supported
115# TODO: Write custom install-html rule.
116.PHONY: install-html
117install-html:
118
119