OSDN Git Service

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