OSDN Git Service

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