OSDN Git Service

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