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