OSDN Git Service

Latest updates from FSF 4.7 branch
[pf3gnuchains/gcc-fork.git] / Makefile.in
1
2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
3 #
4 # Makefile for directory with subdirs to build.
5 #   Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6 #   1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
7 #   Free Software Foundation
8 #
9 # This file is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 3 of the License, or
12 # (at your option) any later version.
13
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
18
19 # You should have received a copy of the GNU General Public License
20 # along with this program; see the file COPYING3.  If not see
21 # <http://www.gnu.org/licenses/>.
22 #
23
24 # First, test for a proper version of make, but only where one is required.
25
26 @if gcc
27 ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty.
28 $(error GNU make version 3.80 or newer is required.)
29 endif
30 @endif gcc
31
32 # -------------------------------
33 # Standard Autoconf-set variables
34 # -------------------------------
35 VPATH=@srcdir@
36
37 build_alias=@build_noncanonical@
38 build_vendor=@build_vendor@
39 build_os=@build_os@
40 build=@build@
41 host_alias=@host_noncanonical@
42 host_vendor=@host_vendor@
43 host_os=@host_os@
44 host=@host@
45 target_alias=@target_noncanonical@
46 target_vendor=@target_vendor@
47 target_os=@target_os@
48 target=@target@
49
50 program_transform_name = @program_transform_name@
51
52 prefix = @prefix@
53 exec_prefix = @exec_prefix@
54
55 srcdir = @srcdir@
56
57 bindir = @bindir@
58 sbindir = @sbindir@
59 libexecdir = @libexecdir@
60 datadir = @datadir@
61 sysconfdir = @sysconfdir@
62 sharedstatedir = @sharedstatedir@
63 localstatedir = @localstatedir@
64 libdir = @libdir@
65 includedir = @includedir@
66 oldincludedir = @oldincludedir@
67 infodir = @infodir@
68 datarootdir = @datarootdir@
69 docdir = @docdir@
70 pdfdir = @pdfdir@
71 htmldir = @htmldir@
72 mandir = @mandir@
73 man1dir = $(mandir)/man1
74 man2dir = $(mandir)/man2
75 man3dir = $(mandir)/man3
76 man4dir = $(mandir)/man4
77 man5dir = $(mandir)/man5
78 man6dir = $(mandir)/man6
79 man7dir = $(mandir)/man7
80 man8dir = $(mandir)/man8
81 man9dir = $(mandir)/man9
82
83 INSTALL = @INSTALL@
84 INSTALL_PROGRAM = @INSTALL_PROGRAM@
85 INSTALL_SCRIPT = @INSTALL_SCRIPT@
86 INSTALL_DATA = @INSTALL_DATA@
87 LN = @LN@
88 LN_S = @LN_S@
89 MAINT = @MAINT@
90 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
91 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
92
93 # -------------------------------------------------
94 # Miscellaneous non-standard autoconf-set variables
95 # -------------------------------------------------
96
97 # The gcc driver likes to know the arguments it was configured with.
98 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
99
100 tooldir = @tooldir@
101 build_tooldir = @build_tooldir@
102
103 # This is the name of the environment variable used for the path to
104 # the libraries.
105 RPATH_ENVVAR = @RPATH_ENVVAR@
106
107 # On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path
108 # is used instead of the directory itself to avoid including built
109 # executables in PATH.
110 GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
111
112 # Build programs are put under this directory.
113 BUILD_SUBDIR = @build_subdir@
114 # This is set by the configure script to the arguments to use when configuring
115 # directories built for the build system.
116 BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
117
118 # Linker flags to use on the host, for stage1 or when not
119 # bootstrapping.
120 STAGE1_LDFLAGS = @stage1_ldflags@
121
122 # Libraries to use on the host, for stage1 or when not bootstrapping.
123 STAGE1_LIBS = @stage1_libs@
124
125 # Linker flags to use for stage2 and later.
126 POSTSTAGE1_LDFLAGS = @poststage1_ldflags@
127
128 # Libraries to use for stage2 and later.
129 POSTSTAGE1_LIBS = @poststage1_libs@
130
131 # This is the list of variables to export in the environment when
132 # configuring any subdirectory.  It must also be exported whenever
133 # recursing into a build directory in case that directory's Makefile
134 # re-runs configure.
135 BASE_EXPORTS = \
136         FLEX="$(FLEX)"; export FLEX; \
137         LEX="$(LEX)"; export LEX; \
138         BISON="$(BISON)"; export BISON; \
139         YACC="$(YACC)"; export YACC; \
140         M4="$(M4)"; export M4; \
141         SED="$(SED)"; export SED; \
142         AWK="$(AWK)"; export AWK; \
143         MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
144
145 # This is the list of variables to export in the environment when
146 # configuring subdirectories for the build system.
147 BUILD_EXPORTS = \
148         $(BASE_EXPORTS) \
149         AR="$(AR_FOR_BUILD)"; export AR; \
150         AS="$(AS_FOR_BUILD)"; export AS; \
151         CC="$(CC_FOR_BUILD)"; export CC; \
152         CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
153         CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
154         CXX="$(CXX_FOR_BUILD)"; export CXX; \
155         CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
156         GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
157         GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
158         GOC="$(GOC_FOR_BUILD)"; export GOC; \
159         GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \
160         DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
161         LD="$(LD_FOR_BUILD)"; export LD; \
162         LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
163         NM="$(NM_FOR_BUILD)"; export NM; \
164         RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
165         WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
166         WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
167
168 # These variables must be set on the make command line for directories
169 # built for the build system to override those in BASE_FLAGS_TO_PASSS.
170 EXTRA_BUILD_FLAGS = \
171         CFLAGS="$(CFLAGS_FOR_BUILD)" \
172         LDFLAGS="$(LDFLAGS_FOR_BUILD)"
173
174 # This is the list of directories to built for the host system.
175 SUBDIRS = @configdirs@
176 TARGET_CONFIGDIRS = @target_configdirs@
177 # This is set by the configure script to the arguments to use when configuring
178 # directories built for the host system.
179 HOST_CONFIGARGS = @host_configargs@
180 # Host programs are put under this directory, which is . except if building
181 # with srcdir=..
182 HOST_SUBDIR = @host_subdir@
183 # This is the list of variables to export in the environment when
184 # configuring subdirectories for the host system.  We need to pass
185 # some to the GCC configure because of its hybrid host/target nature.
186 HOST_EXPORTS = \
187         $(BASE_EXPORTS) \
188         CC="$(CC)"; export CC; \
189         ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
190         CFLAGS="$(CFLAGS)"; export CFLAGS; \
191         CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
192         CXX="$(CXX)"; export CXX; \
193         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
194         GCJ="$(GCJ)"; export GCJ; \
195         GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
196         GOC="$(GOC)"; export GOC; \
197         AR="$(AR)"; export AR; \
198         AS="$(AS)"; export AS; \
199         CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
200         DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
201         LD="$(LD)"; export LD; \
202         LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
203         NM="$(NM)"; export NM; \
204         RANLIB="$(RANLIB)"; export RANLIB; \
205         WINDRES="$(WINDRES)"; export WINDRES; \
206         WINDMC="$(WINDMC)"; export WINDMC; \
207         OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
208         OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
209         READELF="$(READELF)"; export READELF; \
210         AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
211         AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
212         GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
213         LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
214         NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
215         OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
216         RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
217         READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
218         TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
219         HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
220         GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
221         GMPINC="$(HOST_GMPINC)"; export GMPINC; \
222         PPLLIBS="$(HOST_PPLLIBS)"; export PPLLIBS; \
223         PPLINC="$(HOST_PPLINC)"; export PPLINC; \
224         CLOOGLIBS="$(HOST_CLOOGLIBS)"; export CLOOGLIBS; \
225         CLOOGINC="$(HOST_CLOOGINC)"; export CLOOGINC; \
226         LIBELFLIBS="$(HOST_LIBELFLIBS)" ; export LIBELFLIBS; \
227         LIBELFINC="$(HOST_LIBELFINC)" ; export LIBELFINC; \
228 @if gcc-bootstrap
229         $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
230 @endif gcc-bootstrap
231         $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
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           -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
242           -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
243           -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
244           -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
245           -I$$s/libstdc++-v3/libsupc++ \
246           -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
247           -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \
248           export CXX; \
249         CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
250 @endif target-libstdc++-v3-bootstrap
251
252 # Similar, for later GCC stages.
253 POSTSTAGE1_HOST_EXPORTS = \
254         $(HOST_EXPORTS) \
255         CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
256           -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
257           $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
258         CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
259         $(POSTSTAGE1_CXX_EXPORT) \
260         GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
261         LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
262         HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
263
264 # Target libraries are put under this directory:
265 TARGET_SUBDIR = @target_subdir@
266 # This is set by the configure script to the arguments to use when configuring
267 # directories built for the target.
268 TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
269 # This is the list of variables to export in the environment when
270 # configuring subdirectories for the target system.
271 BASE_TARGET_EXPORTS = \
272         $(BASE_EXPORTS) \
273         AR="$(AR_FOR_TARGET)"; export AR; \
274         AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
275         CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
276         CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
277         CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
278         CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
279         CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
280         GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \
281         GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
282         GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
283         DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
284         LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
285         LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
286         LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
287         NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
288         OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
289         RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
290         READELF="$(READELF_FOR_TARGET)"; export READELF; \
291         STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
292         WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
293         WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
294 @if gcc-bootstrap
295         $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
296 @endif gcc-bootstrap
297         $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
298         TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
299
300 RAW_CXX_TARGET_EXPORTS = \
301         $(BASE_TARGET_EXPORTS) \
302         CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
303         CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
304
305 NORMAL_TARGET_EXPORTS = \
306         $(BASE_TARGET_EXPORTS) \
307         CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
308
309 # Where to find GMP
310 HOST_GMPLIBS = @gmplibs@
311 HOST_GMPINC = @gmpinc@
312
313 # Where to find PPL
314 HOST_PPLLIBS = @ppllibs@
315 HOST_PPLINC = @pplinc@
316
317 # Where to find CLOOG
318 HOST_CLOOGLIBS = @clooglibs@
319 HOST_CLOOGINC = @clooginc@
320
321 # Where to find libelf
322 HOST_LIBELFLIBS = @libelflibs@
323 HOST_LIBELFINC = @libelfinc@
324
325 EXTRA_CONFIGARGS_LIBJAVA = @EXTRA_CONFIGARGS_LIBJAVA@
326
327 # ----------------------------------------------
328 # Programs producing files for the BUILD machine
329 # ----------------------------------------------
330
331 SHELL = @SHELL@
332
333 # pwd command to use.  Allow user to override default by setting PWDCMD in
334 # the environment to account for automounters.  The make variable must not
335 # be called PWDCMD, otherwise the value set here is passed to make
336 # subprocesses and overrides the setting from the user's environment.
337 # Don't use PWD since it is a common shell environment variable and we
338 # don't want to corrupt it.
339 PWD_COMMAND = $${PWDCMD-pwd}
340
341 # compilers to use to create programs which must be run in the build
342 # environment.
343 AR_FOR_BUILD = @AR_FOR_BUILD@
344 AS_FOR_BUILD = @AS_FOR_BUILD@
345 CC_FOR_BUILD = @CC_FOR_BUILD@
346 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
347 CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
348 CXX_FOR_BUILD = @CXX_FOR_BUILD@
349 DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
350 GCJ_FOR_BUILD = @GCJ_FOR_BUILD@
351 GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
352 GOC_FOR_BUILD = @GOC_FOR_BUILD@
353 LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
354 LD_FOR_BUILD = @LD_FOR_BUILD@
355 NM_FOR_BUILD = @NM_FOR_BUILD@
356 RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
357 WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
358 WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
359
360 # Special variables passed down in EXTRA_GCC_FLAGS.  They are defined
361 # here so that they can be overridden by Makefile fragments.
362 BUILD_PREFIX = @BUILD_PREFIX@
363 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
364
365 # Flags to pass to stage2 and later makes.  They are defined
366 # here so that they can be overridden by Makefile fragments.
367 BOOT_CFLAGS= -g -O2
368 BOOT_LDFLAGS=
369 BOOT_ADAFLAGS=-gnatpg -gnata
370
371 AWK = @AWK@
372 SED = @SED@
373 BISON = @BISON@
374 YACC = @YACC@
375 FLEX = @FLEX@
376 LEX = @LEX@
377 M4 = @M4@
378 MAKEINFO = @MAKEINFO@
379 EXPECT = @EXPECT@
380 RUNTEST = @RUNTEST@
381
382 # This just becomes part of the MAKEINFO definition passed down to
383 # sub-makes.  It lets flags be given on the command line while still
384 # using the makeinfo from the object tree.
385 # (Default to avoid splitting info files by setting the threshold high.)
386 MAKEINFOFLAGS = --split-size=5000000
387
388 # ---------------------------------------------
389 # Programs producing files for the HOST machine
390 # ---------------------------------------------
391
392 AS = @AS@
393 AR = @AR@
394 AR_FLAGS = rc
395 CC = @CC@
396 CXX = @CXX@
397 DLLTOOL = @DLLTOOL@
398 LD = @LD@
399 LIPO = @LIPO@
400 NM = @NM@
401 OBJDUMP = @OBJDUMP@
402 RANLIB = @RANLIB@
403 READELF = @READELF@
404 STRIP = @STRIP@
405 WINDRES = @WINDRES@
406 WINDMC = @WINDMC@
407
408 GNATBIND = @GNATBIND@
409 GNATMAKE = @GNATMAKE@
410
411 CFLAGS = @CFLAGS@
412 LDFLAGS = @LDFLAGS@
413 LIBCFLAGS = $(CFLAGS)
414 CXXFLAGS = @CXXFLAGS@
415 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
416 GOCFLAGS = $(CFLAGS)
417
418 TFLAGS =
419
420 # Defaults for all stages; some are overridden below.
421
422 STAGE_CFLAGS = $(BOOT_CFLAGS)
423 STAGE_TFLAGS = $(TFLAGS)
424 STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
425 POSTSTAGE1_CONFIGURE_FLAGS = @POSTSTAGE1_CONFIGURE_FLAGS@
426
427
428 # Defaults for stage 1; some are overridden below.
429 STAGE1_CFLAGS = $(STAGE_CFLAGS)
430 STAGE1_CXXFLAGS = $(CXXFLAGS)
431 @if target-libstdc++-v3-bootstrap
432 # Override the above if we're bootstrapping C++.
433 STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
434 @endif target-libstdc++-v3-bootstrap
435 STAGE1_TFLAGS = $(STAGE_TFLAGS)
436 # STAGE1_CONFIGURE_FLAGS overridden below, so we can use
437 # POSTSTAGE1_CONFIGURE_FLAGS here.
438 STAGE1_CONFIGURE_FLAGS = \
439         $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
440
441 # Defaults for stage 2; some are overridden below.
442 STAGE2_CFLAGS = $(STAGE_CFLAGS)
443 STAGE2_CXXFLAGS = $(CXXFLAGS)
444 @if target-libstdc++-v3-bootstrap
445 # Override the above if we're bootstrapping C++.
446 STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
447 @endif target-libstdc++-v3-bootstrap
448 STAGE2_TFLAGS = $(STAGE_TFLAGS)
449 # STAGE1_CONFIGURE_FLAGS overridden below, so we can use
450 # POSTSTAGE1_CONFIGURE_FLAGS here.
451 STAGE2_CONFIGURE_FLAGS = \
452         $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
453
454 # Defaults for stage 3; some are overridden below.
455 STAGE3_CFLAGS = $(STAGE_CFLAGS)
456 STAGE3_CXXFLAGS = $(CXXFLAGS)
457 @if target-libstdc++-v3-bootstrap
458 # Override the above if we're bootstrapping C++.
459 STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
460 @endif target-libstdc++-v3-bootstrap
461 STAGE3_TFLAGS = $(STAGE_TFLAGS)
462 # STAGE1_CONFIGURE_FLAGS overridden below, so we can use
463 # POSTSTAGE1_CONFIGURE_FLAGS here.
464 STAGE3_CONFIGURE_FLAGS = \
465         $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
466
467 # Defaults for stage 4; some are overridden below.
468 STAGE4_CFLAGS = $(STAGE_CFLAGS)
469 STAGE4_CXXFLAGS = $(CXXFLAGS)
470 @if target-libstdc++-v3-bootstrap
471 # Override the above if we're bootstrapping C++.
472 STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
473 @endif target-libstdc++-v3-bootstrap
474 STAGE4_TFLAGS = $(STAGE_TFLAGS)
475 # STAGE1_CONFIGURE_FLAGS overridden below, so we can use
476 # POSTSTAGE1_CONFIGURE_FLAGS here.
477 STAGE4_CONFIGURE_FLAGS = \
478         $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
479
480 # Defaults for stage profile; some are overridden below.
481 STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
482 STAGEprofile_CXXFLAGS = $(CXXFLAGS)
483 @if target-libstdc++-v3-bootstrap
484 # Override the above if we're bootstrapping C++.
485 STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
486 @endif target-libstdc++-v3-bootstrap
487 STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
488 # STAGE1_CONFIGURE_FLAGS overridden below, so we can use
489 # POSTSTAGE1_CONFIGURE_FLAGS here.
490 STAGEprofile_CONFIGURE_FLAGS = \
491         $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
492
493 # Defaults for stage feedback; some are overridden below.
494 STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
495 STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
496 @if target-libstdc++-v3-bootstrap
497 # Override the above if we're bootstrapping C++.
498 STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
499 @endif target-libstdc++-v3-bootstrap
500 STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
501 # STAGE1_CONFIGURE_FLAGS overridden below, so we can use
502 # POSTSTAGE1_CONFIGURE_FLAGS here.
503 STAGEfeedback_CONFIGURE_FLAGS = \
504         $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
505
506
507 # Only build the C compiler for stage1, because that is the only one that
508 # we can guarantee will build with the native compiler, and also it is the
509 # only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
510 # MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
511 # overrideable (for a bootstrap build stage1 also builds gcc.info).
512
513 STAGE1_CFLAGS = @stage1_cflags@
514 STAGE1_CHECKING = @stage1_checking@
515 STAGE1_LANGUAGES = @stage1_languages@
516 # * We force-disable intermodule optimizations, even if
517 #   --enable-intermodule was passed, since the installed compiler
518 #   probably can't handle them.  Luckily, autoconf always respects
519 #   the last argument when conflicting --enable arguments are passed.
520 # * Likewise, we force-disable coverage flags, since the installed
521 #   compiler probably has never heard of them.
522 # * Don't remove this, because above we added
523 #   POSTSTAGE1_CONFIGURE_FLAGS to STAGE_CONFIGURE_FLAGS, which
524 #   we don't want for STAGE1_CONFIGURE_FLAGS.
525 STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
526           --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
527
528 STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
529 STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
530
531 STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
532 STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
533
534 do-compare = @do_compare@
535 do-compare3 = $(do-compare)
536
537 # -----------------------------------------------
538 # Programs producing files for the TARGET machine
539 # -----------------------------------------------
540
541 AR_FOR_TARGET=@AR_FOR_TARGET@
542 AS_FOR_TARGET=@AS_FOR_TARGET@
543 CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
544
545 # If GCC_FOR_TARGET is not overriden on the command line, then this
546 # variable is passed down to the gcc Makefile, where it is used to
547 # build libgcc2.a.  We define it here so that it can itself be
548 # overridden on the command line.
549 GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
550 CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
551 RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
552 GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@
553 GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
554 GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
555 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
556 LD_FOR_TARGET=@LD_FOR_TARGET@
557
558 LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
559 NM_FOR_TARGET=@NM_FOR_TARGET@
560 OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
561 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
562 READELF_FOR_TARGET=@READELF_FOR_TARGET@
563 STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
564 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
565 WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
566
567 COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
568 COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
569 COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
570
571 CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
572 CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
573
574 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
575 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
576 LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
577 GOCFLAGS_FOR_TARGET = -O2 -g
578
579 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
580 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
581 DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
582
583 XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
584
585 # ------------------------------------
586 # Miscellaneous targets and flag lists
587 # ------------------------------------
588
589 # The first rule in the file had better be this one.  Don't put any above it.
590 # This lives here to allow makefile fragments to contain dependencies.
591 all:
592
593 #### host and target specific makefile fragments come in here.
594 @target_makefile_frag@
595 @alphaieee_frag@
596 @ospace_frag@
597 @host_makefile_frag@
598 ###
599
600 # This is the list of directories that may be needed in RPATH_ENVVAR
601 # so that programs built for the target machine work.
602 TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libmudflap)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(TARGET_LIB_PATH_libitm)$(HOST_LIB_PATH_gcc)
603
604 @if target-libstdc++-v3
605 TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
606 @endif target-libstdc++-v3
607
608 @if target-libmudflap
609 TARGET_LIB_PATH_libmudflap = $$r/$(TARGET_SUBDIR)/libmudflap/.libs:
610 @endif target-libmudflap
611
612 @if target-libssp
613 TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
614 @endif target-libssp
615
616 @if target-libgomp
617 TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
618 @endif target-libgomp
619
620 @if target-libitm
621 TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs:
622 @endif target-libitm
623
624
625
626 # This is the list of directories that may be needed in RPATH_ENVVAR
627 # so that programs built for the host machine work.
628 HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)$(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_ppl)$(HOST_LIB_PATH_cloog)$(HOST_LIB_PATH_libelf)
629
630 # Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
631 @if gcc
632 HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
633 @endif gcc
634
635
636 @if bfd
637 HOST_LIB_PATH_bfd = \
638   $$r/$(HOST_SUBDIR)/bfd/.libs:$$r/$(HOST_SUBDIR)/prev-bfd/.libs:
639 @endif bfd
640
641 @if opcodes
642 HOST_LIB_PATH_opcodes = \
643   $$r/$(HOST_SUBDIR)/opcodes/.libs:$$r/$(HOST_SUBDIR)/prev-opcodes/.libs:
644 @endif opcodes
645
646 @if gmp
647 HOST_LIB_PATH_gmp = \
648   $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
649 @endif gmp
650
651 @if mpfr
652 HOST_LIB_PATH_mpfr = \
653   $$r/$(HOST_SUBDIR)/mpfr/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/.libs:
654 @endif mpfr
655
656 @if mpc
657 HOST_LIB_PATH_mpc = \
658   $$r/$(HOST_SUBDIR)/mpc/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/.libs:
659 @endif mpc
660
661 @if ppl
662 HOST_LIB_PATH_ppl = \
663   $$r/$(HOST_SUBDIR)/ppl/src/.libs:$$r/$(HOST_SUBDIR)/prev-ppl/src/.libs:
664 @endif ppl
665
666 @if cloog
667 HOST_LIB_PATH_cloog = \
668   $$r/$(HOST_SUBDIR)/cloog/.libs:$$r/$(HOST_SUBDIR)/prev-cloog/.libs:
669 @endif cloog
670
671 @if libelf
672 HOST_LIB_PATH_libelf = \
673   $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
674 @endif libelf
675
676
677 CXX_FOR_TARGET_FLAG_TO_PASS = \
678         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
679 @if target-libstdc++-v3
680 # CXX_FOR_TARGET is tricky to get right for target libs that require a
681 # functional C++ compiler.  When we recurse, if we expand
682 # CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
683 # libstdc++ include flags from the script.  Instead, we get an
684 # -funconfigured-* word, so that we'll get errors if this invalid C++
685 # command line is used for anything, but also so that we can use the
686 # word to decide whether or not to pass on this CXX_FOR_TARGET.  If we
687 # don't pass it on, sub-make will use the default definition, that
688 # re-expands it at the time of use, so we'll get it right when we need
689 # it.  One potential exception is the expansion of CXX_FOR_TARGET
690 # passed down as part of CXX within TARGET_FLAGS, but this wouldn't
691 # really work, for C++ host programs can't depend on the current-stage
692 # C++ target library.
693 CXX_FOR_TARGET_FLAG_TO_PASS = \
694         $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
695 @endif target-libstdc++-v3
696
697 # Flags to pass down to all sub-makes.
698 BASE_FLAGS_TO_PASS = \
699         "DESTDIR=$(DESTDIR)" \
700         "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
701         "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
702         "bindir=$(bindir)" \
703         "datadir=$(datadir)" \
704         "exec_prefix=$(exec_prefix)" \
705         "includedir=$(includedir)" \
706         "datarootdir=$(datarootdir)" \
707         "docdir=$(docdir)" \
708         "infodir=$(infodir)" \
709         "pdfdir=$(pdfdir)" \
710         "htmldir=$(htmldir)" \
711         "libdir=$(libdir)" \
712         "libexecdir=$(libexecdir)" \
713         "lispdir=$(lispdir)" \
714         "localstatedir=$(localstatedir)" \
715         "mandir=$(mandir)" \
716         "oldincludedir=$(oldincludedir)" \
717         "prefix=$(prefix)" \
718         "sbindir=$(sbindir)" \
719         "sharedstatedir=$(sharedstatedir)" \
720         "sysconfdir=$(sysconfdir)" \
721         "tooldir=$(tooldir)" \
722         "build_tooldir=$(build_tooldir)" \
723         "target_alias=$(target_alias)" \
724         "AWK=$(AWK)" \
725         "BISON=$(BISON)" \
726         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
727         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
728         "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
729         "EXPECT=$(EXPECT)" \
730         "FLEX=$(FLEX)" \
731         "INSTALL=$(INSTALL)" \
732         "INSTALL_DATA=$(INSTALL_DATA)" \
733         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
734         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
735         "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
736         "LEX=$(LEX)" \
737         "M4=$(M4)" \
738         "MAKE=$(MAKE)" \
739         "RUNTEST=$(RUNTEST)" \
740         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
741         "SED=$(SED)" \
742         "SHELL=$(SHELL)" \
743         "YACC=$(YACC)" \
744         "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
745         "ADA_CFLAGS=$(ADA_CFLAGS)" \
746         "AR_FLAGS=$(AR_FLAGS)" \
747         "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
748         "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
749         "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
750         "CFLAGS=$(CFLAGS)" \
751         "CXXFLAGS=$(CXXFLAGS)" \
752         "LDFLAGS=$(LDFLAGS)" \
753         "LIBCFLAGS=$(LIBCFLAGS)" \
754         "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
755         "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
756         "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
757         "GNATBIND=$(GNATBIND)" \
758         "GNATMAKE=$(GNATMAKE)" \
759         "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
760         "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
761         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
762         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
763         "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
764         "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
765         "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
766         "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
767         "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
768         "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
769         "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
770         "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
771         "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
772         "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
773         "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
774         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
775         "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
776         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
777         "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
778         "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
779         "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \
780         "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
781         "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
782         "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
783         "BUILD_CONFIG=$(BUILD_CONFIG)" \
784         "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
785         "LEAN=$(LEAN)" \
786         "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
787         "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
788         "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
789         "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
790         "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
791         "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
792         "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
793         "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
794         "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
795         "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
796         "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
797         "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
798         "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
799         "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
800         "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
801         "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
802         "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
803         "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
804         $(CXX_FOR_TARGET_FLAG_TO_PASS) \
805         "TFLAGS=$(TFLAGS)" \
806         "CONFIG_SHELL=$(SHELL)" \
807         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" 
808
809 # We leave this in just in case, but it is not needed anymore.
810 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
811
812 # Flags to pass down to most sub-makes, in which we're building with
813 # the host environment.
814 EXTRA_HOST_FLAGS = \
815         'AR=$(AR)' \
816         'AS=$(AS)' \
817         'CC=$(CC)' \
818         'CXX=$(CXX)' \
819         'DLLTOOL=$(DLLTOOL)' \
820         'GCJ=$(GCJ)' \
821         'GFORTRAN=$(GFORTRAN)' \
822         'GOC=$(GOC)' \
823         'LD=$(LD)' \
824         'LIPO=$(LIPO)' \
825         'NM=$(NM)' \
826         'OBJDUMP=$(OBJDUMP)' \
827         'RANLIB=$(RANLIB)' \
828         'READELF=$(READELF)' \
829         'STRIP=$(STRIP)' \
830         'WINDRES=$(WINDRES)' \
831         'WINDMC=$(WINDMC)'
832
833 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
834
835 # Flags to pass to stage2 and later makes.
836
837 POSTSTAGE1_FLAGS_TO_PASS = \
838         CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
839         CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
840         GNATBIND="$${GNATBIND}" \
841         LDFLAGS="$${LDFLAGS}" \
842         HOST_LIBS="$${HOST_LIBS}" \
843         "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
844
845 # Flags to pass down to makes which are built with the target environment.
846 # The double $ decreases the length of the command line; those variables
847 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.  The
848 # *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
849 # so we expand them here.
850 EXTRA_TARGET_FLAGS = \
851         'AR=$$(AR_FOR_TARGET)' \
852         'AS=$(COMPILER_AS_FOR_TARGET)' \
853         'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
854         'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
855         'CXX=$$(CXX_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
856         'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
857         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
858         'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
859         'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
860         'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
861         'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
862         'LD=$(COMPILER_LD_FOR_TARGET)' \
863         'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
864         'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
865         'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
866         'NM=$(COMPILER_NM_FOR_TARGET)' \
867         'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
868         'RANLIB=$$(RANLIB_FOR_TARGET)' \
869         'READELF=$$(READELF_FOR_TARGET)' \
870         'WINDRES=$$(WINDRES_FOR_TARGET)' \
871         'WINDMC=$$(WINDMC_FOR_TARGET)' \
872         'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
873         "TFLAGS=$$TFLAGS"
874
875 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
876
877 # Flags to pass down to gcc.  gcc builds a library, libgcc.a, so it
878 # unfortunately needs the native compiler and the target ar and
879 # ranlib.
880 # If any variables are added here, they must be added to do-*, below.
881 # The BUILD_* variables are a special case, which are used for the gcc
882 # cross-building scheme.
883 EXTRA_GCC_FLAGS = \
884         "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
885         "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
886         "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
887
888 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
889
890 @if gcc
891 BUILD_CONFIG = @BUILD_CONFIG@
892 ifneq ($(BUILD_CONFIG),)
893 include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
894 endif
895 @endif gcc
896
897 .PHONY: configure-host
898 configure-host:  \
899     maybe-configure-bfd \
900     maybe-configure-opcodes \
901     maybe-configure-binutils \
902     maybe-configure-bison \
903     maybe-configure-cgen \
904     maybe-configure-dejagnu \
905     maybe-configure-etc \
906     maybe-configure-fastjar \
907     maybe-configure-fixincludes \
908     maybe-configure-flex \
909     maybe-configure-gas \
910     maybe-configure-gcc \
911     maybe-configure-gmp \
912     maybe-configure-mpfr \
913     maybe-configure-mpc \
914     maybe-configure-ppl \
915     maybe-configure-cloog \
916     maybe-configure-libelf \
917     maybe-configure-gold \
918     maybe-configure-gprof \
919     maybe-configure-intl \
920     maybe-configure-tcl \
921     maybe-configure-itcl \
922     maybe-configure-ld \
923     maybe-configure-libcpp \
924     maybe-configure-libdecnumber \
925     maybe-configure-libgui \
926     maybe-configure-libiberty \
927     maybe-configure-libiconv \
928     maybe-configure-m4 \
929     maybe-configure-readline \
930     maybe-configure-sid \
931     maybe-configure-sim \
932     maybe-configure-texinfo \
933     maybe-configure-zlib \
934     maybe-configure-gdb \
935     maybe-configure-expect \
936     maybe-configure-guile \
937     maybe-configure-tk \
938     maybe-configure-libtermcap \
939     maybe-configure-utils \
940     maybe-configure-gnattools \
941     maybe-configure-lto-plugin
942 .PHONY: configure-target
943 configure-target:  \
944     maybe-configure-target-libstdc++-v3 \
945     maybe-configure-target-libmudflap \
946     maybe-configure-target-libssp \
947     maybe-configure-target-newlib \
948     maybe-configure-target-libgcc \
949     maybe-configure-target-libquadmath \
950     maybe-configure-target-libgfortran \
951     maybe-configure-target-libobjc \
952     maybe-configure-target-libgo \
953     maybe-configure-target-libtermcap \
954     maybe-configure-target-winsup \
955     maybe-configure-target-libgloss \
956     maybe-configure-target-libffi \
957     maybe-configure-target-libjava \
958     maybe-configure-target-zlib \
959     maybe-configure-target-boehm-gc \
960     maybe-configure-target-rda \
961     maybe-configure-target-libada \
962     maybe-configure-target-libgomp \
963     maybe-configure-target-libitm
964
965 # The target built for a native non-bootstrap build.
966 .PHONY: all
967 all:
968 @if gcc-bootstrap
969         [ -f stage_final ] || echo stage3 > stage_final
970         @r=`${PWD_COMMAND}`; export r; \
971         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
972         $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
973 @endif gcc-bootstrap
974         @: $(MAKE); $(unstage)
975         @r=`${PWD_COMMAND}`; export r; \
976         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
977 @if gcc-bootstrap
978         if [ -f stage_last ]; then \
979           TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
980           $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
981         else \
982 @endif gcc-bootstrap
983           $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
984 @if gcc-bootstrap
985             ; \
986         fi \
987 @endif gcc-bootstrap
988         && :
989
990 .PHONY: all-build
991
992 all-build: maybe-all-build-libiberty
993 all-build: maybe-all-build-intl
994 all-build: maybe-all-build-bison
995 all-build: maybe-all-build-flex
996 all-build: maybe-all-build-m4
997 all-build: maybe-all-build-texinfo
998 all-build: maybe-all-build-fixincludes
999
1000 .PHONY: all-host
1001
1002 @if bfd-no-bootstrap
1003 all-host: maybe-all-bfd
1004 @endif bfd-no-bootstrap
1005 @if opcodes-no-bootstrap
1006 all-host: maybe-all-opcodes
1007 @endif opcodes-no-bootstrap
1008 @if binutils-no-bootstrap
1009 all-host: maybe-all-binutils
1010 @endif binutils-no-bootstrap
1011 all-host: maybe-all-bison
1012 all-host: maybe-all-cgen
1013 all-host: maybe-all-dejagnu
1014 all-host: maybe-all-etc
1015 all-host: maybe-all-fastjar
1016 all-host: maybe-all-fixincludes
1017 all-host: maybe-all-flex
1018 @if gas-no-bootstrap
1019 all-host: maybe-all-gas
1020 @endif gas-no-bootstrap
1021 @if gcc-no-bootstrap
1022 all-host: maybe-all-gcc
1023 @endif gcc-no-bootstrap
1024 @if gmp-no-bootstrap
1025 all-host: maybe-all-gmp
1026 @endif gmp-no-bootstrap
1027 @if mpfr-no-bootstrap
1028 all-host: maybe-all-mpfr
1029 @endif mpfr-no-bootstrap
1030 @if mpc-no-bootstrap
1031 all-host: maybe-all-mpc
1032 @endif mpc-no-bootstrap
1033 @if ppl-no-bootstrap
1034 all-host: maybe-all-ppl
1035 @endif ppl-no-bootstrap
1036 @if cloog-no-bootstrap
1037 all-host: maybe-all-cloog
1038 @endif cloog-no-bootstrap
1039 @if libelf-no-bootstrap
1040 all-host: maybe-all-libelf
1041 @endif libelf-no-bootstrap
1042 @if gold-no-bootstrap
1043 all-host: maybe-all-gold
1044 @endif gold-no-bootstrap
1045 all-host: maybe-all-gprof
1046 @if intl-no-bootstrap
1047 all-host: maybe-all-intl
1048 @endif intl-no-bootstrap
1049 all-host: maybe-all-tcl
1050 all-host: maybe-all-itcl
1051 @if ld-no-bootstrap
1052 all-host: maybe-all-ld
1053 @endif ld-no-bootstrap
1054 @if libcpp-no-bootstrap
1055 all-host: maybe-all-libcpp
1056 @endif libcpp-no-bootstrap
1057 @if libdecnumber-no-bootstrap
1058 all-host: maybe-all-libdecnumber
1059 @endif libdecnumber-no-bootstrap
1060 all-host: maybe-all-libgui
1061 @if libiberty-no-bootstrap
1062 all-host: maybe-all-libiberty
1063 @endif libiberty-no-bootstrap
1064 all-host: maybe-all-libiconv
1065 all-host: maybe-all-m4
1066 all-host: maybe-all-readline
1067 all-host: maybe-all-sid
1068 all-host: maybe-all-sim
1069 all-host: maybe-all-texinfo
1070 @if zlib-no-bootstrap
1071 all-host: maybe-all-zlib
1072 @endif zlib-no-bootstrap
1073 all-host: maybe-all-gdb
1074 all-host: maybe-all-expect
1075 all-host: maybe-all-guile
1076 all-host: maybe-all-tk
1077 all-host: maybe-all-libtermcap
1078 all-host: maybe-all-utils
1079 all-host: maybe-all-gnattools
1080 @if lto-plugin-no-bootstrap
1081 all-host: maybe-all-lto-plugin
1082 @endif lto-plugin-no-bootstrap
1083
1084 .PHONY: all-target
1085
1086 @if target-libstdc++-v3-no-bootstrap
1087 all-target: maybe-all-target-libstdc++-v3
1088 @endif target-libstdc++-v3-no-bootstrap
1089 all-target: maybe-all-target-libmudflap
1090 all-target: maybe-all-target-libssp
1091 all-target: maybe-all-target-newlib
1092 @if target-libgcc-no-bootstrap
1093 all-target: maybe-all-target-libgcc
1094 @endif target-libgcc-no-bootstrap
1095 all-target: maybe-all-target-libquadmath
1096 all-target: maybe-all-target-libgfortran
1097 all-target: maybe-all-target-libobjc
1098 all-target: maybe-all-target-libgo
1099 all-target: maybe-all-target-libtermcap
1100 all-target: maybe-all-target-winsup
1101 all-target: maybe-all-target-libgloss
1102 all-target: maybe-all-target-libffi
1103 all-target: maybe-all-target-libjava
1104 all-target: maybe-all-target-zlib
1105 all-target: maybe-all-target-boehm-gc
1106 all-target: maybe-all-target-rda
1107 all-target: maybe-all-target-libada
1108 @if target-libgomp-no-bootstrap
1109 all-target: maybe-all-target-libgomp
1110 @endif target-libgomp-no-bootstrap
1111 all-target: maybe-all-target-libitm
1112
1113 # Do a target for all the subdirectories.  A ``make do-X'' will do a
1114 # ``make X'' in all subdirectories (because, in general, there is a
1115 # dependency (below) of X upon do-X, a ``make X'' will also do this,
1116 # but it may do additional work as well).
1117
1118 .PHONY: do-info
1119 do-info:
1120         @: $(MAKE); $(unstage)
1121         @r=`${PWD_COMMAND}`; export r; \
1122         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1123         $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
1124           info-target
1125
1126
1127 .PHONY: info-host
1128
1129 info-host: maybe-info-bfd
1130 info-host: maybe-info-opcodes
1131 info-host: maybe-info-binutils
1132 info-host: maybe-info-bison
1133 info-host: maybe-info-cgen
1134 info-host: maybe-info-dejagnu
1135 info-host: maybe-info-etc
1136 info-host: maybe-info-fastjar
1137 info-host: maybe-info-fixincludes
1138 info-host: maybe-info-flex
1139 info-host: maybe-info-gas
1140 info-host: maybe-info-gcc
1141 info-host: maybe-info-gmp
1142 info-host: maybe-info-mpfr
1143 info-host: maybe-info-mpc
1144 info-host: maybe-info-ppl
1145 info-host: maybe-info-cloog
1146 info-host: maybe-info-libelf
1147 info-host: maybe-info-gold
1148 info-host: maybe-info-gprof
1149 info-host: maybe-info-intl
1150 info-host: maybe-info-tcl
1151 info-host: maybe-info-itcl
1152 info-host: maybe-info-ld
1153 info-host: maybe-info-libcpp
1154 info-host: maybe-info-libdecnumber
1155 info-host: maybe-info-libgui
1156 info-host: maybe-info-libiberty
1157 info-host: maybe-info-libiconv
1158 info-host: maybe-info-m4
1159 info-host: maybe-info-readline
1160 info-host: maybe-info-sid
1161 info-host: maybe-info-sim
1162 info-host: maybe-info-texinfo
1163 info-host: maybe-info-zlib
1164 info-host: maybe-info-gdb
1165 info-host: maybe-info-expect
1166 info-host: maybe-info-guile
1167 info-host: maybe-info-tk
1168 info-host: maybe-info-libtermcap
1169 info-host: maybe-info-utils
1170 info-host: maybe-info-gnattools
1171 info-host: maybe-info-lto-plugin
1172
1173 .PHONY: info-target
1174
1175 info-target: maybe-info-target-libstdc++-v3
1176 info-target: maybe-info-target-libmudflap
1177 info-target: maybe-info-target-libssp
1178 info-target: maybe-info-target-newlib
1179 info-target: maybe-info-target-libgcc
1180 info-target: maybe-info-target-libquadmath
1181 info-target: maybe-info-target-libgfortran
1182 info-target: maybe-info-target-libobjc
1183 info-target: maybe-info-target-libgo
1184 info-target: maybe-info-target-libtermcap
1185 info-target: maybe-info-target-winsup
1186 info-target: maybe-info-target-libgloss
1187 info-target: maybe-info-target-libffi
1188 info-target: maybe-info-target-libjava
1189 info-target: maybe-info-target-zlib
1190 info-target: maybe-info-target-boehm-gc
1191 info-target: maybe-info-target-rda
1192 info-target: maybe-info-target-libada
1193 info-target: maybe-info-target-libgomp
1194 info-target: maybe-info-target-libitm
1195
1196 .PHONY: do-dvi
1197 do-dvi:
1198         @: $(MAKE); $(unstage)
1199         @r=`${PWD_COMMAND}`; export r; \
1200         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1201         $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
1202           dvi-target
1203
1204
1205 .PHONY: dvi-host
1206
1207 dvi-host: maybe-dvi-bfd
1208 dvi-host: maybe-dvi-opcodes
1209 dvi-host: maybe-dvi-binutils
1210 dvi-host: maybe-dvi-bison
1211 dvi-host: maybe-dvi-cgen
1212 dvi-host: maybe-dvi-dejagnu
1213 dvi-host: maybe-dvi-etc
1214 dvi-host: maybe-dvi-fastjar
1215 dvi-host: maybe-dvi-fixincludes
1216 dvi-host: maybe-dvi-flex
1217 dvi-host: maybe-dvi-gas
1218 dvi-host: maybe-dvi-gcc
1219 dvi-host: maybe-dvi-gmp
1220 dvi-host: maybe-dvi-mpfr
1221 dvi-host: maybe-dvi-mpc
1222 dvi-host: maybe-dvi-ppl
1223 dvi-host: maybe-dvi-cloog
1224 dvi-host: maybe-dvi-libelf
1225 dvi-host: maybe-dvi-gold
1226 dvi-host: maybe-dvi-gprof
1227 dvi-host: maybe-dvi-intl
1228 dvi-host: maybe-dvi-tcl
1229 dvi-host: maybe-dvi-itcl
1230 dvi-host: maybe-dvi-ld
1231 dvi-host: maybe-dvi-libcpp
1232 dvi-host: maybe-dvi-libdecnumber
1233 dvi-host: maybe-dvi-libgui
1234 dvi-host: maybe-dvi-libiberty
1235 dvi-host: maybe-dvi-libiconv
1236 dvi-host: maybe-dvi-m4
1237 dvi-host: maybe-dvi-readline
1238 dvi-host: maybe-dvi-sid
1239 dvi-host: maybe-dvi-sim
1240 dvi-host: maybe-dvi-texinfo
1241 dvi-host: maybe-dvi-zlib
1242 dvi-host: maybe-dvi-gdb
1243 dvi-host: maybe-dvi-expect
1244 dvi-host: maybe-dvi-guile
1245 dvi-host: maybe-dvi-tk
1246 dvi-host: maybe-dvi-libtermcap
1247 dvi-host: maybe-dvi-utils
1248 dvi-host: maybe-dvi-gnattools
1249 dvi-host: maybe-dvi-lto-plugin
1250
1251 .PHONY: dvi-target
1252
1253 dvi-target: maybe-dvi-target-libstdc++-v3
1254 dvi-target: maybe-dvi-target-libmudflap
1255 dvi-target: maybe-dvi-target-libssp
1256 dvi-target: maybe-dvi-target-newlib
1257 dvi-target: maybe-dvi-target-libgcc
1258 dvi-target: maybe-dvi-target-libquadmath
1259 dvi-target: maybe-dvi-target-libgfortran
1260 dvi-target: maybe-dvi-target-libobjc
1261 dvi-target: maybe-dvi-target-libgo
1262 dvi-target: maybe-dvi-target-libtermcap
1263 dvi-target: maybe-dvi-target-winsup
1264 dvi-target: maybe-dvi-target-libgloss
1265 dvi-target: maybe-dvi-target-libffi
1266 dvi-target: maybe-dvi-target-libjava
1267 dvi-target: maybe-dvi-target-zlib
1268 dvi-target: maybe-dvi-target-boehm-gc
1269 dvi-target: maybe-dvi-target-rda
1270 dvi-target: maybe-dvi-target-libada
1271 dvi-target: maybe-dvi-target-libgomp
1272 dvi-target: maybe-dvi-target-libitm
1273
1274 .PHONY: do-pdf
1275 do-pdf:
1276         @: $(MAKE); $(unstage)
1277         @r=`${PWD_COMMAND}`; export r; \
1278         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1279         $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1280           pdf-target
1281
1282
1283 .PHONY: pdf-host
1284
1285 pdf-host: maybe-pdf-bfd
1286 pdf-host: maybe-pdf-opcodes
1287 pdf-host: maybe-pdf-binutils
1288 pdf-host: maybe-pdf-bison
1289 pdf-host: maybe-pdf-cgen
1290 pdf-host: maybe-pdf-dejagnu
1291 pdf-host: maybe-pdf-etc
1292 pdf-host: maybe-pdf-fastjar
1293 pdf-host: maybe-pdf-fixincludes
1294 pdf-host: maybe-pdf-flex
1295 pdf-host: maybe-pdf-gas
1296 pdf-host: maybe-pdf-gcc
1297 pdf-host: maybe-pdf-gmp
1298 pdf-host: maybe-pdf-mpfr
1299 pdf-host: maybe-pdf-mpc
1300 pdf-host: maybe-pdf-ppl
1301 pdf-host: maybe-pdf-cloog
1302 pdf-host: maybe-pdf-libelf
1303 pdf-host: maybe-pdf-gold
1304 pdf-host: maybe-pdf-gprof
1305 pdf-host: maybe-pdf-intl
1306 pdf-host: maybe-pdf-tcl
1307 pdf-host: maybe-pdf-itcl
1308 pdf-host: maybe-pdf-ld
1309 pdf-host: maybe-pdf-libcpp
1310 pdf-host: maybe-pdf-libdecnumber
1311 pdf-host: maybe-pdf-libgui
1312 pdf-host: maybe-pdf-libiberty
1313 pdf-host: maybe-pdf-libiconv
1314 pdf-host: maybe-pdf-m4
1315 pdf-host: maybe-pdf-readline
1316 pdf-host: maybe-pdf-sid
1317 pdf-host: maybe-pdf-sim
1318 pdf-host: maybe-pdf-texinfo
1319 pdf-host: maybe-pdf-zlib
1320 pdf-host: maybe-pdf-gdb
1321 pdf-host: maybe-pdf-expect
1322 pdf-host: maybe-pdf-guile
1323 pdf-host: maybe-pdf-tk
1324 pdf-host: maybe-pdf-libtermcap
1325 pdf-host: maybe-pdf-utils
1326 pdf-host: maybe-pdf-gnattools
1327 pdf-host: maybe-pdf-lto-plugin
1328
1329 .PHONY: pdf-target
1330
1331 pdf-target: maybe-pdf-target-libstdc++-v3
1332 pdf-target: maybe-pdf-target-libmudflap
1333 pdf-target: maybe-pdf-target-libssp
1334 pdf-target: maybe-pdf-target-newlib
1335 pdf-target: maybe-pdf-target-libgcc
1336 pdf-target: maybe-pdf-target-libquadmath
1337 pdf-target: maybe-pdf-target-libgfortran
1338 pdf-target: maybe-pdf-target-libobjc
1339 pdf-target: maybe-pdf-target-libgo
1340 pdf-target: maybe-pdf-target-libtermcap
1341 pdf-target: maybe-pdf-target-winsup
1342 pdf-target: maybe-pdf-target-libgloss
1343 pdf-target: maybe-pdf-target-libffi
1344 pdf-target: maybe-pdf-target-libjava
1345 pdf-target: maybe-pdf-target-zlib
1346 pdf-target: maybe-pdf-target-boehm-gc
1347 pdf-target: maybe-pdf-target-rda
1348 pdf-target: maybe-pdf-target-libada
1349 pdf-target: maybe-pdf-target-libgomp
1350 pdf-target: maybe-pdf-target-libitm
1351
1352 .PHONY: do-html
1353 do-html:
1354         @: $(MAKE); $(unstage)
1355         @r=`${PWD_COMMAND}`; export r; \
1356         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1357         $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
1358           html-target
1359
1360
1361 .PHONY: html-host
1362
1363 html-host: maybe-html-bfd
1364 html-host: maybe-html-opcodes
1365 html-host: maybe-html-binutils
1366 html-host: maybe-html-bison
1367 html-host: maybe-html-cgen
1368 html-host: maybe-html-dejagnu
1369 html-host: maybe-html-etc
1370 html-host: maybe-html-fastjar
1371 html-host: maybe-html-fixincludes
1372 html-host: maybe-html-flex
1373 html-host: maybe-html-gas
1374 html-host: maybe-html-gcc
1375 html-host: maybe-html-gmp
1376 html-host: maybe-html-mpfr
1377 html-host: maybe-html-mpc
1378 html-host: maybe-html-ppl
1379 html-host: maybe-html-cloog
1380 html-host: maybe-html-libelf
1381 html-host: maybe-html-gold
1382 html-host: maybe-html-gprof
1383 html-host: maybe-html-intl
1384 html-host: maybe-html-tcl
1385 html-host: maybe-html-itcl
1386 html-host: maybe-html-ld
1387 html-host: maybe-html-libcpp
1388 html-host: maybe-html-libdecnumber
1389 html-host: maybe-html-libgui
1390 html-host: maybe-html-libiberty
1391 html-host: maybe-html-libiconv
1392 html-host: maybe-html-m4
1393 html-host: maybe-html-readline
1394 html-host: maybe-html-sid
1395 html-host: maybe-html-sim
1396 html-host: maybe-html-texinfo
1397 html-host: maybe-html-zlib
1398 html-host: maybe-html-gdb
1399 html-host: maybe-html-expect
1400 html-host: maybe-html-guile
1401 html-host: maybe-html-tk
1402 html-host: maybe-html-libtermcap
1403 html-host: maybe-html-utils
1404 html-host: maybe-html-gnattools
1405 html-host: maybe-html-lto-plugin
1406
1407 .PHONY: html-target
1408
1409 html-target: maybe-html-target-libstdc++-v3
1410 html-target: maybe-html-target-libmudflap
1411 html-target: maybe-html-target-libssp
1412 html-target: maybe-html-target-newlib
1413 html-target: maybe-html-target-libgcc
1414 html-target: maybe-html-target-libquadmath
1415 html-target: maybe-html-target-libgfortran
1416 html-target: maybe-html-target-libobjc
1417 html-target: maybe-html-target-libgo
1418 html-target: maybe-html-target-libtermcap
1419 html-target: maybe-html-target-winsup
1420 html-target: maybe-html-target-libgloss
1421 html-target: maybe-html-target-libffi
1422 html-target: maybe-html-target-libjava
1423 html-target: maybe-html-target-zlib
1424 html-target: maybe-html-target-boehm-gc
1425 html-target: maybe-html-target-rda
1426 html-target: maybe-html-target-libada
1427 html-target: maybe-html-target-libgomp
1428 html-target: maybe-html-target-libitm
1429
1430 .PHONY: do-TAGS
1431 do-TAGS:
1432         @: $(MAKE); $(unstage)
1433         @r=`${PWD_COMMAND}`; export r; \
1434         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1435         $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
1436           TAGS-target
1437
1438
1439 .PHONY: TAGS-host
1440
1441 TAGS-host: maybe-TAGS-bfd
1442 TAGS-host: maybe-TAGS-opcodes
1443 TAGS-host: maybe-TAGS-binutils
1444 TAGS-host: maybe-TAGS-bison
1445 TAGS-host: maybe-TAGS-cgen
1446 TAGS-host: maybe-TAGS-dejagnu
1447 TAGS-host: maybe-TAGS-etc
1448 TAGS-host: maybe-TAGS-fastjar
1449 TAGS-host: maybe-TAGS-fixincludes
1450 TAGS-host: maybe-TAGS-flex
1451 TAGS-host: maybe-TAGS-gas
1452 TAGS-host: maybe-TAGS-gcc
1453 TAGS-host: maybe-TAGS-gmp
1454 TAGS-host: maybe-TAGS-mpfr
1455 TAGS-host: maybe-TAGS-mpc
1456 TAGS-host: maybe-TAGS-ppl
1457 TAGS-host: maybe-TAGS-cloog
1458 TAGS-host: maybe-TAGS-libelf
1459 TAGS-host: maybe-TAGS-gold
1460 TAGS-host: maybe-TAGS-gprof
1461 TAGS-host: maybe-TAGS-intl
1462 TAGS-host: maybe-TAGS-tcl
1463 TAGS-host: maybe-TAGS-itcl
1464 TAGS-host: maybe-TAGS-ld
1465 TAGS-host: maybe-TAGS-libcpp
1466 TAGS-host: maybe-TAGS-libdecnumber
1467 TAGS-host: maybe-TAGS-libgui
1468 TAGS-host: maybe-TAGS-libiberty
1469 TAGS-host: maybe-TAGS-libiconv
1470 TAGS-host: maybe-TAGS-m4
1471 TAGS-host: maybe-TAGS-readline
1472 TAGS-host: maybe-TAGS-sid
1473 TAGS-host: maybe-TAGS-sim
1474 TAGS-host: maybe-TAGS-texinfo
1475 TAGS-host: maybe-TAGS-zlib
1476 TAGS-host: maybe-TAGS-gdb
1477 TAGS-host: maybe-TAGS-expect
1478 TAGS-host: maybe-TAGS-guile
1479 TAGS-host: maybe-TAGS-tk
1480 TAGS-host: maybe-TAGS-libtermcap
1481 TAGS-host: maybe-TAGS-utils
1482 TAGS-host: maybe-TAGS-gnattools
1483 TAGS-host: maybe-TAGS-lto-plugin
1484
1485 .PHONY: TAGS-target
1486
1487 TAGS-target: maybe-TAGS-target-libstdc++-v3
1488 TAGS-target: maybe-TAGS-target-libmudflap
1489 TAGS-target: maybe-TAGS-target-libssp
1490 TAGS-target: maybe-TAGS-target-newlib
1491 TAGS-target: maybe-TAGS-target-libgcc
1492 TAGS-target: maybe-TAGS-target-libquadmath
1493 TAGS-target: maybe-TAGS-target-libgfortran
1494 TAGS-target: maybe-TAGS-target-libobjc
1495 TAGS-target: maybe-TAGS-target-libgo
1496 TAGS-target: maybe-TAGS-target-libtermcap
1497 TAGS-target: maybe-TAGS-target-winsup
1498 TAGS-target: maybe-TAGS-target-libgloss
1499 TAGS-target: maybe-TAGS-target-libffi
1500 TAGS-target: maybe-TAGS-target-libjava
1501 TAGS-target: maybe-TAGS-target-zlib
1502 TAGS-target: maybe-TAGS-target-boehm-gc
1503 TAGS-target: maybe-TAGS-target-rda
1504 TAGS-target: maybe-TAGS-target-libada
1505 TAGS-target: maybe-TAGS-target-libgomp
1506 TAGS-target: maybe-TAGS-target-libitm
1507
1508 .PHONY: do-install-info
1509 do-install-info:
1510         @: $(MAKE); $(unstage)
1511         @r=`${PWD_COMMAND}`; export r; \
1512         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1513         $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
1514           install-info-target
1515
1516
1517 .PHONY: install-info-host
1518
1519 install-info-host: maybe-install-info-bfd
1520 install-info-host: maybe-install-info-opcodes
1521 install-info-host: maybe-install-info-binutils
1522 install-info-host: maybe-install-info-bison
1523 install-info-host: maybe-install-info-cgen
1524 install-info-host: maybe-install-info-dejagnu
1525 install-info-host: maybe-install-info-etc
1526 install-info-host: maybe-install-info-fastjar
1527 install-info-host: maybe-install-info-fixincludes
1528 install-info-host: maybe-install-info-flex
1529 install-info-host: maybe-install-info-gas
1530 install-info-host: maybe-install-info-gcc
1531 install-info-host: maybe-install-info-gmp
1532 install-info-host: maybe-install-info-mpfr
1533 install-info-host: maybe-install-info-mpc
1534 install-info-host: maybe-install-info-ppl
1535 install-info-host: maybe-install-info-cloog
1536 install-info-host: maybe-install-info-libelf
1537 install-info-host: maybe-install-info-gold
1538 install-info-host: maybe-install-info-gprof
1539 install-info-host: maybe-install-info-intl
1540 install-info-host: maybe-install-info-tcl
1541 install-info-host: maybe-install-info-itcl
1542 install-info-host: maybe-install-info-ld
1543 install-info-host: maybe-install-info-libcpp
1544 install-info-host: maybe-install-info-libdecnumber
1545 install-info-host: maybe-install-info-libgui
1546 install-info-host: maybe-install-info-libiberty
1547 install-info-host: maybe-install-info-libiconv
1548 install-info-host: maybe-install-info-m4
1549 install-info-host: maybe-install-info-readline
1550 install-info-host: maybe-install-info-sid
1551 install-info-host: maybe-install-info-sim
1552 install-info-host: maybe-install-info-texinfo
1553 install-info-host: maybe-install-info-zlib
1554 install-info-host: maybe-install-info-gdb
1555 install-info-host: maybe-install-info-expect
1556 install-info-host: maybe-install-info-guile
1557 install-info-host: maybe-install-info-tk
1558 install-info-host: maybe-install-info-libtermcap
1559 install-info-host: maybe-install-info-utils
1560 install-info-host: maybe-install-info-gnattools
1561 install-info-host: maybe-install-info-lto-plugin
1562
1563 .PHONY: install-info-target
1564
1565 install-info-target: maybe-install-info-target-libstdc++-v3
1566 install-info-target: maybe-install-info-target-libmudflap
1567 install-info-target: maybe-install-info-target-libssp
1568 install-info-target: maybe-install-info-target-newlib
1569 install-info-target: maybe-install-info-target-libgcc
1570 install-info-target: maybe-install-info-target-libquadmath
1571 install-info-target: maybe-install-info-target-libgfortran
1572 install-info-target: maybe-install-info-target-libobjc
1573 install-info-target: maybe-install-info-target-libgo
1574 install-info-target: maybe-install-info-target-libtermcap
1575 install-info-target: maybe-install-info-target-winsup
1576 install-info-target: maybe-install-info-target-libgloss
1577 install-info-target: maybe-install-info-target-libffi
1578 install-info-target: maybe-install-info-target-libjava
1579 install-info-target: maybe-install-info-target-zlib
1580 install-info-target: maybe-install-info-target-boehm-gc
1581 install-info-target: maybe-install-info-target-rda
1582 install-info-target: maybe-install-info-target-libada
1583 install-info-target: maybe-install-info-target-libgomp
1584 install-info-target: maybe-install-info-target-libitm
1585
1586 .PHONY: do-install-pdf
1587 do-install-pdf:
1588         @: $(MAKE); $(unstage)
1589         @r=`${PWD_COMMAND}`; export r; \
1590         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1591         $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1592           install-pdf-target
1593
1594
1595 .PHONY: install-pdf-host
1596
1597 install-pdf-host: maybe-install-pdf-bfd
1598 install-pdf-host: maybe-install-pdf-opcodes
1599 install-pdf-host: maybe-install-pdf-binutils
1600 install-pdf-host: maybe-install-pdf-bison
1601 install-pdf-host: maybe-install-pdf-cgen
1602 install-pdf-host: maybe-install-pdf-dejagnu
1603 install-pdf-host: maybe-install-pdf-etc
1604 install-pdf-host: maybe-install-pdf-fastjar
1605 install-pdf-host: maybe-install-pdf-fixincludes
1606 install-pdf-host: maybe-install-pdf-flex
1607 install-pdf-host: maybe-install-pdf-gas
1608 install-pdf-host: maybe-install-pdf-gcc
1609 install-pdf-host: maybe-install-pdf-gmp
1610 install-pdf-host: maybe-install-pdf-mpfr
1611 install-pdf-host: maybe-install-pdf-mpc
1612 install-pdf-host: maybe-install-pdf-ppl
1613 install-pdf-host: maybe-install-pdf-cloog
1614 install-pdf-host: maybe-install-pdf-libelf
1615 install-pdf-host: maybe-install-pdf-gold
1616 install-pdf-host: maybe-install-pdf-gprof
1617 install-pdf-host: maybe-install-pdf-intl
1618 install-pdf-host: maybe-install-pdf-tcl
1619 install-pdf-host: maybe-install-pdf-itcl
1620 install-pdf-host: maybe-install-pdf-ld
1621 install-pdf-host: maybe-install-pdf-libcpp
1622 install-pdf-host: maybe-install-pdf-libdecnumber
1623 install-pdf-host: maybe-install-pdf-libgui
1624 install-pdf-host: maybe-install-pdf-libiberty
1625 install-pdf-host: maybe-install-pdf-libiconv
1626 install-pdf-host: maybe-install-pdf-m4
1627 install-pdf-host: maybe-install-pdf-readline
1628 install-pdf-host: maybe-install-pdf-sid
1629 install-pdf-host: maybe-install-pdf-sim
1630 install-pdf-host: maybe-install-pdf-texinfo
1631 install-pdf-host: maybe-install-pdf-zlib
1632 install-pdf-host: maybe-install-pdf-gdb
1633 install-pdf-host: maybe-install-pdf-expect
1634 install-pdf-host: maybe-install-pdf-guile
1635 install-pdf-host: maybe-install-pdf-tk
1636 install-pdf-host: maybe-install-pdf-libtermcap
1637 install-pdf-host: maybe-install-pdf-utils
1638 install-pdf-host: maybe-install-pdf-gnattools
1639 install-pdf-host: maybe-install-pdf-lto-plugin
1640
1641 .PHONY: install-pdf-target
1642
1643 install-pdf-target: maybe-install-pdf-target-libstdc++-v3
1644 install-pdf-target: maybe-install-pdf-target-libmudflap
1645 install-pdf-target: maybe-install-pdf-target-libssp
1646 install-pdf-target: maybe-install-pdf-target-newlib
1647 install-pdf-target: maybe-install-pdf-target-libgcc
1648 install-pdf-target: maybe-install-pdf-target-libquadmath
1649 install-pdf-target: maybe-install-pdf-target-libgfortran
1650 install-pdf-target: maybe-install-pdf-target-libobjc
1651 install-pdf-target: maybe-install-pdf-target-libgo
1652 install-pdf-target: maybe-install-pdf-target-libtermcap
1653 install-pdf-target: maybe-install-pdf-target-winsup
1654 install-pdf-target: maybe-install-pdf-target-libgloss
1655 install-pdf-target: maybe-install-pdf-target-libffi
1656 install-pdf-target: maybe-install-pdf-target-libjava
1657 install-pdf-target: maybe-install-pdf-target-zlib
1658 install-pdf-target: maybe-install-pdf-target-boehm-gc
1659 install-pdf-target: maybe-install-pdf-target-rda
1660 install-pdf-target: maybe-install-pdf-target-libada
1661 install-pdf-target: maybe-install-pdf-target-libgomp
1662 install-pdf-target: maybe-install-pdf-target-libitm
1663
1664 .PHONY: do-install-html
1665 do-install-html:
1666         @: $(MAKE); $(unstage)
1667         @r=`${PWD_COMMAND}`; export r; \
1668         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1669         $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1670           install-html-target
1671
1672
1673 .PHONY: install-html-host
1674
1675 install-html-host: maybe-install-html-bfd
1676 install-html-host: maybe-install-html-opcodes
1677 install-html-host: maybe-install-html-binutils
1678 install-html-host: maybe-install-html-bison
1679 install-html-host: maybe-install-html-cgen
1680 install-html-host: maybe-install-html-dejagnu
1681 install-html-host: maybe-install-html-etc
1682 install-html-host: maybe-install-html-fastjar
1683 install-html-host: maybe-install-html-fixincludes
1684 install-html-host: maybe-install-html-flex
1685 install-html-host: maybe-install-html-gas
1686 install-html-host: maybe-install-html-gcc
1687 install-html-host: maybe-install-html-gmp
1688 install-html-host: maybe-install-html-mpfr
1689 install-html-host: maybe-install-html-mpc
1690 install-html-host: maybe-install-html-ppl
1691 install-html-host: maybe-install-html-cloog
1692 install-html-host: maybe-install-html-libelf
1693 install-html-host: maybe-install-html-gold
1694 install-html-host: maybe-install-html-gprof
1695 install-html-host: maybe-install-html-intl
1696 install-html-host: maybe-install-html-tcl
1697 install-html-host: maybe-install-html-itcl
1698 install-html-host: maybe-install-html-ld
1699 install-html-host: maybe-install-html-libcpp
1700 install-html-host: maybe-install-html-libdecnumber
1701 install-html-host: maybe-install-html-libgui
1702 install-html-host: maybe-install-html-libiberty
1703 install-html-host: maybe-install-html-libiconv
1704 install-html-host: maybe-install-html-m4
1705 install-html-host: maybe-install-html-readline
1706 install-html-host: maybe-install-html-sid
1707 install-html-host: maybe-install-html-sim
1708 install-html-host: maybe-install-html-texinfo
1709 install-html-host: maybe-install-html-zlib
1710 install-html-host: maybe-install-html-gdb
1711 install-html-host: maybe-install-html-expect
1712 install-html-host: maybe-install-html-guile
1713 install-html-host: maybe-install-html-tk
1714 install-html-host: maybe-install-html-libtermcap
1715 install-html-host: maybe-install-html-utils
1716 install-html-host: maybe-install-html-gnattools
1717 install-html-host: maybe-install-html-lto-plugin
1718
1719 .PHONY: install-html-target
1720
1721 install-html-target: maybe-install-html-target-libstdc++-v3
1722 install-html-target: maybe-install-html-target-libmudflap
1723 install-html-target: maybe-install-html-target-libssp
1724 install-html-target: maybe-install-html-target-newlib
1725 install-html-target: maybe-install-html-target-libgcc
1726 install-html-target: maybe-install-html-target-libquadmath
1727 install-html-target: maybe-install-html-target-libgfortran
1728 install-html-target: maybe-install-html-target-libobjc
1729 install-html-target: maybe-install-html-target-libgo
1730 install-html-target: maybe-install-html-target-libtermcap
1731 install-html-target: maybe-install-html-target-winsup
1732 install-html-target: maybe-install-html-target-libgloss
1733 install-html-target: maybe-install-html-target-libffi
1734 install-html-target: maybe-install-html-target-libjava
1735 install-html-target: maybe-install-html-target-zlib
1736 install-html-target: maybe-install-html-target-boehm-gc
1737 install-html-target: maybe-install-html-target-rda
1738 install-html-target: maybe-install-html-target-libada
1739 install-html-target: maybe-install-html-target-libgomp
1740 install-html-target: maybe-install-html-target-libitm
1741
1742 .PHONY: do-installcheck
1743 do-installcheck:
1744         @: $(MAKE); $(unstage)
1745         @r=`${PWD_COMMAND}`; export r; \
1746         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1747         $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
1748           installcheck-target
1749
1750
1751 .PHONY: installcheck-host
1752
1753 installcheck-host: maybe-installcheck-bfd
1754 installcheck-host: maybe-installcheck-opcodes
1755 installcheck-host: maybe-installcheck-binutils
1756 installcheck-host: maybe-installcheck-bison
1757 installcheck-host: maybe-installcheck-cgen
1758 installcheck-host: maybe-installcheck-dejagnu
1759 installcheck-host: maybe-installcheck-etc
1760 installcheck-host: maybe-installcheck-fastjar
1761 installcheck-host: maybe-installcheck-fixincludes
1762 installcheck-host: maybe-installcheck-flex
1763 installcheck-host: maybe-installcheck-gas
1764 installcheck-host: maybe-installcheck-gcc
1765 installcheck-host: maybe-installcheck-gmp
1766 installcheck-host: maybe-installcheck-mpfr
1767 installcheck-host: maybe-installcheck-mpc
1768 installcheck-host: maybe-installcheck-ppl
1769 installcheck-host: maybe-installcheck-cloog
1770 installcheck-host: maybe-installcheck-libelf
1771 installcheck-host: maybe-installcheck-gold
1772 installcheck-host: maybe-installcheck-gprof
1773 installcheck-host: maybe-installcheck-intl
1774 installcheck-host: maybe-installcheck-tcl
1775 installcheck-host: maybe-installcheck-itcl
1776 installcheck-host: maybe-installcheck-ld
1777 installcheck-host: maybe-installcheck-libcpp
1778 installcheck-host: maybe-installcheck-libdecnumber
1779 installcheck-host: maybe-installcheck-libgui
1780 installcheck-host: maybe-installcheck-libiberty
1781 installcheck-host: maybe-installcheck-libiconv
1782 installcheck-host: maybe-installcheck-m4
1783 installcheck-host: maybe-installcheck-readline
1784 installcheck-host: maybe-installcheck-sid
1785 installcheck-host: maybe-installcheck-sim
1786 installcheck-host: maybe-installcheck-texinfo
1787 installcheck-host: maybe-installcheck-zlib
1788 installcheck-host: maybe-installcheck-gdb
1789 installcheck-host: maybe-installcheck-expect
1790 installcheck-host: maybe-installcheck-guile
1791 installcheck-host: maybe-installcheck-tk
1792 installcheck-host: maybe-installcheck-libtermcap
1793 installcheck-host: maybe-installcheck-utils
1794 installcheck-host: maybe-installcheck-gnattools
1795 installcheck-host: maybe-installcheck-lto-plugin
1796
1797 .PHONY: installcheck-target
1798
1799 installcheck-target: maybe-installcheck-target-libstdc++-v3
1800 installcheck-target: maybe-installcheck-target-libmudflap
1801 installcheck-target: maybe-installcheck-target-libssp
1802 installcheck-target: maybe-installcheck-target-newlib
1803 installcheck-target: maybe-installcheck-target-libgcc
1804 installcheck-target: maybe-installcheck-target-libquadmath
1805 installcheck-target: maybe-installcheck-target-libgfortran
1806 installcheck-target: maybe-installcheck-target-libobjc
1807 installcheck-target: maybe-installcheck-target-libgo
1808 installcheck-target: maybe-installcheck-target-libtermcap
1809 installcheck-target: maybe-installcheck-target-winsup
1810 installcheck-target: maybe-installcheck-target-libgloss
1811 installcheck-target: maybe-installcheck-target-libffi
1812 installcheck-target: maybe-installcheck-target-libjava
1813 installcheck-target: maybe-installcheck-target-zlib
1814 installcheck-target: maybe-installcheck-target-boehm-gc
1815 installcheck-target: maybe-installcheck-target-rda
1816 installcheck-target: maybe-installcheck-target-libada
1817 installcheck-target: maybe-installcheck-target-libgomp
1818 installcheck-target: maybe-installcheck-target-libitm
1819
1820 .PHONY: do-mostlyclean
1821 do-mostlyclean:
1822         @: $(MAKE); $(unstage)
1823         @r=`${PWD_COMMAND}`; export r; \
1824         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1825         $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
1826           mostlyclean-target
1827
1828
1829 .PHONY: mostlyclean-host
1830
1831 mostlyclean-host: maybe-mostlyclean-bfd
1832 mostlyclean-host: maybe-mostlyclean-opcodes
1833 mostlyclean-host: maybe-mostlyclean-binutils
1834 mostlyclean-host: maybe-mostlyclean-bison
1835 mostlyclean-host: maybe-mostlyclean-cgen
1836 mostlyclean-host: maybe-mostlyclean-dejagnu
1837 mostlyclean-host: maybe-mostlyclean-etc
1838 mostlyclean-host: maybe-mostlyclean-fastjar
1839 mostlyclean-host: maybe-mostlyclean-fixincludes
1840 mostlyclean-host: maybe-mostlyclean-flex
1841 mostlyclean-host: maybe-mostlyclean-gas
1842 mostlyclean-host: maybe-mostlyclean-gcc
1843 mostlyclean-host: maybe-mostlyclean-gmp
1844 mostlyclean-host: maybe-mostlyclean-mpfr
1845 mostlyclean-host: maybe-mostlyclean-mpc
1846 mostlyclean-host: maybe-mostlyclean-ppl
1847 mostlyclean-host: maybe-mostlyclean-cloog
1848 mostlyclean-host: maybe-mostlyclean-libelf
1849 mostlyclean-host: maybe-mostlyclean-gold
1850 mostlyclean-host: maybe-mostlyclean-gprof
1851 mostlyclean-host: maybe-mostlyclean-intl
1852 mostlyclean-host: maybe-mostlyclean-tcl
1853 mostlyclean-host: maybe-mostlyclean-itcl
1854 mostlyclean-host: maybe-mostlyclean-ld
1855 mostlyclean-host: maybe-mostlyclean-libcpp
1856 mostlyclean-host: maybe-mostlyclean-libdecnumber
1857 mostlyclean-host: maybe-mostlyclean-libgui
1858 mostlyclean-host: maybe-mostlyclean-libiberty
1859 mostlyclean-host: maybe-mostlyclean-libiconv
1860 mostlyclean-host: maybe-mostlyclean-m4
1861 mostlyclean-host: maybe-mostlyclean-readline
1862 mostlyclean-host: maybe-mostlyclean-sid
1863 mostlyclean-host: maybe-mostlyclean-sim
1864 mostlyclean-host: maybe-mostlyclean-texinfo
1865 mostlyclean-host: maybe-mostlyclean-zlib
1866 mostlyclean-host: maybe-mostlyclean-gdb
1867 mostlyclean-host: maybe-mostlyclean-expect
1868 mostlyclean-host: maybe-mostlyclean-guile
1869 mostlyclean-host: maybe-mostlyclean-tk
1870 mostlyclean-host: maybe-mostlyclean-libtermcap
1871 mostlyclean-host: maybe-mostlyclean-utils
1872 mostlyclean-host: maybe-mostlyclean-gnattools
1873 mostlyclean-host: maybe-mostlyclean-lto-plugin
1874
1875 .PHONY: mostlyclean-target
1876
1877 mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
1878 mostlyclean-target: maybe-mostlyclean-target-libmudflap
1879 mostlyclean-target: maybe-mostlyclean-target-libssp
1880 mostlyclean-target: maybe-mostlyclean-target-newlib
1881 mostlyclean-target: maybe-mostlyclean-target-libgcc
1882 mostlyclean-target: maybe-mostlyclean-target-libquadmath
1883 mostlyclean-target: maybe-mostlyclean-target-libgfortran
1884 mostlyclean-target: maybe-mostlyclean-target-libobjc
1885 mostlyclean-target: maybe-mostlyclean-target-libgo
1886 mostlyclean-target: maybe-mostlyclean-target-libtermcap
1887 mostlyclean-target: maybe-mostlyclean-target-winsup
1888 mostlyclean-target: maybe-mostlyclean-target-libgloss
1889 mostlyclean-target: maybe-mostlyclean-target-libffi
1890 mostlyclean-target: maybe-mostlyclean-target-libjava
1891 mostlyclean-target: maybe-mostlyclean-target-zlib
1892 mostlyclean-target: maybe-mostlyclean-target-boehm-gc
1893 mostlyclean-target: maybe-mostlyclean-target-rda
1894 mostlyclean-target: maybe-mostlyclean-target-libada
1895 mostlyclean-target: maybe-mostlyclean-target-libgomp
1896 mostlyclean-target: maybe-mostlyclean-target-libitm
1897
1898 .PHONY: do-clean
1899 do-clean:
1900         @: $(MAKE); $(unstage)
1901         @r=`${PWD_COMMAND}`; export r; \
1902         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1903         $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
1904           clean-target
1905
1906
1907 .PHONY: clean-host
1908
1909 clean-host: maybe-clean-bfd
1910 clean-host: maybe-clean-opcodes
1911 clean-host: maybe-clean-binutils
1912 clean-host: maybe-clean-bison
1913 clean-host: maybe-clean-cgen
1914 clean-host: maybe-clean-dejagnu
1915 clean-host: maybe-clean-etc
1916 clean-host: maybe-clean-fastjar
1917 clean-host: maybe-clean-fixincludes
1918 clean-host: maybe-clean-flex
1919 clean-host: maybe-clean-gas
1920 clean-host: maybe-clean-gcc
1921 clean-host: maybe-clean-gmp
1922 clean-host: maybe-clean-mpfr
1923 clean-host: maybe-clean-mpc
1924 clean-host: maybe-clean-ppl
1925 clean-host: maybe-clean-cloog
1926 clean-host: maybe-clean-libelf
1927 clean-host: maybe-clean-gold
1928 clean-host: maybe-clean-gprof
1929 clean-host: maybe-clean-intl
1930 clean-host: maybe-clean-tcl
1931 clean-host: maybe-clean-itcl
1932 clean-host: maybe-clean-ld
1933 clean-host: maybe-clean-libcpp
1934 clean-host: maybe-clean-libdecnumber
1935 clean-host: maybe-clean-libgui
1936 clean-host: maybe-clean-libiberty
1937 clean-host: maybe-clean-libiconv
1938 clean-host: maybe-clean-m4
1939 clean-host: maybe-clean-readline
1940 clean-host: maybe-clean-sid
1941 clean-host: maybe-clean-sim
1942 clean-host: maybe-clean-texinfo
1943 clean-host: maybe-clean-zlib
1944 clean-host: maybe-clean-gdb
1945 clean-host: maybe-clean-expect
1946 clean-host: maybe-clean-guile
1947 clean-host: maybe-clean-tk
1948 clean-host: maybe-clean-libtermcap
1949 clean-host: maybe-clean-utils
1950 clean-host: maybe-clean-gnattools
1951 clean-host: maybe-clean-lto-plugin
1952
1953 .PHONY: clean-target
1954
1955 clean-target: maybe-clean-target-libstdc++-v3
1956 clean-target: maybe-clean-target-libmudflap
1957 clean-target: maybe-clean-target-libssp
1958 clean-target: maybe-clean-target-newlib
1959 clean-target: maybe-clean-target-libgcc
1960 clean-target: maybe-clean-target-libquadmath
1961 clean-target: maybe-clean-target-libgfortran
1962 clean-target: maybe-clean-target-libobjc
1963 clean-target: maybe-clean-target-libgo
1964 clean-target: maybe-clean-target-libtermcap
1965 clean-target: maybe-clean-target-winsup
1966 clean-target: maybe-clean-target-libgloss
1967 clean-target: maybe-clean-target-libffi
1968 clean-target: maybe-clean-target-libjava
1969 clean-target: maybe-clean-target-zlib
1970 clean-target: maybe-clean-target-boehm-gc
1971 clean-target: maybe-clean-target-rda
1972 clean-target: maybe-clean-target-libada
1973 clean-target: maybe-clean-target-libgomp
1974 clean-target: maybe-clean-target-libitm
1975
1976 .PHONY: do-distclean
1977 do-distclean:
1978         @: $(MAKE); $(unstage)
1979         @r=`${PWD_COMMAND}`; export r; \
1980         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1981         $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
1982           distclean-target
1983
1984
1985 .PHONY: distclean-host
1986
1987 distclean-host: maybe-distclean-bfd
1988 distclean-host: maybe-distclean-opcodes
1989 distclean-host: maybe-distclean-binutils
1990 distclean-host: maybe-distclean-bison
1991 distclean-host: maybe-distclean-cgen
1992 distclean-host: maybe-distclean-dejagnu
1993 distclean-host: maybe-distclean-etc
1994 distclean-host: maybe-distclean-fastjar
1995 distclean-host: maybe-distclean-fixincludes
1996 distclean-host: maybe-distclean-flex
1997 distclean-host: maybe-distclean-gas
1998 distclean-host: maybe-distclean-gcc
1999 distclean-host: maybe-distclean-gmp
2000 distclean-host: maybe-distclean-mpfr
2001 distclean-host: maybe-distclean-mpc
2002 distclean-host: maybe-distclean-ppl
2003 distclean-host: maybe-distclean-cloog
2004 distclean-host: maybe-distclean-libelf
2005 distclean-host: maybe-distclean-gold
2006 distclean-host: maybe-distclean-gprof
2007 distclean-host: maybe-distclean-intl
2008 distclean-host: maybe-distclean-tcl
2009 distclean-host: maybe-distclean-itcl
2010 distclean-host: maybe-distclean-ld
2011 distclean-host: maybe-distclean-libcpp
2012 distclean-host: maybe-distclean-libdecnumber
2013 distclean-host: maybe-distclean-libgui
2014 distclean-host: maybe-distclean-libiberty
2015 distclean-host: maybe-distclean-libiconv
2016 distclean-host: maybe-distclean-m4
2017 distclean-host: maybe-distclean-readline
2018 distclean-host: maybe-distclean-sid
2019 distclean-host: maybe-distclean-sim
2020 distclean-host: maybe-distclean-texinfo
2021 distclean-host: maybe-distclean-zlib
2022 distclean-host: maybe-distclean-gdb
2023 distclean-host: maybe-distclean-expect
2024 distclean-host: maybe-distclean-guile
2025 distclean-host: maybe-distclean-tk
2026 distclean-host: maybe-distclean-libtermcap
2027 distclean-host: maybe-distclean-utils
2028 distclean-host: maybe-distclean-gnattools
2029 distclean-host: maybe-distclean-lto-plugin
2030
2031 .PHONY: distclean-target
2032
2033 distclean-target: maybe-distclean-target-libstdc++-v3
2034 distclean-target: maybe-distclean-target-libmudflap
2035 distclean-target: maybe-distclean-target-libssp
2036 distclean-target: maybe-distclean-target-newlib
2037 distclean-target: maybe-distclean-target-libgcc
2038 distclean-target: maybe-distclean-target-libquadmath
2039 distclean-target: maybe-distclean-target-libgfortran
2040 distclean-target: maybe-distclean-target-libobjc
2041 distclean-target: maybe-distclean-target-libgo
2042 distclean-target: maybe-distclean-target-libtermcap
2043 distclean-target: maybe-distclean-target-winsup
2044 distclean-target: maybe-distclean-target-libgloss
2045 distclean-target: maybe-distclean-target-libffi
2046 distclean-target: maybe-distclean-target-libjava
2047 distclean-target: maybe-distclean-target-zlib
2048 distclean-target: maybe-distclean-target-boehm-gc
2049 distclean-target: maybe-distclean-target-rda
2050 distclean-target: maybe-distclean-target-libada
2051 distclean-target: maybe-distclean-target-libgomp
2052 distclean-target: maybe-distclean-target-libitm
2053
2054 .PHONY: do-maintainer-clean
2055 do-maintainer-clean:
2056         @: $(MAKE); $(unstage)
2057         @r=`${PWD_COMMAND}`; export r; \
2058         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2059         $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
2060           maintainer-clean-target
2061
2062
2063 .PHONY: maintainer-clean-host
2064
2065 maintainer-clean-host: maybe-maintainer-clean-bfd
2066 maintainer-clean-host: maybe-maintainer-clean-opcodes
2067 maintainer-clean-host: maybe-maintainer-clean-binutils
2068 maintainer-clean-host: maybe-maintainer-clean-bison
2069 maintainer-clean-host: maybe-maintainer-clean-cgen
2070 maintainer-clean-host: maybe-maintainer-clean-dejagnu
2071 maintainer-clean-host: maybe-maintainer-clean-etc
2072 maintainer-clean-host: maybe-maintainer-clean-fastjar
2073 maintainer-clean-host: maybe-maintainer-clean-fixincludes
2074 maintainer-clean-host: maybe-maintainer-clean-flex
2075 maintainer-clean-host: maybe-maintainer-clean-gas
2076 maintainer-clean-host: maybe-maintainer-clean-gcc
2077 maintainer-clean-host: maybe-maintainer-clean-gmp
2078 maintainer-clean-host: maybe-maintainer-clean-mpfr
2079 maintainer-clean-host: maybe-maintainer-clean-mpc
2080 maintainer-clean-host: maybe-maintainer-clean-ppl
2081 maintainer-clean-host: maybe-maintainer-clean-cloog
2082 maintainer-clean-host: maybe-maintainer-clean-libelf
2083 maintainer-clean-host: maybe-maintainer-clean-gold
2084 maintainer-clean-host: maybe-maintainer-clean-gprof
2085 maintainer-clean-host: maybe-maintainer-clean-intl
2086 maintainer-clean-host: maybe-maintainer-clean-tcl
2087 maintainer-clean-host: maybe-maintainer-clean-itcl
2088 maintainer-clean-host: maybe-maintainer-clean-ld
2089 maintainer-clean-host: maybe-maintainer-clean-libcpp
2090 maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2091 maintainer-clean-host: maybe-maintainer-clean-libgui
2092 maintainer-clean-host: maybe-maintainer-clean-libiberty
2093 maintainer-clean-host: maybe-maintainer-clean-libiconv
2094 maintainer-clean-host: maybe-maintainer-clean-m4
2095 maintainer-clean-host: maybe-maintainer-clean-readline
2096 maintainer-clean-host: maybe-maintainer-clean-sid
2097 maintainer-clean-host: maybe-maintainer-clean-sim
2098 maintainer-clean-host: maybe-maintainer-clean-texinfo
2099 maintainer-clean-host: maybe-maintainer-clean-zlib
2100 maintainer-clean-host: maybe-maintainer-clean-gdb
2101 maintainer-clean-host: maybe-maintainer-clean-expect
2102 maintainer-clean-host: maybe-maintainer-clean-guile
2103 maintainer-clean-host: maybe-maintainer-clean-tk
2104 maintainer-clean-host: maybe-maintainer-clean-libtermcap
2105 maintainer-clean-host: maybe-maintainer-clean-utils
2106 maintainer-clean-host: maybe-maintainer-clean-gnattools
2107 maintainer-clean-host: maybe-maintainer-clean-lto-plugin
2108
2109 .PHONY: maintainer-clean-target
2110
2111 maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
2112 maintainer-clean-target: maybe-maintainer-clean-target-libmudflap
2113 maintainer-clean-target: maybe-maintainer-clean-target-libssp
2114 maintainer-clean-target: maybe-maintainer-clean-target-newlib
2115 maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2116 maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
2117 maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2118 maintainer-clean-target: maybe-maintainer-clean-target-libobjc
2119 maintainer-clean-target: maybe-maintainer-clean-target-libgo
2120 maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2121 maintainer-clean-target: maybe-maintainer-clean-target-winsup
2122 maintainer-clean-target: maybe-maintainer-clean-target-libgloss
2123 maintainer-clean-target: maybe-maintainer-clean-target-libffi
2124 maintainer-clean-target: maybe-maintainer-clean-target-libjava
2125 maintainer-clean-target: maybe-maintainer-clean-target-zlib
2126 maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
2127 maintainer-clean-target: maybe-maintainer-clean-target-rda
2128 maintainer-clean-target: maybe-maintainer-clean-target-libada
2129 maintainer-clean-target: maybe-maintainer-clean-target-libgomp
2130 maintainer-clean-target: maybe-maintainer-clean-target-libitm
2131
2132
2133 # Here are the targets which correspond to the do-X targets.
2134
2135 .PHONY: info installcheck dvi pdf html
2136 .PHONY: install-info install-pdf install-html
2137 .PHONY: clean distclean mostlyclean maintainer-clean realclean
2138 .PHONY: local-clean local-distclean local-maintainer-clean
2139 info: do-info
2140 installcheck: do-installcheck
2141 dvi: do-dvi
2142 pdf: do-pdf
2143 html: do-html
2144
2145 # Make sure makeinfo is built before we do a `make info', if we're
2146 # in fact building texinfo.
2147 do-info: maybe-all-texinfo
2148
2149 install-info: do-install-info dir.info
2150         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2151         if [ -f dir.info ] ; then \
2152           $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
2153         else true ; fi
2154
2155 install-pdf: do-install-pdf
2156
2157 install-html: do-install-html
2158
2159 local-clean:
2160         -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2161
2162 local-distclean:
2163         -rm -f Makefile config.status config.cache mh-frag mt-frag
2164         -rm -f maybedep.tmp serdep.tmp
2165         -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2166           rm -rf $(TARGET_SUBDIR); \
2167         else true; fi
2168         -rm -rf $(BUILD_SUBDIR)
2169         -if [ "$(HOST_SUBDIR)" != "." ]; then \
2170           rm -rf $(HOST_SUBDIR); \
2171         else true; fi
2172         -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2173         -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2174         -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2175         -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
2176         -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
2177         -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2178
2179 local-maintainer-clean:
2180         @echo "This command is intended for maintainers to use;"
2181         @echo "it deletes files that may require special tools to rebuild."
2182
2183 clean: do-clean local-clean
2184 mostlyclean: do-mostlyclean local-clean
2185 distclean: do-distclean local-clean local-distclean
2186 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean 
2187 maintainer-clean: local-distclean
2188 realclean: maintainer-clean
2189
2190 # Check target.
2191
2192 .PHONY: check do-check
2193 check: do-check
2194
2195 # Only include modules actually being configured and built.
2196 .PHONY: check-host
2197 check-host:  \
2198     maybe-check-bfd \
2199     maybe-check-opcodes \
2200     maybe-check-binutils \
2201     maybe-check-bison \
2202     maybe-check-cgen \
2203     maybe-check-dejagnu \
2204     maybe-check-etc \
2205     maybe-check-fastjar \
2206     maybe-check-fixincludes \
2207     maybe-check-flex \
2208     maybe-check-gas \
2209     maybe-check-gcc \
2210     maybe-check-gmp \
2211     maybe-check-mpfr \
2212     maybe-check-mpc \
2213     maybe-check-ppl \
2214     maybe-check-cloog \
2215     maybe-check-libelf \
2216     maybe-check-gold \
2217     maybe-check-gprof \
2218     maybe-check-intl \
2219     maybe-check-tcl \
2220     maybe-check-itcl \
2221     maybe-check-ld \
2222     maybe-check-libcpp \
2223     maybe-check-libdecnumber \
2224     maybe-check-libgui \
2225     maybe-check-libiberty \
2226     maybe-check-libiconv \
2227     maybe-check-m4 \
2228     maybe-check-readline \
2229     maybe-check-sid \
2230     maybe-check-sim \
2231     maybe-check-texinfo \
2232     maybe-check-zlib \
2233     maybe-check-gdb \
2234     maybe-check-expect \
2235     maybe-check-guile \
2236     maybe-check-tk \
2237     maybe-check-libtermcap \
2238     maybe-check-utils \
2239     maybe-check-gnattools \
2240     maybe-check-lto-plugin
2241
2242 .PHONY: check-target
2243 check-target:  \
2244     maybe-check-target-libstdc++-v3 \
2245     maybe-check-target-libmudflap \
2246     maybe-check-target-libssp \
2247     maybe-check-target-newlib \
2248     maybe-check-target-libgcc \
2249     maybe-check-target-libquadmath \
2250     maybe-check-target-libgfortran \
2251     maybe-check-target-libobjc \
2252     maybe-check-target-libgo \
2253     maybe-check-target-libtermcap \
2254     maybe-check-target-winsup \
2255     maybe-check-target-libgloss \
2256     maybe-check-target-libffi \
2257     maybe-check-target-libjava \
2258     maybe-check-target-zlib \
2259     maybe-check-target-boehm-gc \
2260     maybe-check-target-rda \
2261     maybe-check-target-libada \
2262     maybe-check-target-libgomp \
2263     maybe-check-target-libitm
2264
2265 do-check:
2266         @: $(MAKE); $(unstage)
2267         @r=`${PWD_COMMAND}`; export r; \
2268         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2269         $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2270
2271 # Automated reporting of test results.
2272
2273 warning.log: build.log
2274         $(srcdir)/contrib/warn_summary build.log > $@
2275
2276 mail-report.log:
2277         if test x'$(BOOT_CFLAGS)' != x''; then \
2278             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2279         fi; \
2280         $(srcdir)/contrib/test_summary -t >$@
2281         chmod +x $@
2282         echo If you really want to send e-mail, run ./$@ now
2283
2284 mail-report-with-warnings.log: warning.log
2285         if test x'$(BOOT_CFLAGS)' != x''; then \
2286             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2287         fi; \
2288         $(srcdir)/contrib/test_summary -t -i warning.log >$@
2289         chmod +x $@
2290         echo If you really want to send e-mail, run ./$@ now
2291
2292 # Installation targets.
2293
2294 .PHONY: install uninstall
2295 install:
2296         @: $(MAKE); $(unstage)
2297         @r=`${PWD_COMMAND}`; export r; \
2298         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2299         $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2300
2301 .PHONY: install-host-nogcc
2302 install-host-nogcc:  \
2303     maybe-install-bfd \
2304     maybe-install-opcodes \
2305     maybe-install-binutils \
2306     maybe-install-bison \
2307     maybe-install-cgen \
2308     maybe-install-dejagnu \
2309     maybe-install-etc \
2310     maybe-install-fastjar \
2311     maybe-install-fixincludes \
2312     maybe-install-flex \
2313     maybe-install-gas \
2314     maybe-install-gmp \
2315     maybe-install-mpfr \
2316     maybe-install-mpc \
2317     maybe-install-ppl \
2318     maybe-install-cloog \
2319     maybe-install-libelf \
2320     maybe-install-gold \
2321     maybe-install-gprof \
2322     maybe-install-intl \
2323     maybe-install-tcl \
2324     maybe-install-itcl \
2325     maybe-install-ld \
2326     maybe-install-libcpp \
2327     maybe-install-libdecnumber \
2328     maybe-install-libgui \
2329     maybe-install-libiberty \
2330     maybe-install-libiconv \
2331     maybe-install-m4 \
2332     maybe-install-readline \
2333     maybe-install-sid \
2334     maybe-install-sim \
2335     maybe-install-texinfo \
2336     maybe-install-zlib \
2337     maybe-install-gdb \
2338     maybe-install-expect \
2339     maybe-install-guile \
2340     maybe-install-tk \
2341     maybe-install-libtermcap \
2342     maybe-install-utils \
2343     maybe-install-gnattools \
2344     maybe-install-lto-plugin
2345
2346 .PHONY: install-host
2347 install-host:  \
2348     maybe-install-bfd \
2349     maybe-install-opcodes \
2350     maybe-install-binutils \
2351     maybe-install-bison \
2352     maybe-install-cgen \
2353     maybe-install-dejagnu \
2354     maybe-install-etc \
2355     maybe-install-fastjar \
2356     maybe-install-fixincludes \
2357     maybe-install-flex \
2358     maybe-install-gas \
2359     maybe-install-gcc \
2360     maybe-install-gmp \
2361     maybe-install-mpfr \
2362     maybe-install-mpc \
2363     maybe-install-ppl \
2364     maybe-install-cloog \
2365     maybe-install-libelf \
2366     maybe-install-gold \
2367     maybe-install-gprof \
2368     maybe-install-intl \
2369     maybe-install-tcl \
2370     maybe-install-itcl \
2371     maybe-install-ld \
2372     maybe-install-libcpp \
2373     maybe-install-libdecnumber \
2374     maybe-install-libgui \
2375     maybe-install-libiberty \
2376     maybe-install-libiconv \
2377     maybe-install-m4 \
2378     maybe-install-readline \
2379     maybe-install-sid \
2380     maybe-install-sim \
2381     maybe-install-texinfo \
2382     maybe-install-zlib \
2383     maybe-install-gdb \
2384     maybe-install-expect \
2385     maybe-install-guile \
2386     maybe-install-tk \
2387     maybe-install-libtermcap \
2388     maybe-install-utils \
2389     maybe-install-gnattools \
2390     maybe-install-lto-plugin
2391
2392 .PHONY: install-target
2393 install-target:  \
2394     maybe-install-target-libstdc++-v3 \
2395     maybe-install-target-libmudflap \
2396     maybe-install-target-libssp \
2397     maybe-install-target-newlib \
2398     maybe-install-target-libgcc \
2399     maybe-install-target-libquadmath \
2400     maybe-install-target-libgfortran \
2401     maybe-install-target-libobjc \
2402     maybe-install-target-libgo \
2403     maybe-install-target-libtermcap \
2404     maybe-install-target-winsup \
2405     maybe-install-target-libgloss \
2406     maybe-install-target-libffi \
2407     maybe-install-target-libjava \
2408     maybe-install-target-zlib \
2409     maybe-install-target-boehm-gc \
2410     maybe-install-target-rda \
2411     maybe-install-target-libada \
2412     maybe-install-target-libgomp \
2413     maybe-install-target-libitm
2414
2415 uninstall:
2416         @echo "the uninstall target is not supported in this tree"
2417
2418 .PHONY: install.all
2419 install.all: install-no-fixedincludes
2420         @if [ -f ./gcc/Makefile ] ; then \
2421                 r=`${PWD_COMMAND}` ; export r ; \
2422                 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2423                 $(HOST_EXPORTS) \
2424                 (cd ./gcc && \
2425                 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2426         else \
2427                 true ; \
2428         fi
2429
2430 # install-no-fixedincludes is used to allow the elaboration of binary packages
2431 # suitable for distribution, where we cannot include the fixed system header
2432 # files.
2433 .PHONY: install-no-fixedincludes
2434 install-no-fixedincludes: installdirs install-host-nogcc \
2435         install-target gcc-install-no-fixedincludes
2436
2437 .PHONY: install-strip
2438 install-strip:
2439         @: $(MAKE); $(unstage)
2440         @r=`${PWD_COMMAND}`; export r; \
2441         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2442         $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2443
2444 .PHONY: install-strip-host
2445 install-strip-host:  \
2446     maybe-install-strip-bfd \
2447     maybe-install-strip-opcodes \
2448     maybe-install-strip-binutils \
2449     maybe-install-strip-bison \
2450     maybe-install-strip-cgen \
2451     maybe-install-strip-dejagnu \
2452     maybe-install-strip-etc \
2453     maybe-install-strip-fastjar \
2454     maybe-install-strip-fixincludes \
2455     maybe-install-strip-flex \
2456     maybe-install-strip-gas \
2457     maybe-install-strip-gcc \
2458     maybe-install-strip-gmp \
2459     maybe-install-strip-mpfr \
2460     maybe-install-strip-mpc \
2461     maybe-install-strip-ppl \
2462     maybe-install-strip-cloog \
2463     maybe-install-strip-libelf \
2464     maybe-install-strip-gold \
2465     maybe-install-strip-gprof \
2466     maybe-install-strip-intl \
2467     maybe-install-strip-tcl \
2468     maybe-install-strip-itcl \
2469     maybe-install-strip-ld \
2470     maybe-install-strip-libcpp \
2471     maybe-install-strip-libdecnumber \
2472     maybe-install-strip-libgui \
2473     maybe-install-strip-libiberty \
2474     maybe-install-strip-libiconv \
2475     maybe-install-strip-m4 \
2476     maybe-install-strip-readline \
2477     maybe-install-strip-sid \
2478     maybe-install-strip-sim \
2479     maybe-install-strip-texinfo \
2480     maybe-install-strip-zlib \
2481     maybe-install-strip-gdb \
2482     maybe-install-strip-expect \
2483     maybe-install-strip-guile \
2484     maybe-install-strip-tk \
2485     maybe-install-strip-libtermcap \
2486     maybe-install-strip-utils \
2487     maybe-install-strip-gnattools \
2488     maybe-install-strip-lto-plugin
2489
2490 .PHONY: install-strip-target
2491 install-strip-target:  \
2492     maybe-install-strip-target-libstdc++-v3 \
2493     maybe-install-strip-target-libmudflap \
2494     maybe-install-strip-target-libssp \
2495     maybe-install-strip-target-newlib \
2496     maybe-install-strip-target-libgcc \
2497     maybe-install-strip-target-libquadmath \
2498     maybe-install-strip-target-libgfortran \
2499     maybe-install-strip-target-libobjc \
2500     maybe-install-strip-target-libgo \
2501     maybe-install-strip-target-libtermcap \
2502     maybe-install-strip-target-winsup \
2503     maybe-install-strip-target-libgloss \
2504     maybe-install-strip-target-libffi \
2505     maybe-install-strip-target-libjava \
2506     maybe-install-strip-target-zlib \
2507     maybe-install-strip-target-boehm-gc \
2508     maybe-install-strip-target-rda \
2509     maybe-install-strip-target-libada \
2510     maybe-install-strip-target-libgomp \
2511     maybe-install-strip-target-libitm
2512
2513
2514 ### other supporting targets
2515
2516 MAKEDIRS= \
2517         $(DESTDIR)$(prefix) \
2518         $(DESTDIR)$(exec_prefix)
2519 .PHONY: installdirs
2520 installdirs: mkinstalldirs
2521         $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2522
2523 dir.info: do-install-info
2524         if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2525           $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2526           mv -f dir.info.new dir.info ; \
2527         else true ; \
2528         fi
2529
2530 dist:
2531         @echo "Building a full distribution of this tree isn't done"
2532         @echo "via 'make dist'.  Check out the etc/ subdirectory" 
2533
2534 etags tags: TAGS
2535
2536 # Right now this just builds TAGS in each subdirectory.  emacs19 has the
2537 # ability to use several tags files at once, so there is probably no need
2538 # to combine them into one big TAGS file (like CVS 1.3 does).  We could
2539 # (if we felt like it) have this Makefile write a piece of elisp which
2540 # the user could load to tell emacs19 where all the TAGS files we just
2541 # built are.
2542 TAGS: do-TAGS
2543
2544 # ------------------------------------
2545 # Macros for configure and all targets
2546 # ------------------------------------
2547
2548
2549
2550
2551
2552 # --------------------------------------
2553 # Modules which run on the build machine
2554 # --------------------------------------
2555
2556
2557 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
2558 maybe-configure-build-libiberty:
2559 @if gcc-bootstrap
2560 configure-build-libiberty: stage_current
2561 @endif gcc-bootstrap
2562 @if build-libiberty
2563 maybe-configure-build-libiberty: configure-build-libiberty
2564 configure-build-libiberty: 
2565         @: $(MAKE); $(unstage)
2566         @r=`${PWD_COMMAND}`; export r; \
2567         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2568         test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2569         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
2570         $(BUILD_EXPORTS)  \
2571         echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2572         cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2573         case $(srcdir) in \
2574           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2575           *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2576                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2577         esac; \
2578         srcdiroption="--srcdir=$${topdir}/libiberty"; \
2579         libsrcdir="$$s/libiberty"; \
2580         rm -f no-such-file || : ; \
2581         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2582           $(BUILD_CONFIGARGS) --quiet --build=${build_alias} --host=${build_alias} \
2583           --target=${target_alias} $${srcdiroption}  \
2584           || exit 1
2585 @endif build-libiberty
2586
2587
2588
2589
2590
2591 .PHONY: all-build-libiberty maybe-all-build-libiberty
2592 maybe-all-build-libiberty:
2593 @if gcc-bootstrap
2594 all-build-libiberty: stage_current
2595 @endif gcc-bootstrap
2596 @if build-libiberty
2597 TARGET-build-libiberty=all
2598 maybe-all-build-libiberty: all-build-libiberty
2599 all-build-libiberty: configure-build-libiberty
2600         @: $(MAKE); $(unstage)
2601         @r=`${PWD_COMMAND}`; export r; \
2602         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2603         $(BUILD_EXPORTS)  \
2604         (cd $(BUILD_SUBDIR)/libiberty && \
2605           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS)  \
2606                 $(TARGET-build-libiberty))
2607 @endif build-libiberty
2608
2609
2610
2611
2612
2613 .PHONY: configure-build-intl maybe-configure-build-intl
2614 maybe-configure-build-intl:
2615 @if gcc-bootstrap
2616 configure-build-intl: stage_current
2617 @endif gcc-bootstrap
2618 @if build-intl
2619 maybe-configure-build-intl: configure-build-intl
2620 configure-build-intl: 
2621         @: $(MAKE); $(unstage)
2622         @r=`${PWD_COMMAND}`; export r; \
2623         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2624         test ! -f $(BUILD_SUBDIR)/intl/Makefile || exit 0; \
2625         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/intl ; \
2626         $(BUILD_EXPORTS)  \
2627         echo Configuring in $(BUILD_SUBDIR)/intl; \
2628         cd "$(BUILD_SUBDIR)/intl" || exit 1; \
2629         case $(srcdir) in \
2630           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2631           *) topdir=`echo $(BUILD_SUBDIR)/intl/ | \
2632                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2633         esac; \
2634         srcdiroption="--srcdir=$${topdir}/intl"; \
2635         libsrcdir="$$s/intl"; \
2636         rm -f no-such-file || : ; \
2637         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2638           $(BUILD_CONFIGARGS) --quiet --build=${build_alias} --host=${build_alias} \
2639           --target=${target_alias} $${srcdiroption}  \
2640           || exit 1
2641 @endif build-intl
2642
2643
2644
2645
2646
2647 .PHONY: all-build-intl maybe-all-build-intl
2648 maybe-all-build-intl:
2649 @if gcc-bootstrap
2650 all-build-intl: stage_current
2651 @endif gcc-bootstrap
2652 @if build-intl
2653 TARGET-build-intl=all
2654 maybe-all-build-intl: all-build-intl
2655 all-build-intl: configure-build-intl
2656         @: $(MAKE); $(unstage)
2657         @r=`${PWD_COMMAND}`; export r; \
2658         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2659         $(BUILD_EXPORTS)  \
2660         (cd $(BUILD_SUBDIR)/intl && \
2661           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS)  \
2662                 $(TARGET-build-intl))
2663 @endif build-intl
2664
2665
2666
2667
2668
2669 .PHONY: configure-build-bison maybe-configure-build-bison
2670 maybe-configure-build-bison:
2671 @if gcc-bootstrap
2672 configure-build-bison: stage_current
2673 @endif gcc-bootstrap
2674 @if build-bison
2675 maybe-configure-build-bison: configure-build-bison
2676 configure-build-bison: 
2677         @: $(MAKE); $(unstage)
2678         @r=`${PWD_COMMAND}`; export r; \
2679         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2680         test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2681         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2682         $(BUILD_EXPORTS)  \
2683         echo Configuring in $(BUILD_SUBDIR)/bison; \
2684         cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2685         case $(srcdir) in \
2686           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2687           *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2688                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2689         esac; \
2690         srcdiroption="--srcdir=$${topdir}/bison"; \
2691         libsrcdir="$$s/bison"; \
2692         rm -f no-such-file || : ; \
2693         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2694           $(BUILD_CONFIGARGS) --quiet --build=${build_alias} --host=${build_alias} \
2695           --target=${target_alias} $${srcdiroption}  \
2696           || exit 1
2697 @endif build-bison
2698
2699
2700
2701
2702
2703 .PHONY: all-build-bison maybe-all-build-bison
2704 maybe-all-build-bison:
2705 @if gcc-bootstrap
2706 all-build-bison: stage_current
2707 @endif gcc-bootstrap
2708 @if build-bison
2709 TARGET-build-bison=all
2710 maybe-all-build-bison: all-build-bison
2711 all-build-bison: configure-build-bison
2712         @: $(MAKE); $(unstage)
2713         @r=`${PWD_COMMAND}`; export r; \
2714         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2715         $(BUILD_EXPORTS)  \
2716         (cd $(BUILD_SUBDIR)/bison && \
2717           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS)  \
2718                 $(TARGET-build-bison))
2719 @endif build-bison
2720
2721
2722
2723
2724
2725 .PHONY: configure-build-flex maybe-configure-build-flex
2726 maybe-configure-build-flex:
2727 @if gcc-bootstrap
2728 configure-build-flex: stage_current
2729 @endif gcc-bootstrap
2730 @if build-flex
2731 maybe-configure-build-flex: configure-build-flex
2732 configure-build-flex: 
2733         @: $(MAKE); $(unstage)
2734         @r=`${PWD_COMMAND}`; export r; \
2735         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2736         test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2737         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2738         $(BUILD_EXPORTS)  \
2739         echo Configuring in $(BUILD_SUBDIR)/flex; \
2740         cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2741         case $(srcdir) in \
2742           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2743           *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2744                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2745         esac; \
2746         srcdiroption="--srcdir=$${topdir}/flex"; \
2747         libsrcdir="$$s/flex"; \
2748         rm -f no-such-file || : ; \
2749         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2750           $(BUILD_CONFIGARGS) --quiet --build=${build_alias} --host=${build_alias} \
2751           --target=${target_alias} $${srcdiroption} LEX="flex" \
2752           || exit 1
2753 @endif build-flex
2754
2755
2756
2757
2758
2759 .PHONY: all-build-flex maybe-all-build-flex
2760 maybe-all-build-flex:
2761 @if gcc-bootstrap
2762 all-build-flex: stage_current
2763 @endif gcc-bootstrap
2764 @if build-flex
2765 TARGET-build-flex=all
2766 maybe-all-build-flex: all-build-flex
2767 all-build-flex: configure-build-flex
2768         @: $(MAKE); $(unstage)
2769         @r=`${PWD_COMMAND}`; export r; \
2770         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2771         $(BUILD_EXPORTS)  \
2772         (cd $(BUILD_SUBDIR)/flex && \
2773           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) LEX=flex FLEX=flex \
2774                 $(TARGET-build-flex))
2775 @endif build-flex
2776
2777
2778
2779
2780
2781 .PHONY: configure-build-m4 maybe-configure-build-m4
2782 maybe-configure-build-m4:
2783 @if gcc-bootstrap
2784 configure-build-m4: stage_current
2785 @endif gcc-bootstrap
2786 @if build-m4
2787 maybe-configure-build-m4: configure-build-m4
2788 configure-build-m4: 
2789         @: $(MAKE); $(unstage)
2790         @r=`${PWD_COMMAND}`; export r; \
2791         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2792         test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2793         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2794         $(BUILD_EXPORTS)  \
2795         echo Configuring in $(BUILD_SUBDIR)/m4; \
2796         cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2797         case $(srcdir) in \
2798           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2799           *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2800                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2801         esac; \
2802         srcdiroption="--srcdir=$${topdir}/m4"; \
2803         libsrcdir="$$s/m4"; \
2804         rm -f no-such-file || : ; \
2805         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2806           $(BUILD_CONFIGARGS) --quiet --build=${build_alias} --host=${build_alias} \
2807           --target=${target_alias} $${srcdiroption}  \
2808           || exit 1
2809 @endif build-m4
2810
2811
2812
2813
2814
2815 .PHONY: all-build-m4 maybe-all-build-m4
2816 maybe-all-build-m4:
2817 @if gcc-bootstrap
2818 all-build-m4: stage_current
2819 @endif gcc-bootstrap
2820 @if build-m4
2821 TARGET-build-m4=all
2822 maybe-all-build-m4: all-build-m4
2823 all-build-m4: configure-build-m4
2824         @: $(MAKE); $(unstage)
2825         @r=`${PWD_COMMAND}`; export r; \
2826         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2827         $(BUILD_EXPORTS)  \
2828         (cd $(BUILD_SUBDIR)/m4 && \
2829           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS)  \
2830                 $(TARGET-build-m4))
2831 @endif build-m4
2832
2833
2834
2835
2836
2837 .PHONY: configure-build-texinfo maybe-configure-build-texinfo
2838 maybe-configure-build-texinfo:
2839 @if gcc-bootstrap
2840 configure-build-texinfo: stage_current
2841 @endif gcc-bootstrap
2842 @if build-texinfo
2843 maybe-configure-build-texinfo: configure-build-texinfo
2844 configure-build-texinfo: 
2845         @: $(MAKE); $(unstage)
2846         @r=`${PWD_COMMAND}`; export r; \
2847         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2848         test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2849         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2850         $(BUILD_EXPORTS)  \
2851         echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2852         cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2853         case $(srcdir) in \
2854           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2855           *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2856                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2857         esac; \
2858         srcdiroption="--srcdir=$${topdir}/texinfo"; \
2859         libsrcdir="$$s/texinfo"; \
2860         rm -f no-such-file || : ; \
2861         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2862           $(BUILD_CONFIGARGS) --quiet --build=${build_alias} --host=${build_alias} \
2863           --target=${target_alias} $${srcdiroption}  \
2864           || exit 1
2865 @endif build-texinfo
2866
2867
2868
2869
2870
2871 .PHONY: all-build-texinfo maybe-all-build-texinfo
2872 maybe-all-build-texinfo:
2873 @if gcc-bootstrap
2874 all-build-texinfo: stage_current
2875 @endif gcc-bootstrap
2876 @if build-texinfo
2877 TARGET-build-texinfo=all
2878 maybe-all-build-texinfo: all-build-texinfo
2879 all-build-texinfo: configure-build-texinfo
2880         @: $(MAKE); $(unstage)
2881         @r=`${PWD_COMMAND}`; export r; \
2882         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2883         $(BUILD_EXPORTS)  \
2884         (cd $(BUILD_SUBDIR)/texinfo && \
2885           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS)  \
2886                 $(TARGET-build-texinfo))
2887 @endif build-texinfo
2888
2889
2890
2891
2892
2893 .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2894 maybe-configure-build-fixincludes:
2895 @if gcc-bootstrap
2896 configure-build-fixincludes: stage_current
2897 @endif gcc-bootstrap
2898 @if build-fixincludes
2899 maybe-configure-build-fixincludes: configure-build-fixincludes
2900 configure-build-fixincludes: 
2901         @: $(MAKE); $(unstage)
2902         @r=`${PWD_COMMAND}`; export r; \
2903         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2904         test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2905         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2906         $(BUILD_EXPORTS)  \
2907         echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2908         cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2909         case $(srcdir) in \
2910           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2911           *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2912                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2913         esac; \
2914         srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2915         libsrcdir="$$s/fixincludes"; \
2916         rm -f no-such-file || : ; \
2917         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2918           $(BUILD_CONFIGARGS) --quiet --build=${build_alias} --host=${build_alias} \
2919           --target=${target_alias} $${srcdiroption}  \
2920           || exit 1
2921 @endif build-fixincludes
2922
2923
2924
2925
2926
2927 .PHONY: all-build-fixincludes maybe-all-build-fixincludes
2928 maybe-all-build-fixincludes:
2929 @if gcc-bootstrap
2930 all-build-fixincludes: stage_current
2931 @endif gcc-bootstrap
2932 @if build-fixincludes
2933 TARGET-build-fixincludes=all
2934 maybe-all-build-fixincludes: all-build-fixincludes
2935 all-build-fixincludes: configure-build-fixincludes
2936         @: $(MAKE); $(unstage)
2937         @r=`${PWD_COMMAND}`; export r; \
2938         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2939         $(BUILD_EXPORTS)  \
2940         (cd $(BUILD_SUBDIR)/fixincludes && \
2941           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS)  \
2942                 $(TARGET-build-fixincludes))
2943 @endif build-fixincludes
2944
2945
2946
2947
2948
2949 # --------------------------------------
2950 # Modules which run on the host machine
2951 # --------------------------------------
2952
2953
2954 .PHONY: configure-bfd maybe-configure-bfd
2955 maybe-configure-bfd:
2956 @if gcc-bootstrap
2957 configure-bfd: stage_current
2958 @endif gcc-bootstrap
2959 @if bfd
2960 maybe-configure-bfd: configure-bfd
2961 configure-bfd: 
2962         @r=`${PWD_COMMAND}`; export r; \
2963         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2964         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
2965         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
2966         $(HOST_EXPORTS)  \
2967         echo Configuring in $(HOST_SUBDIR)/bfd; \
2968         cd "$(HOST_SUBDIR)/bfd" || exit 1; \
2969         case $(srcdir) in \
2970           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2971           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
2972                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2973         esac; \
2974         srcdiroption="--srcdir=$${topdir}/bfd"; \
2975         libsrcdir="$$s/bfd"; \
2976         $(SHELL) $${libsrcdir}/configure \
2977           $(HOST_CONFIGARGS) --quiet --build=${build_alias} --host=${host_alias} \
2978           --target=${target_alias} $${srcdiroption}  \
2979           || exit 1
2980 @endif bfd
2981
2982
2983
2984 .PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
2985 maybe-configure-stage1-bfd:
2986 @if bfd-bootstrap
2987 maybe-configure-stage1-bfd: configure-stage1-bfd
2988 configure-stage1-bfd:
2989         @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
2990         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
2991         @r=`${PWD_COMMAND}`; export r; \
2992         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2993         TFLAGS="$(STAGE1_TFLAGS)"; \
2994         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
2995         $(HOST_EXPORTS) \
2996         CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
2997         CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
2998         LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS;  \
2999         echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \
3000         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3001         cd $(HOST_SUBDIR)/bfd || exit 1; \
3002         case $(srcdir) in \
3003           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3004           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3005                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3006         esac; \
3007         srcdiroption="--srcdir=$${topdir}/bfd"; \
3008         libsrcdir="$$s/bfd"; \
3009         $(SHELL) $${libsrcdir}/configure \
3010           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3011           --target=${target_alias} $${srcdiroption} \
3012           $(STAGE1_CONFIGURE_FLAGS)
3013 @endif bfd-bootstrap
3014
3015 .PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3016 maybe-configure-stage2-bfd:
3017 @if bfd-bootstrap
3018 maybe-configure-stage2-bfd: configure-stage2-bfd
3019 configure-stage2-bfd:
3020         @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3021         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3022         @r=`${PWD_COMMAND}`; export r; \
3023         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3024         TFLAGS="$(STAGE2_TFLAGS)"; \
3025         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3026         $(HOST_EXPORTS) \
3027         $(POSTSTAGE1_HOST_EXPORTS) \
3028         CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3029         CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3030         LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS;  \
3031         echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \
3032         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3033         cd $(HOST_SUBDIR)/bfd || exit 1; \
3034         case $(srcdir) in \
3035           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3036           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3037                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3038         esac; \
3039         srcdiroption="--srcdir=$${topdir}/bfd"; \
3040         libsrcdir="$$s/bfd"; \
3041         $(SHELL) $${libsrcdir}/configure \
3042           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3043           --target=${target_alias} $${srcdiroption} \
3044           --with-build-libsubdir=$(HOST_SUBDIR) \
3045           $(STAGE2_CONFIGURE_FLAGS)
3046 @endif bfd-bootstrap
3047
3048 .PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3049 maybe-configure-stage3-bfd:
3050 @if bfd-bootstrap
3051 maybe-configure-stage3-bfd: configure-stage3-bfd
3052 configure-stage3-bfd:
3053         @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3054         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3055         @r=`${PWD_COMMAND}`; export r; \
3056         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3057         TFLAGS="$(STAGE3_TFLAGS)"; \
3058         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3059         $(HOST_EXPORTS) \
3060         $(POSTSTAGE1_HOST_EXPORTS) \
3061         CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3062         CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3063         LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS;  \
3064         echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \
3065         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3066         cd $(HOST_SUBDIR)/bfd || exit 1; \
3067         case $(srcdir) in \
3068           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3069           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3070                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3071         esac; \
3072         srcdiroption="--srcdir=$${topdir}/bfd"; \
3073         libsrcdir="$$s/bfd"; \
3074         $(SHELL) $${libsrcdir}/configure \
3075           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3076           --target=${target_alias} $${srcdiroption} \
3077           --with-build-libsubdir=$(HOST_SUBDIR) \
3078           $(STAGE3_CONFIGURE_FLAGS)
3079 @endif bfd-bootstrap
3080
3081 .PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3082 maybe-configure-stage4-bfd:
3083 @if bfd-bootstrap
3084 maybe-configure-stage4-bfd: configure-stage4-bfd
3085 configure-stage4-bfd:
3086         @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3087         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3088         @r=`${PWD_COMMAND}`; export r; \
3089         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3090         TFLAGS="$(STAGE4_TFLAGS)"; \
3091         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3092         $(HOST_EXPORTS) \
3093         $(POSTSTAGE1_HOST_EXPORTS) \
3094         CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3095         CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3096         LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS;  \
3097         echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \
3098         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3099         cd $(HOST_SUBDIR)/bfd || exit 1; \
3100         case $(srcdir) in \
3101           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3102           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3103                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3104         esac; \
3105         srcdiroption="--srcdir=$${topdir}/bfd"; \
3106         libsrcdir="$$s/bfd"; \
3107         $(SHELL) $${libsrcdir}/configure \
3108           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3109           --target=${target_alias} $${srcdiroption} \
3110           --with-build-libsubdir=$(HOST_SUBDIR) \
3111           $(STAGE4_CONFIGURE_FLAGS)
3112 @endif bfd-bootstrap
3113
3114 .PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3115 maybe-configure-stageprofile-bfd:
3116 @if bfd-bootstrap
3117 maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3118 configure-stageprofile-bfd:
3119         @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3120         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3121         @r=`${PWD_COMMAND}`; export r; \
3122         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3123         TFLAGS="$(STAGEprofile_TFLAGS)"; \
3124         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3125         $(HOST_EXPORTS) \
3126         $(POSTSTAGE1_HOST_EXPORTS) \
3127         CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3128         CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3129         LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS;  \
3130         echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \
3131         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3132         cd $(HOST_SUBDIR)/bfd || exit 1; \
3133         case $(srcdir) in \
3134           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3135           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3136                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3137         esac; \
3138         srcdiroption="--srcdir=$${topdir}/bfd"; \
3139         libsrcdir="$$s/bfd"; \
3140         $(SHELL) $${libsrcdir}/configure \
3141           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3142           --target=${target_alias} $${srcdiroption} \
3143           --with-build-libsubdir=$(HOST_SUBDIR) \
3144           $(STAGEprofile_CONFIGURE_FLAGS)
3145 @endif bfd-bootstrap
3146
3147 .PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3148 maybe-configure-stagefeedback-bfd:
3149 @if bfd-bootstrap
3150 maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3151 configure-stagefeedback-bfd:
3152         @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3153         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3154         @r=`${PWD_COMMAND}`; export r; \
3155         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3156         TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3157         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3158         $(HOST_EXPORTS) \
3159         $(POSTSTAGE1_HOST_EXPORTS) \
3160         CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3161         CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3162         LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS;  \
3163         echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \
3164         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3165         cd $(HOST_SUBDIR)/bfd || exit 1; \
3166         case $(srcdir) in \
3167           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3168           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3169                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3170         esac; \
3171         srcdiroption="--srcdir=$${topdir}/bfd"; \
3172         libsrcdir="$$s/bfd"; \
3173         $(SHELL) $${libsrcdir}/configure \
3174           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3175           --target=${target_alias} $${srcdiroption} \
3176           --with-build-libsubdir=$(HOST_SUBDIR) \
3177           $(STAGEfeedback_CONFIGURE_FLAGS)
3178 @endif bfd-bootstrap
3179
3180
3181
3182
3183
3184 .PHONY: all-bfd maybe-all-bfd
3185 maybe-all-bfd:
3186 @if gcc-bootstrap
3187 all-bfd: stage_current
3188 @endif gcc-bootstrap
3189 @if bfd
3190 TARGET-bfd=all
3191 maybe-all-bfd: all-bfd
3192 all-bfd: configure-bfd
3193         @r=`${PWD_COMMAND}`; export r; \
3194         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3195         $(HOST_EXPORTS)  \
3196         (cd $(HOST_SUBDIR)/bfd && \
3197           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)  \
3198                 $(TARGET-bfd))
3199 @endif bfd
3200
3201
3202
3203 .PHONY: all-stage1-bfd maybe-all-stage1-bfd
3204 .PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3205 maybe-all-stage1-bfd:
3206 maybe-clean-stage1-bfd:
3207 @if bfd-bootstrap
3208 maybe-all-stage1-bfd: all-stage1-bfd
3209 all-stage1: all-stage1-bfd
3210 TARGET-stage1-bfd = $(TARGET-bfd)
3211 all-stage1-bfd: configure-stage1-bfd
3212         @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3213         @r=`${PWD_COMMAND}`; export r; \
3214         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3215         TFLAGS="$(STAGE1_TFLAGS)"; \
3216         $(HOST_EXPORTS)  \
3217         cd $(HOST_SUBDIR)/bfd && \
3218         $(MAKE) $(BASE_FLAGS_TO_PASS) \
3219                 CFLAGS="$(STAGE1_CFLAGS)" \
3220                 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3221                 LIBCFLAGS="$(LIBCFLAGS)" \
3222                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3223                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3224                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3225                 $(EXTRA_HOST_FLAGS)   \
3226                 TFLAGS="$(STAGE1_TFLAGS)" \
3227                 $(TARGET-stage1-bfd)
3228
3229 maybe-clean-stage1-bfd: clean-stage1-bfd
3230 clean-stage1: clean-stage1-bfd
3231 clean-stage1-bfd:
3232         @if [ $(current_stage) = stage1 ]; then \
3233           [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3234         else \
3235           [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3236           $(MAKE) stage1-start; \
3237         fi; \
3238         cd $(HOST_SUBDIR)/bfd && \
3239         $(MAKE) $(EXTRA_HOST_FLAGS)  \
3240                  clean
3241 @endif bfd-bootstrap
3242
3243
3244 .PHONY: all-stage2-bfd maybe-all-stage2-bfd
3245 .PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3246 maybe-all-stage2-bfd:
3247 maybe-clean-stage2-bfd:
3248 @if bfd-bootstrap
3249 maybe-all-stage2-bfd: all-stage2-bfd
3250 all-stage2: all-stage2-bfd
3251 TARGET-stage2-bfd = $(TARGET-bfd)
3252 all-stage2-bfd: configure-stage2-bfd
3253         @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3254         @r=`${PWD_COMMAND}`; export r; \
3255         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3256         TFLAGS="$(STAGE2_TFLAGS)"; \
3257         $(HOST_EXPORTS) \
3258         $(POSTSTAGE1_HOST_EXPORTS)  \
3259         cd $(HOST_SUBDIR)/bfd && \
3260         $(MAKE) $(BASE_FLAGS_TO_PASS) \
3261                 CFLAGS="$(STAGE2_CFLAGS)" \
3262                 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3263                 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3264                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3265                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3266                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3267                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
3268                 TFLAGS="$(STAGE2_TFLAGS)" \
3269                 $(TARGET-stage2-bfd)
3270
3271 maybe-clean-stage2-bfd: clean-stage2-bfd
3272 clean-stage2: clean-stage2-bfd
3273 clean-stage2-bfd:
3274         @if [ $(current_stage) = stage2 ]; then \
3275           [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3276         else \
3277           [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3278           $(MAKE) stage2-start; \
3279         fi; \
3280         cd $(HOST_SUBDIR)/bfd && \
3281         $(MAKE) $(EXTRA_HOST_FLAGS)  \
3282                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
3283                  clean
3284 @endif bfd-bootstrap
3285
3286
3287 .PHONY: all-stage3-bfd maybe-all-stage3-bfd
3288 .PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3289 maybe-all-stage3-bfd:
3290 maybe-clean-stage3-bfd:
3291 @if bfd-bootstrap
3292 maybe-all-stage3-bfd: all-stage3-bfd
3293 all-stage3: all-stage3-bfd
3294 TARGET-stage3-bfd = $(TARGET-bfd)
3295 all-stage3-bfd: configure-stage3-bfd
3296         @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3297         @r=`${PWD_COMMAND}`; export r; \
3298         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3299         TFLAGS="$(STAGE3_TFLAGS)"; \
3300         $(HOST_EXPORTS) \
3301         $(POSTSTAGE1_HOST_EXPORTS)  \
3302         cd $(HOST_SUBDIR)/bfd && \
3303         $(MAKE) $(BASE_FLAGS_TO_PASS) \
3304                 CFLAGS="$(STAGE3_CFLAGS)" \
3305                 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3306                 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3307                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3308                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3309                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3310                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
3311                 TFLAGS="$(STAGE3_TFLAGS)" \
3312                 $(TARGET-stage3-bfd)
3313
3314 maybe-clean-stage3-bfd: clean-stage3-bfd
3315 clean-stage3: clean-stage3-bfd
3316 clean-stage3-bfd:
3317         @if [ $(current_stage) = stage3 ]; then \
3318           [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3319         else \
3320           [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3321           $(MAKE) stage3-start; \
3322         fi; \
3323         cd $(HOST_SUBDIR)/bfd && \
3324         $(MAKE) $(EXTRA_HOST_FLAGS)  \
3325                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
3326                  clean
3327 @endif bfd-bootstrap
3328
3329
3330 .PHONY: all-stage4-bfd maybe-all-stage4-bfd
3331 .PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3332 maybe-all-stage4-bfd:
3333 maybe-clean-stage4-bfd:
3334 @if bfd-bootstrap
3335 maybe-all-stage4-bfd: all-stage4-bfd
3336 all-stage4: all-stage4-bfd
3337 TARGET-stage4-bfd = $(TARGET-bfd)
3338 all-stage4-bfd: configure-stage4-bfd
3339         @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3340         @r=`${PWD_COMMAND}`; export r; \
3341         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3342         TFLAGS="$(STAGE4_TFLAGS)"; \
3343         $(HOST_EXPORTS) \
3344         $(POSTSTAGE1_HOST_EXPORTS)  \
3345         cd $(HOST_SUBDIR)/bfd && \
3346         $(MAKE) $(BASE_FLAGS_TO_PASS) \
3347                 CFLAGS="$(STAGE4_CFLAGS)" \
3348                 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3349                 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3350                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3351                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3352                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3353                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
3354                 TFLAGS="$(STAGE4_TFLAGS)" \
3355                 $(TARGET-stage4-bfd)
3356
3357 maybe-clean-stage4-bfd: clean-stage4-bfd
3358 clean-stage4: clean-stage4-bfd
3359 clean-stage4-bfd:
3360         @if [ $(current_stage) = stage4 ]; then \
3361           [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3362         else \
3363           [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3364           $(MAKE) stage4-start; \
3365         fi; \
3366         cd $(HOST_SUBDIR)/bfd && \
3367         $(MAKE) $(EXTRA_HOST_FLAGS)  \
3368                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
3369                  clean
3370 @endif bfd-bootstrap
3371
3372
3373 .PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3374 .PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3375 maybe-all-stageprofile-bfd:
3376 maybe-clean-stageprofile-bfd:
3377 @if bfd-bootstrap
3378 maybe-all-stageprofile-bfd: all-stageprofile-bfd
3379 all-stageprofile: all-stageprofile-bfd
3380 TARGET-stageprofile-bfd = $(TARGET-bfd)
3381 all-stageprofile-bfd: configure-stageprofile-bfd
3382         @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3383         @r=`${PWD_COMMAND}`; export r; \
3384         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3385         TFLAGS="$(STAGEprofile_TFLAGS)"; \
3386         $(HOST_EXPORTS) \
3387         $(POSTSTAGE1_HOST_EXPORTS)  \
3388         cd $(HOST_SUBDIR)/bfd && \
3389         $(MAKE) $(BASE_FLAGS_TO_PASS) \
3390                 CFLAGS="$(STAGEprofile_CFLAGS)" \
3391                 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3392                 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3393                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3394                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3395                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3396                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
3397                 TFLAGS="$(STAGEprofile_TFLAGS)" \
3398                 $(TARGET-stageprofile-bfd)
3399
3400 maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3401 clean-stageprofile: clean-stageprofile-bfd
3402 clean-stageprofile-bfd:
3403         @if [ $(current_stage) = stageprofile ]; then \
3404           [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3405         else \
3406           [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3407           $(MAKE) stageprofile-start; \
3408         fi; \
3409         cd $(HOST_SUBDIR)/bfd && \
3410         $(MAKE) $(EXTRA_HOST_FLAGS)  \
3411                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
3412                  clean
3413 @endif bfd-bootstrap
3414
3415
3416 .PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3417 .PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3418 maybe-all-stagefeedback-bfd:
3419 maybe-clean-stagefeedback-bfd:
3420 @if bfd-bootstrap
3421 maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3422 all-stagefeedback: all-stagefeedback-bfd
3423 TARGET-stagefeedback-bfd = $(TARGET-bfd)
3424 all-stagefeedback-bfd: configure-stagefeedback-bfd
3425         @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3426         @r=`${PWD_COMMAND}`; export r; \
3427         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3428         TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3429         $(HOST_EXPORTS) \
3430         $(POSTSTAGE1_HOST_EXPORTS)  \
3431         cd $(HOST_SUBDIR)/bfd && \
3432         $(MAKE) $(BASE_FLAGS_TO_PASS) \
3433                 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3434                 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3435                 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3436                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3437                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3438                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3439                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
3440                 TFLAGS="$(STAGEfeedback_TFLAGS)" \
3441                 $(TARGET-stagefeedback-bfd)
3442
3443 maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3444 clean-stagefeedback: clean-stagefeedback-bfd
3445 clean-stagefeedback-bfd:
3446         @if [ $(current_stage) = stagefeedback ]; then \
3447           [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3448         else \
3449           [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3450           $(MAKE) stagefeedback-start; \
3451         fi; \
3452         cd $(HOST_SUBDIR)/bfd && \
3453         $(MAKE) $(EXTRA_HOST_FLAGS)  \
3454                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
3455                  clean
3456 @endif bfd-bootstrap
3457
3458
3459
3460
3461
3462 .PHONY: check-bfd maybe-check-bfd
3463 maybe-check-bfd:
3464 @if bfd
3465 maybe-check-bfd: check-bfd
3466
3467 check-bfd:
3468         @: $(MAKE); $(unstage)
3469         @r=`${PWD_COMMAND}`; export r; \
3470         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3471         $(HOST_EXPORTS) \
3472         (cd $(HOST_SUBDIR)/bfd && \
3473           $(MAKE) $(FLAGS_TO_PASS)  check)
3474
3475 @endif bfd
3476
3477 .PHONY: install-bfd maybe-install-bfd
3478 maybe-install-bfd:
3479 @if bfd
3480 maybe-install-bfd: install-bfd
3481
3482 install-bfd: installdirs
3483         @: $(MAKE); $(unstage)
3484         @r=`${PWD_COMMAND}`; export r; \
3485         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3486         $(HOST_EXPORTS) \
3487         (cd $(HOST_SUBDIR)/bfd && \
3488           $(MAKE) $(FLAGS_TO_PASS)  install)
3489
3490 @endif bfd
3491
3492 .PHONY: install-strip-bfd maybe-install-strip-bfd
3493 maybe-install-strip-bfd:
3494 @if bfd
3495 maybe-install-strip-bfd: install-strip-bfd
3496
3497 install-strip-bfd: installdirs
3498         @: $(MAKE); $(unstage)
3499         @r=`${PWD_COMMAND}`; export r; \
3500         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3501         $(HOST_EXPORTS) \
3502         (cd $(HOST_SUBDIR)/bfd && \
3503           $(MAKE) $(FLAGS_TO_PASS)  install-strip)
3504
3505 @endif bfd
3506
3507 # Other targets (info, dvi, pdf, etc.)
3508
3509 .PHONY: maybe-info-bfd info-bfd
3510 maybe-info-bfd:
3511 @if bfd
3512 maybe-info-bfd: info-bfd
3513
3514 info-bfd: \
3515     configure-bfd 
3516         @[ -f ./bfd/Makefile ] || exit 0; \
3517         r=`${PWD_COMMAND}`; export r; \
3518         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3519         $(HOST_EXPORTS) \
3520         for flag in $(EXTRA_HOST_FLAGS) ; do \
3521           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3522         done; \
3523         echo "Doing info in bfd" ; \
3524         (cd $(HOST_SUBDIR)/bfd && \
3525           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3526                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3527                   "RANLIB=$${RANLIB}" \
3528                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3529                   info) \
3530           || exit 1
3531
3532 @endif bfd
3533
3534 .PHONY: maybe-dvi-bfd dvi-bfd
3535 maybe-dvi-bfd:
3536 @if bfd
3537 maybe-dvi-bfd: dvi-bfd
3538
3539 dvi-bfd: \
3540     configure-bfd 
3541         @[ -f ./bfd/Makefile ] || exit 0; \
3542         r=`${PWD_COMMAND}`; export r; \
3543         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3544         $(HOST_EXPORTS) \
3545         for flag in $(EXTRA_HOST_FLAGS) ; do \
3546           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3547         done; \
3548         echo "Doing dvi in bfd" ; \
3549         (cd $(HOST_SUBDIR)/bfd && \
3550           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3551                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3552                   "RANLIB=$${RANLIB}" \
3553                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3554                   dvi) \
3555           || exit 1
3556
3557 @endif bfd
3558
3559 .PHONY: maybe-pdf-bfd pdf-bfd
3560 maybe-pdf-bfd:
3561 @if bfd
3562 maybe-pdf-bfd: pdf-bfd
3563
3564 pdf-bfd: \
3565     configure-bfd 
3566         @[ -f ./bfd/Makefile ] || exit 0; \
3567         r=`${PWD_COMMAND}`; export r; \
3568         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3569         $(HOST_EXPORTS) \
3570         for flag in $(EXTRA_HOST_FLAGS) ; do \
3571           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3572         done; \
3573         echo "Doing pdf in bfd" ; \
3574         (cd $(HOST_SUBDIR)/bfd && \
3575           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3576                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3577                   "RANLIB=$${RANLIB}" \
3578                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3579                   pdf) \
3580           || exit 1
3581
3582 @endif bfd
3583
3584 .PHONY: maybe-html-bfd html-bfd
3585 maybe-html-bfd:
3586 @if bfd
3587 maybe-html-bfd: html-bfd
3588
3589 html-bfd: \
3590     configure-bfd 
3591         @[ -f ./bfd/Makefile ] || exit 0; \
3592         r=`${PWD_COMMAND}`; export r; \
3593         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3594         $(HOST_EXPORTS) \
3595         for flag in $(EXTRA_HOST_FLAGS) ; do \
3596           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3597         done; \
3598         echo "Doing html in bfd" ; \
3599         (cd $(HOST_SUBDIR)/bfd && \
3600           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3601                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3602                   "RANLIB=$${RANLIB}" \
3603                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3604                   html) \
3605           || exit 1
3606
3607 @endif bfd
3608
3609 .PHONY: maybe-TAGS-bfd TAGS-bfd
3610 maybe-TAGS-bfd:
3611 @if bfd
3612 maybe-TAGS-bfd: TAGS-bfd
3613
3614 TAGS-bfd: \
3615     configure-bfd 
3616         @[ -f ./bfd/Makefile ] || exit 0; \
3617         r=`${PWD_COMMAND}`; export r; \
3618         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3619         $(HOST_EXPORTS) \
3620         for flag in $(EXTRA_HOST_FLAGS) ; do \
3621           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3622         done; \
3623         echo "Doing TAGS in bfd" ; \
3624         (cd $(HOST_SUBDIR)/bfd && \
3625           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3626                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3627                   "RANLIB=$${RANLIB}" \
3628                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3629                   TAGS) \
3630           || exit 1
3631
3632 @endif bfd
3633
3634 .PHONY: maybe-install-info-bfd install-info-bfd
3635 maybe-install-info-bfd:
3636 @if bfd
3637 maybe-install-info-bfd: install-info-bfd
3638
3639 install-info-bfd: \
3640     configure-bfd \
3641     info-bfd 
3642         @[ -f ./bfd/Makefile ] || exit 0; \
3643         r=`${PWD_COMMAND}`; export r; \
3644         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3645         $(HOST_EXPORTS) \
3646         for flag in $(EXTRA_HOST_FLAGS) ; do \
3647           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3648         done; \
3649         echo "Doing install-info in bfd" ; \
3650         (cd $(HOST_SUBDIR)/bfd && \
3651           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3652                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3653                   "RANLIB=$${RANLIB}" \
3654                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3655                   install-info) \
3656           || exit 1
3657
3658 @endif bfd
3659
3660 .PHONY: maybe-install-pdf-bfd install-pdf-bfd
3661 maybe-install-pdf-bfd:
3662 @if bfd
3663 maybe-install-pdf-bfd: install-pdf-bfd
3664
3665 install-pdf-bfd: \
3666     configure-bfd \
3667     pdf-bfd 
3668         @[ -f ./bfd/Makefile ] || exit 0; \
3669         r=`${PWD_COMMAND}`; export r; \
3670         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3671         $(HOST_EXPORTS) \
3672         for flag in $(EXTRA_HOST_FLAGS) ; do \
3673           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3674         done; \
3675         echo "Doing install-pdf in bfd" ; \
3676         (cd $(HOST_SUBDIR)/bfd && \
3677           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3678                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3679                   "RANLIB=$${RANLIB}" \
3680                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3681                   install-pdf) \
3682           || exit 1
3683
3684 @endif bfd
3685
3686 .PHONY: maybe-install-html-bfd install-html-bfd
3687 maybe-install-html-bfd:
3688 @if bfd
3689 maybe-install-html-bfd: install-html-bfd
3690
3691 install-html-bfd: \
3692     configure-bfd \
3693     html-bfd 
3694         @[ -f ./bfd/Makefile ] || exit 0; \
3695         r=`${PWD_COMMAND}`; export r; \
3696         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3697         $(HOST_EXPORTS) \
3698         for flag in $(EXTRA_HOST_FLAGS) ; do \
3699           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3700         done; \
3701         echo "Doing install-html in bfd" ; \
3702         (cd $(HOST_SUBDIR)/bfd && \
3703           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3704                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3705                   "RANLIB=$${RANLIB}" \
3706                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3707                   install-html) \
3708           || exit 1
3709
3710 @endif bfd
3711
3712 .PHONY: maybe-installcheck-bfd installcheck-bfd
3713 maybe-installcheck-bfd:
3714 @if bfd
3715 maybe-installcheck-bfd: installcheck-bfd
3716
3717 installcheck-bfd: \
3718     configure-bfd 
3719         @[ -f ./bfd/Makefile ] || exit 0; \
3720         r=`${PWD_COMMAND}`; export r; \
3721         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3722         $(HOST_EXPORTS) \
3723         for flag in $(EXTRA_HOST_FLAGS) ; do \
3724           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3725         done; \
3726         echo "Doing installcheck in bfd" ; \
3727         (cd $(HOST_SUBDIR)/bfd && \
3728           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3729                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3730                   "RANLIB=$${RANLIB}" \
3731                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3732                   installcheck) \
3733           || exit 1
3734
3735 @endif bfd
3736
3737 .PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3738 maybe-mostlyclean-bfd:
3739 @if bfd
3740 maybe-mostlyclean-bfd: mostlyclean-bfd
3741
3742 mostlyclean-bfd: 
3743         @[ -f ./bfd/Makefile ] || exit 0; \
3744         r=`${PWD_COMMAND}`; export r; \
3745         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3746         $(HOST_EXPORTS) \
3747         for flag in $(EXTRA_HOST_FLAGS) ; do \
3748           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3749         done; \
3750         echo "Doing mostlyclean in bfd" ; \
3751         (cd $(HOST_SUBDIR)/bfd && \
3752           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3753                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3754                   "RANLIB=$${RANLIB}" \
3755                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3756                   mostlyclean) \
3757           || exit 1
3758
3759 @endif bfd
3760
3761 .PHONY: maybe-clean-bfd clean-bfd
3762 maybe-clean-bfd:
3763 @if bfd
3764 maybe-clean-bfd: clean-bfd
3765
3766 clean-bfd: 
3767         @[ -f ./bfd/Makefile ] || exit 0; \
3768         r=`${PWD_COMMAND}`; export r; \
3769         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3770         $(HOST_EXPORTS) \
3771         for flag in $(EXTRA_HOST_FLAGS) ; do \
3772           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3773         done; \
3774         echo "Doing clean in bfd" ; \
3775         (cd $(HOST_SUBDIR)/bfd && \
3776           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3777                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3778                   "RANLIB=$${RANLIB}" \
3779                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3780                   clean) \
3781           || exit 1
3782
3783 @endif bfd
3784
3785 .PHONY: maybe-distclean-bfd distclean-bfd
3786 maybe-distclean-bfd:
3787 @if bfd
3788 maybe-distclean-bfd: distclean-bfd
3789
3790 distclean-bfd: 
3791         @[ -f ./bfd/Makefile ] || exit 0; \
3792         r=`${PWD_COMMAND}`; export r; \
3793         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3794         $(HOST_EXPORTS) \
3795         for flag in $(EXTRA_HOST_FLAGS) ; do \
3796           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3797         done; \
3798         echo "Doing distclean in bfd" ; \
3799         (cd $(HOST_SUBDIR)/bfd && \
3800           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3801                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3802                   "RANLIB=$${RANLIB}" \
3803                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3804                   distclean) \
3805           || exit 1
3806
3807 @endif bfd
3808
3809 .PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
3810 maybe-maintainer-clean-bfd:
3811 @if bfd
3812 maybe-maintainer-clean-bfd: maintainer-clean-bfd
3813
3814 maintainer-clean-bfd: 
3815         @[ -f ./bfd/Makefile ] || exit 0; \
3816         r=`${PWD_COMMAND}`; export r; \
3817         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3818         $(HOST_EXPORTS) \
3819         for flag in $(EXTRA_HOST_FLAGS) ; do \
3820           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3821         done; \
3822         echo "Doing maintainer-clean in bfd" ; \
3823         (cd $(HOST_SUBDIR)/bfd && \
3824           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3825                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3826                   "RANLIB=$${RANLIB}" \
3827                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3828                   maintainer-clean) \
3829           || exit 1
3830
3831 @endif bfd
3832
3833
3834
3835 .PHONY: configure-opcodes maybe-configure-opcodes
3836 maybe-configure-opcodes:
3837 @if gcc-bootstrap
3838 configure-opcodes: stage_current
3839 @endif gcc-bootstrap
3840 @if opcodes
3841 maybe-configure-opcodes: configure-opcodes
3842 configure-opcodes: 
3843         @r=`${PWD_COMMAND}`; export r; \
3844         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3845         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3846         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3847         $(HOST_EXPORTS)  \
3848         echo Configuring in $(HOST_SUBDIR)/opcodes; \
3849         cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
3850         case $(srcdir) in \
3851           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3852           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3853                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3854         esac; \
3855         srcdiroption="--srcdir=$${topdir}/opcodes"; \
3856         libsrcdir="$$s/opcodes"; \
3857         $(SHELL) $${libsrcdir}/configure \
3858           $(HOST_CONFIGARGS) --quiet --build=${build_alias} --host=${host_alias} \
3859           --target=${target_alias} $${srcdiroption}  \
3860           || exit 1
3861 @endif opcodes
3862
3863
3864
3865 .PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
3866 maybe-configure-stage1-opcodes:
3867 @if opcodes-bootstrap
3868 maybe-configure-stage1-opcodes: configure-stage1-opcodes
3869 configure-stage1-opcodes:
3870         @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3871         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
3872         @r=`${PWD_COMMAND}`; export r; \
3873         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3874         TFLAGS="$(STAGE1_TFLAGS)"; \
3875         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3876         $(HOST_EXPORTS) \
3877         CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3878         CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3879         LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS;  \
3880         echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes ; \
3881         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3882         cd $(HOST_SUBDIR)/opcodes || exit 1; \
3883         case $(srcdir) in \
3884           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3885           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3886                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3887         esac; \
3888         srcdiroption="--srcdir=$${topdir}/opcodes"; \
3889         libsrcdir="$$s/opcodes"; \
3890         $(SHELL) $${libsrcdir}/configure \
3891           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3892           --target=${target_alias} $${srcdiroption} \
3893           $(STAGE1_CONFIGURE_FLAGS)
3894 @endif opcodes-bootstrap
3895
3896 .PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
3897 maybe-configure-stage2-opcodes:
3898 @if opcodes-bootstrap
3899 maybe-configure-stage2-opcodes: configure-stage2-opcodes
3900 configure-stage2-opcodes:
3901         @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3902         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
3903         @r=`${PWD_COMMAND}`; export r; \
3904         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3905         TFLAGS="$(STAGE2_TFLAGS)"; \
3906         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3907         $(HOST_EXPORTS) \
3908         $(POSTSTAGE1_HOST_EXPORTS) \
3909         CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3910         CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3911         LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS;  \
3912         echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes ; \
3913         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3914         cd $(HOST_SUBDIR)/opcodes || exit 1; \
3915         case $(srcdir) in \
3916           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3917           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3918                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3919         esac; \
3920         srcdiroption="--srcdir=$${topdir}/opcodes"; \
3921         libsrcdir="$$s/opcodes"; \
3922         $(SHELL) $${libsrcdir}/configure \
3923           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3924           --target=${target_alias} $${srcdiroption} \
3925           --with-build-libsubdir=$(HOST_SUBDIR) \
3926           $(STAGE2_CONFIGURE_FLAGS)
3927 @endif opcodes-bootstrap
3928
3929 .PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
3930 maybe-configure-stage3-opcodes:
3931 @if opcodes-bootstrap
3932 maybe-configure-stage3-opcodes: configure-stage3-opcodes
3933 configure-stage3-opcodes:
3934         @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3935         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
3936         @r=`${PWD_COMMAND}`; export r; \
3937         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3938         TFLAGS="$(STAGE3_TFLAGS)"; \
3939         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3940         $(HOST_EXPORTS) \
3941         $(POSTSTAGE1_HOST_EXPORTS) \
3942         CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3943         CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3944         LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS;  \
3945         echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes ; \
3946         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3947         cd $(HOST_SUBDIR)/opcodes || exit 1; \
3948         case $(srcdir) in \
3949           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3950           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3951                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3952         esac; \
3953         srcdiroption="--srcdir=$${topdir}/opcodes"; \
3954         libsrcdir="$$s/opcodes"; \
3955         $(SHELL) $${libsrcdir}/configure \
3956           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3957           --target=${target_alias} $${srcdiroption} \
3958           --with-build-libsubdir=$(HOST_SUBDIR) \
3959           $(STAGE3_CONFIGURE_FLAGS)
3960 @endif opcodes-bootstrap
3961
3962 .PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
3963 maybe-configure-stage4-opcodes:
3964 @if opcodes-bootstrap
3965 maybe-configure-stage4-opcodes: configure-stage4-opcodes
3966 configure-stage4-opcodes:
3967         @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3968         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
3969         @r=`${PWD_COMMAND}`; export r; \
3970         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3971         TFLAGS="$(STAGE4_TFLAGS)"; \
3972         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3973         $(HOST_EXPORTS) \
3974         $(POSTSTAGE1_HOST_EXPORTS) \
3975         CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3976         CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3977         LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS;  \
3978         echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes ; \
3979         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3980         cd $(HOST_SUBDIR)/opcodes || exit 1; \
3981         case $(srcdir) in \
3982           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3983           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3984                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3985         esac; \
3986         srcdiroption="--srcdir=$${topdir}/opcodes"; \
3987         libsrcdir="$$s/opcodes"; \
3988         $(SHELL) $${libsrcdir}/configure \
3989           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3990           --target=${target_alias} $${srcdiroption} \
3991           --with-build-libsubdir=$(HOST_SUBDIR) \
3992           $(STAGE4_CONFIGURE_FLAGS)
3993 @endif opcodes-bootstrap
3994
3995 .PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
3996 maybe-configure-stageprofile-opcodes:
3997 @if opcodes-bootstrap
3998 maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
3999 configure-stageprofile-opcodes:
4000         @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4001         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4002         @r=`${PWD_COMMAND}`; export r; \
4003         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4004         TFLAGS="$(STAGEprofile_TFLAGS)"; \
4005         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4006         $(HOST_EXPORTS) \
4007         $(POSTSTAGE1_HOST_EXPORTS) \
4008         CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4009         CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4010         LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS;  \
4011         echo Configuring stage profile in $(HOST_SUBDIR)/opcodes ; \
4012         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4013         cd $(HOST_SUBDIR)/opcodes || exit 1; \
4014         case $(srcdir) in \
4015           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4016           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4017                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4018         esac; \
4019         srcdiroption="--srcdir=$${topdir}/opcodes"; \
4020         libsrcdir="$$s/opcodes"; \
4021         $(SHELL) $${libsrcdir}/configure \
4022           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4023           --target=${target_alias} $${srcdiroption} \
4024           --with-build-libsubdir=$(HOST_SUBDIR) \
4025           $(STAGEprofile_CONFIGURE_FLAGS)
4026 @endif opcodes-bootstrap
4027
4028 .PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4029 maybe-configure-stagefeedback-opcodes:
4030 @if opcodes-bootstrap
4031 maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4032 configure-stagefeedback-opcodes:
4033         @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4034         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4035         @r=`${PWD_COMMAND}`; export r; \
4036         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4037         TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4038         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4039         $(HOST_EXPORTS) \
4040         $(POSTSTAGE1_HOST_EXPORTS) \
4041         CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4042         CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4043         LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS;  \
4044         echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes ; \
4045         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4046         cd $(HOST_SUBDIR)/opcodes || exit 1; \
4047         case $(srcdir) in \
4048           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4049           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4050                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4051         esac; \
4052         srcdiroption="--srcdir=$${topdir}/opcodes"; \
4053         libsrcdir="$$s/opcodes"; \
4054         $(SHELL) $${libsrcdir}/configure \
4055           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4056           --target=${target_alias} $${srcdiroption} \
4057           --with-build-libsubdir=$(HOST_SUBDIR) \
4058           $(STAGEfeedback_CONFIGURE_FLAGS)
4059 @endif opcodes-bootstrap
4060
4061
4062
4063
4064
4065 .PHONY: all-opcodes maybe-all-opcodes
4066 maybe-all-opcodes:
4067 @if gcc-bootstrap
4068 all-opcodes: stage_current
4069 @endif gcc-bootstrap
4070 @if opcodes
4071 TARGET-opcodes=all
4072 maybe-all-opcodes: all-opcodes
4073 all-opcodes: configure-opcodes
4074         @r=`${PWD_COMMAND}`; export r; \
4075         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4076         $(HOST_EXPORTS)  \
4077         (cd $(HOST_SUBDIR)/opcodes && \
4078           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)  \
4079                 $(TARGET-opcodes))
4080 @endif opcodes
4081
4082
4083
4084 .PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4085 .PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4086 maybe-all-stage1-opcodes:
4087 maybe-clean-stage1-opcodes:
4088 @if opcodes-bootstrap
4089 maybe-all-stage1-opcodes: all-stage1-opcodes
4090 all-stage1: all-stage1-opcodes
4091 TARGET-stage1-opcodes = $(TARGET-opcodes)
4092 all-stage1-opcodes: configure-stage1-opcodes
4093         @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4094         @r=`${PWD_COMMAND}`; export r; \
4095         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4096         TFLAGS="$(STAGE1_TFLAGS)"; \
4097         $(HOST_EXPORTS)  \
4098         cd $(HOST_SUBDIR)/opcodes && \
4099         $(MAKE) $(BASE_FLAGS_TO_PASS) \
4100                 CFLAGS="$(STAGE1_CFLAGS)" \
4101                 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4102                 LIBCFLAGS="$(LIBCFLAGS)" \
4103                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4104                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4105                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4106                 $(EXTRA_HOST_FLAGS)   \
4107                 TFLAGS="$(STAGE1_TFLAGS)" \
4108                 $(TARGET-stage1-opcodes)
4109
4110 maybe-clean-stage1-opcodes: clean-stage1-opcodes
4111 clean-stage1: clean-stage1-opcodes
4112 clean-stage1-opcodes:
4113         @if [ $(current_stage) = stage1 ]; then \
4114           [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4115         else \
4116           [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4117           $(MAKE) stage1-start; \
4118         fi; \
4119         cd $(HOST_SUBDIR)/opcodes && \
4120         $(MAKE) $(EXTRA_HOST_FLAGS)  \
4121                  clean
4122 @endif opcodes-bootstrap
4123
4124
4125 .PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4126 .PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4127 maybe-all-stage2-opcodes:
4128 maybe-clean-stage2-opcodes:
4129 @if opcodes-bootstrap
4130 maybe-all-stage2-opcodes: all-stage2-opcodes
4131 all-stage2: all-stage2-opcodes
4132 TARGET-stage2-opcodes = $(TARGET-opcodes)
4133 all-stage2-opcodes: configure-stage2-opcodes
4134         @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4135         @r=`${PWD_COMMAND}`; export r; \
4136         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4137         TFLAGS="$(STAGE2_TFLAGS)"; \
4138         $(HOST_EXPORTS) \
4139         $(POSTSTAGE1_HOST_EXPORTS)  \
4140         cd $(HOST_SUBDIR)/opcodes && \
4141         $(MAKE) $(BASE_FLAGS_TO_PASS) \
4142                 CFLAGS="$(STAGE2_CFLAGS)" \
4143                 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4144                 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4145                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4146                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4147                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4148                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
4149                 TFLAGS="$(STAGE2_TFLAGS)" \
4150                 $(TARGET-stage2-opcodes)
4151
4152 maybe-clean-stage2-opcodes: clean-stage2-opcodes
4153 clean-stage2: clean-stage2-opcodes
4154 clean-stage2-opcodes:
4155         @if [ $(current_stage) = stage2 ]; then \
4156           [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4157         else \
4158           [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4159           $(MAKE) stage2-start; \
4160         fi; \
4161         cd $(HOST_SUBDIR)/opcodes && \
4162         $(MAKE) $(EXTRA_HOST_FLAGS)  \
4163                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
4164                  clean
4165 @endif opcodes-bootstrap
4166
4167
4168 .PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4169 .PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4170 maybe-all-stage3-opcodes:
4171 maybe-clean-stage3-opcodes:
4172 @if opcodes-bootstrap
4173 maybe-all-stage3-opcodes: all-stage3-opcodes
4174 all-stage3: all-stage3-opcodes
4175 TARGET-stage3-opcodes = $(TARGET-opcodes)
4176 all-stage3-opcodes: configure-stage3-opcodes
4177         @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4178         @r=`${PWD_COMMAND}`; export r; \
4179         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4180         TFLAGS="$(STAGE3_TFLAGS)"; \
4181         $(HOST_EXPORTS) \
4182         $(POSTSTAGE1_HOST_EXPORTS)  \
4183         cd $(HOST_SUBDIR)/opcodes && \
4184         $(MAKE) $(BASE_FLAGS_TO_PASS) \
4185                 CFLAGS="$(STAGE3_CFLAGS)" \
4186                 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4187                 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4188                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4189                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4190                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4191                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
4192                 TFLAGS="$(STAGE3_TFLAGS)" \
4193                 $(TARGET-stage3-opcodes)
4194
4195 maybe-clean-stage3-opcodes: clean-stage3-opcodes
4196 clean-stage3: clean-stage3-opcodes
4197 clean-stage3-opcodes:
4198         @if [ $(current_stage) = stage3 ]; then \
4199           [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4200         else \
4201           [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4202           $(MAKE) stage3-start; \
4203         fi; \
4204         cd $(HOST_SUBDIR)/opcodes && \
4205         $(MAKE) $(EXTRA_HOST_FLAGS)  \
4206                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
4207                  clean
4208 @endif opcodes-bootstrap
4209
4210
4211 .PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4212 .PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4213 maybe-all-stage4-opcodes:
4214 maybe-clean-stage4-opcodes:
4215 @if opcodes-bootstrap
4216 maybe-all-stage4-opcodes: all-stage4-opcodes
4217 all-stage4: all-stage4-opcodes
4218 TARGET-stage4-opcodes = $(TARGET-opcodes)
4219 all-stage4-opcodes: configure-stage4-opcodes
4220         @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4221         @r=`${PWD_COMMAND}`; export r; \
4222         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4223         TFLAGS="$(STAGE4_TFLAGS)"; \
4224         $(HOST_EXPORTS) \
4225         $(POSTSTAGE1_HOST_EXPORTS)  \
4226         cd $(HOST_SUBDIR)/opcodes && \
4227         $(MAKE) $(BASE_FLAGS_TO_PASS) \
4228                 CFLAGS="$(STAGE4_CFLAGS)" \
4229                 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4230                 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4231                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4232                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4233                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4234                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
4235                 TFLAGS="$(STAGE4_TFLAGS)" \
4236                 $(TARGET-stage4-opcodes)
4237
4238 maybe-clean-stage4-opcodes: clean-stage4-opcodes
4239 clean-stage4: clean-stage4-opcodes
4240 clean-stage4-opcodes:
4241         @if [ $(current_stage) = stage4 ]; then \
4242           [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4243         else \
4244           [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4245           $(MAKE) stage4-start; \
4246         fi; \
4247         cd $(HOST_SUBDIR)/opcodes && \
4248         $(MAKE) $(EXTRA_HOST_FLAGS)  \
4249                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
4250                  clean
4251 @endif opcodes-bootstrap
4252
4253
4254 .PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4255 .PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4256 maybe-all-stageprofile-opcodes:
4257 maybe-clean-stageprofile-opcodes:
4258 @if opcodes-bootstrap
4259 maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4260 all-stageprofile: all-stageprofile-opcodes
4261 TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4262 all-stageprofile-opcodes: configure-stageprofile-opcodes
4263         @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4264         @r=`${PWD_COMMAND}`; export r; \
4265         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4266         TFLAGS="$(STAGEprofile_TFLAGS)"; \
4267         $(HOST_EXPORTS) \
4268         $(POSTSTAGE1_HOST_EXPORTS)  \
4269         cd $(HOST_SUBDIR)/opcodes && \
4270         $(MAKE) $(BASE_FLAGS_TO_PASS) \
4271                 CFLAGS="$(STAGEprofile_CFLAGS)" \
4272                 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4273                 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4274                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4275                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4276                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4277                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
4278                 TFLAGS="$(STAGEprofile_TFLAGS)" \
4279                 $(TARGET-stageprofile-opcodes)
4280
4281 maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4282 clean-stageprofile: clean-stageprofile-opcodes
4283 clean-stageprofile-opcodes:
4284         @if [ $(current_stage) = stageprofile ]; then \
4285           [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4286         else \
4287           [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4288           $(MAKE) stageprofile-start; \
4289         fi; \
4290         cd $(HOST_SUBDIR)/opcodes && \
4291         $(MAKE) $(EXTRA_HOST_FLAGS)  \
4292                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
4293                  clean
4294 @endif opcodes-bootstrap
4295
4296
4297 .PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4298 .PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4299 maybe-all-stagefeedback-opcodes:
4300 maybe-clean-stagefeedback-opcodes:
4301 @if opcodes-bootstrap
4302 maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4303 all-stagefeedback: all-stagefeedback-opcodes
4304 TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4305 all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4306         @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4307         @r=`${PWD_COMMAND}`; export r; \
4308         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4309         TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4310         $(HOST_EXPORTS) \
4311         $(POSTSTAGE1_HOST_EXPORTS)  \
4312         cd $(HOST_SUBDIR)/opcodes && \
4313         $(MAKE) $(BASE_FLAGS_TO_PASS) \
4314                 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4315                 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4316                 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4317                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4318                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4319                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4320                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
4321                 TFLAGS="$(STAGEfeedback_TFLAGS)" \
4322                 $(TARGET-stagefeedback-opcodes)
4323
4324 maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4325 clean-stagefeedback: clean-stagefeedback-opcodes
4326 clean-stagefeedback-opcodes:
4327         @if [ $(current_stage) = stagefeedback ]; then \
4328           [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4329         else \
4330           [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4331           $(MAKE) stagefeedback-start; \
4332         fi; \
4333         cd $(HOST_SUBDIR)/opcodes && \
4334         $(MAKE) $(EXTRA_HOST_FLAGS)  \
4335                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
4336                  clean
4337 @endif opcodes-bootstrap
4338
4339
4340
4341
4342
4343 .PHONY: check-opcodes maybe-check-opcodes
4344 maybe-check-opcodes:
4345 @if opcodes
4346 maybe-check-opcodes: check-opcodes
4347
4348 check-opcodes:
4349         @: $(MAKE); $(unstage)
4350         @r=`${PWD_COMMAND}`; export r; \
4351         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4352         $(HOST_EXPORTS) \
4353         (cd $(HOST_SUBDIR)/opcodes && \
4354           $(MAKE) $(FLAGS_TO_PASS)  check)
4355
4356 @endif opcodes
4357
4358 .PHONY: install-opcodes maybe-install-opcodes
4359 maybe-install-opcodes:
4360 @if opcodes
4361 maybe-install-opcodes: install-opcodes
4362
4363 install-opcodes: installdirs
4364         @: $(MAKE); $(unstage)
4365         @r=`${PWD_COMMAND}`; export r; \
4366         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4367         $(HOST_EXPORTS) \
4368         (cd $(HOST_SUBDIR)/opcodes && \
4369           $(MAKE) $(FLAGS_TO_PASS)  install)
4370
4371 @endif opcodes
4372
4373 .PHONY: install-strip-opcodes maybe-install-strip-opcodes
4374 maybe-install-strip-opcodes:
4375 @if opcodes
4376 maybe-install-strip-opcodes: install-strip-opcodes
4377
4378 install-strip-opcodes: installdirs
4379         @: $(MAKE); $(unstage)
4380         @r=`${PWD_COMMAND}`; export r; \
4381         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4382         $(HOST_EXPORTS) \
4383         (cd $(HOST_SUBDIR)/opcodes && \
4384           $(MAKE) $(FLAGS_TO_PASS)  install-strip)