OSDN Git Service

a4362ace6e6d1a2ec9ea3e1692fdb4dbf356097f
[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 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 # This helps subvert libstdcxx_interface, as calculated by devo/config.if
28 # Needed so that g++ can find the correct include subdir automatically.
29 INTERFACE = v3
30 gxx_include_dir=$(includedir)/g++
31
32 SUBDIRS = libio libmath libsupc++ src
33
34
35 # Compile flags that should be constant throughout the build, both for
36 # SUBDIRS and for libstdc++-v3 in general.
37 # Optimization flags that are probably a good idea for thrill-seekers. Just
38 # uncomment the lines below and make, everything else is ready to go... 
39 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
40 OPTIMIZE_CXXFLAGS = 
41
42 # Warning flags to use.
43 WARN_CXXFLAGS = \
44         -Wall -Wno-format -W -Wwrite-strings -Winline \
45         $(WERROR) @WFMT_FLAGS@
46
47 # These bits are all figured out from configure. Look in acinclude.m4
48 # or configure.in to see how they are set.
49 # NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
50 CONFIG_CXXFLAGS = \
51         @EXTRA_CXX_FLAGS@ \
52         @SECTION_FLAGS@ @CSHADOWFLAGS@ @DEBUG_FLAGS@ 
53
54
55 # Use $(blddir) instead of $(top_builddir) for arguments to "mkcheck"
56 # because then the paths will be full pathnames, not relative
57 # pathnames. (-Wl,--rpath seems to like this better.)
58 check:  $(top_builddir)/mkcheck
59         chmod +x  $(top_builddir)/mkcheck
60         $(top_builddir)/mkcheck 0 `pwd` $(top_srcdir)
61
62 check-install: $(top_builddir)/mkcheck
63         chmod +x  $(top_builddir)/mkcheck
64         $(top_builddir)/mkcheck 1 `pwd` $(top_srcdir) $(prefix)
65
66 # Multilib support.
67 MAKEOVERRIDES=
68
69 # Multilib variables.
70 MULTISRCTOP =
71 MULTIBUILDTOP =
72 MULTIDIRS =
73 MULTISUBDIR =
74 MULTIDO = true
75 MULTICLEAN = true
76
77 # Multilib Makefile bits.
78 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
79         maintainer-clean-multi
80
81 all-am: all-multi
82 install-am: install-multi
83 mostlyclean-am: mostlyclean-multi
84 clean-am: clean-multi
85 distclean-am: distclean-multi
86 maintainer-clean-am: maintainer-clean-multi
87
88 all-multi:
89         $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
90 install-multi:
91         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
92 mostlyclean-multi:
93         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
94 clean-multi:
95         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
96 distclean-multi:
97         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
98 maintainer-clean-multi:
99         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
100
101 # All the machinations with string instantiations messes up the
102 # automake-generated TAGS rule. Make a simple one here.
103 TAGS: tags-recursive $(LISP)
104
105 # Work around what appears to be a GNU make bug handling MAKEFLAGS
106 # values defined in terms of make variables, as is the case for CC and
107 # friends when we are called from the top level Makefile.
108 AM_MAKEFLAGS = \
109         "AR_FLAGS=$(AR_FLAGS)" \
110         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
111         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
112         "CFLAGS=$(CFLAGS)" \
113         "CXXFLAGS=$(CXXFLAGS)" \
114         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
115         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
116         "INSTALL=$(INSTALL)" \
117         "INSTALL_DATA=$(INSTALL_DATA)" \
118         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
119         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
120         "LDFLAGS=$(LDFLAGS)" \
121         "LIBCFLAGS=$(LIBCFLAGS)" \
122         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
123         "MAKE=$(MAKE)" \
124         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
125         "PICFLAG=$(PICFLAG)" \
126         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
127         "SHELL=$(SHELL)" \
128         "EXPECT=$(EXPECT)" \
129         "RUNTEST=$(RUNTEST)" \
130         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
131         "exec_prefix=$(exec_prefix)" \
132         "infodir=$(infodir)" \
133         "libdir=$(libdir)" \
134         "includedir=$(includedir)" \
135         "prefix=$(prefix)" \
136         "tooldir=$(tooldir)" \
137         "AR=$(AR)" \
138         "AS=$(AS)" \
139         "CC=$(CC)" \
140         "CXX=$(CXX)" \
141         "LD=$(LD)" \
142         "LIBCFLAGS=$(LIBCFLAGS)" \
143         "PICFLAG=$(PICFLAG)" \
144         "RANLIB=$(RANLIB)" \
145         "NM=$(NM)" \
146         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
147         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
148         "DESTDIR=$(DESTDIR)" \
149         "WERROR=$(WERROR)" \
150         "OPTIMIZE_CXXFLAGS=$(OPTIMIZE_CXXFLAGS)" \
151         "WARN_CXXFLAGS=$(WARN_CXXFLAGS)" \
152         "CONFIG_CXXFLAGS=$(CONFIG_CXXFLAGS)" 
153
154
155
156
157
158