OSDN Git Service

2003-08-17 Phil Edwards <pme@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / Makefile.am
1 ## Makefile for the toplevel directory of the GNU C++ Standard library.
2 ##
3 ## Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
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
25 include $(top_srcdir)/fragment.am
26
27 SUBDIRS = include libmath libsupc++ src po testsuite 
28
29 # These rules are messy, but are hella worth it.
30 doxygen:
31         -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
32           builddir=`${PWD_COMMAND}`; \
33           ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
34                     --mode=user $${srcdir} $${builddir})
35
36 doxygen-maint:
37         -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
38           builddir=`${PWD_COMMAND}`; \
39           ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
40                     --mode=maint $${srcdir} $${builddir})
41
42 doxygen-man:
43         -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
44           builddir=`${PWD_COMMAND}`; \
45           ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
46                     --mode=man $${srcdir} $${builddir})
47
48 .PHONY: doxygen doxygen-maint doxygen-man
49
50 # Multilib support.
51 MAKEOVERRIDES=
52
53 # Multilib support variables.
54 MULTISRCTOP =
55 MULTIBUILDTOP =
56 MULTIDIRS =
57 MULTISUBDIR =
58 MULTIDO = true
59 MULTICLEAN = true
60
61 # Multilib support.
62 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
63         maintainer-clean-multi
64
65 all-recursive: all-multi
66 install-recursive: install-multi
67 mostlyclean-recursive: mostlyclean-multi
68 clean-recursive: clean-multi
69 distclean-recursive: distclean-multi
70 maintainer-clean-recursive: maintainer-clean-multi
71
72 all-multi:
73         : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
74 install-multi:
75         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
76 mostlyclean-multi:
77         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
78 clean-multi:
79         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
80 distclean-multi:
81         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
82 maintainer-clean-multi:
83         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
84
85 # All the machinations with string instantiations messes up the
86 # automake-generated TAGS rule. Make a simple one here.
87 TAGS: tags-recursive $(LISP)
88
89 # Work around what appears to be a GNU make bug handling MAKEFLAGS
90 # values defined in terms of make variables, as is the case for CC and
91 # friends when we are called from the top level Makefile.
92 AM_MAKEFLAGS = \
93         "AR_FLAGS=$(AR_FLAGS)" \
94         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
95         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
96         "CFLAGS=$(CFLAGS)" \
97         "CXXFLAGS=$(CXXFLAGS)" \
98         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
99         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
100         "INSTALL=$(INSTALL)" \
101         "INSTALL_DATA=$(INSTALL_DATA)" \
102         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
103         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
104         "LDFLAGS=$(LDFLAGS)" \
105         "LIBCFLAGS=$(LIBCFLAGS)" \
106         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
107         "MAKE=$(MAKE)" \
108         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
109         "PICFLAG=$(PICFLAG)" \
110         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
111         "SHELL=$(SHELL)" \
112         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
113         "exec_prefix=$(exec_prefix)" \
114         "infodir=$(infodir)" \
115         "libdir=$(libdir)" \
116         "includedir=$(includedir)" \
117         "prefix=$(prefix)" \
118         "tooldir=$(tooldir)" \
119         "gxx_include_dir=$(gxx_include_dir)" \
120         "AR=$(AR)" \
121         "AS=$(AS)" \
122         "LD=$(LD)" \
123         "LIBCFLAGS=$(LIBCFLAGS)" \
124         "PICFLAG=$(PICFLAG)" \
125         "RANLIB=$(RANLIB)" \
126         "NM=$(NM)" \
127         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
128         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
129         "DESTDIR=$(DESTDIR)" \
130         "WERROR=$(WERROR)" 
131
132 # Subdir rules rely on $(FLAGS_TO_PASS)
133 FLAGS_TO_PASS = $(AM_MAKEFLAGS)