OSDN Git Service

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