OSDN Git Service

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