OSDN Git Service

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