Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 1904 lines (1683 sloc) 68.473 kb
f507a3c syntactic cleanup
korbb authored
1 [+ AutoGen5 template -*- Mode: Makefile -*-
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
2 in
3 +]
4
5 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
6 #
7 # Makefile for directory with subdirs to build.
8 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
4dc4ff4 Move libgcc2 to toplevel libgcc
ro authored
9 # 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
4b072aa * configure.ac: Change copyright header to refer to version
jakub authored
10 # Free Software Foundation
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
4b072aa * configure.ac: Change copyright header to refer to version
jakub authored
14 # the Free Software Foundation; either version 3 of the License, or
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
4b072aa * configure.ac: Change copyright header to refer to version
jakub authored
23 # along with this program; see the file COPYING3. If not see
24 # <http://www.gnu.org/licenses/>.
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
25 #
26
6e7d093 * Makefile.tpl <gcc>: Error early unless at least GNU make 3.80.
hp authored
27 # First, test for a proper version of make, but only where one is required.
28
29 @if gcc
30 ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty.
31 $(error GNU make version 3.80 or newer is required.)
32 endif
33 @endif gcc
34
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
35 # -------------------------------
36 # Standard Autoconf-set variables
37 # -------------------------------
805e22b Merge basic-improvements-branch to trunk
zack authored
38 VPATH=@srcdir@
39
b30fcfa * Makefile.tpl (build_alias, host_alias, target_alias): Use
drow authored
40 build_alias=@build_noncanonical@
d45318b 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
41 build_vendor=@build_vendor@
42 build_os=@build_os@
ab8cf29 * Makefile.tpl: Replace {build,host,target}_canonical by
neroden authored
43 build=@build@
b30fcfa * Makefile.tpl (build_alias, host_alias, target_alias): Use
drow authored
44 host_alias=@host_noncanonical@
d45318b 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
45 host_vendor=@host_vendor@
46 host_os=@host_os@
ab8cf29 * Makefile.tpl: Replace {build,host,target}_canonical by
neroden authored
47 host=@host@
b30fcfa * Makefile.tpl (build_alias, host_alias, target_alias): Use
drow authored
48 target_alias=@target_noncanonical@
d45318b 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
49 target_vendor=@target_vendor@
50 target_os=@target_os@
ab8cf29 * Makefile.tpl: Replace {build,host,target}_canonical by
neroden authored
51 target=@target@
805e22b Merge basic-improvements-branch to trunk
zack authored
52
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
53 program_transform_name = @program_transform_name@
0311ff8 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
54
55 prefix = @prefix@
56 exec_prefix = @exec_prefix@
57
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
58 srcdir = @srcdir@
59
0311ff8 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
60 bindir = @bindir@
61 sbindir = @sbindir@
62 libexecdir = @libexecdir@
63 datadir = @datadir@
64 sysconfdir = @sysconfdir@
65 sharedstatedir = @sharedstatedir@
66 localstatedir = @localstatedir@
67 libdir = @libdir@
68 includedir = @includedir@
69 oldincludedir = @oldincludedir@
70 infodir = @infodir@
e0dbdbb 2006-05-24 Carlos O'Donell <carlos@codesourcery.com>
carlos authored
71 datarootdir = @datarootdir@
72 docdir = @docdir@
130effc * configure.ac: Add "--with-pdfdir" configure option,
brooks authored
73 pdfdir = @pdfdir@
e0dbdbb 2006-05-24 Carlos O'Donell <carlos@codesourcery.com>
carlos authored
74 htmldir = @htmldir@
0311ff8 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
75 mandir = @mandir@
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
76 man1dir = $(mandir)/man1
77 man2dir = $(mandir)/man2
78 man3dir = $(mandir)/man3
79 man4dir = $(mandir)/man4
80 man5dir = $(mandir)/man5
81 man6dir = $(mandir)/man6
82 man7dir = $(mandir)/man7
83 man8dir = $(mandir)/man8
84 man9dir = $(mandir)/man9
85
450e6c8 PR bootstrap/11273
neroden authored
86 INSTALL = @INSTALL@
87 INSTALL_PROGRAM = @INSTALL_PROGRAM@
88 INSTALL_SCRIPT = @INSTALL_SCRIPT@
89 INSTALL_DATA = @INSTALL_DATA@
599a3ea 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
90 LN = @LN@
91 LN_S = @LN_S@
57c7de1 * configure.in: Handle spu makefile frag.
amodra authored
92 MAINT = @MAINT@
93 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
94 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
95
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
96 # -------------------------------------------------
97 # Miscellaneous non-standard autoconf-set variables
98 # -------------------------------------------------
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
99
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
100 # The gcc driver likes to know the arguments it was configured with.
101 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
102
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
103 tooldir = @tooldir@
104 build_tooldir = @build_tooldir@
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
105
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
106 # This is the name of the environment variable used for the path to
107 # the libraries.
108 RPATH_ENVVAR = @RPATH_ENVVAR@
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
109
7d804f0 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
aaronwl authored
110 # On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path
111 # is used instead of the directory itself to avoid including built
112 # executables in PATH.
113 GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
114
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
115 # Build programs are put under this directory.
116 BUILD_SUBDIR = @build_subdir@
117 # This is set by the configure script to the arguments to use when configuring
118 # directories built for the build system.
c15fb64 2005-04-06 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
119 BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
2f8725b 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
120
7ab76ce ./:
ian authored
121 # Linker flags to use on the host, for stage1 or when not
122 # bootstrapping.
123 STAGE1_LDFLAGS = @stage1_ldflags@
124
125 # Libraries to use on the host, for stage1 or when not bootstrapping.
126 STAGE1_LIBS = @stage1_libs@
127
128 # Linker flags to use for stage2 and later.
129 POSTSTAGE1_LDFLAGS = @poststage1_ldflags@
130
131 # Libraries to use for stage2 and later.
132 POSTSTAGE1_LIBS = @poststage1_libs@
133
2f8725b 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
134 # This is the list of variables to export in the environment when
135 # configuring any subdirectory. It must also be exported whenever
136 # recursing into a build directory in case that directory's Makefile
137 # re-runs configure.
138 BASE_EXPORTS = \
139 FLEX="$(FLEX)"; export FLEX; \
140 LEX="$(LEX)"; export LEX; \
141 BISON="$(BISON)"; export BISON; \
142 YACC="$(YACC)"; export YACC; \
143 M4="$(M4)"; export M4; \
b181f26 2009-08-30 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
144 SED="$(SED)"; export SED; \
5576729 2009-08-30 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
145 AWK="$(AWK)"; export AWK; \
2f8725b 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
146 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
147
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
148 # This is the list of variables to export in the environment when
2f8725b 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
149 # configuring subdirectories for the build system.
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
150 BUILD_EXPORTS = \
2f8725b 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
151 $(BASE_EXPORTS) \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
152 AR="$(AR_FOR_BUILD)"; export AR; \
153 AS="$(AS_FOR_BUILD)"; export AS; \
154 CC="$(CC_FOR_BUILD)"; export CC; \
155 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
156 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
157 CXX="$(CXX_FOR_BUILD)"; export CXX; \
158 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
159 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
160 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
5ff5b63 * configure.ac: Add target-libgo to target_libraries. Set
ian authored
161 GOC="$(GOC_FOR_BUILD)"; export GOC; \
162 GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
163 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
164 LD="$(LD_FOR_BUILD)"; export LD; \
165 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
166 NM="$(NM_FOR_BUILD)"; export NM; \
167 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
2590e4d * Makefile.tpl (BUILD_EXPORTS): Escape the newline at the end of the WIN...
nickc authored
168 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
75d6a0a 2007-07-02 Kai Tietz <kai.tietz@onevision.com>
bonzini authored
169 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
170
9841cd8 PR tree-optimization/36218
jsm28 authored
171 # These variables must be set on the make command line for directories
54670ae PR bootstrap/38014
drow authored
172 # built for the build system to override those in BASE_FLAGS_TO_PASSS.
9841cd8 PR tree-optimization/36218
jsm28 authored
173 EXTRA_BUILD_FLAGS = \
174 CFLAGS="$(CFLAGS_FOR_BUILD)" \
175 LDFLAGS="$(LDFLAGS_FOR_BUILD)"
176
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
177 # This is the list of directories to built for the host system.
178 SUBDIRS = @configdirs@
1fda336 PR libstdc++/36101, PR libstdc++/42813
amylaar authored
179 TARGET_CONFIGDIRS = @target_configdirs@
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
180 # This is set by the configure script to the arguments to use when configuring
181 # directories built for the host system.
182 HOST_CONFIGARGS = @host_configargs@
c1eb9e3 2005-05-25 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
183 # Host programs are put under this directory, which is . except if building
184 # with srcdir=..
185 HOST_SUBDIR = @host_subdir@
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
186 # This is the list of variables to export in the environment when
f5aebe3 toplevel:
bonzini authored
187 # configuring subdirectories for the host system. We need to pass
188 # some to the GCC configure because of its hybrid host/target nature.
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
189 HOST_EXPORTS = \
2f8725b 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
190 $(BASE_EXPORTS) \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
191 CC="$(CC)"; export CC; \
3bed095 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
192 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
193 CFLAGS="$(CFLAGS)"; export CFLAGS; \
194 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
195 CXX="$(CXX)"; export CXX; \
196 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
bd1f965 ChangeLog:
aoliva authored
197 GCJ="$(GCJ)"; export GCJ; \
198 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
5ff5b63 * configure.ac: Add target-libgo to target_libraries. Set
ian authored
199 GOC="$(GOC)"; export GOC; \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
200 AR="$(AR)"; export AR; \
201 AS="$(AS)"; export AS; \
202 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
203 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
204 LD="$(LD)"; export LD; \
7ab76ce ./:
ian authored
205 LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
206 NM="$(NM)"; export NM; \
207 RANLIB="$(RANLIB)"; export RANLIB; \
208 WINDRES="$(WINDRES)"; export WINDRES; \
75d6a0a 2007-07-02 Kai Tietz <kai.tietz@onevision.com>
bonzini authored
209 WINDMC="$(WINDMC)"; export WINDMC; \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
210 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1e6242a 2004-06-22 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
211 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3f71364 2011-11-09 Roland McGrath <mcgrathr@google.com>
dj authored
212 READELF="$(READELF)"; export READELF; \
f5aebe3 toplevel:
bonzini authored
213 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
214 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
215 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
216 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
217 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
218 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
219 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
3f71364 2011-11-09 Roland McGrath <mcgrathr@google.com>
dj authored
220 READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
221 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
7ab76ce ./:
ian authored
222 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
223 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
d389b7e 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
hjl authored
224 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
255b6be 2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
spop authored
225 PPLLIBS="$(HOST_PPLLIBS)"; export PPLLIBS; \
226 PPLINC="$(HOST_PPLINC)"; export PPLINC; \
227 CLOOGLIBS="$(HOST_CLOOGLIBS)"; export CLOOGLIBS; \
228 CLOOGINC="$(HOST_CLOOGINC)"; export CLOOGINC; \
7bfefa9 Merge lto branch into trunk.
dnovillo authored
229 LIBELFLIBS="$(HOST_LIBELFLIBS)" ; export LIBELFLIBS; \
230 LIBELFINC="$(HOST_LIBELFINC)" ; export LIBELFINC; \
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
231 @if gcc-bootstrap
232 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
233 @endif gcc-bootstrap
85115a1 2005-03-31 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
234 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
235
eea1ae2 * configure.ac: Add libelf to host_libs. Enable in-tree configury
aoliva authored
236 POSTSTAGE1_CXX_EXPORT = \
237 CXX='$(CXX)'; export CXX; \
238 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
239 @if target-libstdc++-v3-bootstrap
240 # Override the above if we're bootstrapping C++.
241 POSTSTAGE1_CXX_EXPORT = \
242 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \
243 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
cb885d9 2010-07-17 Jack Howarth <howarth@bromo.med.uc.edu>
iains authored
244 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
1854003 * Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): Add libsupc++ to
dje authored
245 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
eea1ae2 * configure.ac: Add libelf to host_libs. Enable in-tree configury
aoliva authored
246 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
247 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
248 -I$$s/libstdc++-v3/libsupc++ \
1854003 * Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): Add libsupc++ to
dje authored
249 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
250 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \
251 export CXX; \
eea1ae2 * configure.ac: Add libelf to host_libs. Enable in-tree configury
aoliva authored
252 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
253 @endif target-libstdc++-v3-bootstrap
254
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
255 # Similar, for later GCC stages.
12fb418 2005-05-04 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
256 POSTSTAGE1_HOST_EXPORTS = \
1b53fe7 2004-06-22 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
257 $(HOST_EXPORTS) \
c1eb9e3 2005-05-25 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
258 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
bd1f965 ChangeLog:
aoliva authored
259 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
260 $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
261 CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
eea1ae2 * configure.ac: Add libelf to host_libs. Enable in-tree configury
aoliva authored
262 $(POSTSTAGE1_CXX_EXPORT) \
7ab76ce ./:
ian authored
263 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
264 LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
265 HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
266
267 # Target libraries are put under this directory:
268 TARGET_SUBDIR = @target_subdir@
269 # This is set by the configure script to the arguments to use when configuring
270 # directories built for the target.
c15fb64 2005-04-06 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
271 TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
272 # This is the list of variables to export in the environment when
1ab7bcf Fix PR bootstrap/41818.
rwild authored
273 # configuring subdirectories for the target system.
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
274 BASE_TARGET_EXPORTS = \
2f8725b 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
275 $(BASE_EXPORTS) \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
276 AR="$(AR_FOR_TARGET)"; export AR; \
f5aebe3 toplevel:
bonzini authored
277 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
bd1f965 ChangeLog:
aoliva authored
278 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
279 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
280 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
cac4ee5 2005-01-17 Kelley Cook <kcook@gcc.gnu.org>
kcook authored
281 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
bd1f965 ChangeLog:
aoliva authored
282 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
283 GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \
284 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
5ff5b63 * configure.ac: Add target-libgo to target_libraries. Set
ian authored
285 GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
286 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
f5aebe3 toplevel:
bonzini authored
287 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
288 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
9fec3fa Index: ChangeLog
geoffk authored
289 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
f5aebe3 toplevel:
bonzini authored
290 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
ae74ffb ./
drow authored
291 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
292 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
3f71364 2011-11-09 Roland McGrath <mcgrathr@google.com>
dj authored
293 READELF="$(READELF_FOR_TARGET)"; export READELF; \
9fec3fa Index: ChangeLog
geoffk authored
294 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
d389b7e 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
hjl authored
295 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
75d6a0a 2007-07-02 Kai Tietz <kai.tietz@onevision.com>
bonzini authored
296 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
1ab7bcf Fix PR bootstrap/41818.
rwild authored
297 @if gcc-bootstrap
298 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
299 @endif gcc-bootstrap
1fda336 PR libstdc++/36101, PR libstdc++/42813
amylaar authored
300 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
301 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
302
303 RAW_CXX_TARGET_EXPORTS = \
304 $(BASE_TARGET_EXPORTS) \
305 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
bd1f965 ChangeLog:
aoliva authored
306 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
27e3aeb * Makefile.tpl (BUILD_EXPORTS, HOST_EXPORTS, GCC_HOST_EXPORTS)
drow authored
307
308 NORMAL_TARGET_EXPORTS = \
309 $(BASE_TARGET_EXPORTS) \
bd1f965 ChangeLog:
aoliva authored
310 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
311
4ee9c68 Merge tree-ssa-20020619-branch into mainline.
dnovillo authored
312 # Where to find GMP
313 HOST_GMPLIBS = @gmplibs@
314 HOST_GMPINC = @gmpinc@
315
255b6be 2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
spop authored
316 # Where to find PPL
317 HOST_PPLLIBS = @ppllibs@
318 HOST_PPLINC = @pplinc@
319
320 # Where to find CLOOG
321 HOST_CLOOGLIBS = @clooglibs@
322 HOST_CLOOGINC = @clooginc@
323
7bfefa9 Merge lto branch into trunk.
dnovillo authored
324 # Where to find libelf
325 HOST_LIBELFLIBS = @libelflibs@
326 HOST_LIBELFINC = @libelfinc@
327
d7e52ac gcc/
doko authored
328 EXTRA_CONFIGARGS_LIBJAVA = @EXTRA_CONFIGARGS_LIBJAVA@
329
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
330 # ----------------------------------------------
331 # Programs producing files for the BUILD machine
332 # ----------------------------------------------
333
c36c585 * configure.ac: Remove code setting CONFIG_SHELL, config_shell and
jsm28 authored
334 SHELL = @SHELL@
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
335
336 # pwd command to use. Allow user to override default by setting PWDCMD in
337 # the environment to account for automounters. The make variable must not
338 # be called PWDCMD, otherwise the value set here is passed to make
339 # subprocesses and overrides the setting from the user's environment.
7a8ca04 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
hjl authored
340 # Don't use PWD since it is a common shell environment variable and we
341 # don't want to corrupt it.
342 PWD_COMMAND = $${PWDCMD-pwd}
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
343
344 # compilers to use to create programs which must be run in the build
345 # environment.
93c5e79 2007-10-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
346 AR_FOR_BUILD = @AR_FOR_BUILD@
347 AS_FOR_BUILD = @AS_FOR_BUILD@
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
348 CC_FOR_BUILD = @CC_FOR_BUILD@
d8e9ea0 * configure.in: Allow explicit specification of CFLAGS_FOR_BUILD.
membar authored
349 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
93c5e79 2007-10-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
350 CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
351 CXX_FOR_BUILD = @CXX_FOR_BUILD@
352 DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
353 GCJ_FOR_BUILD = @GCJ_FOR_BUILD@
354 GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
5ff5b63 * configure.ac: Add target-libgo to target_libraries. Set
ian authored
355 GOC_FOR_BUILD = @GOC_FOR_BUILD@
93c5e79 2007-10-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
356 LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
357 LD_FOR_BUILD = @LD_FOR_BUILD@
358 NM_FOR_BUILD = @NM_FOR_BUILD@
359 RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
360 WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
361 WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
362
363 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
364 # here so that they can be overridden by Makefile fragments.
365 BUILD_PREFIX = @BUILD_PREFIX@
366 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
367
2b64d19 2004-09-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
368 # Flags to pass to stage2 and later makes. They are defined
369 # here so that they can be overridden by Makefile fragments.
370 BOOT_CFLAGS= -g -O2
9d44a80 2005-12-19 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
371 BOOT_LDFLAGS=
edcc45b * Makefile.tpl: Add BOOT_ADAFLAGS.
ebotcazou authored
372 BOOT_ADAFLAGS=-gnatpg -gnata
2b64d19 2004-09-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
373
b181f26 2009-08-30 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
374 AWK = @AWK@
375 SED = @SED@
f5aebe3 toplevel:
bonzini authored
376 BISON = @BISON@
377 YACC = @YACC@
378 FLEX = @FLEX@
379 LEX = @LEX@
380 M4 = @M4@
381 MAKEINFO = @MAKEINFO@
382 EXPECT = @EXPECT@
383 RUNTEST = @RUNTEST@
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
384
385 # This just becomes part of the MAKEINFO definition passed down to
386 # sub-makes. It lets flags be given on the command line while still
387 # using the makeinfo from the object tree.
516b2e0 * Makefile.tpl (MAKEINFOFLAGS): Default to --split-size=5000000.
gerald authored
388 # (Default to avoid splitting info files by setting the threshold high.)
389 MAKEINFOFLAGS = --split-size=5000000
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
390
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
391 # ---------------------------------------------
392 # Programs producing files for the HOST machine
393 # ---------------------------------------------
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
394
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
395 AS = @AS@
396 AR = @AR@
397 AR_FLAGS = rc
398 CC = @CC@
399 CXX = @CXX@
400 DLLTOOL = @DLLTOOL@
401 LD = @LD@
f5aebe3 toplevel:
bonzini authored
402 LIPO = @LIPO@
403 NM = @NM@
0c8a85c 2006-01-04 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
404 OBJDUMP = @OBJDUMP@
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
405 RANLIB = @RANLIB@
3f71364 2011-11-09 Roland McGrath <mcgrathr@google.com>
dj authored
406 READELF = @READELF@
f5aebe3 toplevel:
bonzini authored
407 STRIP = @STRIP@
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
408 WINDRES = @WINDRES@
75d6a0a 2007-07-02 Kai Tietz <kai.tietz@onevision.com>
bonzini authored
409 WINDMC = @WINDMC@
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
410
a18b2c5 2007-01-23 Richard Guenther <rguenther@suse.de>
rguenth authored
411 GNATBIND = @GNATBIND@
412 GNATMAKE = @GNATMAKE@
413
f5aebe3 toplevel:
bonzini authored
414 CFLAGS = @CFLAGS@
44db1fb * Makefile.tpl (LDFLAGS): Substitute it.
schwab authored
415 LDFLAGS = @LDFLAGS@
f5aebe3 toplevel:
bonzini authored
416 LIBCFLAGS = $(CFLAGS)
417 CXXFLAGS = @CXXFLAGS@
418 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
5ff5b63 * configure.ac: Add target-libgo to target_libraries. Set
ian authored
419 GOCFLAGS = $(CFLAGS)
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
420
bd1f965 ChangeLog:
aoliva authored
421 TFLAGS =
422
423 # Defaults for all stages; some are overridden below.
424
425 STAGE_CFLAGS = $(BOOT_CFLAGS)
426 STAGE_TFLAGS = $(TFLAGS)
427 STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
ef3c41c ./:
ian authored
428 POSTSTAGE1_CONFIGURE_FLAGS = @POSTSTAGE1_CONFIGURE_FLAGS@
bd1f965 ChangeLog:
aoliva authored
429
430 [+ FOR bootstrap-stage +]
431 # Defaults for stage [+id+]; some are overridden below.
432 STAGE[+id+]_CFLAGS = $(STAGE_CFLAGS)
eea1ae2 * configure.ac: Add libelf to host_libs. Enable in-tree configury
aoliva authored
433 STAGE[+id+]_CXXFLAGS = $(CXXFLAGS)
434 @if target-libstdc++-v3-bootstrap
435 # Override the above if we're bootstrapping C++.
436 STAGE[+id+]_CXXFLAGS = $(STAGE[+id+]_CFLAGS)
437 @endif target-libstdc++-v3-bootstrap
bd1f965 ChangeLog:
aoliva authored
438 STAGE[+id+]_TFLAGS = $(STAGE_TFLAGS)
ef3c41c ./:
ian authored
439 # STAGE1_CONFIGURE_FLAGS overridden below, so we can use
440 # POSTSTAGE1_CONFIGURE_FLAGS here.
441 STAGE[+id+]_CONFIGURE_FLAGS = \
442 $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
bd1f965 ChangeLog:
aoliva authored
443 [+ ENDFOR bootstrap-stage +]
444
39f34cf 2006-12-19 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
445 # Only build the C compiler for stage1, because that is the only one that
446 # we can guarantee will build with the native compiler, and also it is the
447 # only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
448 # MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
449 # overrideable (for a bootstrap build stage1 also builds gcc.info).
450
bd1f965 ChangeLog:
aoliva authored
451 STAGE1_CFLAGS = @stage1_cflags@
eea1ae2 * configure.ac: Add libelf to host_libs. Enable in-tree configury
aoliva authored
452 STAGE1_CHECKING = @stage1_checking@
453 STAGE1_LANGUAGES = @stage1_languages@
bd1f965 ChangeLog:
aoliva authored
454 # * We force-disable intermodule optimizations, even if
455 # --enable-intermodule was passed, since the installed compiler
456 # probably can't handle them. Luckily, autoconf always respects
457 # the last argument when conflicting --enable arguments are passed.
458 # * Likewise, we force-disable coverage flags, since the installed
459 # compiler probably has never heard of them.
ef3c41c ./:
ian authored
460 # * Don't remove this, because above we added
461 # POSTSTAGE1_CONFIGURE_FLAGS to STAGE[+id+]_CONFIGURE_FLAGS, which
462 # we don't want for STAGE1_CONFIGURE_FLAGS.
bd1f965 ChangeLog:
aoliva authored
463 STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
464 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
39f34cf 2006-12-19 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
465
bd1f965 ChangeLog:
aoliva authored
466 STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
467 STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
5b54231 ChangeLog:
aoliva authored
468
bd1f965 ChangeLog:
aoliva authored
469 STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
470 STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
c898f16 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
471
5b54231 ChangeLog:
aoliva authored
472 do-compare = @do_compare@
473 do-compare3 = $(do-compare)
474
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
475 # -----------------------------------------------
476 # Programs producing files for the TARGET machine
477 # -----------------------------------------------
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
478
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
479 AR_FOR_TARGET=@AR_FOR_TARGET@
805e22b Merge basic-improvements-branch to trunk
zack authored
480 AS_FOR_TARGET=@AS_FOR_TARGET@
bd1f965 ChangeLog:
aoliva authored
481 CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
ef8184c 2005-08-08 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
482
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
483 # If GCC_FOR_TARGET is not overriden on the command line, then this
484 # variable is passed down to the gcc Makefile, where it is used to
485 # build libgcc2.a. We define it here so that it can itself be
486 # overridden on the command line.
bd1f965 ChangeLog:
aoliva authored
487 GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
488 CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
489 RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
490 GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@
491 GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
5ff5b63 * configure.ac: Add target-libgo to target_libraries. Set
ian authored
492 GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
805e22b Merge basic-improvements-branch to trunk
zack authored
493 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
494 LD_FOR_TARGET=@LD_FOR_TARGET@
495
9fec3fa Index: ChangeLog
geoffk authored
496 LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
497 NM_FOR_TARGET=@NM_FOR_TARGET@
ae74ffb ./
drow authored
498 OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
805e22b Merge basic-improvements-branch to trunk
zack authored
499 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
3f71364 2011-11-09 Roland McGrath <mcgrathr@google.com>
dj authored
500 READELF_FOR_TARGET=@READELF_FOR_TARGET@
9fec3fa Index: ChangeLog
geoffk authored
501 STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
502 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
75d6a0a 2007-07-02 Kai Tietz <kai.tietz@onevision.com>
bonzini authored
503 WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
504
f5aebe3 toplevel:
bonzini authored
505 COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
506 COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
507 COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
508
c898f16 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
509 CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
510 CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
511
f5aebe3 toplevel:
bonzini authored
512 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
513 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
ed9516f 2011-05-08 Doug Kwan <dougkwan@google.com>
dougkwan authored
514 LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
5ff5b63 * configure.ac: Add target-libgo to target_libraries. Set
ian authored
515 GOCFLAGS_FOR_TARGET = -O2 -g
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
516
bd1f965 ChangeLog:
aoliva authored
517 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
518 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
519 DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
520
521 XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
522
f7ca337 * Makefile.tpl: Rearrange.
neroden authored
523 # ------------------------------------
524 # Miscellaneous targets and flag lists
525 # ------------------------------------
526
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
527 # The first rule in the file had better be this one. Don't put any above it.
528 # This lives here to allow makefile fragments to contain dependencies.
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
529 all:
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
530
531 #### host and target specific makefile fragments come in here.
71ab34d (toplev)
neroden authored
532 @target_makefile_frag@
533 @alphaieee_frag@
534 @ospace_frag@
535 @host_makefile_frag@
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
536 ###
537
85115a1 2005-03-31 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
538 # This is the list of directories that may be needed in RPATH_ENVVAR
1235ba9 * Makefile.def (target_modules): Set lib_path to src/.libs for
ian authored
539 # so that programs built for the target machine work.
85115a1 2005-03-31 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
540 TARGET_LIB_PATH = [+ FOR target_modules +][+
541 IF lib_path +]$(TARGET_LIB_PATH_[+module+])[+ ENDIF lib_path +][+
542 ENDFOR target_modules +]$(HOST_LIB_PATH_gcc)
543 [+ FOR target_modules +][+ IF lib_path +]
544 @if target-[+module+]
545 TARGET_LIB_PATH_[+module+] = $$r/$(TARGET_SUBDIR)/[+module+]/[+lib_path+]:
546 @endif target-[+module+]
547 [+ ENDIF lib_path +][+ ENDFOR target_modules +]
548
549
550 # This is the list of directories that may be needed in RPATH_ENVVAR
551 # so that programs built for the host machine work.
552 HOST_LIB_PATH = [+ FOR host_modules +][+
553 IF lib_path +]$(HOST_LIB_PATH_[+module+])[+ ENDIF lib_path +][+
554 ENDFOR host_modules +]
555
556 # Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
557 @if gcc
7d804f0 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
aaronwl authored
558 HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
85115a1 2005-03-31 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
559 @endif gcc
560
561 [+ FOR host_modules +][+ IF lib_path +]
562 @if [+module+]
563 HOST_LIB_PATH_[+module+] = \
564 $$r/$(HOST_SUBDIR)/[+module+]/[+lib_path+]:[+ IF bootstrap
565 +]$$r/$(HOST_SUBDIR)/prev-[+module+]/[+lib_path+]:[+ ENDIF bootstrap +]
566 @endif [+module+]
567 [+ ENDIF lib_path +][+ ENDFOR host_modules +]
568
174d231 PR other/46020
aoliva authored
569 CXX_FOR_TARGET_FLAG_TO_PASS = \
570 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
571 @if target-libstdc++-v3
572 # CXX_FOR_TARGET is tricky to get right for target libs that require a
573 # functional C++ compiler. When we recurse, if we expand
574 # CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
575 # libstdc++ include flags from the script. Instead, we get an
576 # -funconfigured-* word, so that we'll get errors if this invalid C++
577 # command line is used for anything, but also so that we can use the
578 # word to decide whether or not to pass on this CXX_FOR_TARGET. If we
579 # don't pass it on, sub-make will use the default definition, that
580 # re-expands it at the time of use, so we'll get it right when we need
581 # it. One potential exception is the expansion of CXX_FOR_TARGET
582 # passed down as part of CXX within TARGET_FLAGS, but this wouldn't
583 # really work, for C++ host programs can't depend on the current-stage
584 # C++ target library.
585 CXX_FOR_TARGET_FLAG_TO_PASS = \
586 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
587 @endif target-libstdc++-v3
588
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
589 # Flags to pass down to all sub-makes.
26526d2 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
590 BASE_FLAGS_TO_PASS =[+ FOR flags_to_pass +][+ IF optional +] \
591 "`echo '[+flag+]=$([+flag+])' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"[+ ELSE optional +] \
bd1f965 ChangeLog:
aoliva authored
592 "[+flag+]=$([+flag+])"[+ ENDIF optional+][+ ENDFOR flags_to_pass +][+ FOR bootstrap-stage +] \
593 "STAGE[+id+]_CFLAGS=$(STAGE[+id+]_CFLAGS)" \
eea1ae2 * configure.ac: Add libelf to host_libs. Enable in-tree configury
aoliva authored
594 "STAGE[+id+]_CXXFLAGS=$(STAGE[+id+]_CXXFLAGS)" \
bd1f965 ChangeLog:
aoliva authored
595 "STAGE[+id+]_TFLAGS=$(STAGE[+id+]_TFLAGS)"[+ ENDFOR bootstrap-stage +] \
174d231 PR other/46020
aoliva authored
596 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
bd1f965 ChangeLog:
aoliva authored
597 "TFLAGS=$(TFLAGS)" \
3a6fbbb toplevel:
kcook authored
598 "CONFIG_SHELL=$(SHELL)" \
36bbd88 * Makefile.def: Introduce flags_to_pass.
neroden authored
599 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
600
ef8184c 2005-08-08 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
601 # We leave this in just in case, but it is not needed anymore.
602 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
599a3ea 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
603
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
604 # Flags to pass down to most sub-makes, in which we're building with
605 # the host environment.
606 EXTRA_HOST_FLAGS = \
607 'AR=$(AR)' \
608 'AS=$(AS)' \
609 'CC=$(CC)' \
610 'CXX=$(CXX)' \
611 'DLLTOOL=$(DLLTOOL)' \
bd1f965 ChangeLog:
aoliva authored
612 'GCJ=$(GCJ)' \
613 'GFORTRAN=$(GFORTRAN)' \
5ff5b63 * configure.ac: Add target-libgo to target_libraries. Set
ian authored
614 'GOC=$(GOC)' \
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
615 'LD=$(LD)' \
f5aebe3 toplevel:
bonzini authored
616 'LIPO=$(LIPO)' \
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
617 'NM=$(NM)' \
0c8a85c 2006-01-04 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
618 'OBJDUMP=$(OBJDUMP)' \
224ed65 * Makefile.tpl: Always pass down RANLIB.
neroden authored
619 'RANLIB=$(RANLIB)' \
3f71364 2011-11-09 Roland McGrath <mcgrathr@google.com>
dj authored
620 'READELF=$(READELF)' \
f5aebe3 toplevel:
bonzini authored
621 'STRIP=$(STRIP)' \
75d6a0a 2007-07-02 Kai Tietz <kai.tietz@onevision.com>
bonzini authored
622 'WINDRES=$(WINDRES)' \
623 'WINDMC=$(WINDMC)'
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
624
625 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
626
39f34cf 2006-12-19 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
627 # Flags to pass to stage2 and later makes.
628
629 POSTSTAGE1_FLAGS_TO_PASS = \
7ab76ce ./:
ian authored
630 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
631 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
632 GNATBIND="$${GNATBIND}" \
eea1ae2 * configure.ac: Add libelf to host_libs. Enable in-tree configury
aoliva authored
633 LDFLAGS="$${LDFLAGS}" \
634 HOST_LIBS="$${HOST_LIBS}" \
39f34cf 2006-12-19 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
635 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
636
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
637 # Flags to pass down to makes which are built with the target environment.
83f96a5 * Makefile.tpl: Throughout the file, use : $(MAKE) along with
drow authored
638 # The double $ decreases the length of the command line; those variables
639 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
c898f16 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
640 # *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
641 # so we expand them here.
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
642 EXTRA_TARGET_FLAGS = \
643 'AR=$$(AR_FOR_TARGET)' \
83f96a5 * Makefile.tpl: Throughout the file, use : $(MAKE) along with
drow authored
644 'AS=$(COMPILER_AS_FOR_TARGET)' \
bd1f965 ChangeLog:
aoliva authored
645 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
646 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
647 'CXX=$$(CXX_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
648 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
649 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
bd1f965 ChangeLog:
aoliva authored
650 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
651 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
5ff5b63 * configure.ac: Add target-libgo to target_libraries. Set
ian authored
652 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
653 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
83f96a5 * Makefile.tpl: Throughout the file, use : $(MAKE) along with
drow authored
654 'LD=$(COMPILER_LD_FOR_TARGET)' \
29327bb * Makefile.tpl (EXTRA_TARGET_FLAGS): Set LDFLAGS=LDFLAGS_FOR_TARGET.
mmitchel authored
655 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
bd1f965 ChangeLog:
aoliva authored
656 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
657 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
83f96a5 * Makefile.tpl: Throughout the file, use : $(MAKE) along with
drow authored
658 'NM=$(COMPILER_NM_FOR_TARGET)' \
ae74ffb ./
drow authored
659 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
660 'RANLIB=$$(RANLIB_FOR_TARGET)' \
3f71364 2011-11-09 Roland McGrath <mcgrathr@google.com>
dj authored
661 'READELF=$$(READELF_FOR_TARGET)' \
75d6a0a 2007-07-02 Kai Tietz <kai.tietz@onevision.com>
bonzini authored
662 'WINDRES=$$(WINDRES_FOR_TARGET)' \
bd1f965 ChangeLog:
aoliva authored
663 'WINDMC=$$(WINDMC_FOR_TARGET)' \
664 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
665 "TFLAGS=$$TFLAGS"
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
666
667 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
668
669 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
670 # unfortunately needs the native compiler and the target ar and
671 # ranlib.
672 # If any variables are added here, they must be added to do-*, below.
ff2e99a * Makefile.tpl: Make 'recursive targets' using autogen rather
neroden authored
673 # The BUILD_* variables are a special case, which are used for the gcc
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
674 # cross-building scheme.
675 EXTRA_GCC_FLAGS = \
676 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
75fc7ad PR bootstrap/7087
neroden authored
677 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
4dc4ff4 Move libgcc2 to toplevel libgcc
ro authored
678 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
679
70356f6 * Makefile.tpl: Make GCC_FLAGS_TO_PASS a superset of
neroden authored
680 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
681
bd1f965 ChangeLog:
aoliva authored
682 @if gcc
719faf1 ChangeLog:
aoliva authored
683 BUILD_CONFIG = @BUILD_CONFIG@
bd1f965 ChangeLog:
aoliva authored
684 ifneq ($(BUILD_CONFIG),)
685 include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
686 endif
687 @endif gcc
688
6f4f34a <top level>
neroden authored
689 .PHONY: configure-host
6caa530 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
690 configure-host: [+
6f4f34a <top level>
neroden authored
691 FOR host_modules +] \
692 maybe-configure-[+module+][+
693 ENDFOR host_modules +]
694 .PHONY: configure-target
695 configure-target: [+
696 FOR target_modules +] \
697 maybe-configure-target-[+module+][+
698 ENDFOR target_modules +]
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
699
54f0538 2004-06-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
700 # The target built for a native non-bootstrap build.
701 .PHONY: all
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
702 all:
703 @if gcc-bootstrap
f5aebe3 toplevel:
bonzini authored
704 [ -f stage_final ] || echo stage3 > stage_final
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
705 @r=`${PWD_COMMAND}`; export r; \
706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
83f96a5 * Makefile.tpl: Throughout the file, use : $(MAKE) along with
drow authored
707 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
708 @endif gcc-bootstrap
83f96a5 * Makefile.tpl: Throughout the file, use : $(MAKE) along with
drow authored
709 @: $(MAKE); $(unstage)
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
710 @r=`${PWD_COMMAND}`; export r; \
711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
bd1f965 ChangeLog:
aoliva authored
712 @if gcc-bootstrap
4156fd9 PR other/40159
aoliva authored
713 if [ -f stage_last ]; then \
a36217d * Makefile.tpl (all): Avoid harmless warning in make all when
aoliva authored
714 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
f5aebe3 toplevel:
bonzini authored
715 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
716 else \
bd1f965 ChangeLog:
aoliva authored
717 @endif gcc-bootstrap
bc1e0be PR other/40159
aoliva authored
718 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
719 @if gcc-bootstrap
720 ; \
9d247ee * Makefile.tpl (all): Avoid a trailing backslash.
rwild authored
721 fi \
bc1e0be PR other/40159
aoliva authored
722 @endif gcc-bootstrap
9d247ee * Makefile.tpl (all): Avoid a trailing backslash.
rwild authored
723 && :
6f4f34a <top level>
neroden authored
724
2f8725b 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
725 .PHONY: all-build
26526d2 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
726 [+ FOR build_modules +]
727 all-build: maybe-all-build-[+module+][+ ENDFOR build_modules +]
728
6f4f34a <top level>
neroden authored
729 .PHONY: all-host
26526d2 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
730 [+ FOR host_modules +][+ IF bootstrap +]
731 @if [+module+]-no-bootstrap[+ ENDIF bootstrap +]
732 all-host: maybe-all-[+module+][+ IF bootstrap +]
733 @endif [+module+]-no-bootstrap[+ ENDIF bootstrap +][+ ENDFOR host_modules +]
734
6f4f34a <top level>
neroden authored
735 .PHONY: all-target
26526d2 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
736 [+ FOR target_modules +][+ IF bootstrap +]
0a2e619 * Makefile.tpl (all-target): Correct @if conditional for target
drow authored
737 @if target-[+module+]-no-bootstrap[+ ENDIF bootstrap +]
26526d2 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
738 all-target: maybe-all-target-[+module+][+ IF bootstrap +]
0a2e619 * Makefile.tpl (all-target): Correct @if conditional for target
drow authored
739 @endif target-[+module+]-no-bootstrap[+
740 ENDIF bootstrap +][+ ENDFOR target_modules +]
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
741
742 # Do a target for all the subdirectories. A ``make do-X'' will do a
743 # ``make X'' in all subdirectories (because, in general, there is a
744 # dependency (below) of X upon do-X, a ``make X'' will also do this,
745 # but it may do additional work as well).
805e22b Merge basic-improvements-branch to trunk
zack authored
746 [+ FOR recursive_targets +]
ffe98fa * Makefile.tpl: Rename [+target+] to [+make_target+].
neroden authored
747 .PHONY: do-[+make_target+]
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
748 do-[+make_target+]:
83f96a5 * Makefile.tpl: Throughout the file, use : $(MAKE) along with
drow authored
749 @: $(MAKE); $(unstage)
e025d06 2005-10-22 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
750 @r=`${PWD_COMMAND}`; export r; \
751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
752 $(MAKE) $(RECURSE_FLAGS_TO_PASS) [+make_target+]-host \
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
753 [+make_target+]-target
754
ff2e99a * Makefile.tpl: Make 'recursive targets' using autogen rather
neroden authored
755
756 .PHONY: [+make_target+]-host
26526d2 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
757 [+ FOR host_modules +]
758 [+make_target+]-host: maybe-[+make_target+]-[+module+][+ ENDFOR host_modules +]
ff2e99a * Makefile.tpl: Make 'recursive targets' using autogen rather
neroden authored
759
760 .PHONY: [+make_target+]-target
26526d2 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
761 [+ FOR target_modules +]
762 [+make_target+]-target: maybe-[+make_target+]-target-[+module+][+ ENDFOR target_modules +]
805e22b Merge basic-improvements-branch to trunk
zack authored
763 [+ ENDFOR recursive_targets +]
764
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
765 # Here are the targets which correspond to the do-X targets.
766
130effc * configure.ac: Add "--with-pdfdir" configure option,
brooks authored
767 .PHONY: info installcheck dvi pdf html
768 .PHONY: install-info install-pdf install-html
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
769 .PHONY: clean distclean mostlyclean maintainer-clean realclean
770 .PHONY: local-clean local-distclean local-maintainer-clean
771 info: do-info
772 installcheck: do-installcheck
773 dvi: do-dvi
51f9352 --(top level)--------------------------------------------
brooks authored
774 pdf: do-pdf
956942f * Makefile.def: Add html support.
mrs authored
775 html: do-html
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
776
2067201 2002-12-18 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
777 # Make sure makeinfo is built before we do a `make info', if we're
778 # in fact building texinfo.
779 do-info: maybe-all-texinfo
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
780
781 install-info: do-install-info dir.info
7a8ca04 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
hjl authored
782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
783 if [ -f dir.info ] ; then \
0579469 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
aj authored
784 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
785 else true ; fi
786
130effc * configure.ac: Add "--with-pdfdir" configure option,
brooks authored
787 install-pdf: do-install-pdf
788
e0dbdbb 2006-05-24 Carlos O'Donell <carlos@codesourcery.com>
carlos authored
789 install-html: do-install-html
790
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
791 local-clean:
792 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
793
794 local-distclean:
795 -rm -f Makefile config.status config.cache mh-frag mt-frag
83f96a5 * Makefile.tpl: Throughout the file, use : $(MAKE) along with
drow authored
796 -rm -f maybedep.tmp serdep.tmp
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
797 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
798 rm -rf $(TARGET_SUBDIR); \
799 else true; fi
170853d * Makefile.tpl: Clean $(BUILD_SUBDIR).
drow authored
800 -rm -rf $(BUILD_SUBDIR)
c1eb9e3 2005-05-25 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
801 -if [ "$(HOST_SUBDIR)" != "." ]; then \
802 rm -rf $(HOST_SUBDIR); \
803 else true; fi
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
804 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
805 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
806 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
807 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
808 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
6881525 * Makefile.tpl: Use "-exec rm {}" rather than "-delete" to delet...
nickc authored
809 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
810
811 local-maintainer-clean:
812 @echo "This command is intended for maintainers to use;"
813 @echo "it deletes files that may require special tools to rebuild."
814
815 clean: do-clean local-clean
816 mostlyclean: do-mostlyclean local-clean
817 distclean: do-distclean local-clean local-distclean
818 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
819 maintainer-clean: local-distclean
820 realclean: maintainer-clean
821
822 # Check target.
823
824 .PHONY: check do-check
465fcca * Makefile.tpl (check, check-c++): Express dependencies using
kraai authored
825 check: do-check
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
826
805e22b Merge basic-improvements-branch to trunk
zack authored
827 # Only include modules actually being configured and built.
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
828 .PHONY: check-host
829 check-host: [+
4d9c9c8 2003-05-19 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
830 FOR host_modules +] \
831 maybe-check-[+module+][+
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
832 ENDFOR host_modules +]
833
834 .PHONY: check-target
835 check-target: [+
4d9c9c8 2003-05-19 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
836 FOR target_modules +] \
837 maybe-check-target-[+module+][+
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
838 ENDFOR target_modules +]
839
840 do-check:
83f96a5 * Makefile.tpl: Throughout the file, use : $(MAKE) along with
drow authored
841 @: $(MAKE); $(unstage)
e025d06 2005-10-22 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
842 @r=`${PWD_COMMAND}`; export r; \
843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
844 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
845
846 # Automated reporting of test results.
847
848 warning.log: build.log
849 $(srcdir)/contrib/warn_summary build.log > $@
850
851 mail-report.log:
852 if test x'$(BOOT_CFLAGS)' != x''; then \
853 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
854 fi; \
855 $(srcdir)/contrib/test_summary -t >$@
856 chmod +x $@
857 echo If you really want to send e-mail, run ./$@ now
858
859 mail-report-with-warnings.log: warning.log
860 if test x'$(BOOT_CFLAGS)' != x''; then \
861 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
862 fi; \
863 $(srcdir)/contrib/test_summary -t -i warning.log >$@
864 chmod +x $@
865 echo If you really want to send e-mail, run ./$@ now
866
867 # Installation targets.
868
805e22b Merge basic-improvements-branch to trunk
zack authored
869 .PHONY: install uninstall
8283f87 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
870 install:
83f96a5 * Makefile.tpl: Throughout the file, use : $(MAKE) along with
drow authored
871 @: $(MAKE); $(unstage)
e025d06 2005-10-22 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
872 @r=`${PWD_COMMAND}`; export r; \
873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
874 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
6f4f34a <top level>
neroden authored
875
4d9c9c8 2003-05-19 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
876 .PHONY: install-host-nogcc
877 install-host-nogcc: [+
ea8d3d7 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
878 FOR host_modules +][+ IF (not (= (get "module") "gcc")) +] \
879 maybe-install-[+module+][+ ENDIF +][+
4d9c9c8 2003-05-19 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
880 ENDFOR host_modules +]
881
6f4f34a <top level>
neroden authored
882 .PHONY: install-host
6caa530 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
883 install-host: [+
6f4f34a <top level>
neroden authored
884 FOR host_modules +] \
885 maybe-install-[+module+][+
886 ENDFOR host_modules +]
4d9c9c8 2003-05-19 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
887
6f4f34a <top level>
neroden authored
888 .PHONY: install-target
889 install-target: [+
890 FOR target_modules +] \
891 maybe-install-target-[+module+][+
892 ENDFOR target_modules +]
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
893
894 uninstall:
895 @echo "the uninstall target is not supported in this tree"
896
897 .PHONY: install.all
898 install.all: install-no-fixedincludes
899 @if [ -f ./gcc/Makefile ] ; then \
7a8ca04 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
hjl authored
900 r=`${PWD_COMMAND}` ; export r ; \
83f96a5 * Makefile.tpl: Throughout the file, use : $(MAKE) along with
drow authored
901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b53fe7 2004-06-22 Paolo Bonzini <bonzini@gnu.org>
bonzini authored
902 $(HOST_EXPORTS) \
ca86fd5 * Makefile.tpl: Use shared multilib.out. Use move-if-change for it.
neroden authored
903 (cd ./gcc && \
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
904 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
905 else \
906 true ; \
907 fi
908
909 # install-no-fixedincludes is used because Cygnus can not distribute
910 # the fixed header files.
911 .PHONY: install-no-fixedincludes
4d9c9c8 2003-05-19 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
912 install-no-fixedincludes: installdirs install-host-nogcc \
6f4f34a <top level>
neroden authored
913 install-target gcc-no-fixedincludes
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
914
2b7a4d5 PR other/46202: implement install-strip.
rwild authored
915 .PHONY: install-strip
916 install-strip:
917 @: $(MAKE); $(unstage)
918 @r=`${PWD_COMMAND}`; export r; \
919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
920 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
921
922 .PHONY: install-strip-host
923 install-strip-host: [+
924 FOR host_modules +] \
925 maybe-install-strip-[+module+][+
926 ENDFOR host_modules +]
927
928 .PHONY: install-strip-target
929 install-strip-target: [+
930 FOR target_modules +] \
931 maybe-install-strip-target-[+module+][+
932 ENDFOR target_modules +]
933
934
805e22b Merge basic-improvements-branch to trunk
zack authored
935 ### other supporting targets
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
936
805e22b Merge basic-improvements-branch to trunk
zack authored
937 MAKEDIRS= \
938 $(DESTDIR)$(prefix) \
939 $(DESTDIR)$(exec_prefix)
940 .PHONY: installdirs
941 installdirs: mkinstalldirs
942 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
943
944 dir.info: do-install-info
945 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
0579469 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
aj authored
946 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
805e22b Merge basic-improvements-branch to trunk
zack authored
947 mv -f dir.info.new dir.info ; \
948 else true ; \
2a1ac81 2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
neroden authored
949 fi
950
805e22b Merge basic-improvements-branch to trunk
zack authored
951 dist:
952 @echo "Building a full distribution of this tree isn't done"
953 @echo "via 'make dist'. Check out the etc/ subdirectory"
954
955 etags tags: TAGS
956
957 # Right now this just builds TAGS in each subdirectory. emacs19 has the
958 # ability to use several tags files at once, so there is probably no need
959 # to combine them into one big TAGS file (like CVS 1.3 does). We could
960 # (if we felt like it) have this Makefile write a piece of elisp which
961 # the user could load to tell emacs19 where all the TAGS files we just
962 # built are.
963 TAGS: do-TAGS
964
c15fb64