OSDN Git Service

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