OSDN Git Service

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