OSDN Git Service

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