OSDN Git Service

2011-11-09 Roland McGrath <mcgrathr@google.com>
[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-bison
994 all-build: maybe-all-build-flex
995 all-build: maybe-all-build-m4
996 all-build: maybe-all-build-texinfo
997 all-build: maybe-all-build-fixincludes
998
999 .PHONY: all-host
1000
1001 @if bfd-no-bootstrap
1002 all-host: maybe-all-bfd
1003 @endif bfd-no-bootstrap
1004 @if opcodes-no-bootstrap
1005 all-host: maybe-all-opcodes
1006 @endif opcodes-no-bootstrap
1007 @if binutils-no-bootstrap
1008 all-host: maybe-all-binutils
1009 @endif binutils-no-bootstrap
1010 all-host: maybe-all-bison
1011 all-host: maybe-all-cgen
1012 all-host: maybe-all-dejagnu
1013 all-host: maybe-all-etc
1014 all-host: maybe-all-fastjar
1015 all-host: maybe-all-fixincludes
1016 all-host: maybe-all-flex
1017 @if gas-no-bootstrap
1018 all-host: maybe-all-gas
1019 @endif gas-no-bootstrap
1020 @if gcc-no-bootstrap
1021 all-host: maybe-all-gcc
1022 @endif gcc-no-bootstrap
1023 @if gmp-no-bootstrap
1024 all-host: maybe-all-gmp
1025 @endif gmp-no-bootstrap
1026 @if mpfr-no-bootstrap
1027 all-host: maybe-all-mpfr
1028 @endif mpfr-no-bootstrap
1029 @if mpc-no-bootstrap
1030 all-host: maybe-all-mpc
1031 @endif mpc-no-bootstrap
1032 @if ppl-no-bootstrap
1033 all-host: maybe-all-ppl
1034 @endif ppl-no-bootstrap
1035 @if cloog-no-bootstrap
1036 all-host: maybe-all-cloog
1037 @endif cloog-no-bootstrap
1038 @if libelf-no-bootstrap
1039 all-host: maybe-all-libelf
1040 @endif libelf-no-bootstrap
1041 @if gold-no-bootstrap
1042 all-host: maybe-all-gold
1043 @endif gold-no-bootstrap
1044 all-host: maybe-all-gprof
1045 @if intl-no-bootstrap
1046 all-host: maybe-all-intl
1047 @endif intl-no-bootstrap
1048 all-host: maybe-all-tcl
1049 all-host: maybe-all-itcl
1050 @if ld-no-bootstrap
1051 all-host: maybe-all-ld
1052 @endif ld-no-bootstrap
1053 @if libcpp-no-bootstrap
1054 all-host: maybe-all-libcpp
1055 @endif libcpp-no-bootstrap
1056 @if libdecnumber-no-bootstrap
1057 all-host: maybe-all-libdecnumber
1058 @endif libdecnumber-no-bootstrap
1059 all-host: maybe-all-libgui
1060 @if libiberty-no-bootstrap
1061 all-host: maybe-all-libiberty
1062 @endif libiberty-no-bootstrap
1063 all-host: maybe-all-libiconv
1064 all-host: maybe-all-m4
1065 all-host: maybe-all-readline
1066 all-host: maybe-all-sid
1067 all-host: maybe-all-sim
1068 all-host: maybe-all-texinfo
1069 @if zlib-no-bootstrap
1070 all-host: maybe-all-zlib
1071 @endif zlib-no-bootstrap
1072 all-host: maybe-all-gdb
1073 all-host: maybe-all-expect
1074 all-host: maybe-all-guile
1075 all-host: maybe-all-tk
1076 all-host: maybe-all-libtermcap
1077 all-host: maybe-all-utils
1078 all-host: maybe-all-gnattools
1079 @if lto-plugin-no-bootstrap
1080 all-host: maybe-all-lto-plugin
1081 @endif lto-plugin-no-bootstrap
1082
1083 .PHONY: all-target
1084
1085 @if target-libstdc++-v3-no-bootstrap
1086 all-target: maybe-all-target-libstdc++-v3
1087 @endif target-libstdc++-v3-no-bootstrap
1088 all-target: maybe-all-target-libmudflap
1089 all-target: maybe-all-target-libssp
1090 all-target: maybe-all-target-newlib
1091 @if target-libgcc-no-bootstrap
1092 all-target: maybe-all-target-libgcc
1093 @endif target-libgcc-no-bootstrap
1094 all-target: maybe-all-target-libquadmath
1095 all-target: maybe-all-target-libgfortran
1096 all-target: maybe-all-target-libobjc
1097 all-target: maybe-all-target-libgo
1098 all-target: maybe-all-target-libtermcap
1099 all-target: maybe-all-target-winsup
1100 all-target: maybe-all-target-libgloss
1101 all-target: maybe-all-target-libffi
1102 all-target: maybe-all-target-libjava
1103 all-target: maybe-all-target-zlib
1104 all-target: maybe-all-target-boehm-gc
1105 all-target: maybe-all-target-rda
1106 all-target: maybe-all-target-libada
1107 @if target-libgomp-no-bootstrap
1108 all-target: maybe-all-target-libgomp
1109 @endif target-libgomp-no-bootstrap
1110 all-target: maybe-all-target-libitm
1111
1112 # Do a target for all the subdirectories.  A ``make do-X'' will do a
1113 # ``make X'' in all subdirectories (because, in general, there is a
1114 # dependency (below) of X upon do-X, a ``make X'' will also do this,
1115 # but it may do additional work as well).
1116
1117 .PHONY: do-info
1118 do-info:
1119         @: $(MAKE); $(unstage)
1120         @r=`${PWD_COMMAND}`; export r; \
1121         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1122         $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
1123           info-target
1124
1125
1126 .PHONY: info-host
1127
1128 info-host: maybe-info-bfd
1129 info-host: maybe-info-opcodes
1130 info-host: maybe-info-binutils
1131 info-host: maybe-info-bison
1132 info-host: maybe-info-cgen
1133 info-host: maybe-info-dejagnu
1134 info-host: maybe-info-etc
1135 info-host: maybe-info-fastjar
1136 info-host: maybe-info-fixincludes
1137 info-host: maybe-info-flex
1138 info-host: maybe-info-gas
1139 info-host: maybe-info-gcc
1140 info-host: maybe-info-gmp
1141 info-host: maybe-info-mpfr
1142 info-host: maybe-info-mpc
1143 info-host: maybe-info-ppl
1144 info-host: maybe-info-cloog
1145 info-host: maybe-info-libelf
1146 info-host: maybe-info-gold
1147 info-host: maybe-info-gprof
1148 info-host: maybe-info-intl
1149 info-host: maybe-info-tcl
1150 info-host: maybe-info-itcl
1151 info-host: maybe-info-ld
1152 info-host: maybe-info-libcpp
1153 info-host: maybe-info-libdecnumber
1154 info-host: maybe-info-libgui
1155 info-host: maybe-info-libiberty
1156 info-host: maybe-info-libiconv
1157 info-host: maybe-info-m4
1158 info-host: maybe-info-readline
1159 info-host: maybe-info-sid
1160 info-host: maybe-info-sim
1161 info-host: maybe-info-texinfo
1162 info-host: maybe-info-zlib
1163 info-host: maybe-info-gdb
1164 info-host: maybe-info-expect
1165 info-host: maybe-info-guile
1166 info-host: maybe-info-tk
1167 info-host: maybe-info-libtermcap
1168 info-host: maybe-info-utils
1169 info-host: maybe-info-gnattools
1170 info-host: maybe-info-lto-plugin
1171
1172 .PHONY: info-target
1173
1174 info-target: maybe-info-target-libstdc++-v3
1175 info-target: maybe-info-target-libmudflap
1176 info-target: maybe-info-target-libssp
1177 info-target: maybe-info-target-newlib
1178 info-target: maybe-info-target-libgcc
1179 info-target: maybe-info-target-libquadmath
1180 info-target: maybe-info-target-libgfortran
1181 info-target: maybe-info-target-libobjc
1182 info-target: maybe-info-target-libgo
1183 info-target: maybe-info-target-libtermcap
1184 info-target: maybe-info-target-winsup
1185 info-target: maybe-info-target-libgloss
1186 info-target: maybe-info-target-libffi
1187 info-target: maybe-info-target-libjava
1188 info-target: maybe-info-target-zlib
1189 info-target: maybe-info-target-boehm-gc
1190 info-target: maybe-info-target-rda
1191 info-target: maybe-info-target-libada
1192 info-target: maybe-info-target-libgomp
1193 info-target: maybe-info-target-libitm
1194
1195 .PHONY: do-dvi
1196 do-dvi:
1197         @: $(MAKE); $(unstage)
1198         @r=`${PWD_COMMAND}`; export r; \
1199         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1200         $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
1201           dvi-target
1202
1203
1204 .PHONY: dvi-host
1205
1206 dvi-host: maybe-dvi-bfd
1207 dvi-host: maybe-dvi-opcodes
1208 dvi-host: maybe-dvi-binutils
1209 dvi-host: maybe-dvi-bison
1210 dvi-host: maybe-dvi-cgen
1211 dvi-host: maybe-dvi-dejagnu
1212 dvi-host: maybe-dvi-etc
1213 dvi-host: maybe-dvi-fastjar
1214 dvi-host: maybe-dvi-fixincludes
1215 dvi-host: maybe-dvi-flex
1216 dvi-host: maybe-dvi-gas
1217 dvi-host: maybe-dvi-gcc
1218 dvi-host: maybe-dvi-gmp
1219 dvi-host: maybe-dvi-mpfr
1220 dvi-host: maybe-dvi-mpc
1221 dvi-host: maybe-dvi-ppl
1222 dvi-host: maybe-dvi-cloog
1223 dvi-host: maybe-dvi-libelf
1224 dvi-host: maybe-dvi-gold
1225 dvi-host: maybe-dvi-gprof
1226 dvi-host: maybe-dvi-intl
1227 dvi-host: maybe-dvi-tcl
1228 dvi-host: maybe-dvi-itcl
1229 dvi-host: maybe-dvi-ld
1230 dvi-host: maybe-dvi-libcpp
1231 dvi-host: maybe-dvi-libdecnumber
1232 dvi-host: maybe-dvi-libgui
1233 dvi-host: maybe-dvi-libiberty
1234 dvi-host: maybe-dvi-libiconv
1235 dvi-host: maybe-dvi-m4
1236 dvi-host: maybe-dvi-readline
1237 dvi-host: maybe-dvi-sid
1238 dvi-host: maybe-dvi-sim
1239 dvi-host: maybe-dvi-texinfo
1240 dvi-host: maybe-dvi-zlib
1241 dvi-host: maybe-dvi-gdb
1242 dvi-host: maybe-dvi-expect
1243 dvi-host: maybe-dvi-guile
1244 dvi-host: maybe-dvi-tk
1245 dvi-host: maybe-dvi-libtermcap
1246 dvi-host: maybe-dvi-utils
1247 dvi-host: maybe-dvi-gnattools
1248 dvi-host: maybe-dvi-lto-plugin
1249
1250 .PHONY: dvi-target
1251
1252 dvi-target: maybe-dvi-target-libstdc++-v3
1253 dvi-target: maybe-dvi-target-libmudflap
1254 dvi-target: maybe-dvi-target-libssp
1255 dvi-target: maybe-dvi-target-newlib
1256 dvi-target: maybe-dvi-target-libgcc
1257 dvi-target: maybe-dvi-target-libquadmath
1258 dvi-target: maybe-dvi-target-libgfortran
1259 dvi-target: maybe-dvi-target-libobjc
1260 dvi-target: maybe-dvi-target-libgo
1261 dvi-target: maybe-dvi-target-libtermcap
1262 dvi-target: maybe-dvi-target-winsup
1263 dvi-target: maybe-dvi-target-libgloss
1264 dvi-target: maybe-dvi-target-libffi
1265 dvi-target: maybe-dvi-target-libjava
1266 dvi-target: maybe-dvi-target-zlib
1267 dvi-target: maybe-dvi-target-boehm-gc
1268 dvi-target: maybe-dvi-target-rda
1269 dvi-target: maybe-dvi-target-libada
1270 dvi-target: maybe-dvi-target-libgomp
1271 dvi-target: maybe-dvi-target-libitm
1272
1273 .PHONY: do-pdf
1274 do-pdf:
1275         @: $(MAKE); $(unstage)
1276         @r=`${PWD_COMMAND}`; export r; \
1277         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1278         $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1279           pdf-target
1280
1281
1282 .PHONY: pdf-host
1283
1284 pdf-host: maybe-pdf-bfd
1285 pdf-host: maybe-pdf-opcodes
1286 pdf-host: maybe-pdf-binutils
1287 pdf-host: maybe-pdf-bison
1288 pdf-host: maybe-pdf-cgen
1289 pdf-host: maybe-pdf-dejagnu
1290 pdf-host: maybe-pdf-etc
1291 pdf-host: maybe-pdf-fastjar
1292 pdf-host: maybe-pdf-fixincludes
1293 pdf-host: maybe-pdf-flex
1294 pdf-host: maybe-pdf-gas
1295 pdf-host: maybe-pdf-gcc
1296 pdf-host: maybe-pdf-gmp
1297 pdf-host: maybe-pdf-mpfr
1298 pdf-host: maybe-pdf-mpc
1299 pdf-host: maybe-pdf-ppl
1300 pdf-host: maybe-pdf-cloog
1301 pdf-host: maybe-pdf-libelf
1302 pdf-host: maybe-pdf-gold
1303 pdf-host: maybe-pdf-gprof
1304 pdf-host: maybe-pdf-intl
1305 pdf-host: maybe-pdf-tcl
1306 pdf-host: maybe-pdf-itcl
1307 pdf-host: maybe-pdf-ld
1308 pdf-host: maybe-pdf-libcpp
1309 pdf-host: maybe-pdf-libdecnumber
1310 pdf-host: maybe-pdf-libgui
1311 pdf-host: maybe-pdf-libiberty
1312 pdf-host: maybe-pdf-libiconv
1313 pdf-host: maybe-pdf-m4
1314 pdf-host: maybe-pdf-readline
1315 pdf-host: maybe-pdf-sid
1316 pdf-host: maybe-pdf-sim
1317 pdf-host: maybe-pdf-texinfo
1318 pdf-host: maybe-pdf-zlib
1319 pdf-host: maybe-pdf-gdb
1320 pdf-host: maybe-pdf-expect
1321 pdf-host: maybe-pdf-guile
1322 pdf-host: maybe-pdf-tk
1323 pdf-host: maybe-pdf-libtermcap
1324 pdf-host: maybe-pdf-utils
1325 pdf-host: maybe-pdf-gnattools
1326 pdf-host: maybe-pdf-lto-plugin
1327
1328 .PHONY: pdf-target
1329
1330 pdf-target: maybe-pdf-target-libstdc++-v3
1331 pdf-target: maybe-pdf-target-libmudflap
1332 pdf-target: maybe-pdf-target-libssp
1333 pdf-target: maybe-pdf-target-newlib
1334 pdf-target: maybe-pdf-target-libgcc
1335 pdf-target: maybe-pdf-target-libquadmath
1336 pdf-target: maybe-pdf-target-libgfortran
1337 pdf-target: maybe-pdf-target-libobjc
1338 pdf-target: maybe-pdf-target-libgo
1339 pdf-target: maybe-pdf-target-libtermcap
1340 pdf-target: maybe-pdf-target-winsup
1341 pdf-target: maybe-pdf-target-libgloss
1342 pdf-target: maybe-pdf-target-libffi
1343 pdf-target: maybe-pdf-target-libjava
1344 pdf-target: maybe-pdf-target-zlib
1345 pdf-target: maybe-pdf-target-boehm-gc
1346 pdf-target: maybe-pdf-target-rda
1347 pdf-target: maybe-pdf-target-libada
1348 pdf-target: maybe-pdf-target-libgomp
1349 pdf-target: maybe-pdf-target-libitm
1350
1351 .PHONY: do-html
1352 do-html:
1353         @: $(MAKE); $(unstage)
1354         @r=`${PWD_COMMAND}`; export r; \
1355         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1356         $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
1357           html-target
1358
1359
1360 .PHONY: html-host
1361
1362 html-host: maybe-html-bfd
1363 html-host: maybe-html-opcodes
1364 html-host: maybe-html-binutils
1365 html-host: maybe-html-bison
1366 html-host: maybe-html-cgen
1367 html-host: maybe-html-dejagnu
1368 html-host: maybe-html-etc
1369 html-host: maybe-html-fastjar
1370 html-host: maybe-html-fixincludes
1371 html-host: maybe-html-flex
1372 html-host: maybe-html-gas
1373 html-host: maybe-html-gcc
1374 html-host: maybe-html-gmp
1375 html-host: maybe-html-mpfr
1376 html-host: maybe-html-mpc
1377 html-host: maybe-html-ppl
1378 html-host: maybe-html-cloog
1379 html-host: maybe-html-libelf
1380 html-host: maybe-html-gold
1381 html-host: maybe-html-gprof
1382 html-host: maybe-html-intl
1383 html-host: maybe-html-tcl
1384 html-host: maybe-html-itcl
1385 html-host: maybe-html-ld
1386 html-host: maybe-html-libcpp
1387 html-host: maybe-html-libdecnumber
1388 html-host: maybe-html-libgui
1389 html-host: maybe-html-libiberty
1390 html-host: maybe-html-libiconv
1391 html-host: maybe-html-m4
1392 html-host: maybe-html-readline
1393 html-host: maybe-html-sid
1394 html-host: maybe-html-sim
1395 html-host: maybe-html-texinfo
1396 html-host: maybe-html-zlib
1397 html-host: maybe-html-gdb
1398 html-host: maybe-html-expect
1399 html-host: maybe-html-guile
1400 html-host: maybe-html-tk
1401 html-host: maybe-html-libtermcap
1402 html-host: maybe-html-utils
1403 html-host: maybe-html-gnattools
1404 html-host: maybe-html-lto-plugin
1405
1406 .PHONY: html-target
1407
1408 html-target: maybe-html-target-libstdc++-v3
1409 html-target: maybe-html-target-libmudflap
1410 html-target: maybe-html-target-libssp
1411 html-target: maybe-html-target-newlib
1412 html-target: maybe-html-target-libgcc
1413 html-target: maybe-html-target-libquadmath
1414 html-target: maybe-html-target-libgfortran
1415 html-target: maybe-html-target-libobjc
1416 html-target: maybe-html-target-libgo
1417 html-target: maybe-html-target-libtermcap
1418 html-target: maybe-html-target-winsup
1419 html-target: maybe-html-target-libgloss
1420 html-target: maybe-html-target-libffi
1421 html-target: maybe-html-target-libjava
1422 html-target: maybe-html-target-zlib
1423 html-target: maybe-html-target-boehm-gc
1424 html-target: maybe-html-target-rda
1425 html-target: maybe-html-target-libada
1426 html-target: maybe-html-target-libgomp
1427 html-target: maybe-html-target-libitm
1428
1429 .PHONY: do-TAGS
1430 do-TAGS:
1431         @: $(MAKE); $(unstage)
1432         @r=`${PWD_COMMAND}`; export r; \
1433         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1434         $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
1435           TAGS-target
1436
1437
1438 .PHONY: TAGS-host
1439
1440 TAGS-host: maybe-TAGS-bfd
1441 TAGS-host: maybe-TAGS-opcodes
1442 TAGS-host: maybe-TAGS-binutils
1443 TAGS-host: maybe-TAGS-bison
1444 TAGS-host: maybe-TAGS-cgen
1445 TAGS-host: maybe-TAGS-dejagnu
1446 TAGS-host: maybe-TAGS-etc
1447 TAGS-host: maybe-TAGS-fastjar
1448 TAGS-host: maybe-TAGS-fixincludes
1449 TAGS-host: maybe-TAGS-flex
1450 TAGS-host: maybe-TAGS-gas
1451 TAGS-host: maybe-TAGS-gcc
1452 TAGS-host: maybe-TAGS-gmp
1453 TAGS-host: maybe-TAGS-mpfr
1454 TAGS-host: maybe-TAGS-mpc
1455 TAGS-host: maybe-TAGS-ppl
1456 TAGS-host: maybe-TAGS-cloog
1457 TAGS-host: maybe-TAGS-libelf
1458 TAGS-host: maybe-TAGS-gold
1459 TAGS-host: maybe-TAGS-gprof
1460 TAGS-host: maybe-TAGS-intl
1461 TAGS-host: maybe-TAGS-tcl
1462 TAGS-host: maybe-TAGS-itcl
1463 TAGS-host: maybe-TAGS-ld
1464 TAGS-host: maybe-TAGS-libcpp
1465 TAGS-host: maybe-TAGS-libdecnumber
1466 TAGS-host: maybe-TAGS-libgui
1467 TAGS-host: maybe-TAGS-libiberty
1468 TAGS-host: maybe-TAGS-libiconv
1469 TAGS-host: maybe-TAGS-m4
1470 TAGS-host: maybe-TAGS-readline
1471 TAGS-host: maybe-TAGS-sid
1472 TAGS-host: maybe-TAGS-sim
1473 TAGS-host: maybe-TAGS-texinfo
1474 TAGS-host: maybe-TAGS-zlib
1475 TAGS-host: maybe-TAGS-gdb
1476 TAGS-host: maybe-TAGS-expect
1477 TAGS-host: maybe-TAGS-guile
1478 TAGS-host: maybe-TAGS-tk
1479 TAGS-host: maybe-TAGS-libtermcap
1480 TAGS-host: maybe-TAGS-utils
1481 TAGS-host: maybe-TAGS-gnattools
1482 TAGS-host: maybe-TAGS-lto-plugin
1483
1484 .PHONY: TAGS-target
1485
1486 TAGS-target: maybe-TAGS-target-libstdc++-v3
1487 TAGS-target: maybe-TAGS-target-libmudflap
1488 TAGS-target: maybe-TAGS-target-libssp
1489 TAGS-target: maybe-TAGS-target-newlib
1490 TAGS-target: maybe-TAGS-target-libgcc
1491 TAGS-target: maybe-TAGS-target-libquadmath
1492 TAGS-target: maybe-TAGS-target-libgfortran
1493 TAGS-target: maybe-TAGS-target-libobjc
1494 TAGS-target: maybe-TAGS-target-libgo
1495 TAGS-target: maybe-TAGS-target-libtermcap
1496 TAGS-target: maybe-TAGS-target-winsup
1497 TAGS-target: maybe-TAGS-target-libgloss
1498 TAGS-target: maybe-TAGS-target-libffi
1499 TAGS-target: maybe-TAGS-target-libjava
1500 TAGS-target: maybe-TAGS-target-zlib
1501 TAGS-target: maybe-TAGS-target-boehm-gc
1502 TAGS-target: maybe-TAGS-target-rda
1503 TAGS-target: maybe-TAGS-target-libada
1504 TAGS-target: maybe-TAGS-target-libgomp
1505 TAGS-target: maybe-TAGS-target-libitm
1506
1507 .PHONY: do-install-info
1508 do-install-info:
1509         @: $(MAKE); $(unstage)
1510         @r=`${PWD_COMMAND}`; export r; \
1511         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1512         $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
1513           install-info-target
1514
1515
1516 .PHONY: install-info-host
1517
1518 install-info-host: maybe-install-info-bfd
1519 install-info-host: maybe-install-info-opcodes
1520 install-info-host: maybe-install-info-binutils
1521 install-info-host: maybe-install-info-bison
1522 install-info-host: maybe-install-info-cgen
1523 install-info-host: maybe-install-info-dejagnu
1524 install-info-host: maybe-install-info-etc
1525 install-info-host: maybe-install-info-fastjar
1526 install-info-host: maybe-install-info-fixincludes
1527 install-info-host: maybe-install-info-flex
1528 install-info-host: maybe-install-info-gas
1529 install-info-host: maybe-install-info-gcc
1530 install-info-host: maybe-install-info-gmp
1531 install-info-host: maybe-install-info-mpfr
1532 install-info-host: maybe-install-info-mpc
1533 install-info-host: maybe-install-info-ppl
1534 install-info-host: maybe-install-info-cloog
1535 install-info-host: maybe-install-info-libelf
1536 install-info-host: maybe-install-info-gold
1537 install-info-host: maybe-install-info-gprof
1538 install-info-host: maybe-install-info-intl
1539 install-info-host: maybe-install-info-tcl
1540 install-info-host: maybe-install-info-itcl
1541 install-info-host: maybe-install-info-ld
1542 install-info-host: maybe-install-info-libcpp
1543 install-info-host: maybe-install-info-libdecnumber
1544 install-info-host: maybe-install-info-libgui
1545 install-info-host: maybe-install-info-libiberty
1546 install-info-host: maybe-install-info-libiconv
1547 install-info-host: maybe-install-info-m4
1548 install-info-host: maybe-install-info-readline
1549 install-info-host: maybe-install-info-sid
1550 install-info-host: maybe-install-info-sim
1551 install-info-host: maybe-install-info-texinfo
1552 install-info-host: maybe-install-info-zlib
1553 install-info-host: maybe-install-info-gdb
1554 install-info-host: maybe-install-info-expect
1555 install-info-host: maybe-install-info-guile
1556 install-info-host: maybe-install-info-tk
1557 install-info-host: maybe-install-info-libtermcap
1558 install-info-host: maybe-install-info-utils
1559 install-info-host: maybe-install-info-gnattools
1560 install-info-host: maybe-install-info-lto-plugin
1561
1562 .PHONY: install-info-target
1563
1564 install-info-target: maybe-install-info-target-libstdc++-v3
1565 install-info-target: maybe-install-info-target-libmudflap
1566 install-info-target: maybe-install-info-target-libssp
1567 install-info-target: maybe-install-info-target-newlib
1568 install-info-target: maybe-install-info-target-libgcc
1569 install-info-target: maybe-install-info-target-libquadmath
1570 install-info-target: maybe-install-info-target-libgfortran
1571 install-info-target: maybe-install-info-target-libobjc
1572 install-info-target: maybe-install-info-target-libgo
1573 install-info-target: maybe-install-info-target-libtermcap
1574 install-info-target: maybe-install-info-target-winsup
1575 install-info-target: maybe-install-info-target-libgloss
1576 install-info-target: maybe-install-info-target-libffi
1577 install-info-target: maybe-install-info-target-libjava
1578 install-info-target: maybe-install-info-target-zlib
1579 install-info-target: maybe-install-info-target-boehm-gc
1580 install-info-target: maybe-install-info-target-rda
1581 install-info-target: maybe-install-info-target-libada
1582 install-info-target: maybe-install-info-target-libgomp
1583 install-info-target: maybe-install-info-target-libitm
1584
1585 .PHONY: do-install-pdf
1586 do-install-pdf:
1587         @: $(MAKE); $(unstage)
1588         @r=`${PWD_COMMAND}`; export r; \
1589         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1590         $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1591           install-pdf-target
1592
1593
1594 .PHONY: install-pdf-host
1595
1596 install-pdf-host: maybe-install-pdf-bfd
1597 install-pdf-host: maybe-install-pdf-opcodes
1598 install-pdf-host: maybe-install-pdf-binutils
1599 install-pdf-host: maybe-install-pdf-bison
1600 install-pdf-host: maybe-install-pdf-cgen
1601 install-pdf-host: maybe-install-pdf-dejagnu
1602 install-pdf-host: maybe-install-pdf-etc
1603 install-pdf-host: maybe-install-pdf-fastjar
1604 install-pdf-host: maybe-install-pdf-fixincludes
1605 install-pdf-host: maybe-install-pdf-flex
1606 install-pdf-host: maybe-install-pdf-gas
1607 install-pdf-host: maybe-install-pdf-gcc
1608 install-pdf-host: maybe-install-pdf-gmp
1609 install-pdf-host: maybe-install-pdf-mpfr
1610 install-pdf-host: maybe-install-pdf-mpc
1611 install-pdf-host: maybe-install-pdf-ppl
1612 install-pdf-host: maybe-install-pdf-cloog
1613 install-pdf-host: maybe-install-pdf-libelf
1614 install-pdf-host: maybe-install-pdf-gold
1615 install-pdf-host: maybe-install-pdf-gprof
1616 install-pdf-host: maybe-install-pdf-intl
1617 install-pdf-host: maybe-install-pdf-tcl
1618 install-pdf-host: maybe-install-pdf-itcl
1619 install-pdf-host: maybe-install-pdf-ld
1620 install-pdf-host: maybe-install-pdf-libcpp
1621 install-pdf-host: maybe-install-pdf-libdecnumber
1622 install-pdf-host: maybe-install-pdf-libgui
1623 install-pdf-host: maybe-install-pdf-libiberty
1624 install-pdf-host: maybe-install-pdf-libiconv
1625 install-pdf-host: maybe-install-pdf-m4
1626 install-pdf-host: maybe-install-pdf-readline
1627 install-pdf-host: maybe-install-pdf-sid
1628 install-pdf-host: maybe-install-pdf-sim
1629 install-pdf-host: maybe-install-pdf-texinfo
1630 install-pdf-host: maybe-install-pdf-zlib
1631 install-pdf-host: maybe-install-pdf-gdb
1632 install-pdf-host: maybe-install-pdf-expect
1633 install-pdf-host: maybe-install-pdf-guile
1634 install-pdf-host: maybe-install-pdf-tk
1635 install-pdf-host: maybe-install-pdf-libtermcap
1636 install-pdf-host: maybe-install-pdf-utils
1637 install-pdf-host: maybe-install-pdf-gnattools
1638 install-pdf-host: maybe-install-pdf-lto-plugin
1639
1640 .PHONY: install-pdf-target
1641
1642 install-pdf-target: maybe-install-pdf-target-libstdc++-v3
1643 install-pdf-target: maybe-install-pdf-target-libmudflap
1644 install-pdf-target: maybe-install-pdf-target-libssp
1645 install-pdf-target: maybe-install-pdf-target-newlib
1646 install-pdf-target: maybe-install-pdf-target-libgcc
1647 install-pdf-target: maybe-install-pdf-target-libquadmath
1648 install-pdf-target: maybe-install-pdf-target-libgfortran
1649 install-pdf-target: maybe-install-pdf-target-libobjc
1650 install-pdf-target: maybe-install-pdf-target-libgo
1651 install-pdf-target: maybe-install-pdf-target-libtermcap
1652 install-pdf-target: maybe-install-pdf-target-winsup
1653 install-pdf-target: maybe-install-pdf-target-libgloss
1654 install-pdf-target: maybe-install-pdf-target-libffi
1655 install-pdf-target: maybe-install-pdf-target-libjava
1656 install-pdf-target: maybe-install-pdf-target-zlib
1657 install-pdf-target: maybe-install-pdf-target-boehm-gc
1658 install-pdf-target: maybe-install-pdf-target-rda
1659 install-pdf-target: maybe-install-pdf-target-libada
1660 install-pdf-target: maybe-install-pdf-target-libgomp
1661 install-pdf-target: maybe-install-pdf-target-libitm
1662
1663 .PHONY: do-install-html
1664 do-install-html:
1665         @: $(MAKE); $(unstage)
1666         @r=`${PWD_COMMAND}`; export r; \
1667         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1668         $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1669           install-html-target
1670
1671
1672 .PHONY: install-html-host
1673
1674 install-html-host: maybe-install-html-bfd
1675 install-html-host: maybe-install-html-opcodes
1676 install-html-host: maybe-install-html-binutils
1677 install-html-host: maybe-install-html-bison
1678 install-html-host: maybe-install-html-cgen
1679 install-html-host: maybe-install-html-dejagnu
1680 install-html-host: maybe-install-html-etc
1681 install-html-host: maybe-install-html-fastjar
1682 install-html-host: maybe-install-html-fixincludes
1683 install-html-host: maybe-install-html-flex
1684 install-html-host: maybe-install-html-gas
1685 install-html-host: maybe-install-html-gcc
1686 install-html-host: maybe-install-html-gmp
1687 install-html-host: maybe-install-html-mpfr
1688 install-html-host: maybe-install-html-mpc
1689 install-html-host: maybe-install-html-ppl
1690 install-html-host: maybe-install-html-cloog
1691 install-html-host: maybe-install-html-libelf
1692 install-html-host: maybe-install-html-gold
1693 install-html-host: maybe-install-html-gprof
1694 install-html-host: maybe-install-html-intl
1695 install-html-host: maybe-install-html-tcl
1696 install-html-host: maybe-install-html-itcl
1697 install-html-host: maybe-install-html-ld
1698 install-html-host: maybe-install-html-libcpp
1699 install-html-host: maybe-install-html-libdecnumber
1700 install-html-host: maybe-install-html-libgui
1701 install-html-host: maybe-install-html-libiberty
1702 install-html-host: maybe-install-html-libiconv
1703 install-html-host: maybe-install-html-m4
1704 install-html-host: maybe-install-html-readline
1705 install-html-host: maybe-install-html-sid
1706 install-html-host: maybe-install-html-sim
1707 install-html-host: maybe-install-html-texinfo
1708 install-html-host: maybe-install-html-zlib
1709 install-html-host: maybe-install-html-gdb
1710 install-html-host: maybe-install-html-expect
1711 install-html-host: maybe-install-html-guile
1712 install-html-host: maybe-install-html-tk
1713 install-html-host: maybe-install-html-libtermcap
1714 install-html-host: maybe-install-html-utils
1715 install-html-host: maybe-install-html-gnattools
1716 install-html-host: maybe-install-html-lto-plugin
1717
1718 .PHONY: install-html-target
1719
1720 install-html-target: maybe-install-html-target-libstdc++-v3
1721 install-html-target: maybe-install-html-target-libmudflap
1722 install-html-target: maybe-install-html-target-libssp
1723 install-html-target: maybe-install-html-target-newlib
1724 install-html-target: maybe-install-html-target-libgcc
1725 install-html-target: maybe-install-html-target-libquadmath
1726 install-html-target: maybe-install-html-target-libgfortran
1727 install-html-target: maybe-install-html-target-libobjc
1728 install-html-target: maybe-install-html-target-libgo
1729 install-html-target: maybe-install-html-target-libtermcap
1730 install-html-target: maybe-install-html-target-winsup
1731 install-html-target: maybe-install-html-target-libgloss
1732 install-html-target: maybe-install-html-target-libffi
1733 install-html-target: maybe-install-html-target-libjava
1734 install-html-target: maybe-install-html-target-zlib
1735 install-html-target: maybe-install-html-target-boehm-gc
1736 install-html-target: maybe-install-html-target-rda
1737 install-html-target: maybe-install-html-target-libada
1738 install-html-target: maybe-install-html-target-libgomp
1739 install-html-target: maybe-install-html-target-libitm
1740
1741 .PHONY: do-installcheck
1742 do-installcheck:
1743         @: $(MAKE); $(unstage)
1744         @r=`${PWD_COMMAND}`; export r; \
1745         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1746         $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
1747           installcheck-target
1748
1749
1750 .PHONY: installcheck-host
1751
1752 installcheck-host: maybe-installcheck-bfd
1753 installcheck-host: maybe-installcheck-opcodes
1754 installcheck-host: maybe-installcheck-binutils
1755 installcheck-host: maybe-installcheck-bison
1756 installcheck-host: maybe-installcheck-cgen
1757 installcheck-host: maybe-installcheck-dejagnu
1758 installcheck-host: maybe-installcheck-etc
1759 installcheck-host: maybe-installcheck-fastjar
1760 installcheck-host: maybe-installcheck-fixincludes
1761 installcheck-host: maybe-installcheck-flex
1762 installcheck-host: maybe-installcheck-gas
1763 installcheck-host: maybe-installcheck-gcc
1764 installcheck-host: maybe-installcheck-gmp
1765 installcheck-host: maybe-installcheck-mpfr
1766 installcheck-host: maybe-installcheck-mpc
1767 installcheck-host: maybe-installcheck-ppl
1768 installcheck-host: maybe-installcheck-cloog
1769 installcheck-host: maybe-installcheck-libelf
1770 installcheck-host: maybe-installcheck-gold
1771 installcheck-host: maybe-installcheck-gprof
1772 installcheck-host: maybe-installcheck-intl
1773 installcheck-host: maybe-installcheck-tcl
1774 installcheck-host: maybe-installcheck-itcl
1775 installcheck-host: maybe-installcheck-ld
1776 installcheck-host: maybe-installcheck-libcpp
1777 installcheck-host: maybe-installcheck-libdecnumber
1778 installcheck-host: maybe-installcheck-libgui
1779 installcheck-host: maybe-installcheck-libiberty
1780 installcheck-host: maybe-installcheck-libiconv
1781 installcheck-host: maybe-installcheck-m4
1782 installcheck-host: maybe-installcheck-readline
1783 installcheck-host: maybe-installcheck-sid
1784 installcheck-host: maybe-installcheck-sim
1785 installcheck-host: maybe-installcheck-texinfo
1786 installcheck-host: maybe-installcheck-zlib
1787 installcheck-host: maybe-installcheck-gdb
1788 installcheck-host: maybe-installcheck-expect
1789 installcheck-host: maybe-installcheck-guile
1790 installcheck-host: maybe-installcheck-tk
1791 installcheck-host: maybe-installcheck-libtermcap
1792 installcheck-host: maybe-installcheck-utils
1793 installcheck-host: maybe-installcheck-gnattools
1794 installcheck-host: maybe-installcheck-lto-plugin
1795
1796 .PHONY: installcheck-target
1797
1798 installcheck-target: maybe-installcheck-target-libstdc++-v3
1799 installcheck-target: maybe-installcheck-target-libmudflap
1800 installcheck-target: maybe-installcheck-target-libssp
1801 installcheck-target: maybe-installcheck-target-newlib
1802 installcheck-target: maybe-installcheck-target-libgcc
1803 installcheck-target: maybe-installcheck-target-libquadmath
1804 installcheck-target: maybe-installcheck-target-libgfortran
1805 installcheck-target: maybe-installcheck-target-libobjc
1806 installcheck-target: maybe-installcheck-target-libgo
1807 installcheck-target: maybe-installcheck-target-libtermcap
1808 installcheck-target: maybe-installcheck-target-winsup
1809 installcheck-target: maybe-installcheck-target-libgloss
1810 installcheck-target: maybe-installcheck-target-libffi
1811 installcheck-target: maybe-installcheck-target-libjava
1812 installcheck-target: maybe-installcheck-target-zlib
1813 installcheck-target: maybe-installcheck-target-boehm-gc
1814 installcheck-target: maybe-installcheck-target-rda
1815 installcheck-target: maybe-installcheck-target-libada
1816 installcheck-target: maybe-installcheck-target-libgomp
1817 installcheck-target: maybe-installcheck-target-libitm
1818
1819 .PHONY: do-mostlyclean
1820 do-mostlyclean:
1821         @: $(MAKE); $(unstage)
1822         @r=`${PWD_COMMAND}`; export r; \
1823         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1824         $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
1825           mostlyclean-target
1826
1827
1828 .PHONY: mostlyclean-host
1829
1830 mostlyclean-host: maybe-mostlyclean-bfd
1831 mostlyclean-host: maybe-mostlyclean-opcodes
1832 mostlyclean-host: maybe-mostlyclean-binutils
1833 mostlyclean-host: maybe-mostlyclean-bison
1834 mostlyclean-host: maybe-mostlyclean-cgen
1835 mostlyclean-host: maybe-mostlyclean-dejagnu
1836 mostlyclean-host: maybe-mostlyclean-etc
1837 mostlyclean-host: maybe-mostlyclean-fastjar
1838 mostlyclean-host: maybe-mostlyclean-fixincludes
1839 mostlyclean-host: maybe-mostlyclean-flex
1840 mostlyclean-host: maybe-mostlyclean-gas
1841 mostlyclean-host: maybe-mostlyclean-gcc
1842 mostlyclean-host: maybe-mostlyclean-gmp
1843 mostlyclean-host: maybe-mostlyclean-mpfr
1844 mostlyclean-host: maybe-mostlyclean-mpc
1845 mostlyclean-host: maybe-mostlyclean-ppl
1846 mostlyclean-host: maybe-mostlyclean-cloog
1847 mostlyclean-host: maybe-mostlyclean-libelf
1848 mostlyclean-host: maybe-mostlyclean-gold
1849 mostlyclean-host: maybe-mostlyclean-gprof
1850 mostlyclean-host: maybe-mostlyclean-intl
1851 mostlyclean-host: maybe-mostlyclean-tcl
1852 mostlyclean-host: maybe-mostlyclean-itcl
1853 mostlyclean-host: maybe-mostlyclean-ld
1854 mostlyclean-host: maybe-mostlyclean-libcpp
1855 mostlyclean-host: maybe-mostlyclean-libdecnumber
1856 mostlyclean-host: maybe-mostlyclean-libgui
1857 mostlyclean-host: maybe-mostlyclean-libiberty
1858 mostlyclean-host: maybe-mostlyclean-libiconv
1859 mostlyclean-host: maybe-mostlyclean-m4
1860 mostlyclean-host: maybe-mostlyclean-readline
1861 mostlyclean-host: maybe-mostlyclean-sid
1862 mostlyclean-host: maybe-mostlyclean-sim
1863 mostlyclean-host: maybe-mostlyclean-texinfo
1864 mostlyclean-host: maybe-mostlyclean-zlib
1865 mostlyclean-host: maybe-mostlyclean-gdb
1866 mostlyclean-host: maybe-mostlyclean-expect
1867 mostlyclean-host: maybe-mostlyclean-guile
1868 mostlyclean-host: maybe-mostlyclean-tk
1869 mostlyclean-host: maybe-mostlyclean-libtermcap
1870 mostlyclean-host: maybe-mostlyclean-utils
1871 mostlyclean-host: maybe-mostlyclean-gnattools
1872 mostlyclean-host: maybe-mostlyclean-lto-plugin
1873
1874 .PHONY: mostlyclean-target
1875
1876 mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
1877 mostlyclean-target: maybe-mostlyclean-target-libmudflap
1878 mostlyclean-target: maybe-mostlyclean-target-libssp
1879 mostlyclean-target: maybe-mostlyclean-target-newlib
1880 mostlyclean-target: maybe-mostlyclean-target-libgcc
1881 mostlyclean-target: maybe-mostlyclean-target-libquadmath
1882 mostlyclean-target: maybe-mostlyclean-target-libgfortran
1883 mostlyclean-target: maybe-mostlyclean-target-libobjc
1884 mostlyclean-target: maybe-mostlyclean-target-libgo
1885 mostlyclean-target: maybe-mostlyclean-target-libtermcap
1886 mostlyclean-target: maybe-mostlyclean-target-winsup
1887 mostlyclean-target: maybe-mostlyclean-target-libgloss
1888 mostlyclean-target: maybe-mostlyclean-target-libffi
1889 mostlyclean-target: maybe-mostlyclean-target-libjava
1890 mostlyclean-target: maybe-mostlyclean-target-zlib
1891 mostlyclean-target: maybe-mostlyclean-target-boehm-gc
1892 mostlyclean-target: maybe-mostlyclean-target-rda
1893 mostlyclean-target: maybe-mostlyclean-target-libada
1894 mostlyclean-target: maybe-mostlyclean-target-libgomp
1895 mostlyclean-target: maybe-mostlyclean-target-libitm
1896
1897 .PHONY: do-clean
1898 do-clean:
1899         @: $(MAKE); $(unstage)
1900         @r=`${PWD_COMMAND}`; export r; \
1901         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1902         $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
1903           clean-target
1904
1905
1906 .PHONY: clean-host
1907
1908 clean-host: maybe-clean-bfd
1909 clean-host: maybe-clean-opcodes
1910 clean-host: maybe-clean-binutils
1911 clean-host: maybe-clean-bison
1912 clean-host: maybe-clean-cgen
1913 clean-host: maybe-clean-dejagnu
1914 clean-host: maybe-clean-etc
1915 clean-host: maybe-clean-fastjar
1916 clean-host: maybe-clean-fixincludes
1917 clean-host: maybe-clean-flex
1918 clean-host: maybe-clean-gas
1919 clean-host: maybe-clean-gcc
1920 clean-host: maybe-clean-gmp
1921 clean-host: maybe-clean-mpfr
1922 clean-host: maybe-clean-mpc
1923 clean-host: maybe-clean-ppl
1924 clean-host: maybe-clean-cloog
1925 clean-host: maybe-clean-libelf
1926 clean-host: maybe-clean-gold
1927 clean-host: maybe-clean-gprof
1928 clean-host: maybe-clean-intl
1929 clean-host: maybe-clean-tcl
1930 clean-host: maybe-clean-itcl
1931 clean-host: maybe-clean-ld
1932 clean-host: maybe-clean-libcpp
1933 clean-host: maybe-clean-libdecnumber
1934 clean-host: maybe-clean-libgui
1935 clean-host: maybe-clean-libiberty
1936 clean-host: maybe-clean-libiconv
1937 clean-host: maybe-clean-m4
1938 clean-host: maybe-clean-readline
1939 clean-host: maybe-clean-sid
1940 clean-host: maybe-clean-sim
1941 clean-host: maybe-clean-texinfo
1942 clean-host: maybe-clean-zlib
1943 clean-host: maybe-clean-gdb
1944 clean-host: maybe-clean-expect
1945 clean-host: maybe-clean-guile
1946 clean-host: maybe-clean-tk
1947 clean-host: maybe-clean-libtermcap
1948 clean-host: maybe-clean-utils
1949 clean-host: maybe-clean-gnattools
1950 clean-host: maybe-clean-lto-plugin
1951
1952 .PHONY: clean-target
1953
1954 clean-target: maybe-clean-target-libstdc++-v3
1955 clean-target: maybe-clean-target-libmudflap
1956 clean-target: maybe-clean-target-libssp
1957 clean-target: maybe-clean-target-newlib
1958 clean-target: maybe-clean-target-libgcc
1959 clean-target: maybe-clean-target-libquadmath
1960 clean-target: maybe-clean-target-libgfortran
1961 clean-target: maybe-clean-target-libobjc
1962 clean-target: maybe-clean-target-libgo
1963 clean-target: maybe-clean-target-libtermcap
1964 clean-target: maybe-clean-target-winsup
1965 clean-target: maybe-clean-target-libgloss
1966 clean-target: maybe-clean-target-libffi
1967 clean-target: maybe-clean-target-libjava
1968 clean-target: maybe-clean-target-zlib
1969 clean-target: maybe-clean-target-boehm-gc
1970 clean-target: maybe-clean-target-rda
1971 clean-target: maybe-clean-target-libada
1972 clean-target: maybe-clean-target-libgomp
1973 clean-target: maybe-clean-target-libitm
1974
1975 .PHONY: do-distclean
1976 do-distclean:
1977         @: $(MAKE); $(unstage)
1978         @r=`${PWD_COMMAND}`; export r; \
1979         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1980         $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
1981           distclean-target
1982
1983
1984 .PHONY: distclean-host
1985
1986 distclean-host: maybe-distclean-bfd
1987 distclean-host: maybe-distclean-opcodes
1988 distclean-host: maybe-distclean-binutils
1989 distclean-host: maybe-distclean-bison
1990 distclean-host: maybe-distclean-cgen
1991 distclean-host: maybe-distclean-dejagnu
1992 distclean-host: maybe-distclean-etc
1993 distclean-host: maybe-distclean-fastjar
1994 distclean-host: maybe-distclean-fixincludes
1995 distclean-host: maybe-distclean-flex
1996 distclean-host: maybe-distclean-gas
1997 distclean-host: maybe-distclean-gcc
1998 distclean-host: maybe-distclean-gmp
1999 distclean-host: maybe-distclean-mpfr
2000 distclean-host: maybe-distclean-mpc
2001 distclean-host: maybe-distclean-ppl
2002 distclean-host: maybe-distclean-cloog
2003 distclean-host: maybe-distclean-libelf
2004 distclean-host: maybe-distclean-gold
2005 distclean-host: maybe-distclean-gprof
2006 distclean-host: maybe-distclean-intl
2007 distclean-host: maybe-distclean-tcl
2008 distclean-host: maybe-distclean-itcl
2009 distclean-host: maybe-distclean-ld
2010 distclean-host: maybe-distclean-libcpp
2011 distclean-host: maybe-distclean-libdecnumber
2012 distclean-host: maybe-distclean-libgui
2013 distclean-host: maybe-distclean-libiberty
2014 distclean-host: maybe-distclean-libiconv
2015 distclean-host: maybe-distclean-m4
2016 distclean-host: maybe-distclean-readline
2017 distclean-host: maybe-distclean-sid
2018 distclean-host: maybe-distclean-sim
2019 distclean-host: maybe-distclean-texinfo
2020 distclean-host: maybe-distclean-zlib
2021 distclean-host: maybe-distclean-gdb
2022 distclean-host: maybe-distclean-expect
2023 distclean-host: maybe-distclean-guile
2024 distclean-host: maybe-distclean-tk
2025 distclean-host: maybe-distclean-libtermcap
2026 distclean-host: maybe-distclean-utils
2027 distclean-host: maybe-distclean-gnattools
2028 distclean-host: maybe-distclean-lto-plugin
2029
2030 .PHONY: distclean-target
2031
2032 distclean-target: maybe-distclean-target-libstdc++-v3
2033 distclean-target: maybe-distclean-target-libmudflap
2034 distclean-target: maybe-distclean-target-libssp
2035 distclean-target: maybe-distclean-target-newlib
2036 distclean-target: maybe-distclean-target-libgcc
2037 distclean-target: maybe-distclean-target-libquadmath
2038 distclean-target: maybe-distclean-target-libgfortran
2039 distclean-target: maybe-distclean-target-libobjc
2040 distclean-target: maybe-distclean-target-libgo
2041 distclean-target: maybe-distclean-target-libtermcap
2042 distclean-target: maybe-distclean-target-winsup
2043 distclean-target: maybe-distclean-target-libgloss
2044 distclean-target: maybe-distclean-target-libffi
2045 distclean-target: maybe-distclean-target-libjava
2046 distclean-target: maybe-distclean-target-zlib
2047 distclean-target: maybe-distclean-target-boehm-gc
2048 distclean-target: maybe-distclean-target-rda
2049 distclean-target: maybe-distclean-target-libada
2050 distclean-target: maybe-distclean-target-libgomp
2051 distclean-target: maybe-distclean-target-libitm
2052
2053 .PHONY: do-maintainer-clean
2054 do-maintainer-clean:
2055         @: $(MAKE); $(unstage)
2056         @r=`${PWD_COMMAND}`; export r; \
2057         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2058         $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
2059           maintainer-clean-target
2060
2061
2062 .PHONY: maintainer-clean-host
2063
2064 maintainer-clean-host: maybe-maintainer-clean-bfd
2065 maintainer-clean-host: maybe-maintainer-clean-opcodes
2066 maintainer-clean-host: maybe-maintainer-clean-binutils
2067 maintainer-clean-host: maybe-maintainer-clean-bison
2068 maintainer-clean-host: maybe-maintainer-clean-cgen
2069 maintainer-clean-host: maybe-maintainer-clean-dejagnu
2070 maintainer-clean-host: maybe-maintainer-clean-etc
2071 maintainer-clean-host: maybe-maintainer-clean-fastjar
2072 maintainer-clean-host: maybe-maintainer-clean-fixincludes
2073 maintainer-clean-host: maybe-maintainer-clean-flex
2074 maintainer-clean-host: maybe-maintainer-clean-gas
2075 maintainer-clean-host: maybe-maintainer-clean-gcc
2076 maintainer-clean-host: maybe-maintainer-clean-gmp
2077 maintainer-clean-host: maybe-maintainer-clean-mpfr
2078 maintainer-clean-host: maybe-maintainer-clean-mpc
2079 maintainer-clean-host: maybe-maintainer-clean-ppl
2080 maintainer-clean-host: maybe-maintainer-clean-cloog
2081 maintainer-clean-host: maybe-maintainer-clean-libelf
2082 maintainer-clean-host: maybe-maintainer-clean-gold
2083 maintainer-clean-host: maybe-maintainer-clean-gprof
2084 maintainer-clean-host: maybe-maintainer-clean-intl
2085 maintainer-clean-host: maybe-maintainer-clean-tcl
2086 maintainer-clean-host: maybe-maintainer-clean-itcl
2087 maintainer-clean-host: maybe-maintainer-clean-ld
2088 maintainer-clean-host: maybe-maintainer-clean-libcpp
2089 maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2090 maintainer-clean-host: maybe-maintainer-clean-libgui
2091 maintainer-clean-host: maybe-maintainer-clean-libiberty
2092 maintainer-clean-host: maybe-maintainer-clean-libiconv
2093 maintainer-clean-host: maybe-maintainer-clean-m4
2094 maintainer-clean-host: maybe-maintainer-clean-readline
2095 maintainer-clean-host: maybe-maintainer-clean-sid
2096 maintainer-clean-host: maybe-maintainer-clean-sim
2097 maintainer-clean-host: maybe-maintainer-clean-texinfo
2098 maintainer-clean-host: maybe-maintainer-clean-zlib
2099 maintainer-clean-host: maybe-maintainer-clean-gdb
2100 maintainer-clean-host: maybe-maintainer-clean-expect
2101 maintainer-clean-host: maybe-maintainer-clean-guile
2102 maintainer-clean-host: maybe-maintainer-clean-tk
2103 maintainer-clean-host: maybe-maintainer-clean-libtermcap
2104 maintainer-clean-host: maybe-maintainer-clean-utils
2105 maintainer-clean-host: maybe-maintainer-clean-gnattools
2106 maintainer-clean-host: maybe-maintainer-clean-lto-plugin
2107
2108 .PHONY: maintainer-clean-target
2109
2110 maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
2111 maintainer-clean-target: maybe-maintainer-clean-target-libmudflap
2112 maintainer-clean-target: maybe-maintainer-clean-target-libssp
2113 maintainer-clean-target: maybe-maintainer-clean-target-newlib
2114 maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2115 maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
2116 maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2117 maintainer-clean-target: maybe-maintainer-clean-target-libobjc
2118 maintainer-clean-target: maybe-maintainer-clean-target-libgo
2119 maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2120 maintainer-clean-target: maybe-maintainer-clean-target-winsup
2121 maintainer-clean-target: maybe-maintainer-clean-target-libgloss
2122 maintainer-clean-target: maybe-maintainer-clean-target-libffi
2123 maintainer-clean-target: maybe-maintainer-clean-target-libjava
2124 maintainer-clean-target: maybe-maintainer-clean-target-zlib
2125 maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
2126 maintainer-clean-target: maybe-maintainer-clean-target-rda
2127 maintainer-clean-target: maybe-maintainer-clean-target-libada
2128 maintainer-clean-target: maybe-maintainer-clean-target-libgomp
2129 maintainer-clean-target: maybe-maintainer-clean-target-libitm
2130
2131
2132 # Here are the targets which correspond to the do-X targets.
2133
2134 .PHONY: info installcheck dvi pdf html
2135 .PHONY: install-info install-pdf install-html
2136 .PHONY: clean distclean mostlyclean maintainer-clean realclean
2137 .PHONY: local-clean local-distclean local-maintainer-clean
2138 info: do-info
2139 installcheck: do-installcheck
2140 dvi: do-dvi
2141 pdf: do-pdf
2142 html: do-html
2143
2144 # Make sure makeinfo is built before we do a `make info', if we're
2145 # in fact building texinfo.
2146 do-info: maybe-all-texinfo
2147
2148 install-info: do-install-info dir.info
2149         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2150         if [ -f dir.info ] ; then \
2151           $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
2152         else true ; fi
2153
2154 install-pdf: do-install-pdf
2155
2156 install-html: do-install-html
2157
2158 local-clean:
2159         -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2160
2161 local-distclean:
2162         -rm -f Makefile config.status config.cache mh-frag mt-frag
2163         -rm -f maybedep.tmp serdep.tmp
2164         -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2165           rm -rf $(TARGET_SUBDIR); \
2166         else true; fi
2167         -rm -rf $(BUILD_SUBDIR)
2168         -if [ "$(HOST_SUBDIR)" != "." ]; then \
2169           rm -rf $(HOST_SUBDIR); \
2170         else true; fi
2171         -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2172         -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2173         -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2174         -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
2175         -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
2176         -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2177
2178 local-maintainer-clean:
2179         @echo "This command is intended for maintainers to use;"
2180         @echo "it deletes files that may require special tools to rebuild."
2181
2182 clean: do-clean local-clean
2183 mostlyclean: do-mostlyclean local-clean
2184 distclean: do-distclean local-clean local-distclean
2185 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean 
2186 maintainer-clean: local-distclean
2187 realclean: maintainer-clean
2188
2189 # Check target.
2190
2191 .PHONY: check do-check
2192 check: do-check
2193
2194 # Only include modules actually being configured and built.
2195 .PHONY: check-host
2196 check-host:  \
2197     maybe-check-bfd \
2198     maybe-check-opcodes \
2199     maybe-check-binutils \
2200     maybe-check-bison \
2201     maybe-check-cgen \
2202     maybe-check-dejagnu \
2203     maybe-check-etc \
2204     maybe-check-fastjar \
2205     maybe-check-fixincludes \
2206     maybe-check-flex \
2207     maybe-check-gas \
2208     maybe-check-gcc \
2209     maybe-check-gmp \
2210     maybe-check-mpfr \
2211     maybe-check-mpc \
2212     maybe-check-ppl \
2213     maybe-check-cloog \
2214     maybe-check-libelf \
2215     maybe-check-gold \
2216     maybe-check-gprof \
2217     maybe-check-intl \
2218     maybe-check-tcl \
2219     maybe-check-itcl \
2220     maybe-check-ld \
2221     maybe-check-libcpp \
2222     maybe-check-libdecnumber \
2223     maybe-check-libgui \
2224     maybe-check-libiberty \
2225     maybe-check-libiconv \
2226     maybe-check-m4 \
2227     maybe-check-readline \
2228     maybe-check-sid \
2229     maybe-check-sim \
2230     maybe-check-texinfo \
2231     maybe-check-zlib \
2232     maybe-check-gdb \
2233     maybe-check-expect \
2234     maybe-check-guile \
2235     maybe-check-tk \
2236     maybe-check-libtermcap \
2237     maybe-check-utils \
2238     maybe-check-gnattools \
2239     maybe-check-lto-plugin
2240
2241 .PHONY: check-target
2242 check-target:  \
2243     maybe-check-target-libstdc++-v3 \
2244     maybe-check-target-libmudflap \
2245     maybe-check-target-libssp \
2246     maybe-check-target-newlib \
2247     maybe-check-target-libgcc \
2248     maybe-check-target-libquadmath \
2249     maybe-check-target-libgfortran \
2250     maybe-check-target-libobjc \
2251     maybe-check-target-libgo \
2252     maybe-check-target-libtermcap \
2253     maybe-check-target-winsup \
2254     maybe-check-target-libgloss \
2255     maybe-check-target-libffi \
2256     maybe-check-target-libjava \
2257     maybe-check-target-zlib \
2258     maybe-check-target-boehm-gc \
2259     maybe-check-target-rda \
2260     maybe-check-target-libada \
2261     maybe-check-target-libgomp \
2262     maybe-check-target-libitm
2263
2264 do-check:
2265         @: $(MAKE); $(unstage)
2266         @r=`${PWD_COMMAND}`; export r; \
2267         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2268         $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2269
2270 # Automated reporting of test results.
2271
2272 warning.log: build.log
2273         $(srcdir)/contrib/warn_summary build.log > $@
2274
2275 mail-report.log:
2276         if test x'$(BOOT_CFLAGS)' != x''; then \
2277             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2278         fi; \
2279         $(srcdir)/contrib/test_summary -t >$@
2280         chmod +x $@
2281         echo If you really want to send e-mail, run ./$@ now
2282
2283 mail-report-with-warnings.log: warning.log
2284         if test x'$(BOOT_CFLAGS)' != x''; then \
2285             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2286         fi; \
2287         $(srcdir)/contrib/test_summary -t -i warning.log >$@
2288         chmod +x $@
2289         echo If you really want to send e-mail, run ./$@ now
2290
2291 # Installation targets.
2292
2293 .PHONY: install uninstall
2294 install:
2295         @: $(MAKE); $(unstage)
2296         @r=`${PWD_COMMAND}`; export r; \
2297         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2298         $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2299
2300 .PHONY: install-host-nogcc
2301 install-host-nogcc:  \
2302     maybe-install-bfd \
2303     maybe-install-opcodes \
2304     maybe-install-binutils \
2305     maybe-install-bison \
2306     maybe-install-cgen \
2307     maybe-install-dejagnu \
2308     maybe-install-etc \
2309     maybe-install-fastjar \
2310     maybe-install-fixincludes \
2311     maybe-install-flex \
2312     maybe-install-gas \
2313     maybe-install-gmp \
2314     maybe-install-mpfr \
2315     maybe-install-mpc \
2316     maybe-install-ppl \
2317     maybe-install-cloog \
2318     maybe-install-libelf \
2319     maybe-install-gold \
2320     maybe-install-gprof \
2321     maybe-install-intl \
2322     maybe-install-tcl \
2323     maybe-install-itcl \
2324     maybe-install-ld \
2325     maybe-install-libcpp \
2326     maybe-install-libdecnumber \
2327     maybe-install-libgui \
2328     maybe-install-libiberty \
2329     maybe-install-libiconv \
2330     maybe-install-m4 \
2331     maybe-install-readline \
2332     maybe-install-sid \
2333     maybe-install-sim \
2334     maybe-install-texinfo \
2335     maybe-install-zlib \
2336     maybe-install-gdb \
2337     maybe-install-expect \
2338     maybe-install-guile \
2339     maybe-install-tk \
2340     maybe-install-libtermcap \
2341     maybe-install-utils \
2342     maybe-install-gnattools \
2343     maybe-install-lto-plugin
2344
2345 .PHONY: install-host
2346 install-host:  \
2347     maybe-install-bfd \
2348     maybe-install-opcodes \
2349     maybe-install-binutils \
2350     maybe-install-bison \
2351     maybe-install-cgen \
2352     maybe-install-dejagnu \
2353     maybe-install-etc \
2354     maybe-install-fastjar \
2355     maybe-install-fixincludes \
2356     maybe-install-flex \
2357     maybe-install-gas \
2358     maybe-install-gcc \
2359     maybe-install-gmp \
2360     maybe-install-mpfr \
2361     maybe-install-mpc \
2362     maybe-install-ppl \
2363     maybe-install-cloog \
2364     maybe-install-libelf \
2365     maybe-install-gold \
2366     maybe-install-gprof \
2367     maybe-install-intl \
2368     maybe-install-tcl \
2369     maybe-install-itcl \
2370     maybe-install-ld \
2371     maybe-install-libcpp \
2372     maybe-install-libdecnumber \
2373     maybe-install-libgui \
2374     maybe-install-libiberty \
2375     maybe-install-libiconv \
2376     maybe-install-m4 \
2377     maybe-install-readline \
2378     maybe-install-sid \
2379     maybe-install-sim \
2380     maybe-install-texinfo \
2381     maybe-install-zlib \
2382     maybe-install-gdb \
2383     maybe-install-expect \
2384     maybe-install-guile \
2385     maybe-install-tk \
2386     maybe-install-libtermcap \
2387     maybe-install-utils \
2388     maybe-install-gnattools \
2389     maybe-install-lto-plugin
2390
2391 .PHONY: install-target
2392 install-target:  \
2393     maybe-install-target-libstdc++-v3 \
2394     maybe-install-target-libmudflap \
2395     maybe-install-target-libssp \
2396     maybe-install-target-newlib \
2397     maybe-install-target-libgcc \
2398     maybe-install-target-libquadmath \
2399     maybe-install-target-libgfortran \
2400     maybe-install-target-libobjc \
2401     maybe-install-target-libgo \
2402     maybe-install-target-libtermcap \
2403     maybe-install-target-winsup \
2404     maybe-install-target-libgloss \
2405     maybe-install-target-libffi \
2406     maybe-install-target-libjava \
2407     maybe-install-target-zlib \
2408     maybe-install-target-boehm-gc \
2409     maybe-install-target-rda \
2410     maybe-install-target-libada \
2411     maybe-install-target-libgomp \
2412     maybe-install-target-libitm
2413
2414 uninstall:
2415         @echo "the uninstall target is not supported in this tree"
2416
2417 .PHONY: install.all
2418 install.all: install-no-fixedincludes
2419         @if [ -f ./gcc/Makefile ] ; then \
2420                 r=`${PWD_COMMAND}` ; export r ; \
2421                 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2422                 $(HOST_EXPORTS) \
2423                 (cd ./gcc && \
2424                 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2425         else \
2426                 true ; \
2427         fi
2428
2429 # install-no-fixedincludes is used because Cygnus can not distribute
2430 # the fixed header files.
2431 .PHONY: install-no-fixedincludes
2432 install-no-fixedincludes: installdirs install-host-nogcc \
2433         install-target gcc-no-fixedincludes
2434
2435 .PHONY: install-strip
2436 install-strip:
2437         @: $(MAKE); $(unstage)
2438         @r=`${PWD_COMMAND}`; export r; \
2439         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2440         $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2441
2442 .PHONY: install-strip-host
2443 install-strip-host:  \
2444     maybe-install-strip-bfd \
2445     maybe-install-strip-opcodes \
2446     maybe-install-strip-binutils \
2447     maybe-install-strip-bison \
2448     maybe-install-strip-cgen \
2449     maybe-install-strip-dejagnu \
2450     maybe-install-strip-etc \
2451     maybe-install-strip-fastjar \
2452     maybe-install-strip-fixincludes \
2453     maybe-install-strip-flex \
2454     maybe-install-strip-gas \
2455     maybe-install-strip-gcc \
2456     maybe-install-strip-gmp \
2457     maybe-install-strip-mpfr \
2458     maybe-install-strip-mpc \
2459     maybe-install-strip-ppl \
2460     maybe-install-strip-cloog \
2461     maybe-install-strip-libelf \
2462     maybe-install-strip-gold \
2463     maybe-install-strip-gprof \
2464     maybe-install-strip-intl \
2465     maybe-install-strip-tcl \
2466     maybe-install-strip-itcl \
2467     maybe-install-strip-ld \
2468     maybe-install-strip-libcpp \
2469     maybe-install-strip-libdecnumber \
2470     maybe-install-strip-libgui \
2471     maybe-install-strip-libiberty \
2472     maybe-install-strip-libiconv \
2473     maybe-install-strip-m4 \
2474     maybe-install-strip-readline \
2475     maybe-install-strip-sid \
2476     maybe-install-strip-sim \
2477     maybe-install-strip-texinfo \
2478     maybe-install-strip-zlib \
2479     maybe-install-strip-gdb \
2480     maybe-install-strip-expect \
2481     maybe-install-strip-guile \
2482     maybe-install-strip-tk \
2483     maybe-install-strip-libtermcap \
2484     maybe-install-strip-utils \
2485     maybe-install-strip-gnattools \
2486     maybe-install-strip-lto-plugin
2487
2488 .PHONY: install-strip-target
2489 install-strip-target:  \
2490     maybe-install-strip-target-libstdc++-v3 \
2491     maybe-install-strip-target-libmudflap \
2492     maybe-install-strip-target-libssp \
2493     maybe-install-strip-target-newlib \
2494     maybe-install-strip-target-libgcc \
2495     maybe-install-strip-target-libquadmath \
2496     maybe-install-strip-target-libgfortran \
2497     maybe-install-strip-target-libobjc \
2498     maybe-install-strip-target-libgo \
2499     maybe-install-strip-target-libtermcap \
2500     maybe-install-strip-target-winsup \
2501     maybe-install-strip-target-libgloss \
2502     maybe-install-strip-target-libffi \
2503     maybe-install-strip-target-libjava \
2504     maybe-install-strip-target-zlib \
2505     maybe-install-strip-target-boehm-gc \
2506     maybe-install-strip-target-rda \
2507     maybe-install-strip-target-libada \
2508     maybe-install-strip-target-libgomp \
2509     maybe-install-strip-target-libitm
2510
2511
2512 ### other supporting targets
2513
2514 MAKEDIRS= \
2515         $(DESTDIR)$(prefix) \
2516         $(DESTDIR)$(exec_prefix)
2517 .PHONY: installdirs
2518 installdirs: mkinstalldirs
2519         $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2520
2521 dir.info: do-install-info
2522         if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2523           $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2524           mv -f dir.info.new dir.info ; \
2525         else true ; \
2526         fi
2527
2528 dist:
2529         @echo "Building a full distribution of this tree isn't done"
2530         @echo "via 'make dist'.  Check out the etc/ subdirectory" 
2531
2532 etags tags: TAGS
2533
2534 # Right now this just builds TAGS in each subdirectory.  emacs19 has the
2535 # ability to use several tags files at once, so there is probably no need
2536 # to combine them into one big TAGS file (like CVS 1.3 does).  We could
2537 # (if we felt like it) have this Makefile write a piece of elisp which
2538 # the user could load to tell emacs19 where all the TAGS files we just
2539 # built are.
2540 TAGS: do-TAGS
2541
2542 # ------------------------------------
2543 # Macros for configure and all targets
2544 # ------------------------------------
2545
2546
2547
2548
2549
2550 # --------------------------------------
2551 # Modules which run on the build machine
2552 # --------------------------------------
2553
2554
2555 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
2556 maybe-configure-build-libiberty:
2557 @if gcc-bootstrap
2558 configure-build-libiberty: stage_current
2559 @endif gcc-bootstrap
2560 @if build-libiberty
2561 maybe-configure-build-libiberty: configure-build-libiberty
2562 configure-build-libiberty: 
2563         @: $(MAKE); $(unstage)
2564         @r=`${PWD_COMMAND}`; export r; \
2565         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2566         test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2567         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
2568         $(BUILD_EXPORTS)  \
2569         echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2570         cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2571         case $(srcdir) in \
2572           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2573           *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2574                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2575         esac; \
2576         srcdiroption="--srcdir=$${topdir}/libiberty"; \
2577         libsrcdir="$$s/libiberty"; \
2578         rm -f no-such-file || : ; \
2579         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2580           $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2581           --target=${target_alias} $${srcdiroption}  \
2582           || exit 1
2583 @endif build-libiberty
2584
2585
2586
2587
2588
2589 .PHONY: all-build-libiberty maybe-all-build-libiberty
2590 maybe-all-build-libiberty:
2591 @if gcc-bootstrap
2592 all-build-libiberty: stage_current
2593 @endif gcc-bootstrap
2594 @if build-libiberty
2595 TARGET-build-libiberty=all
2596 maybe-all-build-libiberty: all-build-libiberty
2597 all-build-libiberty: configure-build-libiberty
2598         @: $(MAKE); $(unstage)
2599         @r=`${PWD_COMMAND}`; export r; \
2600         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2601         $(BUILD_EXPORTS)  \
2602         (cd $(BUILD_SUBDIR)/libiberty && \
2603           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS)  \
2604                 $(TARGET-build-libiberty))
2605 @endif build-libiberty
2606
2607
2608
2609
2610
2611 .PHONY: configure-build-bison maybe-configure-build-bison
2612 maybe-configure-build-bison:
2613 @if gcc-bootstrap
2614 configure-build-bison: stage_current
2615 @endif gcc-bootstrap
2616 @if build-bison
2617 maybe-configure-build-bison: configure-build-bison
2618 configure-build-bison: 
2619         @: $(MAKE); $(unstage)
2620         @r=`${PWD_COMMAND}`; export r; \
2621         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2622         test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2623         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2624         $(BUILD_EXPORTS)  \
2625         echo Configuring in $(BUILD_SUBDIR)/bison; \
2626         cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2627         case $(srcdir) in \
2628           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2629           *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2630                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2631         esac; \
2632         srcdiroption="--srcdir=$${topdir}/bison"; \
2633         libsrcdir="$$s/bison"; \
2634         rm -f no-such-file || : ; \
2635         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2636           $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2637           --target=${target_alias} $${srcdiroption}  \
2638           || exit 1
2639 @endif build-bison
2640
2641
2642
2643
2644
2645 .PHONY: all-build-bison maybe-all-build-bison
2646 maybe-all-build-bison:
2647 @if gcc-bootstrap
2648 all-build-bison: stage_current
2649 @endif gcc-bootstrap
2650 @if build-bison
2651 TARGET-build-bison=all
2652 maybe-all-build-bison: all-build-bison
2653 all-build-bison: configure-build-bison
2654         @: $(MAKE); $(unstage)
2655         @r=`${PWD_COMMAND}`; export r; \
2656         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2657         $(BUILD_EXPORTS)  \
2658         (cd $(BUILD_SUBDIR)/bison && \
2659           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS)  \
2660                 $(TARGET-build-bison))
2661 @endif build-bison
2662
2663
2664
2665
2666
2667 .PHONY: configure-build-flex maybe-configure-build-flex
2668 maybe-configure-build-flex:
2669 @if gcc-bootstrap
2670 configure-build-flex: stage_current
2671 @endif gcc-bootstrap
2672 @if build-flex
2673 maybe-configure-build-flex: configure-build-flex
2674 configure-build-flex: 
2675         @: $(MAKE); $(unstage)
2676         @r=`${PWD_COMMAND}`; export r; \
2677         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2678         test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2679         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2680         $(BUILD_EXPORTS)  \
2681         echo Configuring in $(BUILD_SUBDIR)/flex; \
2682         cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2683         case $(srcdir) in \
2684           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2685           *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2686                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2687         esac; \
2688         srcdiroption="--srcdir=$${topdir}/flex"; \
2689         libsrcdir="$$s/flex"; \
2690         rm -f no-such-file || : ; \
2691         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2692           $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2693           --target=${target_alias} $${srcdiroption}  \
2694           || exit 1
2695 @endif build-flex
2696
2697
2698
2699
2700
2701 .PHONY: all-build-flex maybe-all-build-flex
2702 maybe-all-build-flex:
2703 @if gcc-bootstrap
2704 all-build-flex: stage_current
2705 @endif gcc-bootstrap
2706 @if build-flex
2707 TARGET-build-flex=all
2708 maybe-all-build-flex: all-build-flex
2709 all-build-flex: configure-build-flex
2710         @: $(MAKE); $(unstage)
2711         @r=`${PWD_COMMAND}`; export r; \
2712         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2713         $(BUILD_EXPORTS)  \
2714         (cd $(BUILD_SUBDIR)/flex && \
2715           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS)  \
2716                 $(TARGET-build-flex))
2717 @endif build-flex
2718
2719
2720
2721
2722
2723 .PHONY: configure-build-m4 maybe-configure-build-m4
2724 maybe-configure-build-m4:
2725 @if gcc-bootstrap
2726 configure-build-m4: stage_current
2727 @endif gcc-bootstrap
2728 @if build-m4
2729 maybe-configure-build-m4: configure-build-m4
2730 configure-build-m4: 
2731         @: $(MAKE); $(unstage)
2732         @r=`${PWD_COMMAND}`; export r; \
2733         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2734         test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2735         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2736         $(BUILD_EXPORTS)  \
2737         echo Configuring in $(BUILD_SUBDIR)/m4; \
2738         cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2739         case $(srcdir) in \
2740           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2741           *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2742                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2743         esac; \
2744         srcdiroption="--srcdir=$${topdir}/m4"; \
2745         libsrcdir="$$s/m4"; \
2746         rm -f no-such-file || : ; \
2747         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2748           $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2749           --target=${target_alias} $${srcdiroption}  \
2750           || exit 1
2751 @endif build-m4
2752
2753
2754
2755
2756
2757 .PHONY: all-build-m4 maybe-all-build-m4
2758 maybe-all-build-m4:
2759 @if gcc-bootstrap
2760 all-build-m4: stage_current
2761 @endif gcc-bootstrap
2762 @if build-m4
2763 TARGET-build-m4=all
2764 maybe-all-build-m4: all-build-m4
2765 all-build-m4: configure-build-m4
2766         @: $(MAKE); $(unstage)
2767         @r=`${PWD_COMMAND}`; export r; \
2768         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2769         $(BUILD_EXPORTS)  \
2770         (cd $(BUILD_SUBDIR)/m4 && \
2771           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS)  \
2772                 $(TARGET-build-m4))
2773 @endif build-m4
2774
2775
2776
2777
2778
2779 .PHONY: configure-build-texinfo maybe-configure-build-texinfo
2780 maybe-configure-build-texinfo:
2781 @if gcc-bootstrap
2782 configure-build-texinfo: stage_current
2783 @endif gcc-bootstrap
2784 @if build-texinfo
2785 maybe-configure-build-texinfo: configure-build-texinfo
2786 configure-build-texinfo: 
2787         @: $(MAKE); $(unstage)
2788         @r=`${PWD_COMMAND}`; export r; \
2789         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2790         test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2791         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2792         $(BUILD_EXPORTS)  \
2793         echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2794         cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2795         case $(srcdir) in \
2796           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2797           *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2798                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2799         esac; \
2800         srcdiroption="--srcdir=$${topdir}/texinfo"; \
2801         libsrcdir="$$s/texinfo"; \
2802         rm -f no-such-file || : ; \
2803         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2804           $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2805           --target=${target_alias} $${srcdiroption}  \
2806           || exit 1
2807 @endif build-texinfo
2808
2809
2810
2811
2812
2813 .PHONY: all-build-texinfo maybe-all-build-texinfo
2814 maybe-all-build-texinfo:
2815 @if gcc-bootstrap
2816 all-build-texinfo: stage_current
2817 @endif gcc-bootstrap
2818 @if build-texinfo
2819 TARGET-build-texinfo=all
2820 maybe-all-build-texinfo: all-build-texinfo
2821 all-build-texinfo: configure-build-texinfo
2822         @: $(MAKE); $(unstage)
2823         @r=`${PWD_COMMAND}`; export r; \
2824         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2825         $(BUILD_EXPORTS)  \
2826         (cd $(BUILD_SUBDIR)/texinfo && \
2827           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS)  \
2828                 $(TARGET-build-texinfo))
2829 @endif build-texinfo
2830
2831
2832
2833
2834
2835 .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2836 maybe-configure-build-fixincludes:
2837 @if gcc-bootstrap
2838 configure-build-fixincludes: stage_current
2839 @endif gcc-bootstrap
2840 @if build-fixincludes
2841 maybe-configure-build-fixincludes: configure-build-fixincludes
2842 configure-build-fixincludes: 
2843         @: $(MAKE); $(unstage)
2844         @r=`${PWD_COMMAND}`; export r; \
2845         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2846         test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2847         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2848         $(BUILD_EXPORTS)  \
2849         echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2850         cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2851         case $(srcdir) in \
2852           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2853           *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2854                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2855         esac; \
2856         srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2857         libsrcdir="$$s/fixincludes"; \
2858         rm -f no-such-file || : ; \
2859         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2860           $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2861           --target=${target_alias} $${srcdiroption}  \
2862           || exit 1
2863 @endif build-fixincludes
2864
2865
2866
2867
2868
2869 .PHONY: all-build-fixincludes maybe-all-build-fixincludes
2870 maybe-all-build-fixincludes:
2871 @if gcc-bootstrap
2872 all-build-fixincludes: stage_current
2873 @endif gcc-bootstrap
2874 @if build-fixincludes
2875 TARGET-build-fixincludes=all
2876 maybe-all-build-fixincludes: all-build-fixincludes
2877 all-build-fixincludes: configure-build-fixincludes
2878         @: $(MAKE); $(unstage)
2879         @r=`${PWD_COMMAND}`; export r; \
2880         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2881         $(BUILD_EXPORTS)  \
2882         (cd $(BUILD_SUBDIR)/fixincludes && \
2883           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS)  \
2884                 $(TARGET-build-fixincludes))
2885 @endif build-fixincludes
2886
2887
2888
2889
2890
2891 # --------------------------------------
2892 # Modules which run on the host machine
2893 # --------------------------------------
2894
2895
2896 .PHONY: configure-bfd maybe-configure-bfd
2897 maybe-configure-bfd:
2898 @if gcc-bootstrap
2899 configure-bfd: stage_current
2900 @endif gcc-bootstrap
2901 @if bfd
2902 maybe-configure-bfd: configure-bfd
2903 configure-bfd: 
2904         @r=`${PWD_COMMAND}`; export r; \
2905         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2906         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
2907         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
2908         $(HOST_EXPORTS)  \
2909         echo Configuring in $(HOST_SUBDIR)/bfd; \
2910         cd "$(HOST_SUBDIR)/bfd" || exit 1; \
2911         case $(srcdir) in \
2912           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2913           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
2914                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2915         esac; \
2916         srcdiroption="--srcdir=$${topdir}/bfd"; \
2917         libsrcdir="$$s/bfd"; \
2918         $(SHELL) $${libsrcdir}/configure \
2919           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
2920           --target=${target_alias} $${srcdiroption}  \
2921           || exit 1
2922 @endif bfd
2923
2924
2925
2926 .PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
2927 maybe-configure-stage1-bfd:
2928 @if bfd-bootstrap
2929 maybe-configure-stage1-bfd: configure-stage1-bfd
2930 configure-stage1-bfd:
2931         @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
2932         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
2933         @r=`${PWD_COMMAND}`; export r; \
2934         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2935         TFLAGS="$(STAGE1_TFLAGS)"; \
2936         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
2937         $(HOST_EXPORTS) \
2938         CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
2939         CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
2940         LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS;  \
2941         echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \
2942         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
2943         cd $(HOST_SUBDIR)/bfd || exit 1; \
2944         case $(srcdir) in \
2945           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2946           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
2947                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2948         esac; \
2949         srcdiroption="--srcdir=$${topdir}/bfd"; \
2950         libsrcdir="$$s/bfd"; \
2951         $(SHELL) $${libsrcdir}/configure \
2952           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
2953           --target=${target_alias} $${srcdiroption} \
2954           $(STAGE1_CONFIGURE_FLAGS)
2955 @endif bfd-bootstrap
2956
2957 .PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
2958 maybe-configure-stage2-bfd:
2959 @if bfd-bootstrap
2960 maybe-configure-stage2-bfd: configure-stage2-bfd
2961 configure-stage2-bfd:
2962         @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
2963         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
2964         @r=`${PWD_COMMAND}`; export r; \
2965         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2966         TFLAGS="$(STAGE2_TFLAGS)"; \
2967         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
2968         $(HOST_EXPORTS) \
2969         $(POSTSTAGE1_HOST_EXPORTS) \
2970         CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
2971         CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
2972         LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS;  \
2973         echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \
2974         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
2975         cd $(HOST_SUBDIR)/bfd || exit 1; \
2976         case $(srcdir) in \
2977           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2978           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
2979                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2980         esac; \
2981         srcdiroption="--srcdir=$${topdir}/bfd"; \
2982         libsrcdir="$$s/bfd"; \
2983         $(SHELL) $${libsrcdir}/configure \
2984           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
2985           --target=${target_alias} $${srcdiroption} \
2986           --with-build-libsubdir=$(HOST_SUBDIR) \
2987           $(STAGE2_CONFIGURE_FLAGS)
2988 @endif bfd-bootstrap
2989
2990 .PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
2991 maybe-configure-stage3-bfd:
2992 @if bfd-bootstrap
2993 maybe-configure-stage3-bfd: configure-stage3-bfd
2994 configure-stage3-bfd:
2995         @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
2996         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
2997         @r=`${PWD_COMMAND}`; export r; \
2998         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2999         TFLAGS="$(STAGE3_TFLAGS)"; \
3000         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3001         $(HOST_EXPORTS) \
3002         $(POSTSTAGE1_HOST_EXPORTS) \
3003         CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3004         CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3005         LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS;  \
3006         echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \
3007         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3008         cd $(HOST_SUBDIR)/bfd || exit 1; \
3009         case $(srcdir) in \
3010           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3011           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3012                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3013         esac; \
3014         srcdiroption="--srcdir=$${topdir}/bfd"; \
3015         libsrcdir="$$s/bfd"; \
3016         $(SHELL) $${libsrcdir}/configure \
3017           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3018           --target=${target_alias} $${srcdiroption} \
3019           --with-build-libsubdir=$(HOST_SUBDIR) \
3020           $(STAGE3_CONFIGURE_FLAGS)
3021 @endif bfd-bootstrap
3022
3023 .PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3024 maybe-configure-stage4-bfd:
3025 @if bfd-bootstrap
3026 maybe-configure-stage4-bfd: configure-stage4-bfd
3027 configure-stage4-bfd:
3028         @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3029         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3030         @r=`${PWD_COMMAND}`; export r; \
3031         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3032         TFLAGS="$(STAGE4_TFLAGS)"; \
3033         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3034         $(HOST_EXPORTS) \
3035         $(POSTSTAGE1_HOST_EXPORTS) \
3036         CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3037         CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3038         LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS;  \
3039         echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \
3040         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3041         cd $(HOST_SUBDIR)/bfd || exit 1; \
3042         case $(srcdir) in \
3043           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3044           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3045                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3046         esac; \
3047         srcdiroption="--srcdir=$${topdir}/bfd"; \
3048         libsrcdir="$$s/bfd"; \
3049         $(SHELL) $${libsrcdir}/configure \
3050           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3051           --target=${target_alias} $${srcdiroption} \
3052           --with-build-libsubdir=$(HOST_SUBDIR) \
3053           $(STAGE4_CONFIGURE_FLAGS)
3054 @endif bfd-bootstrap
3055
3056 .PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3057 maybe-configure-stageprofile-bfd:
3058 @if bfd-bootstrap
3059 maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3060 configure-stageprofile-bfd:
3061         @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3062         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3063         @r=`${PWD_COMMAND}`; export r; \
3064         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3065         TFLAGS="$(STAGEprofile_TFLAGS)"; \
3066         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3067         $(HOST_EXPORTS) \
3068         $(POSTSTAGE1_HOST_EXPORTS) \
3069         CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3070         CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3071         LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS;  \
3072         echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \
3073         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3074         cd $(HOST_SUBDIR)/bfd || exit 1; \
3075         case $(srcdir) in \
3076           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3077           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3078                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3079         esac; \
3080         srcdiroption="--srcdir=$${topdir}/bfd"; \
3081         libsrcdir="$$s/bfd"; \
3082         $(SHELL) $${libsrcdir}/configure \
3083           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3084           --target=${target_alias} $${srcdiroption} \
3085           --with-build-libsubdir=$(HOST_SUBDIR) \
3086           $(STAGEprofile_CONFIGURE_FLAGS)
3087 @endif bfd-bootstrap
3088
3089 .PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3090 maybe-configure-stagefeedback-bfd:
3091 @if bfd-bootstrap
3092 maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3093 configure-stagefeedback-bfd:
3094         @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3095         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3096         @r=`${PWD_COMMAND}`; export r; \
3097         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3098         TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3099         test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3100         $(HOST_EXPORTS) \
3101         $(POSTSTAGE1_HOST_EXPORTS) \
3102         CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3103         CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3104         LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS;  \
3105         echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \
3106         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3107         cd $(HOST_SUBDIR)/bfd || exit 1; \
3108         case $(srcdir) in \
3109           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3110           *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3111                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3112         esac; \
3113         srcdiroption="--srcdir=$${topdir}/bfd"; \
3114         libsrcdir="$$s/bfd"; \
3115         $(SHELL) $${libsrcdir}/configure \
3116           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3117           --target=${target_alias} $${srcdiroption} \
3118           --with-build-libsubdir=$(HOST_SUBDIR) \
3119           $(STAGEfeedback_CONFIGURE_FLAGS)
3120 @endif bfd-bootstrap
3121
3122
3123
3124
3125
3126 .PHONY: all-bfd maybe-all-bfd
3127 maybe-all-bfd:
3128 @if gcc-bootstrap
3129 all-bfd: stage_current
3130 @endif gcc-bootstrap
3131 @if bfd
3132 TARGET-bfd=all
3133 maybe-all-bfd: all-bfd
3134 all-bfd: configure-bfd
3135         @r=`${PWD_COMMAND}`; export r; \
3136         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3137         $(HOST_EXPORTS)  \
3138         (cd $(HOST_SUBDIR)/bfd && \
3139           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)  \
3140                 $(TARGET-bfd))
3141 @endif bfd
3142
3143
3144
3145 .PHONY: all-stage1-bfd maybe-all-stage1-bfd
3146 .PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3147 maybe-all-stage1-bfd:
3148 maybe-clean-stage1-bfd:
3149 @if bfd-bootstrap
3150 maybe-all-stage1-bfd: all-stage1-bfd
3151 all-stage1: all-stage1-bfd
3152 TARGET-stage1-bfd = $(TARGET-bfd)
3153 all-stage1-bfd: configure-stage1-bfd
3154         @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3155         @r=`${PWD_COMMAND}`; export r; \
3156         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3157         TFLAGS="$(STAGE1_TFLAGS)"; \
3158         $(HOST_EXPORTS)  \
3159         cd $(HOST_SUBDIR)/bfd && \
3160         $(MAKE) $(BASE_FLAGS_TO_PASS) \
3161                 CFLAGS="$(STAGE1_CFLAGS)" \
3162                 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3163                 LIBCFLAGS="$(LIBCFLAGS)" \
3164                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3165                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3166                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3167                 $(EXTRA_HOST_FLAGS)   \
3168                 TFLAGS="$(STAGE1_TFLAGS)" \
3169                 $(TARGET-stage1-bfd)
3170
3171 maybe-clean-stage1-bfd: clean-stage1-bfd
3172 clean-stage1: clean-stage1-bfd
3173 clean-stage1-bfd:
3174         @if [ $(current_stage) = stage1 ]; then \
3175           [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3176         else \
3177           [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3178           $(MAKE) stage1-start; \
3179         fi; \
3180         cd $(HOST_SUBDIR)/bfd && \
3181         $(MAKE) $(EXTRA_HOST_FLAGS)  \
3182                  clean
3183 @endif bfd-bootstrap
3184
3185
3186 .PHONY: all-stage2-bfd maybe-all-stage2-bfd
3187 .PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3188 maybe-all-stage2-bfd:
3189 maybe-clean-stage2-bfd:
3190 @if bfd-bootstrap
3191 maybe-all-stage2-bfd: all-stage2-bfd
3192 all-stage2: all-stage2-bfd
3193 TARGET-stage2-bfd = $(TARGET-bfd)
3194 all-stage2-bfd: configure-stage2-bfd
3195         @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3196         @r=`${PWD_COMMAND}`; export r; \
3197         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3198         TFLAGS="$(STAGE2_TFLAGS)"; \
3199         $(HOST_EXPORTS) \
3200         $(POSTSTAGE1_HOST_EXPORTS)  \
3201         cd $(HOST_SUBDIR)/bfd && \
3202         $(MAKE) $(BASE_FLAGS_TO_PASS) \
3203                 CFLAGS="$(STAGE2_CFLAGS)" \
3204                 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3205                 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3206                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3207                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3208                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3209                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
3210                 TFLAGS="$(STAGE2_TFLAGS)" \
3211                 $(TARGET-stage2-bfd)
3212
3213 maybe-clean-stage2-bfd: clean-stage2-bfd
3214 clean-stage2: clean-stage2-bfd
3215 clean-stage2-bfd:
3216         @if [ $(current_stage) = stage2 ]; then \
3217           [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3218         else \
3219           [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3220           $(MAKE) stage2-start; \
3221         fi; \
3222         cd $(HOST_SUBDIR)/bfd && \
3223         $(MAKE) $(EXTRA_HOST_FLAGS)  \
3224                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
3225                  clean
3226 @endif bfd-bootstrap
3227
3228
3229 .PHONY: all-stage3-bfd maybe-all-stage3-bfd
3230 .PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3231 maybe-all-stage3-bfd:
3232 maybe-clean-stage3-bfd:
3233 @if bfd-bootstrap
3234 maybe-all-stage3-bfd: all-stage3-bfd
3235 all-stage3: all-stage3-bfd
3236 TARGET-stage3-bfd = $(TARGET-bfd)
3237 all-stage3-bfd: configure-stage3-bfd
3238         @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3239         @r=`${PWD_COMMAND}`; export r; \
3240         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3241         TFLAGS="$(STAGE3_TFLAGS)"; \
3242         $(HOST_EXPORTS) \
3243         $(POSTSTAGE1_HOST_EXPORTS)  \
3244         cd $(HOST_SUBDIR)/bfd && \
3245         $(MAKE) $(BASE_FLAGS_TO_PASS) \
3246                 CFLAGS="$(STAGE3_CFLAGS)" \
3247                 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3248                 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3249                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3250                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3251                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3252                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
3253                 TFLAGS="$(STAGE3_TFLAGS)" \
3254                 $(TARGET-stage3-bfd)
3255
3256 maybe-clean-stage3-bfd: clean-stage3-bfd
3257 clean-stage3: clean-stage3-bfd
3258 clean-stage3-bfd:
3259         @if [ $(current_stage) = stage3 ]; then \
3260           [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3261         else \
3262           [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3263           $(MAKE) stage3-start; \
3264         fi; \
3265         cd $(HOST_SUBDIR)/bfd && \
3266         $(MAKE) $(EXTRA_HOST_FLAGS)  \
3267                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
3268                  clean
3269 @endif bfd-bootstrap
3270
3271
3272 .PHONY: all-stage4-bfd maybe-all-stage4-bfd
3273 .PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3274 maybe-all-stage4-bfd:
3275 maybe-clean-stage4-bfd:
3276 @if bfd-bootstrap
3277 maybe-all-stage4-bfd: all-stage4-bfd
3278 all-stage4: all-stage4-bfd
3279 TARGET-stage4-bfd = $(TARGET-bfd)
3280 all-stage4-bfd: configure-stage4-bfd
3281         @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3282         @r=`${PWD_COMMAND}`; export r; \
3283         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3284         TFLAGS="$(STAGE4_TFLAGS)"; \
3285         $(HOST_EXPORTS) \
3286         $(POSTSTAGE1_HOST_EXPORTS)  \
3287         cd $(HOST_SUBDIR)/bfd && \
3288         $(MAKE) $(BASE_FLAGS_TO_PASS) \
3289                 CFLAGS="$(STAGE4_CFLAGS)" \
3290                 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3291                 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3292                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3293                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3294                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3295                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
3296                 TFLAGS="$(STAGE4_TFLAGS)" \
3297                 $(TARGET-stage4-bfd)
3298
3299 maybe-clean-stage4-bfd: clean-stage4-bfd
3300 clean-stage4: clean-stage4-bfd
3301 clean-stage4-bfd:
3302         @if [ $(current_stage) = stage4 ]; then \
3303           [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3304         else \
3305           [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3306           $(MAKE) stage4-start; \
3307         fi; \
3308         cd $(HOST_SUBDIR)/bfd && \
3309         $(MAKE) $(EXTRA_HOST_FLAGS)  \
3310                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
3311                  clean
3312 @endif bfd-bootstrap
3313
3314
3315 .PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3316 .PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3317 maybe-all-stageprofile-bfd:
3318 maybe-clean-stageprofile-bfd:
3319 @if bfd-bootstrap
3320 maybe-all-stageprofile-bfd: all-stageprofile-bfd
3321 all-stageprofile: all-stageprofile-bfd
3322 TARGET-stageprofile-bfd = $(TARGET-bfd)
3323 all-stageprofile-bfd: configure-stageprofile-bfd
3324         @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3325         @r=`${PWD_COMMAND}`; export r; \
3326         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3327         TFLAGS="$(STAGEprofile_TFLAGS)"; \
3328         $(HOST_EXPORTS) \
3329         $(POSTSTAGE1_HOST_EXPORTS)  \
3330         cd $(HOST_SUBDIR)/bfd && \
3331         $(MAKE) $(BASE_FLAGS_TO_PASS) \
3332                 CFLAGS="$(STAGEprofile_CFLAGS)" \
3333                 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3334                 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3335                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3336                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3337                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3338                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
3339                 TFLAGS="$(STAGEprofile_TFLAGS)" \
3340                 $(TARGET-stageprofile-bfd)
3341
3342 maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3343 clean-stageprofile: clean-stageprofile-bfd
3344 clean-stageprofile-bfd:
3345         @if [ $(current_stage) = stageprofile ]; then \
3346           [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3347         else \
3348           [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3349           $(MAKE) stageprofile-start; \
3350         fi; \
3351         cd $(HOST_SUBDIR)/bfd && \
3352         $(MAKE) $(EXTRA_HOST_FLAGS)  \
3353                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
3354                  clean
3355 @endif bfd-bootstrap
3356
3357
3358 .PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3359 .PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3360 maybe-all-stagefeedback-bfd:
3361 maybe-clean-stagefeedback-bfd:
3362 @if bfd-bootstrap
3363 maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3364 all-stagefeedback: all-stagefeedback-bfd
3365 TARGET-stagefeedback-bfd = $(TARGET-bfd)
3366 all-stagefeedback-bfd: configure-stagefeedback-bfd
3367         @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3368         @r=`${PWD_COMMAND}`; export r; \
3369         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3370         TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3371         $(HOST_EXPORTS) \
3372         $(POSTSTAGE1_HOST_EXPORTS)  \
3373         cd $(HOST_SUBDIR)/bfd && \
3374         $(MAKE) $(BASE_FLAGS_TO_PASS) \
3375                 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3376                 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3377                 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3378                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3379                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3380                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3381                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
3382                 TFLAGS="$(STAGEfeedback_TFLAGS)" \
3383                 $(TARGET-stagefeedback-bfd)
3384
3385 maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3386 clean-stagefeedback: clean-stagefeedback-bfd
3387 clean-stagefeedback-bfd:
3388         @if [ $(current_stage) = stagefeedback ]; then \
3389           [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3390         else \
3391           [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3392           $(MAKE) stagefeedback-start; \
3393         fi; \
3394         cd $(HOST_SUBDIR)/bfd && \
3395         $(MAKE) $(EXTRA_HOST_FLAGS)  \
3396                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
3397                  clean
3398 @endif bfd-bootstrap
3399
3400
3401
3402
3403
3404 .PHONY: check-bfd maybe-check-bfd
3405 maybe-check-bfd:
3406 @if bfd
3407 maybe-check-bfd: check-bfd
3408
3409 check-bfd:
3410         @: $(MAKE); $(unstage)
3411         @r=`${PWD_COMMAND}`; export r; \
3412         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3413         $(HOST_EXPORTS) \
3414         (cd $(HOST_SUBDIR)/bfd && \
3415           $(MAKE) $(FLAGS_TO_PASS)  check)
3416
3417 @endif bfd
3418
3419 .PHONY: install-bfd maybe-install-bfd
3420 maybe-install-bfd:
3421 @if bfd
3422 maybe-install-bfd: install-bfd
3423
3424 install-bfd: installdirs
3425         @: $(MAKE); $(unstage)
3426         @r=`${PWD_COMMAND}`; export r; \
3427         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3428         $(HOST_EXPORTS) \
3429         (cd $(HOST_SUBDIR)/bfd && \
3430           $(MAKE) $(FLAGS_TO_PASS)  install)
3431
3432 @endif bfd
3433
3434 .PHONY: install-strip-bfd maybe-install-strip-bfd
3435 maybe-install-strip-bfd:
3436 @if bfd
3437 maybe-install-strip-bfd: install-strip-bfd
3438
3439 install-strip-bfd: installdirs
3440         @: $(MAKE); $(unstage)
3441         @r=`${PWD_COMMAND}`; export r; \
3442         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3443         $(HOST_EXPORTS) \
3444         (cd $(HOST_SUBDIR)/bfd && \
3445           $(MAKE) $(FLAGS_TO_PASS)  install-strip)
3446
3447 @endif bfd
3448
3449 # Other targets (info, dvi, pdf, etc.)
3450
3451 .PHONY: maybe-info-bfd info-bfd
3452 maybe-info-bfd:
3453 @if bfd
3454 maybe-info-bfd: info-bfd
3455
3456 info-bfd: \
3457     configure-bfd 
3458         @[ -f ./bfd/Makefile ] || exit 0; \
3459         r=`${PWD_COMMAND}`; export r; \
3460         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3461         $(HOST_EXPORTS) \
3462         for flag in $(EXTRA_HOST_FLAGS) ; do \
3463           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3464         done; \
3465         echo "Doing info in bfd" ; \
3466         (cd $(HOST_SUBDIR)/bfd && \
3467           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3468                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3469                   "RANLIB=$${RANLIB}" \
3470                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3471                   info) \
3472           || exit 1
3473
3474 @endif bfd
3475
3476 .PHONY: maybe-dvi-bfd dvi-bfd
3477 maybe-dvi-bfd:
3478 @if bfd
3479 maybe-dvi-bfd: dvi-bfd
3480
3481 dvi-bfd: \
3482     configure-bfd 
3483         @[ -f ./bfd/Makefile ] || exit 0; \
3484         r=`${PWD_COMMAND}`; export r; \
3485         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3486         $(HOST_EXPORTS) \
3487         for flag in $(EXTRA_HOST_FLAGS) ; do \
3488           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3489         done; \
3490         echo "Doing dvi in bfd" ; \
3491         (cd $(HOST_SUBDIR)/bfd && \
3492           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3493                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3494                   "RANLIB=$${RANLIB}" \
3495                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3496                   dvi) \
3497           || exit 1
3498
3499 @endif bfd
3500
3501 .PHONY: maybe-pdf-bfd pdf-bfd
3502 maybe-pdf-bfd:
3503 @if bfd
3504 maybe-pdf-bfd: pdf-bfd
3505
3506 pdf-bfd: \
3507     configure-bfd 
3508         @[ -f ./bfd/Makefile ] || exit 0; \
3509         r=`${PWD_COMMAND}`; export r; \
3510         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3511         $(HOST_EXPORTS) \
3512         for flag in $(EXTRA_HOST_FLAGS) ; do \
3513           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3514         done; \
3515         echo "Doing pdf in bfd" ; \
3516         (cd $(HOST_SUBDIR)/bfd && \
3517           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3518                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3519                   "RANLIB=$${RANLIB}" \
3520                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3521                   pdf) \
3522           || exit 1
3523
3524 @endif bfd
3525
3526 .PHONY: maybe-html-bfd html-bfd
3527 maybe-html-bfd:
3528 @if bfd
3529 maybe-html-bfd: html-bfd
3530
3531 html-bfd: \
3532     configure-bfd 
3533         @[ -f ./bfd/Makefile ] || exit 0; \
3534         r=`${PWD_COMMAND}`; export r; \
3535         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3536         $(HOST_EXPORTS) \
3537         for flag in $(EXTRA_HOST_FLAGS) ; do \
3538           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3539         done; \
3540         echo "Doing html in bfd" ; \
3541         (cd $(HOST_SUBDIR)/bfd && \
3542           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3543                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3544                   "RANLIB=$${RANLIB}" \
3545                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3546                   html) \
3547           || exit 1
3548
3549 @endif bfd
3550
3551 .PHONY: maybe-TAGS-bfd TAGS-bfd
3552 maybe-TAGS-bfd:
3553 @if bfd
3554 maybe-TAGS-bfd: TAGS-bfd
3555
3556 TAGS-bfd: \
3557     configure-bfd 
3558         @[ -f ./bfd/Makefile ] || exit 0; \
3559         r=`${PWD_COMMAND}`; export r; \
3560         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3561         $(HOST_EXPORTS) \
3562         for flag in $(EXTRA_HOST_FLAGS) ; do \
3563           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3564         done; \
3565         echo "Doing TAGS in bfd" ; \
3566         (cd $(HOST_SUBDIR)/bfd && \
3567           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3568                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3569                   "RANLIB=$${RANLIB}" \
3570                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3571                   TAGS) \
3572           || exit 1
3573
3574 @endif bfd
3575
3576 .PHONY: maybe-install-info-bfd install-info-bfd
3577 maybe-install-info-bfd:
3578 @if bfd
3579 maybe-install-info-bfd: install-info-bfd
3580
3581 install-info-bfd: \
3582     configure-bfd \
3583     info-bfd 
3584         @[ -f ./bfd/Makefile ] || exit 0; \
3585         r=`${PWD_COMMAND}`; export r; \
3586         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3587         $(HOST_EXPORTS) \
3588         for flag in $(EXTRA_HOST_FLAGS) ; do \
3589           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3590         done; \
3591         echo "Doing install-info in bfd" ; \
3592         (cd $(HOST_SUBDIR)/bfd && \
3593           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3594                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3595                   "RANLIB=$${RANLIB}" \
3596                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3597                   install-info) \
3598           || exit 1
3599
3600 @endif bfd
3601
3602 .PHONY: maybe-install-pdf-bfd install-pdf-bfd
3603 maybe-install-pdf-bfd:
3604 @if bfd
3605 maybe-install-pdf-bfd: install-pdf-bfd
3606
3607 install-pdf-bfd: \
3608     configure-bfd \
3609     pdf-bfd 
3610         @[ -f ./bfd/Makefile ] || exit 0; \
3611         r=`${PWD_COMMAND}`; export r; \
3612         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3613         $(HOST_EXPORTS) \
3614         for flag in $(EXTRA_HOST_FLAGS) ; do \
3615           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3616         done; \
3617         echo "Doing install-pdf in bfd" ; \
3618         (cd $(HOST_SUBDIR)/bfd && \
3619           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3620                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3621                   "RANLIB=$${RANLIB}" \
3622                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3623                   install-pdf) \
3624           || exit 1
3625
3626 @endif bfd
3627
3628 .PHONY: maybe-install-html-bfd install-html-bfd
3629 maybe-install-html-bfd:
3630 @if bfd
3631 maybe-install-html-bfd: install-html-bfd
3632
3633 install-html-bfd: \
3634     configure-bfd \
3635     html-bfd 
3636         @[ -f ./bfd/Makefile ] || exit 0; \
3637         r=`${PWD_COMMAND}`; export r; \
3638         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3639         $(HOST_EXPORTS) \
3640         for flag in $(EXTRA_HOST_FLAGS) ; do \
3641           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3642         done; \
3643         echo "Doing install-html in bfd" ; \
3644         (cd $(HOST_SUBDIR)/bfd && \
3645           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3646                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3647                   "RANLIB=$${RANLIB}" \
3648                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3649                   install-html) \
3650           || exit 1
3651
3652 @endif bfd
3653
3654 .PHONY: maybe-installcheck-bfd installcheck-bfd
3655 maybe-installcheck-bfd:
3656 @if bfd
3657 maybe-installcheck-bfd: installcheck-bfd
3658
3659 installcheck-bfd: \
3660     configure-bfd 
3661         @[ -f ./bfd/Makefile ] || exit 0; \
3662         r=`${PWD_COMMAND}`; export r; \
3663         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3664         $(HOST_EXPORTS) \
3665         for flag in $(EXTRA_HOST_FLAGS) ; do \
3666           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3667         done; \
3668         echo "Doing installcheck in bfd" ; \
3669         (cd $(HOST_SUBDIR)/bfd && \
3670           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3671                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3672                   "RANLIB=$${RANLIB}" \
3673                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3674                   installcheck) \
3675           || exit 1
3676
3677 @endif bfd
3678
3679 .PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3680 maybe-mostlyclean-bfd:
3681 @if bfd
3682 maybe-mostlyclean-bfd: mostlyclean-bfd
3683
3684 mostlyclean-bfd: 
3685         @[ -f ./bfd/Makefile ] || exit 0; \
3686         r=`${PWD_COMMAND}`; export r; \
3687         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3688         $(HOST_EXPORTS) \
3689         for flag in $(EXTRA_HOST_FLAGS) ; do \
3690           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3691         done; \
3692         echo "Doing mostlyclean in bfd" ; \
3693         (cd $(HOST_SUBDIR)/bfd && \
3694           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3695                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3696                   "RANLIB=$${RANLIB}" \
3697                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3698                   mostlyclean) \
3699           || exit 1
3700
3701 @endif bfd
3702
3703 .PHONY: maybe-clean-bfd clean-bfd
3704 maybe-clean-bfd:
3705 @if bfd
3706 maybe-clean-bfd: clean-bfd
3707
3708 clean-bfd: 
3709         @[ -f ./bfd/Makefile ] || exit 0; \
3710         r=`${PWD_COMMAND}`; export r; \
3711         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3712         $(HOST_EXPORTS) \
3713         for flag in $(EXTRA_HOST_FLAGS) ; do \
3714           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3715         done; \
3716         echo "Doing clean in bfd" ; \
3717         (cd $(HOST_SUBDIR)/bfd && \
3718           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3719                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3720                   "RANLIB=$${RANLIB}" \
3721                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3722                   clean) \
3723           || exit 1
3724
3725 @endif bfd
3726
3727 .PHONY: maybe-distclean-bfd distclean-bfd
3728 maybe-distclean-bfd:
3729 @if bfd
3730 maybe-distclean-bfd: distclean-bfd
3731
3732 distclean-bfd: 
3733         @[ -f ./bfd/Makefile ] || exit 0; \
3734         r=`${PWD_COMMAND}`; export r; \
3735         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3736         $(HOST_EXPORTS) \
3737         for flag in $(EXTRA_HOST_FLAGS) ; do \
3738           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3739         done; \
3740         echo "Doing distclean in bfd" ; \
3741         (cd $(HOST_SUBDIR)/bfd && \
3742           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3743                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3744                   "RANLIB=$${RANLIB}" \
3745                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3746                   distclean) \
3747           || exit 1
3748
3749 @endif bfd
3750
3751 .PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
3752 maybe-maintainer-clean-bfd:
3753 @if bfd
3754 maybe-maintainer-clean-bfd: maintainer-clean-bfd
3755
3756 maintainer-clean-bfd: 
3757         @[ -f ./bfd/Makefile ] || exit 0; \
3758         r=`${PWD_COMMAND}`; export r; \
3759         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3760         $(HOST_EXPORTS) \
3761         for flag in $(EXTRA_HOST_FLAGS) ; do \
3762           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3763         done; \
3764         echo "Doing maintainer-clean in bfd" ; \
3765         (cd $(HOST_SUBDIR)/bfd && \
3766           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3767                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3768                   "RANLIB=$${RANLIB}" \
3769                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
3770                   maintainer-clean) \
3771           || exit 1
3772
3773 @endif bfd
3774
3775
3776
3777 .PHONY: configure-opcodes maybe-configure-opcodes
3778 maybe-configure-opcodes:
3779 @if gcc-bootstrap
3780 configure-opcodes: stage_current
3781 @endif gcc-bootstrap
3782 @if opcodes
3783 maybe-configure-opcodes: configure-opcodes
3784 configure-opcodes: 
3785         @r=`${PWD_COMMAND}`; export r; \
3786         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3787         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3788         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3789         $(HOST_EXPORTS)  \
3790         echo Configuring in $(HOST_SUBDIR)/opcodes; \
3791         cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
3792         case $(srcdir) in \
3793           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3794           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3795                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3796         esac; \
3797         srcdiroption="--srcdir=$${topdir}/opcodes"; \
3798         libsrcdir="$$s/opcodes"; \
3799         $(SHELL) $${libsrcdir}/configure \
3800           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3801           --target=${target_alias} $${srcdiroption}  \
3802           || exit 1
3803 @endif opcodes
3804
3805
3806
3807 .PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
3808 maybe-configure-stage1-opcodes:
3809 @if opcodes-bootstrap
3810 maybe-configure-stage1-opcodes: configure-stage1-opcodes
3811 configure-stage1-opcodes:
3812         @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3813         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
3814         @r=`${PWD_COMMAND}`; export r; \
3815         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3816         TFLAGS="$(STAGE1_TFLAGS)"; \
3817         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3818         $(HOST_EXPORTS) \
3819         CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3820         CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3821         LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS;  \
3822         echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes ; \
3823         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3824         cd $(HOST_SUBDIR)/opcodes || exit 1; \
3825         case $(srcdir) in \
3826           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3827           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3828                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3829         esac; \
3830         srcdiroption="--srcdir=$${topdir}/opcodes"; \
3831         libsrcdir="$$s/opcodes"; \
3832         $(SHELL) $${libsrcdir}/configure \
3833           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3834           --target=${target_alias} $${srcdiroption} \
3835           $(STAGE1_CONFIGURE_FLAGS)
3836 @endif opcodes-bootstrap
3837
3838 .PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
3839 maybe-configure-stage2-opcodes:
3840 @if opcodes-bootstrap
3841 maybe-configure-stage2-opcodes: configure-stage2-opcodes
3842 configure-stage2-opcodes:
3843         @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3844         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
3845         @r=`${PWD_COMMAND}`; export r; \
3846         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3847         TFLAGS="$(STAGE2_TFLAGS)"; \
3848         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3849         $(HOST_EXPORTS) \
3850         $(POSTSTAGE1_HOST_EXPORTS) \
3851         CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3852         CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3853         LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS;  \
3854         echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes ; \
3855         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3856         cd $(HOST_SUBDIR)/opcodes || exit 1; \
3857         case $(srcdir) in \
3858           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3859           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3860                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3861         esac; \
3862         srcdiroption="--srcdir=$${topdir}/opcodes"; \
3863         libsrcdir="$$s/opcodes"; \
3864         $(SHELL) $${libsrcdir}/configure \
3865           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3866           --target=${target_alias} $${srcdiroption} \
3867           --with-build-libsubdir=$(HOST_SUBDIR) \
3868           $(STAGE2_CONFIGURE_FLAGS)
3869 @endif opcodes-bootstrap
3870
3871 .PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
3872 maybe-configure-stage3-opcodes:
3873 @if opcodes-bootstrap
3874 maybe-configure-stage3-opcodes: configure-stage3-opcodes
3875 configure-stage3-opcodes:
3876         @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3877         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
3878         @r=`${PWD_COMMAND}`; export r; \
3879         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3880         TFLAGS="$(STAGE3_TFLAGS)"; \
3881         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3882         $(HOST_EXPORTS) \
3883         $(POSTSTAGE1_HOST_EXPORTS) \
3884         CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3885         CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3886         LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS;  \
3887         echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes ; \
3888         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3889         cd $(HOST_SUBDIR)/opcodes || exit 1; \
3890         case $(srcdir) in \
3891           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3892           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3893                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3894         esac; \
3895         srcdiroption="--srcdir=$${topdir}/opcodes"; \
3896         libsrcdir="$$s/opcodes"; \
3897         $(SHELL) $${libsrcdir}/configure \
3898           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3899           --target=${target_alias} $${srcdiroption} \
3900           --with-build-libsubdir=$(HOST_SUBDIR) \
3901           $(STAGE3_CONFIGURE_FLAGS)
3902 @endif opcodes-bootstrap
3903
3904 .PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
3905 maybe-configure-stage4-opcodes:
3906 @if opcodes-bootstrap
3907 maybe-configure-stage4-opcodes: configure-stage4-opcodes
3908 configure-stage4-opcodes:
3909         @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3910         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
3911         @r=`${PWD_COMMAND}`; export r; \
3912         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3913         TFLAGS="$(STAGE4_TFLAGS)"; \
3914         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3915         $(HOST_EXPORTS) \
3916         $(POSTSTAGE1_HOST_EXPORTS) \
3917         CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3918         CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3919         LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS;  \
3920         echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes ; \
3921         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3922         cd $(HOST_SUBDIR)/opcodes || exit 1; \
3923         case $(srcdir) in \
3924           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3925           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3926                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3927         esac; \
3928         srcdiroption="--srcdir=$${topdir}/opcodes"; \
3929         libsrcdir="$$s/opcodes"; \
3930         $(SHELL) $${libsrcdir}/configure \
3931           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3932           --target=${target_alias} $${srcdiroption} \
3933           --with-build-libsubdir=$(HOST_SUBDIR) \
3934           $(STAGE4_CONFIGURE_FLAGS)
3935 @endif opcodes-bootstrap
3936
3937 .PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
3938 maybe-configure-stageprofile-opcodes:
3939 @if opcodes-bootstrap
3940 maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
3941 configure-stageprofile-opcodes:
3942         @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3943         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
3944         @r=`${PWD_COMMAND}`; export r; \
3945         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3946         TFLAGS="$(STAGEprofile_TFLAGS)"; \
3947         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3948         $(HOST_EXPORTS) \
3949         $(POSTSTAGE1_HOST_EXPORTS) \
3950         CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3951         CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3952         LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS;  \
3953         echo Configuring stage profile in $(HOST_SUBDIR)/opcodes ; \
3954         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3955         cd $(HOST_SUBDIR)/opcodes || exit 1; \
3956         case $(srcdir) in \
3957           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3958           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3959                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3960         esac; \
3961         srcdiroption="--srcdir=$${topdir}/opcodes"; \
3962         libsrcdir="$$s/opcodes"; \
3963         $(SHELL) $${libsrcdir}/configure \
3964           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3965           --target=${target_alias} $${srcdiroption} \
3966           --with-build-libsubdir=$(HOST_SUBDIR) \
3967           $(STAGEprofile_CONFIGURE_FLAGS)
3968 @endif opcodes-bootstrap
3969
3970 .PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
3971 maybe-configure-stagefeedback-opcodes:
3972 @if opcodes-bootstrap
3973 maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
3974 configure-stagefeedback-opcodes:
3975         @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3976         @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
3977         @r=`${PWD_COMMAND}`; export r; \
3978         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3979         TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3980         test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3981         $(HOST_EXPORTS) \
3982         $(POSTSTAGE1_HOST_EXPORTS) \
3983         CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3984         CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3985         LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS;  \
3986         echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes ; \
3987         $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3988         cd $(HOST_SUBDIR)/opcodes || exit 1; \
3989         case $(srcdir) in \
3990           /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3991           *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3992                 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3993         esac; \
3994         srcdiroption="--srcdir=$${topdir}/opcodes"; \
3995         libsrcdir="$$s/opcodes"; \
3996         $(SHELL) $${libsrcdir}/configure \
3997           $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3998           --target=${target_alias} $${srcdiroption} \
3999           --with-build-libsubdir=$(HOST_SUBDIR) \
4000           $(STAGEfeedback_CONFIGURE_FLAGS)
4001 @endif opcodes-bootstrap
4002
4003
4004
4005
4006
4007 .PHONY: all-opcodes maybe-all-opcodes
4008 maybe-all-opcodes:
4009 @if gcc-bootstrap
4010 all-opcodes: stage_current
4011 @endif gcc-bootstrap
4012 @if opcodes
4013 TARGET-opcodes=all
4014 maybe-all-opcodes: all-opcodes
4015 all-opcodes: configure-opcodes
4016         @r=`${PWD_COMMAND}`; export r; \
4017         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4018         $(HOST_EXPORTS)  \
4019         (cd $(HOST_SUBDIR)/opcodes && \
4020           $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)  \
4021                 $(TARGET-opcodes))
4022 @endif opcodes
4023
4024
4025
4026 .PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4027 .PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4028 maybe-all-stage1-opcodes:
4029 maybe-clean-stage1-opcodes:
4030 @if opcodes-bootstrap
4031 maybe-all-stage1-opcodes: all-stage1-opcodes
4032 all-stage1: all-stage1-opcodes
4033 TARGET-stage1-opcodes = $(TARGET-opcodes)
4034 all-stage1-opcodes: configure-stage1-opcodes
4035         @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4036         @r=`${PWD_COMMAND}`; export r; \
4037         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4038         TFLAGS="$(STAGE1_TFLAGS)"; \
4039         $(HOST_EXPORTS)  \
4040         cd $(HOST_SUBDIR)/opcodes && \
4041         $(MAKE) $(BASE_FLAGS_TO_PASS) \
4042                 CFLAGS="$(STAGE1_CFLAGS)" \
4043                 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4044                 LIBCFLAGS="$(LIBCFLAGS)" \
4045                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4046                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4047                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4048                 $(EXTRA_HOST_FLAGS)   \
4049                 TFLAGS="$(STAGE1_TFLAGS)" \
4050                 $(TARGET-stage1-opcodes)
4051
4052 maybe-clean-stage1-opcodes: clean-stage1-opcodes
4053 clean-stage1: clean-stage1-opcodes
4054 clean-stage1-opcodes:
4055         @if [ $(current_stage) = stage1 ]; then \
4056           [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4057         else \
4058           [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4059           $(MAKE) stage1-start; \
4060         fi; \
4061         cd $(HOST_SUBDIR)/opcodes && \
4062         $(MAKE) $(EXTRA_HOST_FLAGS)  \
4063                  clean
4064 @endif opcodes-bootstrap
4065
4066
4067 .PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4068 .PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4069 maybe-all-stage2-opcodes:
4070 maybe-clean-stage2-opcodes:
4071 @if opcodes-bootstrap
4072 maybe-all-stage2-opcodes: all-stage2-opcodes
4073 all-stage2: all-stage2-opcodes
4074 TARGET-stage2-opcodes = $(TARGET-opcodes)
4075 all-stage2-opcodes: configure-stage2-opcodes
4076         @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4077         @r=`${PWD_COMMAND}`; export r; \
4078         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4079         TFLAGS="$(STAGE2_TFLAGS)"; \
4080         $(HOST_EXPORTS) \
4081         $(POSTSTAGE1_HOST_EXPORTS)  \
4082         cd $(HOST_SUBDIR)/opcodes && \
4083         $(MAKE) $(BASE_FLAGS_TO_PASS) \
4084                 CFLAGS="$(STAGE2_CFLAGS)" \
4085                 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4086                 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4087                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4088                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4089                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4090                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
4091                 TFLAGS="$(STAGE2_TFLAGS)" \
4092                 $(TARGET-stage2-opcodes)
4093
4094 maybe-clean-stage2-opcodes: clean-stage2-opcodes
4095 clean-stage2: clean-stage2-opcodes
4096 clean-stage2-opcodes:
4097         @if [ $(current_stage) = stage2 ]; then \
4098           [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4099         else \
4100           [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4101           $(MAKE) stage2-start; \
4102         fi; \
4103         cd $(HOST_SUBDIR)/opcodes && \
4104         $(MAKE) $(EXTRA_HOST_FLAGS)  \
4105                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
4106                  clean
4107 @endif opcodes-bootstrap
4108
4109
4110 .PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4111 .PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4112 maybe-all-stage3-opcodes:
4113 maybe-clean-stage3-opcodes:
4114 @if opcodes-bootstrap
4115 maybe-all-stage3-opcodes: all-stage3-opcodes
4116 all-stage3: all-stage3-opcodes
4117 TARGET-stage3-opcodes = $(TARGET-opcodes)
4118 all-stage3-opcodes: configure-stage3-opcodes
4119         @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4120         @r=`${PWD_COMMAND}`; export r; \
4121         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4122         TFLAGS="$(STAGE3_TFLAGS)"; \
4123         $(HOST_EXPORTS) \
4124         $(POSTSTAGE1_HOST_EXPORTS)  \
4125         cd $(HOST_SUBDIR)/opcodes && \
4126         $(MAKE) $(BASE_FLAGS_TO_PASS) \
4127                 CFLAGS="$(STAGE3_CFLAGS)" \
4128                 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4129                 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4130                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4131                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4132                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4133                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
4134                 TFLAGS="$(STAGE3_TFLAGS)" \
4135                 $(TARGET-stage3-opcodes)
4136
4137 maybe-clean-stage3-opcodes: clean-stage3-opcodes
4138 clean-stage3: clean-stage3-opcodes
4139 clean-stage3-opcodes:
4140         @if [ $(current_stage) = stage3 ]; then \
4141           [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4142         else \
4143           [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4144           $(MAKE) stage3-start; \
4145         fi; \
4146         cd $(HOST_SUBDIR)/opcodes && \
4147         $(MAKE) $(EXTRA_HOST_FLAGS)  \
4148                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
4149                  clean
4150 @endif opcodes-bootstrap
4151
4152
4153 .PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4154 .PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4155 maybe-all-stage4-opcodes:
4156 maybe-clean-stage4-opcodes:
4157 @if opcodes-bootstrap
4158 maybe-all-stage4-opcodes: all-stage4-opcodes
4159 all-stage4: all-stage4-opcodes
4160 TARGET-stage4-opcodes = $(TARGET-opcodes)
4161 all-stage4-opcodes: configure-stage4-opcodes
4162         @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4163         @r=`${PWD_COMMAND}`; export r; \
4164         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4165         TFLAGS="$(STAGE4_TFLAGS)"; \
4166         $(HOST_EXPORTS) \
4167         $(POSTSTAGE1_HOST_EXPORTS)  \
4168         cd $(HOST_SUBDIR)/opcodes && \
4169         $(MAKE) $(BASE_FLAGS_TO_PASS) \
4170                 CFLAGS="$(STAGE4_CFLAGS)" \
4171                 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4172                 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4173                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4174                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4175                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4176                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
4177                 TFLAGS="$(STAGE4_TFLAGS)" \
4178                 $(TARGET-stage4-opcodes)
4179
4180 maybe-clean-stage4-opcodes: clean-stage4-opcodes
4181 clean-stage4: clean-stage4-opcodes
4182 clean-stage4-opcodes:
4183         @if [ $(current_stage) = stage4 ]; then \
4184           [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4185         else \
4186           [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4187           $(MAKE) stage4-start; \
4188         fi; \
4189         cd $(HOST_SUBDIR)/opcodes && \
4190         $(MAKE) $(EXTRA_HOST_FLAGS)  \
4191                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
4192                  clean
4193 @endif opcodes-bootstrap
4194
4195
4196 .PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4197 .PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4198 maybe-all-stageprofile-opcodes:
4199 maybe-clean-stageprofile-opcodes:
4200 @if opcodes-bootstrap
4201 maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4202 all-stageprofile: all-stageprofile-opcodes
4203 TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4204 all-stageprofile-opcodes: configure-stageprofile-opcodes
4205         @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4206         @r=`${PWD_COMMAND}`; export r; \
4207         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4208         TFLAGS="$(STAGEprofile_TFLAGS)"; \
4209         $(HOST_EXPORTS) \
4210         $(POSTSTAGE1_HOST_EXPORTS)  \
4211         cd $(HOST_SUBDIR)/opcodes && \
4212         $(MAKE) $(BASE_FLAGS_TO_PASS) \
4213                 CFLAGS="$(STAGEprofile_CFLAGS)" \
4214                 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4215                 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4216                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4217                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4218                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4219                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
4220                 TFLAGS="$(STAGEprofile_TFLAGS)" \
4221                 $(TARGET-stageprofile-opcodes)
4222
4223 maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4224 clean-stageprofile: clean-stageprofile-opcodes
4225 clean-stageprofile-opcodes:
4226         @if [ $(current_stage) = stageprofile ]; then \
4227           [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4228         else \
4229           [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4230           $(MAKE) stageprofile-start; \
4231         fi; \
4232         cd $(HOST_SUBDIR)/opcodes && \
4233         $(MAKE) $(EXTRA_HOST_FLAGS)  \
4234                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
4235                  clean
4236 @endif opcodes-bootstrap
4237
4238
4239 .PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4240 .PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4241 maybe-all-stagefeedback-opcodes:
4242 maybe-clean-stagefeedback-opcodes:
4243 @if opcodes-bootstrap
4244 maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4245 all-stagefeedback: all-stagefeedback-opcodes
4246 TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4247 all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4248         @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4249         @r=`${PWD_COMMAND}`; export r; \
4250         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4251         TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4252         $(HOST_EXPORTS) \
4253         $(POSTSTAGE1_HOST_EXPORTS)  \
4254         cd $(HOST_SUBDIR)/opcodes && \
4255         $(MAKE) $(BASE_FLAGS_TO_PASS) \
4256                 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4257                 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4258                 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4259                 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4260                 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4261                 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4262                 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)  \
4263                 TFLAGS="$(STAGEfeedback_TFLAGS)" \
4264                 $(TARGET-stagefeedback-opcodes)
4265
4266 maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4267 clean-stagefeedback: clean-stagefeedback-opcodes
4268 clean-stagefeedback-opcodes:
4269         @if [ $(current_stage) = stagefeedback ]; then \
4270           [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4271         else \
4272           [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4273           $(MAKE) stagefeedback-start; \
4274         fi; \
4275         cd $(HOST_SUBDIR)/opcodes && \
4276         $(MAKE) $(EXTRA_HOST_FLAGS)  \
4277                 $(POSTSTAGE1_FLAGS_TO_PASS)  \
4278                  clean
4279 @endif opcodes-bootstrap
4280
4281
4282
4283
4284
4285 .PHONY: check-opcodes maybe-check-opcodes
4286 maybe-check-opcodes:
4287 @if opcodes
4288 maybe-check-opcodes: check-opcodes
4289
4290 check-opcodes:
4291         @: $(MAKE); $(unstage)
4292         @r=`${PWD_COMMAND}`; export r; \
4293         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4294         $(HOST_EXPORTS) \
4295         (cd $(HOST_SUBDIR)/opcodes && \
4296           $(MAKE) $(FLAGS_TO_PASS)  check)
4297
4298 @endif opcodes
4299
4300 .PHONY: install-opcodes maybe-install-opcodes
4301 maybe-install-opcodes:
4302 @if opcodes
4303 maybe-install-opcodes: install-opcodes
4304
4305 install-opcodes: installdirs
4306         @: $(MAKE); $(unstage)
4307         @r=`${PWD_COMMAND}`; export r; \
4308         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4309         $(HOST_EXPORTS) \
4310         (cd $(HOST_SUBDIR)/opcodes && \
4311           $(MAKE) $(FLAGS_TO_PASS)  install)
4312
4313 @endif opcodes
4314
4315 .PHONY: install-strip-opcodes maybe-install-strip-opcodes
4316 maybe-install-strip-opcodes:
4317 @if opcodes
4318 maybe-install-strip-opcodes: install-strip-opcodes
4319
4320 install-strip-opcodes: installdirs
4321         @: $(MAKE); $(unstage)
4322         @r=`${PWD_COMMAND}`; export r; \
4323         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4324         $(HOST_EXPORTS) \
4325         (cd $(HOST_SUBDIR)/opcodes && \
4326           $(MAKE) $(FLAGS_TO_PASS)  install-strip)
4327
4328 @endif opcodes
4329
4330 # Other targets (info, dvi, pdf, etc.)
4331
4332 .PHONY: maybe-info-opcodes info-opcodes
4333 maybe-info-opcodes:
4334 @if opcodes
4335 maybe-info-opcodes: info-opcodes
4336
4337 info-opcodes: \
4338     configure-opcodes 
4339         @[ -f ./opcodes/Makefile ] || exit 0; \
4340         r=`${PWD_COMMAND}`; export r; \
4341         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4342         $(HOST_EXPORTS) \
4343         for flag in $(EXTRA_HOST_FLAGS) ; do \
4344           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4345         done; \
4346         echo "Doing info in opcodes" ; \
4347         (cd $(HOST_SUBDIR)/opcodes && \
4348           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4349                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4350                   "RANLIB=$${RANLIB}" \
4351                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4352                   info) \
4353           || exit 1
4354
4355 @endif opcodes
4356
4357 .PHONY: maybe-dvi-opcodes dvi-opcodes
4358 maybe-dvi-opcodes:
4359 @if opcodes
4360 maybe-dvi-opcodes: dvi-opcodes
4361
4362 dvi-opcodes: \
4363     configure-opcodes 
4364         @[ -f ./opcodes/Makefile ] || exit 0; \
4365         r=`${PWD_COMMAND}`; export r; \
4366         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4367         $(HOST_EXPORTS) \
4368         for flag in $(EXTRA_HOST_FLAGS) ; do \
4369           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4370         done; \
4371         echo "Doing dvi in opcodes" ; \
4372         (cd $(HOST_SUBDIR)/opcodes && \
4373           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4374                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4375                   "RANLIB=$${RANLIB}" \
4376                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4377                   dvi) \
4378           || exit 1
4379
4380 @endif opcodes
4381