OSDN Git Service

* configure.target (ATOMICITYH): Actually use AIX-specific code on
[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 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           test -d testsuite || (mkdir testsuite; chmod u+w testsuite); \
39           cd testsuite; \
40           @glibcpp_builddir@/mkcheck 0)
41
42 check-script-install: $(top_builddir)/mkcheck
43         -(chmod + $(top_builddir)/mkcheck; \
44           test -d testsuite || (mkdir testsuite; chmod u+w testsuite); \
45           cd testsuite; \
46           @glibcpp_builddir@/mkcheck 1)
47
48 # These two rules might seem messy, but are hella worth it.
49 doxygen:
50         -(srcdir=`cd ${top_srcdir}; pwd`; \
51           outdir=`pwd`; \
52           /bin/sh ${srcdir}/docs/doxygen/run_doxygen \
53                     --mode=user $${srcdir} $${outdir})
54
55 doxygen-maint:
56         -(srcdir=`cd ${top_srcdir}; pwd`; \
57           outdir=`pwd`; \
58           ${srcdir}/docs/doxygen/run_doxygen --mode=maint $${srcdir} $${outdir})
59
60 .PHONY: doxygen doxygen-maint
61
62
63 # Multilib support.
64 MAKEOVERRIDES=
65
66 # Multilib variables.
67 MULTISRCTOP =
68 MULTIBUILDTOP =
69 MULTIDIRS =
70 MULTISUBDIR =
71 MULTIDO = true
72 MULTICLEAN = true
73
74 # Multilib Makefile bits.
75 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
76         maintainer-clean-multi
77
78 all-am: all-multi
79 install-am: install-multi
80 mostlyclean-am: mostlyclean-multi
81 clean-am: clean-multi
82 distclean-am: distclean-multi
83 maintainer-clean-am: maintainer-clean-multi
84
85 all-multi:
86         $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
87 install-multi:
88         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
89 mostlyclean-multi:
90         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
91 clean-multi:
92         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
93 distclean-multi:
94         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
95 maintainer-clean-multi:
96         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
97
98 # All the machinations with string instantiations messes up the
99 # automake-generated TAGS rule. Make a simple one here.
100 TAGS: tags-recursive $(LISP)
101
102 # Work around what appears to be a GNU make bug handling MAKEFLAGS
103 # values defined in terms of make variables, as is the case for CC and
104 # friends when we are called from the top level Makefile.
105 AM_MAKEFLAGS = \
106         "AR_FLAGS=$(AR_FLAGS)" \
107         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
108         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
109         "CFLAGS=$(CFLAGS)" \
110         "CXXFLAGS=$(CXXFLAGS)" \
111         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
112         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
113         "INSTALL=$(INSTALL)" \
114         "INSTALL_DATA=$(INSTALL_DATA)" \
115         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
116         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
117         "LDFLAGS=$(LDFLAGS)" \
118         "LIBCFLAGS=$(LIBCFLAGS)" \
119         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
120         "MAKE=$(MAKE)" \
121         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
122         "PICFLAG=$(PICFLAG)" \
123         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
124         "SHELL=$(SHELL)" \
125         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
126         "exec_prefix=$(exec_prefix)" \
127         "infodir=$(infodir)" \
128         "libdir=$(libdir)" \
129         "includedir=$(includedir)" \
130         "prefix=$(prefix)" \
131         "tooldir=$(tooldir)" \
132         "AR=$(AR)" \
133         "AS=$(AS)" \
134         "LD=$(LD)" \
135         "LIBCFLAGS=$(LIBCFLAGS)" \
136         "PICFLAG=$(PICFLAG)" \
137         "RANLIB=$(RANLIB)" \
138         "NM=$(NM)" \
139         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
140         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
141         "DESTDIR=$(DESTDIR)" \
142         "WERROR=$(WERROR)" 
143
144