OSDN Git Service

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