OSDN Git Service

2001-02-03 Alexandre Oliva <aoliva@redhat.com>
[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 = libio libmath libsupc++ src
28
29 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
30
31 # Use $${builddir} instead of $(top_builddir) for arguments to "mkcheck"
32 # because then the paths will be full pathnames, not relative
33 # pathnames. (-Wl,--rpath seems to like this better.)
34 check: $(top_builddir)/mkcheck
35         -(chmod + $(top_builddir)/mkcheck; \
36           srcdir=`cd $(top_srcdir); pwd`; builddir=`pwd`; \
37           test -d testsuite || (mkdir testsuite; chmod u+w testsuite); \
38           cd testsuite; $${builddir}/mkcheck 0 $${builddir} $${srcdir})
39
40 check-install: $(top_builddir)/mkcheck
41         -(chmod + $(top_builddir)/mkcheck; \
42           srcdir=`cd $(top_srcdir); pwd`; builddir=`pwd`; \
43           test -d testsuite || (mkdir testsuite; chmod u+w testsuite); \
44           cd testsuite; \
45           $${builddir}/mkcheck 1 $${builddir} $${srcdir} $(prefix))
46
47 # Multilib support.
48 MAKEOVERRIDES=
49
50 # Multilib variables.
51 MULTISRCTOP =
52 MULTIBUILDTOP =
53 MULTIDIRS =
54 MULTISUBDIR =
55 MULTIDO = true
56 MULTICLEAN = true
57
58 # Multilib Makefile bits.
59 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
60         maintainer-clean-multi
61
62 all-am: all-multi
63 install-am: install-multi
64 mostlyclean-am: mostlyclean-multi
65 clean-am: clean-multi
66 distclean-am: distclean-multi
67 maintainer-clean-am: maintainer-clean-multi
68
69 all-multi:
70         $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
71 install-multi:
72         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
73 mostlyclean-multi:
74         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
75 clean-multi:
76         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
77 distclean-multi:
78         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
79 maintainer-clean-multi:
80         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
81
82 # All the machinations with string instantiations messes up the
83 # automake-generated TAGS rule. Make a simple one here.
84 TAGS: tags-recursive $(LISP)
85
86 # Work around what appears to be a GNU make bug handling MAKEFLAGS
87 # values defined in terms of make variables, as is the case for CC and
88 # friends when we are called from the top level Makefile.
89 AM_MAKEFLAGS = \
90         "AR_FLAGS=$(AR_FLAGS)" \
91         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
92         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
93         "CFLAGS=$(CFLAGS)" \
94         "CXXFLAGS=$(CXXFLAGS)" \
95         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
96         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
97         "INSTALL=$(INSTALL)" \
98         "INSTALL_DATA=$(INSTALL_DATA)" \
99         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
100         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
101         "LDFLAGS=$(LDFLAGS)" \
102         "LIBCFLAGS=$(LIBCFLAGS)" \
103         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
104         "MAKE=$(MAKE)" \
105         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
106         "PICFLAG=$(PICFLAG)" \
107         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
108         "SHELL=$(SHELL)" \
109         "EXPECT=$(EXPECT)" \
110         "RUNTEST=$(RUNTEST)" \
111         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
112         "exec_prefix=$(exec_prefix)" \
113         "infodir=$(infodir)" \
114         "libdir=$(libdir)" \
115         "includedir=$(includedir)" \
116         "prefix=$(prefix)" \
117         "tooldir=$(tooldir)" \
118         "AR=$(AR)" \
119         "AS=$(AS)" \
120         "CC=$(CC)" \
121         "CXX=$(CXX)" \
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)"