OSDN Git Service

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