]>
Commit | Line | Data |
---|---|---|
b2dad0e3 BK |
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 = math libio src | |
33 | ||
34 | check: $(top_builddir)/mkcheck | |
35 | $(top_builddir)/mkcheck 0 $(top_builddir) $(top_srcdir) | |
36 | ||
37 | check-install: $(top_builddir)/mkcheck | |
38 | $(top_builddir)/mkcheck 1 $(top_builddir) $(top_srcdir) $(prefix) | |
39 | ||
40 | #all-local: stamp-rebuild | |
41 | ||
42 | # This has already been sanity-checked by configure to a certain extent | |
43 | #stamp-rebuild: $(top_builddir)/config.status | |
44 | # if test "$(GCC_OBJDIR)" != "no"; then \ | |
45 | # (cd "$(GCC_OBJDIR)/gcc" && \ | |
46 | # if test -f libgcc2.ready ; then \ | |
47 | # rm -f libgcc2.ready libgcc.a libgcc2.a ; \ | |
48 | # $(MAKE) libgcc2.a TARGET_LIBGCC2_CFLAGS='@NAMESPACES@' ; \ | |
49 | # $(MAKE) libgcc.a ; \ | |
50 | # else \ | |
51 | # echo '** There does not appear to be a previously-built' ; \ | |
52 | # echo '** library here. Please see' ; \ | |
53 | # echo '** <http://sourceware.cygnus.com/libstdc++/install.html>' ; \ | |
54 | # echo '** In particular, the "Building and Installing' ; \ | |
55 | # echo '** the library (without GCC sources)" section.' ; \ | |
56 | # exit 1 ; \ | |
57 | # fi \ | |
58 | # ) \ | |
59 | # fi | |
60 | # touch stamp-rebuild | |
61 | ||
62 | # Multilib support. | |
63 | MAKEOVERRIDES= | |
64 | ||
65 | # Multilib variables. | |
66 | MULTISRCTOP = | |
67 | MULTIBUILDTOP = | |
68 | MULTIDIRS = | |
69 | MULTISUBDIR = | |
70 | MULTIDO = true | |
71 | MULTICLEAN = true | |
72 | ||
73 | # Multilib Makefile bits. | |
74 | .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \ | |
75 | maintainer-clean-multi | |
76 | ||
77 | all-am: all-multi | |
78 | install-am: install-multi | |
79 | mostlyclean-am: mostlyclean-multi | |
80 | clean-am: clean-multi | |
81 | distclean-am: distclean-multi | |
82 | maintainer-clean-am: maintainer-clean-multi | |
83 | ||
84 | all-multi: | |
85 | $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do | |
86 | install-multi: | |
87 | $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do | |
88 | mostlyclean-multi: | |
89 | $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean | |
90 | clean-multi: | |
91 | $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean | |
92 | distclean-multi: | |
93 | $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean | |
94 | maintainer-clean-multi: | |
95 | $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean | |
96 | ||
d94611f1 | 97 | # All the machinations with string instantiations messes up the |
bf93f43b | 98 | # automake-generated TAGS rule. Make a simple one here. |
d94611f1 BK |
99 | TAGS: tags-recursive $(LISP) |
100 | ||
b2dad0e3 BK |
101 | # Work around what appears to be a GNU make bug handling MAKEFLAGS |
102 | # values defined in terms of make variables, as is the case for CC and | |
103 | # friends when we are called from the top level Makefile. | |
104 | AM_MAKEFLAGS = \ | |
105 | "AR_FLAGS=$(AR_FLAGS)" \ | |
106 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | |
107 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ | |
108 | "CFLAGS=$(CFLAGS)" \ | |
109 | "CXXFLAGS=$(CXXFLAGS)" \ | |
110 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ | |
111 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ | |
112 | "INSTALL=$(INSTALL)" \ | |
113 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
114 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
115 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ | |
116 | "LDFLAGS=$(LDFLAGS)" \ | |
117 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
118 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ | |
119 | "MAKE=$(MAKE)" \ | |
120 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ | |
121 | "PICFLAG=$(PICFLAG)" \ | |
122 | "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \ | |
123 | "SHELL=$(SHELL)" \ | |
124 | "EXPECT=$(EXPECT)" \ | |
125 | "RUNTEST=$(RUNTEST)" \ | |
126 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
127 | "exec_prefix=$(exec_prefix)" \ | |
128 | "infodir=$(infodir)" \ | |
129 | "libdir=$(libdir)" \ | |
130 | "includedir=$(includedir)" \ | |
131 | "prefix=$(prefix)" \ | |
132 | "tooldir=$(tooldir)" \ | |
133 | "AR=$(AR)" \ | |
134 | "AS=$(AS)" \ | |
135 | "CC=$(CC)" \ | |
136 | "CXX=$(CXX)" \ | |
137 | "LD=$(LD)" \ | |
138 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
139 | "PICFLAG=$(PICFLAG)" \ | |
140 | "RANLIB=$(RANLIB)" \ | |
141 | "NM=$(NM)" \ | |
142 | "NM_FOR_BUILD=$(NM_FOR_BUILD)" \ | |
143 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ | |
f3b004d8 | 144 | "DESTDIR=$(DESTDIR)" |
d94611f1 BK |
145 | |
146 | ||
147 | ||
148 | ||
149 | ||
150 | ||
151 | ||
152 | ||
153 | ||
154 | ||
155 |