OSDN Git Service

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