OSDN Git Service

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