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