OSDN Git Service

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