2002-01-28 Phil Edwards <pme@gcc.gnu.org>
[official-gcc.git] / libstdc++-v3 / Makefile.am
bloba4b11a7898d22cbcb31371bb1fecc9c2507def26
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.
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.
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,
23 ## USA.
25 AUTOMAKE_OPTIONS = 1.3 cygnus
26 MAINT_CHARSET = latin1
28 SUBDIRS = include libio libmath libsupc++ src po testsuite 
30 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
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.
37 check-script: $(top_builddir)/mkcheck
38         -(chmod + $(top_builddir)/mkcheck; \
39           cd testsuite; \
40           @glibcpp_builddir@/mkcheck 0)
42 check-script-install: $(top_builddir)/mkcheck
43         -(chmod + $(top_builddir)/mkcheck; \
44           cd testsuite; \
45           @glibcpp_builddir@/mkcheck 1)
47 # These rules are messy, but are hella worth it.
48 doxygen:
49         -(srcdir=`cd ${top_srcdir}; pwd`; \
50           builddir=`pwd`; \
51           /bin/sh ${srcdir}/docs/doxygen/run_doxygen \
52                     --mode=user $${srcdir} $${builddir})
54 doxygen-maint:
55         -(srcdir=`cd ${top_srcdir}; pwd`; \
56           builddir=`pwd`; \
57           /bin/sh ${srcdir}/docs/doxygen/run_doxygen \
58                     --mode=maint $${srcdir} $${builddir})
60 doxygen-man:
61         -(srcdir=`cd ${top_srcdir}; pwd`; \
62           builddir=`pwd`; \
63           /bin/sh ${srcdir}/docs/doxygen/run_doxygen \
64                     --mode=man $${srcdir} $${builddir})
66 .PHONY: doxygen doxygen-maint doxygen-man
68 # Multilib support.
69 MAKEOVERRIDES=
71 # Multilib variables.
72 MULTISRCTOP =
73 MULTIBUILDTOP =
74 MULTIDIRS =
75 MULTISUBDIR =
76 MULTIDO = true
77 MULTICLEAN = true
79 # Multilib Makefile bits.
80 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
81         maintainer-clean-multi
83 all-am: all-multi
84 install-am: install-multi
85 mostlyclean-am: mostlyclean-multi
86 clean-am: clean-multi
87 distclean-am: distclean-multi
88 maintainer-clean-am: maintainer-clean-multi
90 all-multi:
91         $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
92 install-multi:
93         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
94 mostlyclean-multi:
95         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
96 clean-multi:
97         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
98 distclean-multi:
99         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
100 maintainer-clean-multi:
101         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
103 # All the machinations with string instantiations messes up the
104 # automake-generated TAGS rule. Make a simple one here.
105 TAGS: tags-recursive $(LISP)
107 # Work around what appears to be a GNU make bug handling MAKEFLAGS
108 # values defined in terms of make variables, as is the case for CC and
109 # friends when we are called from the top level Makefile.
110 AM_MAKEFLAGS = \
111         "AR_FLAGS=$(AR_FLAGS)" \
112         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
113         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
114         "CFLAGS=$(CFLAGS)" \
115         "CXXFLAGS=$(CXXFLAGS)" \
116         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
117         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
118         "INSTALL=$(INSTALL)" \
119         "INSTALL_DATA=$(INSTALL_DATA)" \
120         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
121         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
122         "LDFLAGS=$(LDFLAGS)" \
123         "LIBCFLAGS=$(LIBCFLAGS)" \
124         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
125         "MAKE=$(MAKE)" \
126         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
127         "PICFLAG=$(PICFLAG)" \
128         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
129         "SHELL=$(SHELL)" \
130         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
131         "exec_prefix=$(exec_prefix)" \
132         "infodir=$(infodir)" \
133         "libdir=$(libdir)" \
134         "includedir=$(includedir)" \
135         "prefix=$(prefix)" \
136         "tooldir=$(tooldir)" \
137         "AR=$(AR)" \
138         "AS=$(AS)" \
139         "LD=$(LD)" \
140         "LIBCFLAGS=$(LIBCFLAGS)" \
141         "PICFLAG=$(PICFLAG)" \
142         "RANLIB=$(RANLIB)" \
143         "NM=$(NM)" \
144         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
145         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
146         "DESTDIR=$(DESTDIR)" \
147         "WERROR=$(WERROR)"