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