1 ## Makefile for the toplevel directory of the GNU C++ Standard library.
3 ## Copyright (C) 1997,1998, 1999, 2000, 2001 Free Software Foundation, Inc.
5 ## This file is part of the libstdc++ version 3 distribution.
6 ## Process this file with automake to produce Makefile.in.
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)
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.
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,
24 AUTOMAKE_OPTIONS = 1.3 cygnus
25 MAINT_CHARSET = latin1
27 SUBDIRS = libio libmath libsupc++ src
29 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
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})
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); \
45 $${builddir}/mkcheck 1 $${builddir} $${srcdir} $(prefix))
47 # These two rules seem messy.
49 -(srcdir=`cd ${top_srcdir}; pwd`; \
51 ${srcdir}/docs/doxygen/run_doxygen --mode=user $${srcdir} $${outdir})
54 -(srcdir=`cd ${top_srcdir}; pwd`; \
56 ${srcdir}/docs/doxygen/run_doxygen --mode=maint $${srcdir} $${outdir})
58 .PHONY: doxygen doxygen-maint
72 # Multilib Makefile bits.
73 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
74 maintainer-clean-multi
77 install-am: install-multi
78 mostlyclean-am: mostlyclean-multi
80 distclean-am: distclean-multi
81 maintainer-clean-am: maintainer-clean-multi
84 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
86 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
88 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
90 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
92 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
93 maintainer-clean-multi:
94 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
96 # All the machinations with string instantiations messes up the
97 # automake-generated TAGS rule. Make a simple one here.
98 TAGS: tags-recursive $(LISP)
100 # Work around what appears to be a GNU make bug handling MAKEFLAGS
101 # values defined in terms of make variables, as is the case for CC and
102 # friends when we are called from the top level Makefile.
104 "AR_FLAGS=$(AR_FLAGS)" \
105 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
106 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
108 "CXXFLAGS=$(CXXFLAGS)" \
109 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
110 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
111 "INSTALL=$(INSTALL)" \
112 "INSTALL_DATA=$(INSTALL_DATA)" \
113 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
114 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
115 "LDFLAGS=$(LDFLAGS)" \
116 "LIBCFLAGS=$(LIBCFLAGS)" \
117 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
119 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
120 "PICFLAG=$(PICFLAG)" \
121 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
124 "RUNTEST=$(RUNTEST)" \
125 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
126 "exec_prefix=$(exec_prefix)" \
127 "infodir=$(infodir)" \
129 "includedir=$(includedir)" \
131 "tooldir=$(tooldir)" \
137 "LIBCFLAGS=$(LIBCFLAGS)" \
138 "PICFLAG=$(PICFLAG)" \
141 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
142 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
143 "DESTDIR=$(DESTDIR)" \