OSDN Git Service

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