OSDN Git Service

* ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
[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 Free Software Foundation, Inc.
4 ##
5 ## This file is part of the libstdc++ version 3 distribution.
6 ## Process this file with automake to produce Makefile.in.
7
8 ## This file is part of the GNU ISO C++ Library.  This library is free
9 ## software; you can redistribute it and/or modify it under the
10 ## terms of the GNU General Public License as published by the
11 ## Free Software Foundation; either version 2, or (at your option)
12 ## any later version.
13
14 ## This library is distributed in the hope that it will be useful,
15 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 ## GNU General Public License for more details.
18
19 ## You should have received a copy of the GNU General Public License along
20 ## with this library; see the file COPYING.  If not, write to the Free
21 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22 ## USA.
23
24 AUTOMAKE_OPTIONS = 1.3 cygnus
25 MAINT_CHARSET = latin1
26
27 SUBDIRS = include libio libmath libsupc++ src po testsuite 
28
29 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
30
31 # These two special 'check-script' rules use the bash script 'mkcheck'
32 # to do testing. This script is not as portable as the dejagnu test
33 # harness, and is thus off by default. It does produce interesting
34 # output however, including various performance analysis items like
35 # compile time, execution time, and binary size.
36 check-script: $(top_builddir)/mkcheck
37         -(chmod + $(top_builddir)/mkcheck; \
38           cd testsuite; \
39           @glibcpp_builddir@/mkcheck 0)
40
41 check-script-install: $(top_builddir)/mkcheck
42         -(chmod + $(top_builddir)/mkcheck; \
43           cd testsuite; \
44           @glibcpp_builddir@/mkcheck 1)
45
46 # These two rules might seem messy, but are hella worth it.
47 doxygen:
48         -(srcdir=`cd ${top_srcdir}; pwd`; \
49           outdir=`pwd`; \
50           /bin/sh ${srcdir}/docs/doxygen/run_doxygen \
51                     --mode=user $${srcdir} $${outdir})
52
53 doxygen-maint:
54         -(srcdir=`cd ${top_srcdir}; pwd`; \
55           outdir=`pwd`; \
56           ${srcdir}/docs/doxygen/run_doxygen --mode=maint $${srcdir} $${outdir})
57
58 .PHONY: doxygen doxygen-maint
59
60 # Multilib support.
61 MAKEOVERRIDES=
62
63 # Multilib variables.
64 MULTISRCTOP =
65 MULTIBUILDTOP =
66 MULTIDIRS =
67 MULTISUBDIR =
68 MULTIDO = true
69 MULTICLEAN = true
70
71 # Multilib Makefile bits.
72 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
73         maintainer-clean-multi
74
75 all-am: all-multi
76 install-am: install-multi
77 mostlyclean-am: mostlyclean-multi
78 clean-am: clean-multi
79 distclean-am: distclean-multi
80 maintainer-clean-am: maintainer-clean-multi
81
82 all-multi:
83         $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
84 install-multi:
85         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
86 mostlyclean-multi:
87         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
88 clean-multi:
89         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
90 distclean-multi:
91         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
92 maintainer-clean-multi:
93         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
94
95 # All the machinations with string instantiations messes up the
96 # automake-generated TAGS rule. Make a simple one here.
97 TAGS: tags-recursive $(LISP)
98
99 # Work around what appears to be a GNU make bug handling MAKEFLAGS
100 # values defined in terms of make variables, as is the case for CC and
101 # friends when we are called from the top level Makefile.
102 AM_MAKEFLAGS = \
103         "AR_FLAGS=$(AR_FLAGS)" \
104         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
105         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
106         "CFLAGS=$(CFLAGS)" \
107         "CXXFLAGS=$(CXXFLAGS)" \
108         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
109         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
110         "INSTALL=$(INSTALL)" \
111         "INSTALL_DATA=$(INSTALL_DATA)" \
112         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
113         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
114         "LDFLAGS=$(LDFLAGS)" \
115         "LIBCFLAGS=$(LIBCFLAGS)" \
116         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
117         "MAKE=$(MAKE)" \
118         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
119         "PICFLAG=$(PICFLAG)" \
120         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
121         "SHELL=$(SHELL)" \
122         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
123         "exec_prefix=$(exec_prefix)" \
124         "infodir=$(infodir)" \
125         "libdir=$(libdir)" \
126         "includedir=$(includedir)" \
127         "prefix=$(prefix)" \
128         "tooldir=$(tooldir)" \
129         "AR=$(AR)" \
130         "AS=$(AS)" \
131         "LD=$(LD)" \
132         "LIBCFLAGS=$(LIBCFLAGS)" \
133         "PICFLAG=$(PICFLAG)" \
134         "RANLIB=$(RANLIB)" \
135         "NM=$(NM)" \
136         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
137         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
138         "DESTDIR=$(DESTDIR)" \
139         "WERROR=$(WERROR)"