OSDN Git Service

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