Makefile.am revision 102782
1## Makefile for the toplevel directory of the GNU C++ Standard library. 2## 3## Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 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. 8 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. 14 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. 19 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, 23## USA. 24 25AUTOMAKE_OPTIONS = 1.3 cygnus 26MAINT_CHARSET = latin1 27 28SUBDIRS = include libio libmath libsupc++ src po testsuite 29 30mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs 31 32# These two special 'check-script' rules use the bash script 'mkcheck' 33# to do testing. This script is not as portable as the dejagnu test 34# harness, and is thus off by default. It does produce interesting 35# output however, including various performance analysis items like 36# compile time, execution time, and binary size. 37check-script: $(top_builddir)/mkcheck 38 -(chmod + $(top_builddir)/mkcheck; \ 39 cd testsuite; \ 40 @glibcpp_builddir@/mkcheck 0) 41 42check-script-install: $(top_builddir)/mkcheck 43 -(chmod + $(top_builddir)/mkcheck; \ 44 cd testsuite; \ 45 @glibcpp_builddir@/mkcheck 1) 46 47baseline_file = @baseline_file@ 48check-abi: $(top_builddir)/testsuite/abi_check 49 -(cd testsuite; \ 50 ./abi_check ${baseline_file}) 51 52# These rules are messy, but are hella worth it. 53doxygen: 54 -(srcdir=`cd ${top_srcdir}; pwd`; \ 55 builddir=`pwd`; \ 56 /bin/sh ${srcdir}/docs/doxygen/run_doxygen \ 57 --mode=user $${srcdir} $${builddir}) 58 59doxygen-maint: 60 -(srcdir=`cd ${top_srcdir}; pwd`; \ 61 builddir=`pwd`; \ 62 /bin/sh ${srcdir}/docs/doxygen/run_doxygen \ 63 --mode=maint $${srcdir} $${builddir}) 64 65doxygen-man: 66 -(srcdir=`cd ${top_srcdir}; pwd`; \ 67 builddir=`pwd`; \ 68 /bin/sh ${srcdir}/docs/doxygen/run_doxygen \ 69 --mode=man $${srcdir} $${builddir}) 70 71.PHONY: doxygen doxygen-maint doxygen-man 72 73# Multilib support. 74MAKEOVERRIDES= 75 76# Multilib variables. 77MULTISRCTOP = 78MULTIBUILDTOP = 79MULTIDIRS = 80MULTISUBDIR = 81MULTIDO = true 82MULTICLEAN = true 83 84# Multilib Makefile bits. 85.PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \ 86 maintainer-clean-multi 87 88all-am: all-multi 89install-am: install-multi 90mostlyclean-am: mostlyclean-multi 91clean-am: clean-multi 92distclean-am: distclean-multi 93maintainer-clean-am: maintainer-clean-multi 94 95all-multi: 96 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do 97install-multi: 98 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do 99mostlyclean-multi: 100 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean 101clean-multi: 102 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean 103distclean-multi: 104 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean 105maintainer-clean-multi: 106 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean 107 108# All the machinations with string instantiations messes up the 109# automake-generated TAGS rule. Make a simple one here. 110TAGS: tags-recursive $(LISP) 111 112# Work around what appears to be a GNU make bug handling MAKEFLAGS 113# values defined in terms of make variables, as is the case for CC and 114# friends when we are called from the top level Makefile. 115AM_MAKEFLAGS = \ 116 "AR_FLAGS=$(AR_FLAGS)" \ 117 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ 118 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ 119 "CFLAGS=$(CFLAGS)" \ 120 "CXXFLAGS=$(CXXFLAGS)" \ 121 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ 122 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ 123 "INSTALL=$(INSTALL)" \ 124 "INSTALL_DATA=$(INSTALL_DATA)" \ 125 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ 126 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ 127 "LDFLAGS=$(LDFLAGS)" \ 128 "LIBCFLAGS=$(LIBCFLAGS)" \ 129 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ 130 "MAKE=$(MAKE)" \ 131 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ 132 "PICFLAG=$(PICFLAG)" \ 133 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \ 134 "SHELL=$(SHELL)" \ 135 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ 136 "exec_prefix=$(exec_prefix)" \ 137 "infodir=$(infodir)" \ 138 "libdir=$(libdir)" \ 139 "includedir=$(includedir)" \ 140 "prefix=$(prefix)" \ 141 "tooldir=$(tooldir)" \ 142 "AR=$(AR)" \ 143 "AS=$(AS)" \ 144 "LD=$(LD)" \ 145 "LIBCFLAGS=$(LIBCFLAGS)" \ 146 "PICFLAG=$(PICFLAG)" \ 147 "RANLIB=$(RANLIB)" \ 148 "NM=$(NM)" \ 149 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \ 150 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ 151 "DESTDIR=$(DESTDIR)" \ 152 "WERROR=$(WERROR)" 153