OSDN Git Service

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