]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/Makefile.am
Convert to new autotools.
[thirdparty/gcc.git] / libstdc++-v3 / Makefile.am
CommitLineData
b2dad0e3
BK
1## Makefile for the toplevel directory of the GNU C++ Standard library.
2##
0252d604 3## Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
ffe94f83 4## Free Software Foundation, Inc.
b2dad0e3
BK
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
b2dad0e3
BK
25MAINT_CHARSET = latin1
26
58ac1d7f 27SUBDIRS = include libmath libsupc++ src po testsuite
c7053b70 28
ae9dc931
BK
29mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
30
8c90b13a 31PWD_COMMAND = $${PWDCMD-pwd}
1e6347d8 32
ffe94f83 33# These rules are messy, but are hella worth it.
e03f70b3 34doxygen:
8c90b13a
L
35 -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
36 builddir=`${PWD_COMMAND}`; \
ff66d28f 37 ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
ffe94f83 38 --mode=user $${srcdir} $${builddir})
e03f70b3
PE
39
40doxygen-maint:
8c90b13a
L
41 -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
42 builddir=`${PWD_COMMAND}`; \
ff66d28f 43 ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
ffe94f83 44 --mode=maint $${srcdir} $${builddir})
e03f70b3 45
ffe94f83 46doxygen-man:
8c90b13a
L
47 -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
48 builddir=`${PWD_COMMAND}`; \
ff66d28f 49 ${SHELL} ${srcdir}/docs/doxygen/run_doxygen \
ffe94f83
PE
50 --mode=man $${srcdir} $${builddir})
51
52.PHONY: doxygen doxygen-maint doxygen-man
e03f70b3 53
b2dad0e3
BK
54# Multilib support.
55MAKEOVERRIDES=
56
0252d604 57# Multilib support variables.
b2dad0e3
BK
58MULTISRCTOP =
59MULTIBUILDTOP =
60MULTIDIRS =
61MULTISUBDIR =
62MULTIDO = true
63MULTICLEAN = true
64
0252d604 65# Multilib support.
b2dad0e3
BK
66.PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
67 maintainer-clean-multi
68
0252d604
BK
69all-recursive: all-multi
70install-recursive: install-multi
71mostlyclean-recursive: mostlyclean-multi
72clean-recursive: clean-multi
73distclean-recursive: distclean-multi
74maintainer-clean-recursive: maintainer-clean-multi
b2dad0e3
BK
75
76all-multi:
6c5d742e 77 : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
b2dad0e3
BK
78install-multi:
79 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
80mostlyclean-multi:
81 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
82clean-multi:
83 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
84distclean-multi:
85 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
86maintainer-clean-multi:
87 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
88
d94611f1 89# All the machinations with string instantiations messes up the
bf93f43b 90# automake-generated TAGS rule. Make a simple one here.
d94611f1
BK
91TAGS: tags-recursive $(LISP)
92
b2dad0e3
BK
93# Work around what appears to be a GNU make bug handling MAKEFLAGS
94# values defined in terms of make variables, as is the case for CC and
95# friends when we are called from the top level Makefile.
96AM_MAKEFLAGS = \
97 "AR_FLAGS=$(AR_FLAGS)" \
98 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
99 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
100 "CFLAGS=$(CFLAGS)" \
101 "CXXFLAGS=$(CXXFLAGS)" \
102 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
103 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
104 "INSTALL=$(INSTALL)" \
105 "INSTALL_DATA=$(INSTALL_DATA)" \
106 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
107 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
108 "LDFLAGS=$(LDFLAGS)" \
109 "LIBCFLAGS=$(LIBCFLAGS)" \
110 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
111 "MAKE=$(MAKE)" \
112 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
113 "PICFLAG=$(PICFLAG)" \
114 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
115 "SHELL=$(SHELL)" \
c6192d88 116 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
b2dad0e3
BK
117 "exec_prefix=$(exec_prefix)" \
118 "infodir=$(infodir)" \
119 "libdir=$(libdir)" \
120 "includedir=$(includedir)" \
121 "prefix=$(prefix)" \
122 "tooldir=$(tooldir)" \
3bf74da2 123 "gxx_include_dir=$(gxx_include_dir)" \
b2dad0e3
BK
124 "AR=$(AR)" \
125 "AS=$(AS)" \
b2dad0e3
BK
126 "LD=$(LD)" \
127 "LIBCFLAGS=$(LIBCFLAGS)" \
128 "PICFLAG=$(PICFLAG)" \
129 "RANLIB=$(RANLIB)" \
130 "NM=$(NM)" \
131 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
132 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
f5e79dda 133 "DESTDIR=$(DESTDIR)" \
9ece379a 134 "WERROR=$(WERROR)"
8ddfd7e5
DJ
135
136# Subdir rules rely on $(FLAGS_TO_PASS)
137FLAGS_TO_PASS = $(AM_MAKEFLAGS)