OSDN Git Service

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