OSDN Git Service

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