OSDN Git Service

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