OLD | NEW |
1 [+ AutoGen5 template -*- Mode: Makefile -*- | 1 [+ AutoGen5 template -*- Mode: Makefile -*- |
2 in | 2 in |
3 +] | 3 +] |
4 | 4 |
5 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'. | 5 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'. |
6 # | 6 # |
7 # Makefile for directory with subdirs to build. | 7 # Makefile for directory with subdirs to build. |
8 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, | 8 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, |
9 # 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 | 9 # 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
10 # Free Software Foundation | 10 # Free Software Foundation |
11 # | 11 # |
12 # This file is free software; you can redistribute it and/or modify | 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 | 13 # it under the terms of the GNU General Public License as published by |
14 # the Free Software Foundation; either version 3 of the License, or | 14 # the Free Software Foundation; either version 3 of the License, or |
15 # (at your option) any later version. | 15 # (at your option) any later version. |
16 # | 16 # |
17 # This program is distributed in the hope that it will be useful, | 17 # This program is distributed in the hope that it will be useful, |
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 18 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 # is used instead of the directory itself to avoid including built | 113 # is used instead of the directory itself to avoid including built |
114 # executables in PATH. | 114 # executables in PATH. |
115 GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@ | 115 GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@ |
116 | 116 |
117 # Build programs are put under this directory. | 117 # Build programs are put under this directory. |
118 BUILD_SUBDIR = @build_subdir@ | 118 BUILD_SUBDIR = @build_subdir@ |
119 # This is set by the configure script to the arguments to use when configuring | 119 # This is set by the configure script to the arguments to use when configuring |
120 # directories built for the build system. | 120 # directories built for the build system. |
121 BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)" | 121 BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)" |
122 | 122 |
| 123 # Linker flags to use on the host, for stage1 or when not |
| 124 # bootstrapping. |
| 125 STAGE1_LDFLAGS = @stage1_ldflags@ |
| 126 |
| 127 # Libraries to use on the host, for stage1 or when not bootstrapping. |
| 128 STAGE1_LIBS = @stage1_libs@ |
| 129 |
| 130 # Linker flags to use for stage2 and later. |
| 131 POSTSTAGE1_LDFLAGS = @poststage1_ldflags@ |
| 132 |
| 133 # Libraries to use for stage2 and later. |
| 134 POSTSTAGE1_LIBS = @poststage1_libs@ |
| 135 |
123 # This is the list of variables to export in the environment when | 136 # This is the list of variables to export in the environment when |
124 # configuring any subdirectory. It must also be exported whenever | 137 # configuring any subdirectory. It must also be exported whenever |
125 # recursing into a build directory in case that directory's Makefile | 138 # recursing into a build directory in case that directory's Makefile |
126 # re-runs configure. | 139 # re-runs configure. |
127 BASE_EXPORTS = \ | 140 BASE_EXPORTS = \ |
128 FLEX="$(FLEX)"; export FLEX; \ | 141 FLEX="$(FLEX)"; export FLEX; \ |
129 LEX="$(LEX)"; export LEX; \ | 142 LEX="$(LEX)"; export LEX; \ |
130 BISON="$(BISON)"; export BISON; \ | 143 BISON="$(BISON)"; export BISON; \ |
131 YACC="$(YACC)"; export YACC; \ | 144 YACC="$(YACC)"; export YACC; \ |
132 M4="$(M4)"; export M4; \ | 145 M4="$(M4)"; export M4; \ |
| 146 SED="$(SED)"; export SED; \ |
| 147 AWK="$(AWK)"; export AWK; \ |
133 MAKEINFO="$(MAKEINFO)"; export MAKEINFO; | 148 MAKEINFO="$(MAKEINFO)"; export MAKEINFO; |
134 | 149 |
135 # This is the list of variables to export in the environment when | 150 # This is the list of variables to export in the environment when |
136 # configuring subdirectories for the build system. | 151 # configuring subdirectories for the build system. |
137 BUILD_EXPORTS = \ | 152 BUILD_EXPORTS = \ |
138 $(BASE_EXPORTS) \ | 153 $(BASE_EXPORTS) \ |
139 AR="$(AR_FOR_BUILD)"; export AR; \ | 154 AR="$(AR_FOR_BUILD)"; export AR; \ |
140 AS="$(AS_FOR_BUILD)"; export AS; \ | 155 AS="$(AS_FOR_BUILD)"; export AS; \ |
141 CC="$(CC_FOR_BUILD)"; export CC; \ | 156 CC="$(CC_FOR_BUILD)"; export CC; \ |
142 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | 157 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ |
(...skipping 11 matching lines...) Expand all Loading... |
154 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC; | 169 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC; |
155 | 170 |
156 # These variables must be set on the make command line for directories | 171 # These variables must be set on the make command line for directories |
157 # built for the build system to override those in BASE_FLAGS_TO_PASSS. | 172 # built for the build system to override those in BASE_FLAGS_TO_PASSS. |
158 EXTRA_BUILD_FLAGS = \ | 173 EXTRA_BUILD_FLAGS = \ |
159 CFLAGS="$(CFLAGS_FOR_BUILD)" \ | 174 CFLAGS="$(CFLAGS_FOR_BUILD)" \ |
160 LDFLAGS="$(LDFLAGS_FOR_BUILD)" | 175 LDFLAGS="$(LDFLAGS_FOR_BUILD)" |
161 | 176 |
162 # This is the list of directories to built for the host system. | 177 # This is the list of directories to built for the host system. |
163 SUBDIRS = @configdirs@ | 178 SUBDIRS = @configdirs@ |
| 179 TARGET_CONFIGDIRS = @target_configdirs@ |
164 # This is set by the configure script to the arguments to use when configuring | 180 # This is set by the configure script to the arguments to use when configuring |
165 # directories built for the host system. | 181 # directories built for the host system. |
166 HOST_CONFIGARGS = @host_configargs@ | 182 HOST_CONFIGARGS = @host_configargs@ |
167 # Host programs are put under this directory, which is . except if building | 183 # Host programs are put under this directory, which is . except if building |
168 # with srcdir=.. | 184 # with srcdir=.. |
169 HOST_SUBDIR = @host_subdir@ | 185 HOST_SUBDIR = @host_subdir@ |
170 # This is the list of variables to export in the environment when | 186 # This is the list of variables to export in the environment when |
171 # configuring subdirectories for the host system. We need to pass | 187 # configuring subdirectories for the host system. We need to pass |
172 # some to the GCC configure because of its hybrid host/target nature. | 188 # some to the GCC configure because of its hybrid host/target nature. |
173 HOST_EXPORTS = \ | 189 HOST_EXPORTS = \ |
174 $(BASE_EXPORTS) \ | 190 $(BASE_EXPORTS) \ |
175 CC="$(CC)"; export CC; \ | 191 CC="$(CC)"; export CC; \ |
176 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \ | 192 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \ |
177 CFLAGS="$(CFLAGS)"; export CFLAGS; \ | 193 CFLAGS="$(CFLAGS)"; export CFLAGS; \ |
178 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | 194 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ |
179 CXX="$(CXX)"; export CXX; \ | 195 CXX="$(CXX)"; export CXX; \ |
180 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | 196 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ |
| 197 GCJ="$(GCJ)"; export GCJ; \ |
| 198 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \ |
181 AR="$(AR)"; export AR; \ | 199 AR="$(AR)"; export AR; \ |
182 AS="$(AS)"; export AS; \ | 200 AS="$(AS)"; export AS; \ |
183 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | 201 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ |
184 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | 202 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ |
185 LD="$(LD)"; export LD; \ | 203 LD="$(LD)"; export LD; \ |
186 » LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \ | 204 » LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \ |
187 NM="$(NM)"; export NM; \ | 205 NM="$(NM)"; export NM; \ |
188 RANLIB="$(RANLIB)"; export RANLIB; \ | 206 RANLIB="$(RANLIB)"; export RANLIB; \ |
189 WINDRES="$(WINDRES)"; export WINDRES; \ | 207 WINDRES="$(WINDRES)"; export WINDRES; \ |
190 WINDMC="$(WINDMC)"; export WINDMC; \ | 208 WINDMC="$(WINDMC)"; export WINDMC; \ |
191 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | 209 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ |
192 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | 210 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ |
193 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \ | 211 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \ |
194 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \ | 212 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \ |
195 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \ | 213 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \ |
196 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \ | 214 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \ |
197 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \ | 215 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \ |
198 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \ | 216 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \ |
199 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \ | 217 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \ |
200 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export T
OPLEVEL_CONFIGURE_ARGUMENTS; \ | 218 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export T
OPLEVEL_CONFIGURE_ARGUMENTS; \ |
| 219 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \ |
201 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \ | 220 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \ |
202 GMPINC="$(HOST_GMPINC)"; export GMPINC; \ | 221 GMPINC="$(HOST_GMPINC)"; export GMPINC; \ |
203 PPLLIBS="$(HOST_PPLLIBS)"; export PPLLIBS; \ | 222 PPLLIBS="$(HOST_PPLLIBS)"; export PPLLIBS; \ |
204 PPLINC="$(HOST_PPLINC)"; export PPLINC; \ | 223 PPLINC="$(HOST_PPLINC)"; export PPLINC; \ |
205 CLOOGLIBS="$(HOST_CLOOGLIBS)"; export CLOOGLIBS; \ | 224 CLOOGLIBS="$(HOST_CLOOGLIBS)"; export CLOOGLIBS; \ |
206 CLOOGINC="$(HOST_CLOOGINC)"; export CLOOGINC; \ | 225 CLOOGINC="$(HOST_CLOOGINC)"; export CLOOGINC; \ |
| 226 LIBELFLIBS="$(HOST_LIBELFLIBS)" ; export LIBELFLIBS; \ |
| 227 LIBELFINC="$(HOST_LIBELFINC)" ; export LIBELFINC; \ |
207 @if gcc-bootstrap | 228 @if gcc-bootstrap |
208 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*
,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ | 229 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*
,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ |
209 @endif gcc-bootstrap | 230 @endif gcc-bootstrap |
210 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:
,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); | 231 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:
,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); |
211 | 232 |
| 233 POSTSTAGE1_CXX_EXPORT = \ |
| 234 CXX='$(CXX)'; export CXX; \ |
| 235 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD; |
| 236 @if target-libstdc++-v3-bootstrap |
| 237 # Override the above if we're bootstrapping C++. |
| 238 POSTSTAGE1_CXX_EXPORT = \ |
| 239 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \ |
| 240 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \ |
| 241 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \ |
| 242 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \ |
| 243 -I$$s/libstdc++-v3/libsupc++ \ |
| 244 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs"; export CXX; \ |
| 245 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD; |
| 246 @endif target-libstdc++-v3-bootstrap |
| 247 |
212 # Similar, for later GCC stages. | 248 # Similar, for later GCC stages. |
213 POSTSTAGE1_HOST_EXPORTS = \ | 249 POSTSTAGE1_HOST_EXPORTS = \ |
214 $(HOST_EXPORTS) \ | 250 $(HOST_EXPORTS) \ |
215 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \ | 251 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \ |
216 » -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \ | 252 » -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \ |
217 » CC_FOR_BUILD="$(STAGE_CC_WRAPPER) \ | 253 » $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \ |
218 » $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \ | 254 » CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \ |
219 » -B$$r/$(HOST_SUBDIR)/prev-gcc/ \ | 255 » $(POSTSTAGE1_CXX_EXPORT) \ |
220 » -B$(build_tooldir)/bin/"; export CC_FOR_BUILD; \ | 256 » GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \ |
221 » LDFLAGS="$(BOOT_LDFLAGS)"; export LDFLAGS; | 257 » LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \ |
| 258 » HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS; |
222 | 259 |
223 # Target libraries are put under this directory: | 260 # Target libraries are put under this directory: |
224 TARGET_SUBDIR = @target_subdir@ | 261 TARGET_SUBDIR = @target_subdir@ |
225 # This is set by the configure script to the arguments to use when configuring | 262 # This is set by the configure script to the arguments to use when configuring |
226 # directories built for the target. | 263 # directories built for the target. |
227 TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)" | 264 TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)" |
228 # This is the list of variables to export in the environment when | 265 # This is the list of variables to export in the environment when |
229 # configuring subdirectories for the host system. | 266 # configuring subdirectories for the target system. |
230 BASE_TARGET_EXPORTS = \ | 267 BASE_TARGET_EXPORTS = \ |
231 $(BASE_EXPORTS) \ | 268 $(BASE_EXPORTS) \ |
232 AR="$(AR_FOR_TARGET)"; export AR; \ | 269 AR="$(AR_FOR_TARGET)"; export AR; \ |
233 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \ | 270 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \ |
234 » CC="$(CC_FOR_TARGET)"; export CC; \ | 271 » CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \ |
235 » CFLAGS="$(CFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX
_CFLAGS_FOR_TARGET)"; export CFLAGS; \ | 272 » CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ |
236 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | 273 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ |
237 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | 274 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \ |
238 » CXXFLAGS="$(CXXFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PR
EFIX_CFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | 275 » CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ |
239 » GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | 276 » GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \ |
240 » GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \ | 277 » GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; exp
ort GFORTRAN; \ |
241 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | 278 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ |
242 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \ | 279 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \ |
243 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | 280 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ |
244 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \ | 281 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \ |
245 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \ | 282 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \ |
246 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \ | 283 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \ |
247 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | 284 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ |
248 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \ | 285 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \ |
249 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | 286 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ |
250 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \ | 287 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \ |
251 » $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVA
R)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); | 288 @if gcc-bootstrap |
| 289 » $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*
,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ |
| 290 @endif gcc-bootstrap |
| 291 » $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:
,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ |
| 292 » TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS; |
252 | 293 |
253 RAW_CXX_TARGET_EXPORTS = \ | 294 RAW_CXX_TARGET_EXPORTS = \ |
254 $(BASE_TARGET_EXPORTS) \ | 295 $(BASE_TARGET_EXPORTS) \ |
255 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ | 296 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ |
256 » CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; | 297 » CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CX
X; |
257 | 298 |
258 NORMAL_TARGET_EXPORTS = \ | 299 NORMAL_TARGET_EXPORTS = \ |
259 $(BASE_TARGET_EXPORTS) \ | 300 $(BASE_TARGET_EXPORTS) \ |
260 » CXX="$(CXX_FOR_TARGET)"; export CXX; | 301 » CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX; |
261 | 302 |
262 # Where to find GMP | 303 # Where to find GMP |
263 HOST_GMPLIBS = @gmplibs@ | 304 HOST_GMPLIBS = @gmplibs@ |
264 HOST_GMPINC = @gmpinc@ | 305 HOST_GMPINC = @gmpinc@ |
265 | 306 |
266 # Where to find PPL | 307 # Where to find PPL |
267 HOST_PPLLIBS = @ppllibs@ | 308 HOST_PPLLIBS = @ppllibs@ |
268 HOST_PPLINC = @pplinc@ | 309 HOST_PPLINC = @pplinc@ |
269 | 310 |
270 # Where to find CLOOG | 311 # Where to find CLOOG |
271 HOST_CLOOGLIBS = @clooglibs@ | 312 HOST_CLOOGLIBS = @clooglibs@ |
272 HOST_CLOOGINC = @clooginc@ | 313 HOST_CLOOGINC = @clooginc@ |
273 | 314 |
| 315 # Where to find libelf |
| 316 HOST_LIBELFLIBS = @libelflibs@ |
| 317 HOST_LIBELFINC = @libelfinc@ |
| 318 |
274 # ---------------------------------------------- | 319 # ---------------------------------------------- |
275 # Programs producing files for the BUILD machine | 320 # Programs producing files for the BUILD machine |
276 # ---------------------------------------------- | 321 # ---------------------------------------------- |
277 | 322 |
278 SHELL = @config_shell@ | 323 SHELL = @config_shell@ |
279 | 324 |
280 # pwd command to use. Allow user to override default by setting PWDCMD in | 325 # pwd command to use. Allow user to override default by setting PWDCMD in |
281 # the environment to account for automounters. The make variable must not | 326 # the environment to account for automounters. The make variable must not |
282 # be called PWDCMD, otherwise the value set here is passed to make | 327 # be called PWDCMD, otherwise the value set here is passed to make |
283 # subprocesses and overrides the setting from the user's environment. | 328 # subprocesses and overrides the setting from the user's environment. |
(...skipping 23 matching lines...) Expand all Loading... |
307 # here so that they can be overridden by Makefile fragments. | 352 # here so that they can be overridden by Makefile fragments. |
308 BUILD_PREFIX = @BUILD_PREFIX@ | 353 BUILD_PREFIX = @BUILD_PREFIX@ |
309 BUILD_PREFIX_1 = @BUILD_PREFIX_1@ | 354 BUILD_PREFIX_1 = @BUILD_PREFIX_1@ |
310 | 355 |
311 # Flags to pass to stage2 and later makes. They are defined | 356 # Flags to pass to stage2 and later makes. They are defined |
312 # here so that they can be overridden by Makefile fragments. | 357 # here so that they can be overridden by Makefile fragments. |
313 BOOT_CFLAGS= -g -O2 | 358 BOOT_CFLAGS= -g -O2 |
314 BOOT_LDFLAGS= | 359 BOOT_LDFLAGS= |
315 BOOT_ADAFLAGS=-gnatpg -gnata | 360 BOOT_ADAFLAGS=-gnatpg -gnata |
316 | 361 |
| 362 AWK = @AWK@ |
| 363 SED = @SED@ |
317 BISON = @BISON@ | 364 BISON = @BISON@ |
318 YACC = @YACC@ | 365 YACC = @YACC@ |
319 FLEX = @FLEX@ | 366 FLEX = @FLEX@ |
320 LEX = @LEX@ | 367 LEX = @LEX@ |
321 M4 = @M4@ | 368 M4 = @M4@ |
322 MAKEINFO = @MAKEINFO@ | 369 MAKEINFO = @MAKEINFO@ |
323 EXPECT = @EXPECT@ | 370 EXPECT = @EXPECT@ |
324 RUNTEST = @RUNTEST@ | 371 RUNTEST = @RUNTEST@ |
325 | 372 |
326 # This just becomes part of the MAKEINFO definition passed down to | 373 # This just becomes part of the MAKEINFO definition passed down to |
(...skipping 23 matching lines...) Expand all Loading... |
350 | 397 |
351 GNATBIND = @GNATBIND@ | 398 GNATBIND = @GNATBIND@ |
352 GNATMAKE = @GNATMAKE@ | 399 GNATMAKE = @GNATMAKE@ |
353 | 400 |
354 CFLAGS = @CFLAGS@ | 401 CFLAGS = @CFLAGS@ |
355 LDFLAGS = @LDFLAGS@ | 402 LDFLAGS = @LDFLAGS@ |
356 LIBCFLAGS = $(CFLAGS) | 403 LIBCFLAGS = $(CFLAGS) |
357 CXXFLAGS = @CXXFLAGS@ | 404 CXXFLAGS = @CXXFLAGS@ |
358 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates | 405 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates |
359 | 406 |
| 407 TFLAGS = |
| 408 |
| 409 # Defaults for all stages; some are overridden below. |
| 410 |
| 411 STAGE_CFLAGS = $(BOOT_CFLAGS) |
| 412 STAGE_TFLAGS = $(TFLAGS) |
| 413 STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@ |
| 414 |
| 415 [+ FOR bootstrap-stage +] |
| 416 # Defaults for stage [+id+]; some are overridden below. |
| 417 STAGE[+id+]_CFLAGS = $(STAGE_CFLAGS) |
| 418 STAGE[+id+]_CXXFLAGS = $(CXXFLAGS) |
| 419 @if target-libstdc++-v3-bootstrap |
| 420 # Override the above if we're bootstrapping C++. |
| 421 STAGE[+id+]_CXXFLAGS = $(STAGE[+id+]_CFLAGS) |
| 422 @endif target-libstdc++-v3-bootstrap |
| 423 STAGE[+id+]_TFLAGS = $(STAGE_TFLAGS) |
| 424 STAGE[+id+]_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS) |
| 425 [+ ENDFOR bootstrap-stage +] |
| 426 |
360 # Only build the C compiler for stage1, because that is the only one that | 427 # Only build the C compiler for stage1, because that is the only one that |
361 # we can guarantee will build with the native compiler, and also it is the | 428 # we can guarantee will build with the native compiler, and also it is the |
362 # only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS), | 429 # only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS), |
363 # MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them | 430 # MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them |
364 # overrideable (for a bootstrap build stage1 also builds gcc.info). | 431 # overrideable (for a bootstrap build stage1 also builds gcc.info). |
365 | 432 |
366 STAGE1_CHECKING=@stage1_checking@ | 433 STAGE1_CFLAGS = @stage1_cflags@ |
367 STAGE1_LANGUAGES=@stage1_languages@ | 434 STAGE1_CHECKING = @stage1_checking@ |
| 435 STAGE1_LANGUAGES = @stage1_languages@ |
| 436 # * We force-disable intermodule optimizations, even if |
| 437 # --enable-intermodule was passed, since the installed compiler |
| 438 # probably can't handle them. Luckily, autoconf always respects |
| 439 # the last argument when conflicting --enable arguments are passed. |
| 440 # * Likewise, we force-disable coverage flags, since the installed |
| 441 # compiler probably has never heard of them. |
| 442 STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \ |
| 443 » --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" |
368 | 444 |
369 STAGE1_CFLAGS=@stage1_cflags@ | 445 STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate |
370 STAGE2_CFLAGS=$(BOOT_CFLAGS) | 446 STAGEprofile_TFLAGS = $(STAGE2_TFLAGS) |
371 STAGE3_CFLAGS=$(BOOT_CFLAGS) | |
372 STAGE4_CFLAGS=$(BOOT_CFLAGS) | |
373 | 447 |
374 STAGE1_LIBCFLAGS=$(CFLAGS_FOR_TARGET) | 448 STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use |
375 STAGE2_LIBCFLAGS=$(CFLAGS_FOR_TARGET) | 449 STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS) |
376 STAGE3_LIBCFLAGS=$(CFLAGS_FOR_TARGET) | |
377 STAGE4_LIBCFLAGS=$(CFLAGS_FOR_TARGET) | |
378 | 450 |
379 do-compare = @do_compare@ | 451 do-compare = @do_compare@ |
380 do-compare3 = $(do-compare) | 452 do-compare3 = $(do-compare) |
381 do-compare-debug = $(SHELL) $(srcdir)/contrib/compare-debug $$f1 $$f2 | |
382 | 453 |
383 # ----------------------------------------------- | 454 # ----------------------------------------------- |
384 # Programs producing files for the TARGET machine | 455 # Programs producing files for the TARGET machine |
385 # ----------------------------------------------- | 456 # ----------------------------------------------- |
386 | 457 |
387 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@ | |
388 | |
389 AR_FOR_TARGET=@AR_FOR_TARGET@ | 458 AR_FOR_TARGET=@AR_FOR_TARGET@ |
390 AS_FOR_TARGET=@AS_FOR_TARGET@ | 459 AS_FOR_TARGET=@AS_FOR_TARGET@ |
391 CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@ $(FLAGS_FOR_TARGET) | 460 CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@ |
392 | 461 |
393 # If GCC_FOR_TARGET is not overriden on the command line, then this | 462 # If GCC_FOR_TARGET is not overriden on the command line, then this |
394 # variable is passed down to the gcc Makefile, where it is used to | 463 # variable is passed down to the gcc Makefile, where it is used to |
395 # build libgcc2.a. We define it here so that it can itself be | 464 # build libgcc2.a. We define it here so that it can itself be |
396 # overridden on the command line. | 465 # overridden on the command line. |
397 GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@ $(FLAGS_FOR_TARGET) | 466 GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@ |
398 CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET) | 467 CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@ |
399 RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET) | 468 RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@ |
400 GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@ $(FLAGS_FOR_TARGET) | 469 GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@ |
401 GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@ $(FLAGS_FOR_TARGET
) | 470 GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@ |
402 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@ | 471 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@ |
403 LD_FOR_TARGET=@LD_FOR_TARGET@ | 472 LD_FOR_TARGET=@LD_FOR_TARGET@ |
404 | 473 |
405 LIPO_FOR_TARGET=@LIPO_FOR_TARGET@ | 474 LIPO_FOR_TARGET=@LIPO_FOR_TARGET@ |
406 NM_FOR_TARGET=@NM_FOR_TARGET@ | 475 NM_FOR_TARGET=@NM_FOR_TARGET@ |
407 OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@ | 476 OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@ |
408 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@ | 477 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@ |
409 STRIP_FOR_TARGET=@STRIP_FOR_TARGET@ | 478 STRIP_FOR_TARGET=@STRIP_FOR_TARGET@ |
410 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@ | 479 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@ |
411 WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@ | 480 WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@ |
412 | 481 |
413 COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@ | 482 COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@ |
414 COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@ | 483 COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@ |
415 COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@ | 484 COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@ |
416 | 485 |
417 CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@ | 486 CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@ |
418 CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@ | 487 CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@ |
419 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ | |
420 DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@ | |
421 | 488 |
422 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) | 489 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) |
423 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates | 490 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates |
424 LDFLAGS_FOR_TARGET = | 491 LDFLAGS_FOR_TARGET = |
425 | 492 |
| 493 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@ |
| 494 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ |
| 495 DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@ |
| 496 |
| 497 XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG
_PREFIX_CFLAGS_FOR_TARGET) |
| 498 |
426 # ------------------------------------ | 499 # ------------------------------------ |
427 # Miscellaneous targets and flag lists | 500 # Miscellaneous targets and flag lists |
428 # ------------------------------------ | 501 # ------------------------------------ |
429 | 502 |
430 # The first rule in the file had better be this one. Don't put any above it. | 503 # The first rule in the file had better be this one. Don't put any above it. |
431 # This lives here to allow makefile fragments to contain dependencies. | 504 # This lives here to allow makefile fragments to contain dependencies. |
432 all: | 505 all: |
433 | 506 |
434 #### host and target specific makefile fragments come in here. | 507 #### host and target specific makefile fragments come in here. |
435 @target_makefile_frag@ | 508 @target_makefile_frag@ |
(...skipping 29 matching lines...) Expand all Loading... |
465 @if [+module+] | 538 @if [+module+] |
466 HOST_LIB_PATH_[+module+] = \ | 539 HOST_LIB_PATH_[+module+] = \ |
467 $$r/$(HOST_SUBDIR)/[+module+]/[+lib_path+]:[+ IF bootstrap | 540 $$r/$(HOST_SUBDIR)/[+module+]/[+lib_path+]:[+ IF bootstrap |
468 +]$$r/$(HOST_SUBDIR)/prev-[+module+]/[+lib_path+]:[+ ENDIF bootstrap +] | 541 +]$$r/$(HOST_SUBDIR)/prev-[+module+]/[+lib_path+]:[+ ENDIF bootstrap +] |
469 @endif [+module+] | 542 @endif [+module+] |
470 [+ ENDIF lib_path +][+ ENDFOR host_modules +] | 543 [+ ENDIF lib_path +][+ ENDFOR host_modules +] |
471 | 544 |
472 # Flags to pass down to all sub-makes. | 545 # Flags to pass down to all sub-makes. |
473 BASE_FLAGS_TO_PASS =[+ FOR flags_to_pass +][+ IF optional +] \ | 546 BASE_FLAGS_TO_PASS =[+ FOR flags_to_pass +][+ IF optional +] \ |
474 "`echo '[+flag+]=$([+flag+])' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"[+ ELSE
optional +] \ | 547 "`echo '[+flag+]=$([+flag+])' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"[+ ELSE
optional +] \ |
475 » "[+flag+]=$([+flag+])"[+ ENDIF optional+][+ ENDFOR flags_to_pass +] \ | 548 » "[+flag+]=$([+flag+])"[+ ENDIF optional+][+ ENDFOR flags_to_pass +][+ FO
R bootstrap-stage +] \ |
| 549 » "STAGE[+id+]_CFLAGS=$(STAGE[+id+]_CFLAGS)" \ |
| 550 » "STAGE[+id+]_CXXFLAGS=$(STAGE[+id+]_CXXFLAGS)" \ |
| 551 » "STAGE[+id+]_TFLAGS=$(STAGE[+id+]_TFLAGS)"[+ ENDFOR bootstrap-stage +] \ |
| 552 » "TFLAGS=$(TFLAGS)" \ |
476 "CONFIG_SHELL=$(SHELL)" \ | 553 "CONFIG_SHELL=$(SHELL)" \ |
477 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" | 554 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" |
478 | 555 |
479 # We leave this in just in case, but it is not needed anymore. | 556 # We leave this in just in case, but it is not needed anymore. |
480 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) | 557 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) |
481 | 558 |
482 # Flags to pass down to most sub-makes, in which we're building with | 559 # Flags to pass down to most sub-makes, in which we're building with |
483 # the host environment. | 560 # the host environment. |
484 EXTRA_HOST_FLAGS = \ | 561 EXTRA_HOST_FLAGS = \ |
485 'AR=$(AR)' \ | 562 'AR=$(AR)' \ |
486 'AS=$(AS)' \ | 563 'AS=$(AS)' \ |
487 'CC=$(CC)' \ | 564 'CC=$(CC)' \ |
488 'CXX=$(CXX)' \ | 565 'CXX=$(CXX)' \ |
489 'DLLTOOL=$(DLLTOOL)' \ | 566 'DLLTOOL=$(DLLTOOL)' \ |
| 567 'GCJ=$(GCJ)' \ |
| 568 'GFORTRAN=$(GFORTRAN)' \ |
490 'LD=$(LD)' \ | 569 'LD=$(LD)' \ |
491 'LIPO=$(LIPO)' \ | 570 'LIPO=$(LIPO)' \ |
492 'NM=$(NM)' \ | 571 'NM=$(NM)' \ |
493 'OBJDUMP=$(OBJDUMP)' \ | 572 'OBJDUMP=$(OBJDUMP)' \ |
494 'RANLIB=$(RANLIB)' \ | 573 'RANLIB=$(RANLIB)' \ |
495 'STRIP=$(STRIP)' \ | 574 'STRIP=$(STRIP)' \ |
496 'WINDRES=$(WINDRES)' \ | 575 'WINDRES=$(WINDRES)' \ |
497 'WINDMC=$(WINDMC)' | 576 'WINDMC=$(WINDMC)' |
498 | 577 |
499 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) | 578 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) |
500 | 579 |
501 # Flags that are concerned with the location of the X11 include files | 580 # Flags that are concerned with the location of the X11 include files |
502 # and library files | 581 # and library files |
503 # | 582 # |
504 # NOTE: until the top-level is getting the values via autoconf, it only | 583 # NOTE: until the top-level is getting the values via autoconf, it only |
505 # causes problems to have this top-level Makefile overriding the autoconf-set | 584 # causes problems to have this top-level Makefile overriding the autoconf-set |
506 # values in child directories. Only variables that don't conflict with | 585 # values in child directories. Only variables that don't conflict with |
507 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now. | 586 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now. |
508 # | 587 # |
509 X11_FLAGS_TO_PASS = \ | 588 X11_FLAGS_TO_PASS = \ |
510 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \ | 589 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \ |
511 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)' | 590 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)' |
512 | 591 |
513 # Flags to pass to stage2 and later makes. | 592 # Flags to pass to stage2 and later makes. |
514 | 593 |
515 POSTSTAGE1_FLAGS_TO_PASS = \ | 594 POSTSTAGE1_FLAGS_TO_PASS = \ |
516 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ | 595 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ |
517 » GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind" \ | 596 » CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \ |
518 » LDFLAGS="$(BOOT_LDFLAGS)" \ | 597 » GNATBIND="$${GNATBIND}" \ |
| 598 » LDFLAGS="$${LDFLAGS}" \ |
| 599 » HOST_LIBS="$${HOST_LIBS}" \ |
519 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" | 600 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" |
520 | 601 |
521 # Flags to pass down to makes which are built with the target environment. | 602 # Flags to pass down to makes which are built with the target environment. |
522 # The double $ decreases the length of the command line; those variables | 603 # The double $ decreases the length of the command line; those variables |
523 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The | 604 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The |
524 # *_CFLAGS_FOR_TARGET variables are not passed down and most often empty, | 605 # *_CFLAGS_FOR_TARGET variables are not passed down and most often empty, |
525 # so we expand them here. | 606 # so we expand them here. |
526 EXTRA_TARGET_FLAGS = \ | 607 EXTRA_TARGET_FLAGS = \ |
527 'AR=$$(AR_FOR_TARGET)' \ | 608 'AR=$$(AR_FOR_TARGET)' \ |
528 'AS=$(COMPILER_AS_FOR_TARGET)' \ | 609 'AS=$(COMPILER_AS_FOR_TARGET)' \ |
529 » 'CC=$$(CC_FOR_TARGET)' \ | 610 » 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ |
530 » 'CFLAGS=$$(CFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFI
X_CFLAGS_FOR_TARGET)' \ | 611 » 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \ |
531 » 'CXX=$$(CXX_FOR_TARGET)' \ | 612 » 'CXX=$$(CXX_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ |
532 » 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_P
REFIX_CFLAGS_FOR_TARGET)' \ | 613 » 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ |
533 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ | 614 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ |
| 615 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ |
| 616 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)'
\ |
534 'LD=$(COMPILER_LD_FOR_TARGET)' \ | 617 'LD=$(COMPILER_LD_FOR_TARGET)' \ |
535 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \ | 618 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \ |
536 » 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG
_PREFIX_CFLAGS_FOR_TARGET)' \ | 619 » 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ |
537 » 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(D
EBUG_PREFIX_CFLAGS_FOR_TARGET)' \ | 620 » 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ |
538 'NM=$(COMPILER_NM_FOR_TARGET)' \ | 621 'NM=$(COMPILER_NM_FOR_TARGET)' \ |
539 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \ | 622 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \ |
540 'RANLIB=$$(RANLIB_FOR_TARGET)' \ | 623 'RANLIB=$$(RANLIB_FOR_TARGET)' \ |
541 'WINDRES=$$(WINDRES_FOR_TARGET)' \ | 624 'WINDRES=$$(WINDRES_FOR_TARGET)' \ |
542 » 'WINDMC=$$(WINDMC_FOR_TARGET)' | 625 » 'WINDMC=$$(WINDMC_FOR_TARGET)' \ |
| 626 » 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \ |
| 627 » "TFLAGS=$$TFLAGS" |
543 | 628 |
544 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) | 629 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) |
545 | 630 |
546 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it | 631 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it |
547 # unfortunately needs the native compiler and the target ar and | 632 # unfortunately needs the native compiler and the target ar and |
548 # ranlib. | 633 # ranlib. |
549 # If any variables are added here, they must be added to do-*, below. | 634 # If any variables are added here, they must be added to do-*, below. |
550 # The BUILD_* variables are a special case, which are used for the gcc | 635 # The BUILD_* variables are a special case, which are used for the gcc |
551 # cross-building scheme. | 636 # cross-building scheme. |
552 EXTRA_GCC_FLAGS = \ | 637 EXTRA_GCC_FLAGS = \ |
553 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ | 638 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ |
554 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'
`" \ | 639 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'
`" \ |
555 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'
`" \ | 640 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'
`" \ |
556 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=
/'`" \ | 641 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=
/'`" \ |
557 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^
=]*=$$/XFOO=/'`" \ | 642 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^
=]*=$$/XFOO=/'`" \ |
558 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/X
FOO=/'`" | 643 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/X
FOO=/'`" |
559 | 644 |
560 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) | 645 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) |
561 | 646 |
| 647 @if gcc |
| 648 BUILD_CONFIG = @BUILD_CONFIG@ |
| 649 ifneq ($(BUILD_CONFIG),) |
| 650 include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk) |
| 651 endif |
| 652 @endif gcc |
| 653 |
562 .PHONY: configure-host | 654 .PHONY: configure-host |
563 configure-host: [+ | 655 configure-host: [+ |
564 FOR host_modules +] \ | 656 FOR host_modules +] \ |
565 maybe-configure-[+module+][+ | 657 maybe-configure-[+module+][+ |
566 ENDFOR host_modules +] | 658 ENDFOR host_modules +] |
567 .PHONY: configure-target | 659 .PHONY: configure-target |
568 configure-target: [+ | 660 configure-target: [+ |
569 FOR target_modules +] \ | 661 FOR target_modules +] \ |
570 maybe-configure-target-[+module+][+ | 662 maybe-configure-target-[+module+][+ |
571 ENDFOR target_modules +] | 663 ENDFOR target_modules +] |
572 | 664 |
573 # The target built for a native non-bootstrap build. | 665 # The target built for a native non-bootstrap build. |
574 .PHONY: all | 666 .PHONY: all |
575 all: | 667 all: |
576 @if gcc-bootstrap | 668 @if gcc-bootstrap |
577 [ -f stage_final ] || echo stage3 > stage_final | 669 [ -f stage_final ] || echo stage3 > stage_final |
578 @r=`${PWD_COMMAND}`; export r; \ | 670 @r=`${PWD_COMMAND}`; export r; \ |
579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
580 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble | 672 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble |
581 @endif gcc-bootstrap | 673 @endif gcc-bootstrap |
582 @: $(MAKE); $(unstage) | 674 @: $(MAKE); $(unstage) |
583 @r=`${PWD_COMMAND}`; export r; \ | 675 @r=`${PWD_COMMAND}`; export r; \ |
584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 677 @if gcc-bootstrap |
585 if [ -f stage_last ]; then \ | 678 if [ -f stage_last ]; then \ |
| 679 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_la
st)_TFLAGS)"; \ |
586 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \ | 680 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \ |
587 else \ | 681 else \ |
588 » $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target; \ | 682 @endif gcc-bootstrap |
589 » fi | 683 » $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \ |
| 684 @if gcc-bootstrap |
| 685 » ; \ |
| 686 » fi \ |
| 687 @endif gcc-bootstrap |
| 688 » && : |
590 | 689 |
591 .PHONY: all-build | 690 .PHONY: all-build |
592 [+ FOR build_modules +] | 691 [+ FOR build_modules +] |
593 all-build: maybe-all-build-[+module+][+ ENDFOR build_modules +] | 692 all-build: maybe-all-build-[+module+][+ ENDFOR build_modules +] |
594 | 693 |
595 .PHONY: all-host | 694 .PHONY: all-host |
596 [+ FOR host_modules +][+ IF bootstrap +] | 695 [+ FOR host_modules +][+ IF bootstrap +] |
597 @if [+module+]-no-bootstrap[+ ENDIF bootstrap +] | 696 @if [+module+]-no-bootstrap[+ ENDIF bootstrap +] |
598 all-host: maybe-all-[+module+][+ IF bootstrap +] | 697 all-host: maybe-all-[+module+][+ IF bootstrap +] |
599 @endif [+module+]-no-bootstrap[+ ENDIF bootstrap +][+ ENDFOR host_modules +] | 698 @endif [+module+]-no-bootstrap[+ ENDIF bootstrap +][+ ENDFOR host_modules +] |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 else true; fi | 764 else true; fi |
666 -rm -rf $(BUILD_SUBDIR) | 765 -rm -rf $(BUILD_SUBDIR) |
667 -if [ "$(HOST_SUBDIR)" != "." ]; then \ | 766 -if [ "$(HOST_SUBDIR)" != "." ]; then \ |
668 rm -rf $(HOST_SUBDIR); \ | 767 rm -rf $(HOST_SUBDIR); \ |
669 else true; fi | 768 else true; fi |
670 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile | 769 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile |
671 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES | 770 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES |
672 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null | 771 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null |
673 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null | 772 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null |
674 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null | 773 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null |
| 774 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null |
675 | 775 |
676 local-maintainer-clean: | 776 local-maintainer-clean: |
677 @echo "This command is intended for maintainers to use;" | 777 @echo "This command is intended for maintainers to use;" |
678 @echo "it deletes files that may require special tools to rebuild." | 778 @echo "it deletes files that may require special tools to rebuild." |
679 | 779 |
680 clean: do-clean local-clean | 780 clean: do-clean local-clean |
681 mostlyclean: do-mostlyclean local-clean | 781 mostlyclean: do-mostlyclean local-clean |
682 distclean: do-distclean local-clean local-distclean | 782 distclean: do-distclean local-clean local-distclean |
683 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean | 783 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean |
684 maintainer-clean: local-distclean | 784 maintainer-clean: local-distclean |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 rm -f [+subdir+]/[+module+]/multilib.tmp; \ | 932 rm -f [+subdir+]/[+module+]/multilib.tmp; \ |
833 else \ | 933 else \ |
834 rm -f [+subdir+]/[+module+]/Makefile; \ | 934 rm -f [+subdir+]/[+module+]/Makefile; \ |
835 mv [+subdir+]/[+module+]/multilib.tmp [+subdir+]/[+module+]/multilib
.out; \ | 935 mv [+subdir+]/[+module+]/multilib.tmp [+subdir+]/[+module+]/multilib
.out; \ |
836 fi; \ | 936 fi; \ |
837 else \ | 937 else \ |
838 mv [+subdir+]/[+module+]/multilib.tmp [+subdir+]/[+module+]/multilib.o
ut; \ | 938 mv [+subdir+]/[+module+]/multilib.tmp [+subdir+]/[+module+]/multilib.o
ut; \ |
839 fi; \ | 939 fi; \ |
840 [+ ENDIF check_multilibs +]test ! -f [+subdir+]/[+module+]/Makefile || e
xit 0; \ | 940 [+ ENDIF check_multilibs +]test ! -f [+subdir+]/[+module+]/Makefile || e
xit 0; \ |
841 $(SHELL) $(srcdir)/mkinstalldirs [+subdir+]/[+module+] ; \ | 941 $(SHELL) $(srcdir)/mkinstalldirs [+subdir+]/[+module+] ; \ |
842 » [+exports+] \ | 942 » [+exports+] [+extra_exports+] \ |
843 echo Configuring in [+subdir+]/[+module+]; \ | 943 echo Configuring in [+subdir+]/[+module+]; \ |
844 cd "[+subdir+]/[+module+]" || exit 1; \ | 944 cd "[+subdir+]/[+module+]" || exit 1; \ |
845 case $(srcdir) in \ | 945 case $(srcdir) in \ |
846 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | 946 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
847 *) topdir=`echo [+subdir+]/[+module+]/ | \ | 947 *) topdir=`echo [+subdir+]/[+module+]/ | \ |
848 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | 948 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
849 esac; \ | 949 esac; \ |
850 srcdiroption="--srcdir=$${topdir}/[+module+]"; \ | 950 srcdiroption="--srcdir=$${topdir}/[+module+]"; \ |
851 libsrcdir="$$s/[+module+]"; \ | 951 libsrcdir="$$s/[+module+]"; \ |
852 [+ IF no-config-site +]rm -f no-such-file || : ; \ | 952 [+ IF no-config-site +]rm -f no-such-file || : ; \ |
853 CONFIG_SITE=no-such-file [+ ENDIF +]$(SHELL) $${libsrcdir}/configure \ | 953 CONFIG_SITE=no-such-file [+ ENDIF +]$(SHELL) $${libsrcdir}/configure \ |
854 [+args+] --build=${build_alias} --host=[+host_alias+] \ | 954 [+args+] --build=${build_alias} --host=[+host_alias+] \ |
855 --target=[+target_alias+] $${srcdiroption} [+extra_configure_flags+] \ | 955 --target=[+target_alias+] $${srcdiroption} [+extra_configure_flags+] \ |
856 || exit 1 | 956 || exit 1 |
857 @endif [+prefix+][+module+] | 957 @endif [+prefix+][+module+] |
858 | 958 |
859 [+ IF bootstrap +] | 959 [+ IF bootstrap +] |
860 [+ FOR bootstrap_stage +] | 960 [+ FOR bootstrap_stage +] |
861 .PHONY: configure-stage[+id+]-[+prefix+][+module+] maybe-configure-stage[+id+]-[
+prefix+][+module+] | 961 .PHONY: configure-stage[+id+]-[+prefix+][+module+] maybe-configure-stage[+id+]-[
+prefix+][+module+] |
862 maybe-configure-stage[+id+]-[+prefix+][+module+]: | 962 maybe-configure-stage[+id+]-[+prefix+][+module+]: |
863 @if [+prefix+][+module+]-bootstrap | 963 @if [+prefix+][+module+]-bootstrap |
864 maybe-configure-stage[+id+]-[+prefix+][+module+]: configure-stage[+id+]-[+prefix
+][+module+] | 964 maybe-configure-stage[+id+]-[+prefix+][+module+]: configure-stage[+id+]-[+prefix
+][+module+] |
865 configure-stage[+id+]-[+prefix+][+module+]: | 965 configure-stage[+id+]-[+prefix+][+module+]: |
866 @[ $(current_stage) = stage[+id+] ] || $(MAKE) stage[+id+]-start | 966 @[ $(current_stage) = stage[+id+] ] || $(MAKE) stage[+id+]-start |
867 @$(SHELL) $(srcdir)/mkinstalldirs [+subdir+]/[+module+] | 967 @$(SHELL) $(srcdir)/mkinstalldirs [+subdir+]/[+module+] |
868 @r=`${PWD_COMMAND}`; export r; \ | 968 @r=`${PWD_COMMAND}`; export r; \ |
869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 970 TFLAGS="$(STAGE[+id+]_TFLAGS)"; \ |
870 [+ IF check_multilibs | 971 [+ IF check_multilibs |
871 +]echo "Checking multilib configuration for [+module+]..."; \ | 972 +]echo "Checking multilib configuration for [+module+]..."; \ |
872 $(CC_FOR_TARGET) --print-multi-lib > [+subdir+]/[+module+]/multilib.tmp
2> /dev/null ; \ | 973 $(CC_FOR_TARGET) --print-multi-lib > [+subdir+]/[+module+]/multilib.tmp
2> /dev/null ; \ |
873 if test -r [+subdir+]/[+module+]/multilib.out; then \ | 974 if test -r [+subdir+]/[+module+]/multilib.out; then \ |
874 if cmp -s [+subdir+]/[+module+]/multilib.tmp [+subdir+]/[+module+]/mul
tilib.out; then \ | 975 if cmp -s [+subdir+]/[+module+]/multilib.tmp [+subdir+]/[+module+]/mul
tilib.out; then \ |
875 rm -f [+subdir+]/[+module+]/multilib.tmp; \ | 976 rm -f [+subdir+]/[+module+]/multilib.tmp; \ |
876 else \ | 977 else \ |
877 rm -f [+subdir+]/[+module+]/Makefile; \ | 978 rm -f [+subdir+]/[+module+]/Makefile; \ |
878 mv [+subdir+]/[+module+]/multilib.tmp [+subdir+]/[+module+]/multilib
.out; \ | 979 mv [+subdir+]/[+module+]/multilib.tmp [+subdir+]/[+module+]/multilib
.out; \ |
879 fi; \ | 980 fi; \ |
880 else \ | 981 else \ |
881 mv [+subdir+]/[+module+]/multilib.tmp [+subdir+]/[+module+]/multilib.o
ut; \ | 982 mv [+subdir+]/[+module+]/multilib.tmp [+subdir+]/[+module+]/multilib.o
ut; \ |
882 fi; \ | 983 fi; \ |
883 [+ ENDIF check_multilibs +]test ! -f [+subdir+]/[+module+]/Makefile || e
xit 0; \ | 984 [+ ENDIF check_multilibs +]test ! -f [+subdir+]/[+module+]/Makefile || e
xit 0; \ |
884 [+exports+][+ IF prev +] \ | 985 [+exports+][+ IF prev +] \ |
885 » [+poststage1_exports+][+ ENDIF prev +] [+ IF prefix +] \ | 986 » [+poststage1_exports+][+ ENDIF prev +][+ IF prefix +] \ |
886 » CFLAGS="[+stage_libcflags+] $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_
CFLAGS_FOR_TARGET)"; export CFLAGS; \ | 987 » CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ |
887 » CXXFLAGS="[+stage_libcflags+] $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFI
X_CFLAGS_FOR_TARGET)"; export CXXFLAGS; [+ ELSE +] \ | 988 » CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ |
888 » CFLAGS="[+stage_cflags+]"; export CFLAGS; \ | 989 » LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS;[+ ELSE prefix +]
\ |
889 » CXXFLAGS="[+stage_cflags+]"; export CXXFLAGS; [+ ENDIF +] \ | 990 » CFLAGS="$(STAGE[+id+]_CFLAGS)"; export CFLAGS; \ |
| 991 » CXXFLAGS="$(STAGE[+id+]_CXXFLAGS)"; export CXXFLAGS;[+ IF prev +] \ |
| 992 » LIBCFLAGS="$(STAGE[+id+]_CFLAGS)"[+ ELSE prev +] \ |
| 993 » LIBCFLAGS="$(LIBCFLAGS)"[+ ENDIF prev +]; export LIBCFLAGS;[+ |
| 994 ENDIF prefix +] [+extra_exports+] \ |
890 echo Configuring stage [+id+] in [+subdir+]/[+module+] ; \ | 995 echo Configuring stage [+id+] in [+subdir+]/[+module+] ; \ |
891 $(SHELL) $(srcdir)/mkinstalldirs [+subdir+]/[+module+] ; \ | 996 $(SHELL) $(srcdir)/mkinstalldirs [+subdir+]/[+module+] ; \ |
892 cd [+subdir+]/[+module+] || exit 1; \ | 997 cd [+subdir+]/[+module+] || exit 1; \ |
893 case $(srcdir) in \ | 998 case $(srcdir) in \ |
894 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ | 999 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \ |
895 *) topdir=`echo [+subdir+]/[+module+]/ | \ | 1000 *) topdir=`echo [+subdir+]/[+module+]/ | \ |
896 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ | 1001 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ |
897 esac; \ | 1002 esac; \ |
898 srcdiroption="--srcdir=$${topdir}/[+module+]"; \ | 1003 srcdiroption="--srcdir=$${topdir}/[+module+]"; \ |
899 libsrcdir="$$s/[+module+]"; \ | 1004 libsrcdir="$$s/[+module+]"; \ |
900 $(SHELL) $${libsrcdir}/configure \ | 1005 $(SHELL) $${libsrcdir}/configure \ |
901 [+args+] --build=${build_alias} --host=[+host_alias+] \ | 1006 [+args+] --build=${build_alias} --host=[+host_alias+] \ |
902 » --target=[+target_alias+] $${srcdiroption} \ | 1007 » --target=[+target_alias+] $${srcdiroption} [+ IF prev +]\ |
903 » [+ IF prev +]--with-build-libsubdir=$(HOST_SUBDIR)[+ ENDIF prev +] \ | 1008 » --with-build-libsubdir=$(HOST_SUBDIR) [+ ENDIF prev +]\ |
904 » [+stage_configure_flags+] [+extra_configure_flags+] | 1009 » $(STAGE[+id+]_CONFIGURE_FLAGS)[+ IF extra_configure_flags +] \ |
| 1010 » [+extra_configure_flags+][+ ENDIF extra_configure_flags +] |
905 @endif [+prefix+][+module+]-bootstrap | 1011 @endif [+prefix+][+module+]-bootstrap |
906 [+ ENDFOR bootstrap_stage +] | 1012 [+ ENDFOR bootstrap_stage +] |
907 [+ ENDIF bootstrap +] | 1013 [+ ENDIF bootstrap +] |
908 [+ ENDDEF +] | 1014 [+ ENDDEF +] |
909 | 1015 |
910 [+ DEFINE all +] | 1016 [+ DEFINE all +] |
911 .PHONY: all-[+prefix+][+module+] maybe-all-[+prefix+][+module+] | 1017 .PHONY: all-[+prefix+][+module+] maybe-all-[+prefix+][+module+] |
912 maybe-all-[+prefix+][+module+]: | 1018 maybe-all-[+prefix+][+module+]: |
913 @if gcc-bootstrap | 1019 @if gcc-bootstrap |
914 all-[+prefix+][+module+]: stage_current | 1020 all-[+prefix+][+module+]: stage_current |
915 @endif gcc-bootstrap | 1021 @endif gcc-bootstrap |
916 @if [+prefix+][+module+] | 1022 @if [+prefix+][+module+] |
917 TARGET-[+prefix+][+module+]=[+ | 1023 TARGET-[+prefix+][+module+]=[+ |
918 IF all_target +][+all_target+][+ ELSE +]all[+ ENDIF all_target +] | 1024 IF all_target +][+all_target+][+ ELSE +]all[+ ENDIF all_target +] |
919 maybe-all-[+prefix+][+module+]: all-[+prefix+][+module+] | 1025 maybe-all-[+prefix+][+module+]: all-[+prefix+][+module+] |
920 all-[+prefix+][+module+]: configure-[+prefix+][+module+][+ IF bootstrap +][+ ELS
E +] | 1026 all-[+prefix+][+module+]: configure-[+prefix+][+module+][+ IF bootstrap +][+ ELS
E +] |
921 @: $(MAKE); $(unstage)[+ ENDIF bootstrap +] | 1027 @: $(MAKE); $(unstage)[+ ENDIF bootstrap +] |
922 @r=`${PWD_COMMAND}`; export r; \ | 1028 @r=`${PWD_COMMAND}`; export r; \ |
923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
924 » [+exports+] \ | 1030 » [+exports+] [+extra_exports+] \ |
925 (cd [+subdir+]/[+module+] && \ | 1031 (cd [+subdir+]/[+module+] && \ |
926 $(MAKE) $(BASE_FLAGS_TO_PASS) [+args+] [+extra_make_flags+] \ | 1032 $(MAKE) $(BASE_FLAGS_TO_PASS) [+args+] [+extra_make_flags+] \ |
927 $(TARGET-[+prefix+][+module+])) | 1033 $(TARGET-[+prefix+][+module+])) |
928 @endif [+prefix+][+module+] | 1034 @endif [+prefix+][+module+] |
929 | 1035 |
930 [+ IF bootstrap +] | 1036 [+ IF bootstrap +] |
931 [+ FOR bootstrap_stage +] | 1037 [+ FOR bootstrap_stage +] |
932 .PHONY: all-stage[+id+]-[+prefix+][+module+] maybe-all-stage[+id+]-[+prefix+][+m
odule+] | 1038 .PHONY: all-stage[+id+]-[+prefix+][+module+] maybe-all-stage[+id+]-[+prefix+][+m
odule+] |
933 .PHONY: clean-stage[+id+]-[+prefix+][+module+] maybe-clean-stage[+id+]-[+prefix+
][+module+] | 1039 .PHONY: clean-stage[+id+]-[+prefix+][+module+] maybe-clean-stage[+id+]-[+prefix+
][+module+] |
934 maybe-all-stage[+id+]-[+prefix+][+module+]: | 1040 maybe-all-stage[+id+]-[+prefix+][+module+]: |
935 maybe-clean-stage[+id+]-[+prefix+][+module+]: | 1041 maybe-clean-stage[+id+]-[+prefix+][+module+]: |
936 @if [+prefix+][+module+]-bootstrap | 1042 @if [+prefix+][+module+]-bootstrap |
937 maybe-all-stage[+id+]-[+prefix+][+module+]: all-stage[+id+]-[+prefix+][+module+] | 1043 maybe-all-stage[+id+]-[+prefix+][+module+]: all-stage[+id+]-[+prefix+][+module+] |
938 all-stage[+id+]: all-stage[+id+]-[+prefix+][+module+] | 1044 all-stage[+id+]: all-stage[+id+]-[+prefix+][+module+] |
939 TARGET-stage[+id+]-[+prefix+][+module+] = $(TARGET-[+prefix+][+module+]) | 1045 TARGET-stage[+id+]-[+prefix+][+module+] = $(TARGET-[+prefix+][+module+]) |
940 all-stage[+id+]-[+prefix+][+module+]: configure-stage[+id+]-[+prefix+][+module+] | 1046 all-stage[+id+]-[+prefix+][+module+]: configure-stage[+id+]-[+prefix+][+module+] |
941 @[ $(current_stage) = stage[+id+] ] || $(MAKE) stage[+id+]-start | 1047 @[ $(current_stage) = stage[+id+] ] || $(MAKE) stage[+id+]-start |
942 @r=`${PWD_COMMAND}`; export r; \ | 1048 @r=`${PWD_COMMAND}`; export r; \ |
943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 1050 TFLAGS="$(STAGE[+id+]_TFLAGS)"; \ |
944 [+exports+][+ IF prev +] \ | 1051 [+exports+][+ IF prev +] \ |
945 » [+poststage1_exports+][+ ENDIF prev +] \ | 1052 » [+poststage1_exports+][+ ENDIF prev +] [+extra_exports+] \ |
946 cd [+subdir+]/[+module+] && \ | 1053 cd [+subdir+]/[+module+] && \ |
947 » $(MAKE) $(BASE_FLAGS_TO_PASS) \ | 1054 » $(MAKE) $(BASE_FLAGS_TO_PASS)[+ IF prefix +] \ |
948 » » CFLAGS="[+stage_cflags+]" CXXFLAGS="[+stage_cflags+]" \ | 1055 » » CFLAGS="$(CFLAGS_FOR_TARGET)" \ |
949 » » LIBCFLAGS="[+stage_libcflags+]" \ | 1056 » » CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ |
950 » » CFLAGS_FOR_TARGET="[+stage_libcflags+]" \ | 1057 » » LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"[+ ELSE prefix +] \ |
951 » » CXXFLAGS_FOR_TARGET="[+stage_libcflags+]" [+args+] [+ | 1058 » » CFLAGS="$(STAGE[+id+]_CFLAGS)" \ |
| 1059 » » CXXFLAGS="$(STAGE[+id+]_CXXFLAGS)"[+ IF prev +] \ |
| 1060 » » LIBCFLAGS="$(STAGE[+id+]_CFLAGS)"[+ ELSE prev +] \ |
| 1061 » » LIBCFLAGS="$(LIBCFLAGS)"[+ ENDIF prev +][+ ENDIF prefix +] \ |
| 1062 » » CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ |
| 1063 » » CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ |
| 1064 » » LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ |
| 1065 » » [+args+] [+ |
952 IF prev +][+poststage1_args+][+ ENDIF prev | 1066 IF prev +][+poststage1_args+][+ ENDIF prev |
953 +] [+extra_make_flags+] \ | 1067 +] [+extra_make_flags+] \ |
| 1068 TFLAGS="$(STAGE[+id+]_TFLAGS)" \ |
954 $(TARGET-stage[+id+]-[+prefix+][+module+]) | 1069 $(TARGET-stage[+id+]-[+prefix+][+module+]) |
955 | 1070 |
956 maybe-clean-stage[+id+]-[+prefix+][+module+]: clean-stage[+id+]-[+prefix+][+modu
le+] | 1071 maybe-clean-stage[+id+]-[+prefix+][+module+]: clean-stage[+id+]-[+prefix+][+modu
le+] |
957 clean-stage[+id+]: clean-stage[+id+]-[+prefix+][+module+] | 1072 clean-stage[+id+]: clean-stage[+id+]-[+prefix+][+module+] |
958 clean-stage[+id+]-[+prefix+][+module+]: | 1073 clean-stage[+id+]-[+prefix+][+module+]: |
959 @if [ $(current_stage) = stage[+id+] ]; then \ | 1074 @if [ $(current_stage) = stage[+id+] ]; then \ |
960 [ -f [+subdir+]/[+module+]/Makefile ] || exit 0; \ | 1075 [ -f [+subdir+]/[+module+]/Makefile ] || exit 0; \ |
961 else \ | 1076 else \ |
962 [ -f [+subdir+]/stage[+id+]-[+module+]/Makefile ] || exit 0; \ | 1077 [ -f [+subdir+]/stage[+id+]-[+module+]/Makefile ] || exit 0; \ |
963 $(MAKE) stage[+id+]-start; \ | 1078 $(MAKE) stage[+id+]-start; \ |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1210 $(HOST_EXPORTS) \ | 1325 $(HOST_EXPORTS) \ |
1211 echo "Building the C and C++ compiler"; \ | 1326 echo "Building the C and C++ compiler"; \ |
1212 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" | 1327 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" |
1213 @r=`${PWD_COMMAND}`; export r; \ | 1328 @r=`${PWD_COMMAND}`; export r; \ |
1214 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \ | 1329 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \ |
1215 echo "Building runtime libraries"; \ | 1330 echo "Building runtime libraries"; \ |
1216 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all | 1331 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all |
1217 @endif gcc-no-bootstrap | 1332 @endif gcc-no-bootstrap |
1218 | 1333 |
1219 @if gcc | 1334 @if gcc |
1220 .PHONY: check-gcc-c++ | 1335 [+ FOR languages +] |
1221 check-gcc-c++: | 1336 .PHONY: check-gcc-[+language+] check-[+language+] |
1222 » @if [ -f ./gcc/Makefile ] ; then \ | 1337 check-gcc-[+language+]: |
1223 » r=`${PWD_COMMAND}`; export r; \ | 1338 » r=`${PWD_COMMAND}`; export r; \ |
1224 » s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1339 » s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1225 » $(HOST_EXPORTS) \ | 1340 » $(HOST_EXPORTS) \ |
1226 » (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \ | 1341 » (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) [+gcc-check-target+]); |
1227 » else \ | 1342 check-[+language+]: check-gcc-[+language+][+ IF lib-check-target +] [+ lib-check
-target +][+ ENDIF lib-check-target +] |
1228 » true; \ | 1343 [+ ENDFOR languages +] |
1229 » fi | |
1230 | |
1231 .PHONY: check-c++ | |
1232 check-c++: check-target-libstdc++-v3 check-gcc-c++ | |
1233 | 1344 |
1234 # Install the gcc headers files, but not the fixed include files, | 1345 # Install the gcc headers files, but not the fixed include files, |
1235 # which Cygnus is not allowed to distribute. This rule is very | 1346 # which Cygnus is not allowed to distribute. This rule is very |
1236 # dependent on the workings of the gcc Makefile.in. | 1347 # dependent on the workings of the gcc Makefile.in. |
1237 .PHONY: gcc-no-fixedincludes | 1348 .PHONY: gcc-no-fixedincludes |
1238 gcc-no-fixedincludes: | 1349 gcc-no-fixedincludes: |
1239 @if [ -f ./gcc/Makefile ]; then \ | 1350 @if [ -f ./gcc/Makefile ]; then \ |
1240 rm -rf gcc/tmp-include; \ | 1351 rm -rf gcc/tmp-include; \ |
1241 mv gcc/include gcc/tmp-include 2>/dev/null; \ | 1352 mv gcc/include gcc/tmp-include 2>/dev/null; \ |
1242 mkdir gcc/include; \ | 1353 mkdir gcc/include; \ |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1366 [+compare-target+]: | 1477 [+compare-target+]: |
1367 @r=`${PWD_COMMAND}`; export r; \ | 1478 @r=`${PWD_COMMAND}`; export r; \ |
1368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1369 if test -f stage[+prev+]-lean; then \ | 1480 if test -f stage[+prev+]-lean; then \ |
1370 echo Cannot compare object files as stage [+prev+] was deleted. ; \ | 1481 echo Cannot compare object files as stage [+prev+] was deleted. ; \ |
1371 exit 0 ; \ | 1482 exit 0 ; \ |
1372 fi; \ | 1483 fi; \ |
1373 : $(MAKE); $(stage); \ | 1484 : $(MAKE); $(stage); \ |
1374 rm -f .bad_compare ; \ | 1485 rm -f .bad_compare ; \ |
1375 echo Comparing stages [+prev+] and [+id+] ; \ | 1486 echo Comparing stages [+prev+] and [+id+] ; \ |
1376 » cd stage[+id+]-gcc; \ | 1487 sed=`echo stage[+id+] | sed 's,^stage,,;s,.,.,g'`; \ |
1377 » files=`find . -name "*$(objext)" -print` ; \ | 1488 » files=`find stage[+id+]-* -name "*$(objext)" -print | \ |
1378 » cd .. ; \ | 1489 » » sed -n s,^stage$$sed-,,p` ; \ |
1379 for file in $${files} ; do \ | 1490 for file in $${files} ; do \ |
1380 » f1=$$r/stage[+prev+]-gcc/$$file; f2=$$r/stage[+id+]-gcc/$$file; \ | 1491 » f1=$$r/stage[+prev+]-$$file; f2=$$r/stage[+id+]-$$file; \ |
| 1492 » if test ! -f $$f1; then continue; fi; \ |
1381 $(do-[+compare-target+]) > /dev/null 2>&1; \ | 1493 $(do-[+compare-target+]) > /dev/null 2>&1; \ |
1382 if test $$? -eq 1; then \ | 1494 if test $$? -eq 1; then \ |
1383 case $$file in \ | 1495 case $$file in \ |
1384 » ./cc*-checksum$(objext) | ./libgcc/* ) \ | 1496 » @compare_exclusions@) \ |
1385 echo warning: $$file differs ;; \ | 1497 echo warning: $$file differs ;; \ |
1386 *) \ | 1498 *) \ |
1387 echo $$file differs >> .bad_compare ;; \ | 1499 echo $$file differs >> .bad_compare ;; \ |
1388 esac ; \ | 1500 esac ; \ |
1389 fi ; \ | 1501 fi ; \ |
1390 done ; \ | 1502 done ; \ |
1391 if [ -f .bad_compare ]; then \ | 1503 if [ -f .bad_compare ]; then \ |
1392 echo "Bootstrap comparison failure!"; \ | 1504 echo "Bootstrap comparison failure!"; \ |
1393 cat .bad_compare; \ | 1505 cat .bad_compare; \ |
1394 exit 1; \ | 1506 exit 1; \ |
(...skipping 10 matching lines...) Expand all Loading... |
1405 [+ IF bootstrap-target +] | 1517 [+ IF bootstrap-target +] |
1406 .PHONY: [+bootstrap-target+] [+bootstrap-target+]-lean | 1518 .PHONY: [+bootstrap-target+] [+bootstrap-target+]-lean |
1407 [+bootstrap-target+]: | 1519 [+bootstrap-target+]: |
1408 echo stage[+id+] > stage_final | 1520 echo stage[+id+] > stage_final |
1409 @r=`${PWD_COMMAND}`; export r; \ | 1521 @r=`${PWD_COMMAND}`; export r; \ |
1410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1411 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage[+id+]-bubble | 1523 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage[+id+]-bubble |
1412 @: $(MAKE); $(unstage) | 1524 @: $(MAKE); $(unstage) |
1413 @r=`${PWD_COMMAND}`; export r; \ | 1525 @r=`${PWD_COMMAND}`; export r; \ |
1414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 1527 TFLAGS="$(STAGE[+id+]_TFLAGS)"; \ |
1415 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target | 1528 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target |
1416 | 1529 |
1417 [+bootstrap-target+]-lean: | 1530 [+bootstrap-target+]-lean: |
1418 echo stage[+id+] > stage_final | 1531 echo stage[+id+] > stage_final |
1419 @r=`${PWD_COMMAND}`; export r; \ | 1532 @r=`${PWD_COMMAND}`; export r; \ |
1420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1421 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage[+id+]-bubble | 1534 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage[+id+]-bubble |
1422 @: $(MAKE); $(unstage) | 1535 @: $(MAKE); $(unstage) |
1423 @r=`${PWD_COMMAND}`; export r; \ | 1536 @r=`${PWD_COMMAND}`; export r; \ |
1424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 1538 TFLAGS="$(STAGE[+id+]_TFLAGS)"; \ |
1425 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target | 1539 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target |
1426 [+ ENDIF bootstrap-target +] | 1540 [+ ENDIF bootstrap-target +] |
1427 | 1541 |
1428 # Rules to wipe a stage and all the following ones, also used for cleanstrap | 1542 # Rules to wipe a stage and all the following ones, also used for cleanstrap |
1429 [+ IF prev +]distclean-stage[+prev+]:: distclean-stage[+id+] [+ ENDIF prev +] | 1543 [+ IF prev +]distclean-stage[+prev+]:: distclean-stage[+id+] [+ ENDIF prev +] |
1430 .PHONY: distclean-stage[+id+] | 1544 .PHONY: distclean-stage[+id+] |
1431 distclean-stage[+id+]:: | 1545 distclean-stage[+id+]:: |
1432 @: $(MAKE); $(stage) | 1546 @: $(MAKE); $(stage) |
1433 @test "`cat stage_last`" != stage[+id+] || rm -f stage_last | 1547 @test "`cat stage_last`" != stage[+id+] || rm -f stage_last |
1434 rm -rf stage[+id+]-* [+ | 1548 rm -rf stage[+id+]-* [+ |
1435 IF compare-target +][+compare-target+] [+ ENDIF compare-target +] | 1549 IF compare-target +][+compare-target+] [+ ENDIF compare-target +] |
1436 | 1550 |
1437 [+ IF cleanstrap-target +] | 1551 [+ IF cleanstrap-target +] |
1438 .PHONY: [+cleanstrap-target+] | 1552 .PHONY: [+cleanstrap-target+] |
1439 [+cleanstrap-target+]: do-distclean local-clean | 1553 [+cleanstrap-target+]: do-distclean local-clean |
1440 echo stage[+id+] > stage_final | 1554 echo stage[+id+] > stage_final |
1441 @r=`${PWD_COMMAND}`; export r; \ | 1555 @r=`${PWD_COMMAND}`; export r; \ |
1442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1443 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage[+id+]-bubble | 1557 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage[+id+]-bubble |
1444 @: $(MAKE); $(unstage) | 1558 @: $(MAKE); $(unstage) |
1445 @r=`${PWD_COMMAND}`; export r; \ | 1559 @r=`${PWD_COMMAND}`; export r; \ |
1446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 1561 TFLAGS="$(STAGE[+id+]_TFLAGS)"; \ |
1447 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target | 1562 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target |
1448 [+ ENDIF cleanstrap-target +] | 1563 [+ ENDIF cleanstrap-target +] |
1449 @endif gcc-bootstrap | 1564 @endif gcc-bootstrap |
1450 | 1565 |
1451 [+ ENDFOR bootstrap-stage +] | 1566 [+ ENDFOR bootstrap-stage +] |
1452 | 1567 |
1453 stageprofile-end:: | 1568 stageprofile-end:: |
1454 $(MAKE) distclean-stagefeedback | 1569 $(MAKE) distclean-stagefeedback |
1455 | 1570 |
1456 stagefeedback-start:: | 1571 stagefeedback-start:: |
(...skipping 17 matching lines...) Expand all Loading... |
1474 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble | 1589 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble |
1475 | 1590 |
1476 # Same as unstage, but not phony and defaulting to stage1-start. We place | 1591 # Same as unstage, but not phony and defaulting to stage1-start. We place |
1477 # it in the dependency so that for example `make -j3 all-gcc' works. | 1592 # it in the dependency so that for example `make -j3 all-gcc' works. |
1478 stage_current: | 1593 stage_current: |
1479 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi | 1594 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi |
1480 | 1595 |
1481 .PHONY: restrap | 1596 .PHONY: restrap |
1482 restrap:: | 1597 restrap:: |
1483 @: $(MAKE); $(stage) | 1598 @: $(MAKE); $(stage) |
1484 » rm -rf stage1-$(TARGET_SUBDIR) [+ FOR bootstrap-stage +][+ IF prev | 1599 » rm -rf stage1-$(TARGET_SUBDIR)[+ FOR bootstrap-stage +][+ IF prev |
1485 » +]stage[+id+]-* [+ ENDIF prev +][+ ENDFOR bootstrap-stage +] | 1600 » +] stage[+id+]-*[+ ENDIF prev +][+ ENDFOR bootstrap-stage +] |
1486 restrap:: all | 1601 restrap:: all |
1487 @endif gcc-bootstrap | 1602 @endif gcc-bootstrap |
1488 | 1603 |
1489 # -------------------------------------- | 1604 # -------------------------------------- |
1490 # Dependencies between different modules | 1605 # Dependencies between different modules |
1491 # -------------------------------------- | 1606 # -------------------------------------- |
1492 | 1607 |
1493 # Generic dependencies for target modules on host stuff, especially gcc | 1608 # Generic dependencies for target modules on host stuff, especially gcc |
1494 @if gcc-bootstrap[+ FOR target_modules +][+ IF bootstrap | 1609 @if gcc-bootstrap[+ FOR target_modules +][+ IF bootstrap |
1495 +][+ FOR bootstrap_stage +] | 1610 +][+ FOR bootstrap_stage +] |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 | 1793 |
1679 # ------------------------------ | 1794 # ------------------------------ |
1680 # Special directives to GNU Make | 1795 # Special directives to GNU Make |
1681 # ------------------------------ | 1796 # ------------------------------ |
1682 | 1797 |
1683 # Don't pass command-line variables to submakes. | 1798 # Don't pass command-line variables to submakes. |
1684 .NOEXPORT: | 1799 .NOEXPORT: |
1685 MAKEOVERRIDES= | 1800 MAKEOVERRIDES= |
1686 | 1801 |
1687 # end of Makefile.in | 1802 # end of Makefile.in |
OLD | NEW |