OSDN Git Service

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