OSDN Git Service

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