2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
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
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.
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.
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.
23 # -------------------------------
24 # Standard Autoconf-set variables
25 # -------------------------------
28 build_alias=@build_alias@
30 host_alias=@host_alias@
32 target_alias=@target_alias@
35 program_transform_name = @program_transform_name@
38 exec_prefix = @exec_prefix@
44 libexecdir = @libexecdir@
46 sysconfdir = @sysconfdir@
47 sharedstatedir = @sharedstatedir@
48 localstatedir = @localstatedir@
50 includedir = @includedir@
51 oldincludedir = @oldincludedir@
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
65 INSTALL_PROGRAM = @INSTALL_PROGRAM@
66 INSTALL_SCRIPT = @INSTALL_SCRIPT@
67 INSTALL_DATA = @INSTALL_DATA@
71 # -------------------------------------------------
72 # Miscellaneous non-standard autoconf-set variables
73 # -------------------------------------------------
75 # The file containing GCC's version number.
76 gcc_version_trigger = @gcc_version_trigger@
77 gcc_version = @gcc_version@
79 # The gcc driver likes to know the arguments it was configured with.
80 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
82 gxx_include_dir = @gxx_include_dir@
83 libstdcxx_incdir = @libstdcxx_incdir@
86 build_tooldir = @build_tooldir@
88 # Directory in which the compiler finds executables, libraries, etc.
89 libsubdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)
92 # This is the name of the environment variable used for the path to
94 RPATH_ENVVAR = @RPATH_ENVVAR@
96 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
98 SET_LIB_PATH = @SET_LIB_PATH@
100 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
101 # Some platforms don't like blank entries, so we remove duplicate,
102 # leading and trailing colons.
103 REALLY_SET_LIB_PATH = \
104 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
106 # This is the list of directories to be built for the build system.
107 BUILD_CONFIGDIRS = libiberty
108 # Build programs are put under this directory.
109 BUILD_SUBDIR = @build_subdir@
110 # This is set by the configure script to the arguments to use when configuring
111 # directories built for the build system.
112 BUILD_CONFIGARGS = @build_configargs@
114 # This is the list of variables to export in the environment when
115 # configuring any subdirectory. It must also be exported whenever
116 # recursing into a build directory in case that directory's Makefile
119 FLEX="$(FLEX)"; export FLEX; \
120 LEX="$(LEX)"; export LEX; \
121 BISON="$(BISON)"; export BISON; \
122 YACC="$(YACC)"; export YACC; \
123 M4="$(M4)"; export M4; \
124 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
126 # This is the list of variables to export in the environment when
127 # configuring subdirectories for the build system.
130 AR="$(AR_FOR_BUILD)"; export AR; \
131 AS="$(AS_FOR_BUILD)"; export AS; \
132 CC="$(CC_FOR_BUILD)"; export CC; \
133 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
134 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
135 CXX="$(CXX_FOR_BUILD)"; export CXX; \
136 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
137 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
138 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
139 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
140 LD="$(LD_FOR_BUILD)"; export LD; \
141 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
142 NM="$(NM_FOR_BUILD)"; export NM; \
143 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
144 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
146 # This is the list of directories to built for the host system.
147 SUBDIRS = @configdirs@
148 # This is set by the configure script to the arguments to use when configuring
149 # directories built for the host system.
150 HOST_CONFIGARGS = @host_configargs@
151 # This is the list of variables to export in the environment when
152 # configuring subdirectories for the host system.
155 CC="$(CC)"; export CC; \
156 CFLAGS="$(CFLAGS)"; export CFLAGS; \
157 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
158 CXX="$(CXX)"; export CXX; \
159 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
160 AR="$(AR)"; export AR; \
161 AS="$(AS)"; export AS; \
162 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
163 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
164 LD="$(LD)"; export LD; \
165 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
166 NM="$(NM)"; export NM; \
167 RANLIB="$(RANLIB)"; export RANLIB; \
168 WINDRES="$(WINDRES)"; export WINDRES; \
169 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
170 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
171 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
172 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
173 GMPINC="$(HOST_GMPINC)"; export GMPINC;
175 # Similar, for later GCC stages.
176 STAGE_HOST_EXPORTS = \
178 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
179 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC_FOR_BUILD;
181 # This is set by the configure script to the list of directories which
182 # should be built using the target tools.
183 TARGET_CONFIGDIRS = @target_configdirs@
184 # Target libraries are put under this directory:
185 TARGET_SUBDIR = @target_subdir@
186 # This is set by the configure script to the arguments to use when configuring
187 # directories built for the target.
188 TARGET_CONFIGARGS = @target_configargs@
189 # This is the list of variables to export in the environment when
190 # configuring subdirectories for the host system.
191 BASE_TARGET_EXPORTS = \
193 AR="$(AR_FOR_TARGET)"; export AR; \
194 AS="$(AS_FOR_TARGET)"; export AS; \
195 CC="$(CC_FOR_TARGET)"; export CC; \
196 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
197 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
198 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
199 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
200 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
201 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
202 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
203 LD="$(LD_FOR_TARGET)"; export LD; \
204 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
205 NM="$(NM_FOR_TARGET)"; export NM; \
206 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
207 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES;
209 RAW_CXX_TARGET_EXPORTS = \
210 $(BASE_TARGET_EXPORTS) \
211 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
212 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
214 NORMAL_TARGET_EXPORTS = \
215 $(BASE_TARGET_EXPORTS) \
216 CXX="$(CXX_FOR_TARGET)"; export CXX;
219 HOST_GMPLIBS = @gmplibs@
220 HOST_GMPINC = @gmpinc@
222 # ----------------------------------------------
223 # Programs producing files for the BUILD machine
224 # ----------------------------------------------
226 SHELL = @config_shell@
228 # pwd command to use. Allow user to override default by setting PWDCMD in
229 # the environment to account for automounters. The make variable must not
230 # be called PWDCMD, otherwise the value set here is passed to make
231 # subprocesses and overrides the setting from the user's environment.
232 # Don't use PWD since it is a common shell environment variable and we
233 # don't want to corrupt it.
234 PWD_COMMAND = $${PWDCMD-pwd}
236 # compilers to use to create programs which must be run in the build
238 CC_FOR_BUILD = @CC_FOR_BUILD@
239 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
241 CXX_FOR_BUILD = $(CXX)
243 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
244 # here so that they can be overridden by Makefile fragments.
245 BUILD_PREFIX = @BUILD_PREFIX@
246 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
248 # Flags to pass to stage2 and later makes. They are defined
249 # here so that they can be overridden by Makefile fragments.
252 CONFIGURED_BISON = @CONFIGURED_BISON@
253 BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
254 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \
256 echo ${CONFIGURED_BISON} ; \
259 CONFIGURED_YACC = @CONFIGURED_YACC@
260 YACC = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
261 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison -y ; \
262 elif [ -f $$r/$(BUILD_SUBDIR)/byacc/byacc ] ; then \
263 echo $$r/$(BUILD_SUBDIR)/byacc/byacc ; \
265 echo ${CONFIGURED_YACC} ; \
268 CONFIGURED_FLEX = @CONFIGURED_FLEX@
269 FLEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
270 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
271 else echo ${CONFIGURED_FLEX} ; fi`
273 CONFIGURED_LEX = @CONFIGURED_LEX@
274 LEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
275 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
276 else echo ${CONFIGURED_LEX} ; fi`
278 CONFIGURED_M4 = @CONFIGURED_M4@
279 M4 = `if [ -f $$r/$(BUILD_SUBDIR)/m4/m4 ] ; \
280 then echo $$r/$(BUILD_SUBDIR)/m4/m4 ; \
281 else echo ${CONFIGURED_M4} ; fi`
283 # For an installed makeinfo, we require it to be from texinfo 4.2 or
284 # higher, else we use the "missing" dummy. We also pass the subdirectory
285 # makeinfo even if only the Makefile is there, because Texinfo builds its
286 # manual when made, and it requires its own version.
287 CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@
288 MAKEINFO = `if [ -f $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/Makefile ] ; \
289 then echo $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo ; \
290 else if (${CONFIGURED_MAKEINFO} --version \
291 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
292 then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
294 # This just becomes part of the MAKEINFO definition passed down to
295 # sub-makes. It lets flags be given on the command line while still
296 # using the makeinfo from the object tree.
297 # (Default to avoid splitting info files by setting the threshold high.)
298 MAKEINFOFLAGS = --split-size=5000000
300 EXPECT = `if [ -f $$r/expect/expect ] ; \
301 then echo $$r/expect/expect ; \
302 else echo expect ; fi`
304 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
305 then echo $$s/dejagnu/runtest ; \
306 else echo runtest ; fi`
308 # ---------------------------------------------
309 # Programs producing files for the HOST machine
310 # ---------------------------------------------
312 # This is the list of directories that may be needed in RPATH_ENVVAR
313 # so that programs built for the host machine work.
314 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
323 LIBCFLAGS = $(CFLAGS)
326 CXXFLAGS = @CXXFLAGS@
327 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
342 # -----------------------------------------------
343 # Programs producing files for the TARGET machine
344 # -----------------------------------------------
346 # This is the list of directories that may be needed in RPATH_ENVVAR
347 # so that prorgams built for the target machine work.
348 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libmudflap/.libs
350 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
352 AR_FOR_TARGET=@AR_FOR_TARGET@
353 CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
354 USUAL_AR_FOR_TARGET = ` \
355 if [ -f $$r/binutils/ar ] ; then \
356 echo $$r/binutils/ar ; \
358 if [ '$(host)' = '$(target)' ] ; then \
361 echo $(CONFIGURED_AR_FOR_TARGET) ; \
365 AS_FOR_TARGET=@AS_FOR_TARGET@
366 CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
367 USUAL_AS_FOR_TARGET = ` \
368 if [ -f $$r/gas/as-new ] ; then \
369 echo $$r/gas/as-new ; \
370 elif [ -f $$r/gcc/xgcc ]; then \
371 $(CC_FOR_TARGET) -print-prog-name=as ; \
373 if [ '$(host)' = '$(target)' ] ; then \
376 echo $(CONFIGURED_AS_FOR_TARGET) ; \
380 CC_FOR_TARGET = @CC_FOR_TARGET@
381 # During gcc bootstrap, if we use some random cc for stage1 then
382 # CFLAGS will be just -g. We want to ensure that TARGET libraries
383 # (which we know are built with gcc) are built with optimizations so
384 # prepend -O2 when setting CFLAGS_FOR_TARGET.
385 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
386 # If GCC_FOR_TARGET is not overriden on the command line, then this
387 # variable is passed down to the gcc Makefile, where it is used to
388 # build libgcc2.a. We define it here so that it can itself be
389 # overridden on the command line.
390 GCC_FOR_TARGET=@GCC_FOR_TARGET@
391 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
392 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
394 CXX_FOR_TARGET = @CXX_FOR_TARGET@
395 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
396 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
397 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
398 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
399 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
401 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
402 CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
403 USUAL_DLLTOOL_FOR_TARGET = ` \
404 if [ -f $$r/binutils/dlltool ] ; then \
405 echo $$r/binutils/dlltool ; \
407 if [ '$(host)' = '$(target)' ] ; then \
410 echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
414 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
415 GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
417 LD_FOR_TARGET=@LD_FOR_TARGET@
418 CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
419 USUAL_LD_FOR_TARGET = ` \
420 if [ -f $$r/ld/ld-new ] ; then \
421 echo $$r/ld/ld-new ; \
422 elif [ -f $$r/gcc/xgcc ]; then \
423 $(CC_FOR_TARGET) -print-prog-name=ld ; \
425 if [ '$(host)' = '$(target)' ] ; then \
428 echo $(CONFIGURED_LD_FOR_TARGET) ; \
434 NM_FOR_TARGET=@NM_FOR_TARGET@
435 CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
436 USUAL_NM_FOR_TARGET = ` \
437 if [ -f $$r/binutils/nm-new ] ; then \
438 echo $$r/binutils/nm-new ; \
439 elif [ -f $$r/gcc/xgcc ]; then \
440 $(CC_FOR_TARGET) -print-prog-name=nm ; \
442 if [ '$(host)' = '$(target)' ] ; then \
445 echo $(CONFIGURED_NM_FOR_TARGET) ; \
449 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
450 CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
451 USUAL_RANLIB_FOR_TARGET = ` \
452 if [ -f $$r/binutils/ranlib ] ; then \
453 echo $$r/binutils/ranlib ; \
455 if [ '$(host)' = '$(target)' ] ; then \
456 if [ x'$(RANLIB)' != x ]; then \
462 echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
466 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
467 CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
468 USUAL_WINDRES_FOR_TARGET = ` \
469 if [ -f $$r/binutils/windres ] ; then \
470 echo $$r/binutils/windres ; \
472 if [ '$(host)' = '$(target)' ] ; then \
475 echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
481 # ------------------------------------
482 # Miscellaneous targets and flag lists
483 # ------------------------------------
485 # The first rule in the file had better be this one. Don't put any above it.
486 # This lives here to allow makefile fragments to contain dependencies.
489 #### host and target specific makefile fragments come in here.
490 @target_makefile_frag@
496 # Flags to pass down to all sub-makes.
497 BASE_FLAGS_TO_PASS = \
498 "DESTDIR=$(DESTDIR)" \
499 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
500 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
502 "datadir=$(datadir)" \
503 "exec_prefix=$(exec_prefix)" \
504 "includedir=$(includedir)" \
505 "infodir=$(infodir)" \
507 "libexecdir=$(libexecdir)" \
508 "lispdir=$(lispdir)" \
509 "libstdcxx_incdir=$(libstdcxx_incdir)" \
510 "libsubdir=$(libsubdir)" \
511 "localstatedir=$(localstatedir)" \
513 "oldincludedir=$(oldincludedir)" \
515 "sbindir=$(sbindir)" \
516 "sharedstatedir=$(sharedstatedir)" \
517 "sysconfdir=$(sysconfdir)" \
518 "tooldir=$(tooldir)" \
519 "build_tooldir=$(build_tooldir)" \
520 "gxx_include_dir=$(gxx_include_dir)" \
521 "gcc_version=$(gcc_version)" \
522 "gcc_version_trigger=$(gcc_version_trigger)" \
523 "target_alias=$(target_alias)" \
525 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
526 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
529 "INSTALL=$(INSTALL)" \
530 "INSTALL_DATA=$(INSTALL_DATA)" \
531 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
532 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
536 "RUNTEST=$(RUNTEST)" \
537 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
540 "AR_FLAGS=$(AR_FLAGS)" \
542 "CXXFLAGS=$(CXXFLAGS)" \
543 "LDFLAGS=$(LDFLAGS)" \
544 "LIBCFLAGS=$(LIBCFLAGS)" \
545 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
546 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
547 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
548 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
549 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
550 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
551 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
552 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
553 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
554 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
555 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
556 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
557 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
558 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
559 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
560 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
561 "CONFIG_SHELL=$(SHELL)" \
562 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
564 # For any flags above that may contain shell code that varies from one
565 # target library to another. When doing recursive invocations of the
566 # top-level Makefile, we don't want the outer make to evaluate them,
567 # so we pass these variables down unchanged. They must not contain
568 # single nor double quotes.
570 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
571 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
573 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS)
575 # Flags to pass down to most sub-makes, in which we're building with
576 # the host environment.
582 'DLLTOOL=$(DLLTOOL)' \
588 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
590 # Flags that are concerned with the location of the X11 include files
593 # NOTE: until the top-level is getting the values via autoconf, it only
594 # causes problems to have this top-level Makefile overriding the autoconf-set
595 # values in child directories. Only variables that don't conflict with
596 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
598 X11_FLAGS_TO_PASS = \
599 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
600 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
602 # Flags to pass down to makes which are built with the target environment.
603 # The double $ decreases the length of the command line; the variables
604 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
605 EXTRA_TARGET_FLAGS = \
606 'AR=$$(AR_FOR_TARGET)' \
607 'AS=$$(AS_FOR_TARGET)' \
608 'CC=$$(CC_FOR_TARGET)' \
609 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
610 'CXX=$$(CXX_FOR_TARGET)' \
611 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
612 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
613 'LD=$$(LD_FOR_TARGET)' \
614 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
615 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
616 'NM=$$(NM_FOR_TARGET)' \
617 'RANLIB=$$(RANLIB_FOR_TARGET)' \
618 'WINDRES=$$(WINDRES_FOR_TARGET)'
620 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
622 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
623 # unfortunately needs the native compiler and the target ar and
625 # If any variables are added here, they must be added to do-*, below.
626 # The BUILD_* variables are a special case, which are used for the gcc
627 # cross-building scheme.
629 'BUILD_PREFIX=$(BUILD_PREFIX)' \
630 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
631 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
632 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
633 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
634 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
635 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
636 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
637 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
638 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
639 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
640 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
641 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
643 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
645 .PHONY: configure-host
647 maybe-configure-ash \
648 maybe-configure-autoconf \
649 maybe-configure-automake \
650 maybe-configure-bash \
651 maybe-configure-bfd \
652 maybe-configure-opcodes \
653 maybe-configure-binutils \
654 maybe-configure-bison \
655 maybe-configure-byacc \
656 maybe-configure-bzip2 \
657 maybe-configure-dejagnu \
658 maybe-configure-diff \
659 maybe-configure-dosutils \
660 maybe-configure-etc \
661 maybe-configure-fastjar \
662 maybe-configure-fileutils \
663 maybe-configure-findutils \
664 maybe-configure-find \
665 maybe-configure-flex \
666 maybe-configure-gas \
667 maybe-configure-gcc \
668 maybe-configure-gawk \
669 maybe-configure-gettext \
670 maybe-configure-gnuserv \
671 maybe-configure-gprof \
672 maybe-configure-gzip \
673 maybe-configure-hello \
674 maybe-configure-indent \
675 maybe-configure-intl \
676 maybe-configure-tcl \
677 maybe-configure-itcl \
679 maybe-configure-libcpp \
680 maybe-configure-libgui \
681 maybe-configure-libiberty \
682 maybe-configure-libtool \
684 maybe-configure-make \
685 maybe-configure-mmalloc \
686 maybe-configure-patch \
687 maybe-configure-perl \
688 maybe-configure-prms \
689 maybe-configure-rcs \
690 maybe-configure-readline \
691 maybe-configure-release \
692 maybe-configure-recode \
693 maybe-configure-sed \
694 maybe-configure-send-pr \
695 maybe-configure-shellutils \
696 maybe-configure-sid \
697 maybe-configure-sim \
698 maybe-configure-tar \
699 maybe-configure-texinfo \
700 maybe-configure-textutils \
701 maybe-configure-time \
702 maybe-configure-uudecode \
703 maybe-configure-wdiff \
704 maybe-configure-zip \
705 maybe-configure-zlib \
706 maybe-configure-gdb \
707 maybe-configure-expect \
708 maybe-configure-guile \
710 maybe-configure-libtermcap \
711 maybe-configure-utils
712 .PHONY: configure-target
714 maybe-configure-target-libstdc++-v3 \
715 maybe-configure-target-libmudflap \
716 maybe-configure-target-newlib \
717 maybe-configure-target-libgfortran \
718 maybe-configure-target-libobjc \
719 maybe-configure-target-libtermcap \
720 maybe-configure-target-winsup \
721 maybe-configure-target-libgloss \
722 maybe-configure-target-libiberty \
723 maybe-configure-target-gperf \
724 maybe-configure-target-examples \
725 maybe-configure-target-libffi \
726 maybe-configure-target-libjava \
727 maybe-configure-target-zlib \
728 maybe-configure-target-boehm-gc \
729 maybe-configure-target-qthreads \
730 maybe-configure-target-rda \
731 maybe-configure-target-libada
733 # The target built for a native non-bootstrap build.
735 all: unstage all-host all-target stage
739 maybe-all-build-libiberty \
740 maybe-all-build-bison \
741 maybe-all-build-byacc \
742 maybe-all-build-flex \
744 maybe-all-build-texinfo \
745 maybe-all-build-fixincludes
763 maybe-all-fileutils \
764 maybe-all-findutils \
782 maybe-all-libiberty \
796 maybe-all-shellutils \
801 maybe-all-textutils \
811 maybe-all-libtermcap \
815 maybe-all-target-libstdc++-v3 \
816 maybe-all-target-libmudflap \
817 maybe-all-target-newlib \
818 maybe-all-target-libgfortran \
819 maybe-all-target-libobjc \
820 maybe-all-target-libtermcap \
821 maybe-all-target-winsup \
822 maybe-all-target-libgloss \
823 maybe-all-target-libiberty \
824 maybe-all-target-gperf \
825 maybe-all-target-examples \
826 maybe-all-target-libffi \
827 maybe-all-target-libjava \
828 maybe-all-target-zlib \
829 maybe-all-target-boehm-gc \
830 maybe-all-target-qthreads \
831 maybe-all-target-rda \
832 maybe-all-target-libada
834 # Do a target for all the subdirectories. A ``make do-X'' will do a
835 # ``make X'' in all subdirectories (because, in general, there is a
836 # dependency (below) of X upon do-X, a ``make X'' will also do this,
837 # but it may do additional work as well).
840 do-info: unstage info-host info-target stage
845 maybe-info-autoconf \
846 maybe-info-automake \
850 maybe-info-binutils \
856 maybe-info-dosutils \
859 maybe-info-fileutils \
860 maybe-info-findutils \
878 maybe-info-libiberty \
887 maybe-info-readline \
892 maybe-info-shellutils \
897 maybe-info-textutils \
899 maybe-info-uudecode \
907 maybe-info-libtermcap \
912 maybe-info-target-libstdc++-v3 \
913 maybe-info-target-libmudflap \
914 maybe-info-target-newlib \
915 maybe-info-target-libgfortran \
916 maybe-info-target-libobjc \
917 maybe-info-target-libtermcap \
918 maybe-info-target-winsup \
919 maybe-info-target-libgloss \
920 maybe-info-target-libiberty \
921 maybe-info-target-gperf \
922 maybe-info-target-examples \
923 maybe-info-target-libffi \
924 maybe-info-target-libjava \
925 maybe-info-target-zlib \
926 maybe-info-target-boehm-gc \
927 maybe-info-target-qthreads \
928 maybe-info-target-rda \
929 maybe-info-target-libada
932 do-dvi: unstage dvi-host dvi-target stage
951 maybe-dvi-fileutils \
952 maybe-dvi-findutils \
970 maybe-dvi-libiberty \
984 maybe-dvi-shellutils \
989 maybe-dvi-textutils \
999 maybe-dvi-libtermcap \
1004 maybe-dvi-target-libstdc++-v3 \
1005 maybe-dvi-target-libmudflap \
1006 maybe-dvi-target-newlib \
1007 maybe-dvi-target-libgfortran \
1008 maybe-dvi-target-libobjc \
1009 maybe-dvi-target-libtermcap \
1010 maybe-dvi-target-winsup \
1011 maybe-dvi-target-libgloss \
1012 maybe-dvi-target-libiberty \
1013 maybe-dvi-target-gperf \
1014 maybe-dvi-target-examples \
1015 maybe-dvi-target-libffi \
1016 maybe-dvi-target-libjava \
1017 maybe-dvi-target-zlib \
1018 maybe-dvi-target-boehm-gc \
1019 maybe-dvi-target-qthreads \
1020 maybe-dvi-target-rda \
1021 maybe-dvi-target-libada
1024 do-TAGS: unstage TAGS-host TAGS-target stage
1029 maybe-TAGS-autoconf \
1030 maybe-TAGS-automake \
1033 maybe-TAGS-opcodes \
1034 maybe-TAGS-binutils \
1038 maybe-TAGS-dejagnu \
1040 maybe-TAGS-dosutils \
1042 maybe-TAGS-fastjar \
1043 maybe-TAGS-fileutils \
1044 maybe-TAGS-findutils \
1050 maybe-TAGS-gettext \
1051 maybe-TAGS-gnuserv \
1062 maybe-TAGS-libiberty \
1063 maybe-TAGS-libtool \
1066 maybe-TAGS-mmalloc \
1071 maybe-TAGS-readline \
1072 maybe-TAGS-release \
1075 maybe-TAGS-send-pr \
1076 maybe-TAGS-shellutils \
1080 maybe-TAGS-texinfo \
1081 maybe-TAGS-textutils \
1083 maybe-TAGS-uudecode \
1091 maybe-TAGS-libtermcap \
1096 maybe-TAGS-target-libstdc++-v3 \
1097 maybe-TAGS-target-libmudflap \
1098 maybe-TAGS-target-newlib \
1099 maybe-TAGS-target-libgfortran \
1100 maybe-TAGS-target-libobjc \
1101 maybe-TAGS-target-libtermcap \
1102 maybe-TAGS-target-winsup \
1103 maybe-TAGS-target-libgloss \
1104 maybe-TAGS-target-libiberty \
1105 maybe-TAGS-target-gperf \
1106 maybe-TAGS-target-examples \
1107 maybe-TAGS-target-libffi \
1108 maybe-TAGS-target-libjava \
1109 maybe-TAGS-target-zlib \
1110 maybe-TAGS-target-boehm-gc \
1111 maybe-TAGS-target-qthreads \
1112 maybe-TAGS-target-rda \
1113 maybe-TAGS-target-libada
1115 .PHONY: do-install-info
1116 do-install-info: unstage install-info-host install-info-target stage
1118 .PHONY: install-info-host
1119 install-info-host: \
1120 maybe-install-info-ash \
1121 maybe-install-info-autoconf \
1122 maybe-install-info-automake \
1123 maybe-install-info-bash \
1124 maybe-install-info-bfd \
1125 maybe-install-info-opcodes \
1126 maybe-install-info-binutils \
1127 maybe-install-info-bison \
1128 maybe-install-info-byacc \
1129 maybe-install-info-bzip2 \
1130 maybe-install-info-dejagnu \
1131 maybe-install-info-diff \
1132 maybe-install-info-dosutils \
1133 maybe-install-info-etc \
1134 maybe-install-info-fastjar \
1135 maybe-install-info-fileutils \
1136 maybe-install-info-findutils \
1137 maybe-install-info-find \
1138 maybe-install-info-flex \
1139 maybe-install-info-gas \
1140 maybe-install-info-gcc \
1141 maybe-install-info-gawk \
1142 maybe-install-info-gettext \
1143 maybe-install-info-gnuserv \
1144 maybe-install-info-gprof \
1145 maybe-install-info-gzip \
1146 maybe-install-info-hello \
1147 maybe-install-info-indent \
1148 maybe-install-info-intl \
1149 maybe-install-info-tcl \
1150 maybe-install-info-itcl \
1151 maybe-install-info-ld \
1152 maybe-install-info-libcpp \
1153 maybe-install-info-libgui \
1154 maybe-install-info-libiberty \
1155 maybe-install-info-libtool \
1156 maybe-install-info-m4 \
1157 maybe-install-info-make \
1158 maybe-install-info-mmalloc \
1159 maybe-install-info-patch \
1160 maybe-install-info-perl \
1161 maybe-install-info-prms \
1162 maybe-install-info-rcs \
1163 maybe-install-info-readline \
1164 maybe-install-info-release \
1165 maybe-install-info-recode \
1166 maybe-install-info-sed \
1167 maybe-install-info-send-pr \
1168 maybe-install-info-shellutils \
1169 maybe-install-info-sid \
1170 maybe-install-info-sim \
1171 maybe-install-info-tar \
1172 maybe-install-info-texinfo \
1173 maybe-install-info-textutils \
1174 maybe-install-info-time \
1175 maybe-install-info-uudecode \
1176 maybe-install-info-wdiff \
1177 maybe-install-info-zip \
1178 maybe-install-info-zlib \
1179 maybe-install-info-gdb \
1180 maybe-install-info-expect \
1181 maybe-install-info-guile \
1182 maybe-install-info-tk \
1183 maybe-install-info-libtermcap \
1184 maybe-install-info-utils
1186 .PHONY: install-info-target
1187 install-info-target: \
1188 maybe-install-info-target-libstdc++-v3 \
1189 maybe-install-info-target-libmudflap \
1190 maybe-install-info-target-newlib \
1191 maybe-install-info-target-libgfortran \
1192 maybe-install-info-target-libobjc \
1193 maybe-install-info-target-libtermcap \
1194 maybe-install-info-target-winsup \
1195 maybe-install-info-target-libgloss \
1196 maybe-install-info-target-libiberty \
1197 maybe-install-info-target-gperf \
1198 maybe-install-info-target-examples \
1199 maybe-install-info-target-libffi \
1200 maybe-install-info-target-libjava \
1201 maybe-install-info-target-zlib \
1202 maybe-install-info-target-boehm-gc \
1203 maybe-install-info-target-qthreads \
1204 maybe-install-info-target-rda \
1205 maybe-install-info-target-libada
1207 .PHONY: do-installcheck
1208 do-installcheck: unstage installcheck-host installcheck-target stage
1210 .PHONY: installcheck-host
1211 installcheck-host: \
1212 maybe-installcheck-ash \
1213 maybe-installcheck-autoconf \
1214 maybe-installcheck-automake \
1215 maybe-installcheck-bash \
1216 maybe-installcheck-bfd \
1217 maybe-installcheck-opcodes \
1218 maybe-installcheck-binutils \
1219 maybe-installcheck-bison \
1220 maybe-installcheck-byacc \
1221 maybe-installcheck-bzip2 \
1222 maybe-installcheck-dejagnu \
1223 maybe-installcheck-diff \
1224 maybe-installcheck-dosutils \
1225 maybe-installcheck-etc \
1226 maybe-installcheck-fastjar \
1227 maybe-installcheck-fileutils \
1228 maybe-installcheck-findutils \
1229 maybe-installcheck-find \
1230 maybe-installcheck-flex \
1231 maybe-installcheck-gas \
1232 maybe-installcheck-gcc \
1233 maybe-installcheck-gawk \
1234 maybe-installcheck-gettext \
1235 maybe-installcheck-gnuserv \
1236 maybe-installcheck-gprof \
1237 maybe-installcheck-gzip \
1238 maybe-installcheck-hello \
1239 maybe-installcheck-indent \
1240 maybe-installcheck-intl \
1241 maybe-installcheck-tcl \
1242 maybe-installcheck-itcl \
1243 maybe-installcheck-ld \
1244 maybe-installcheck-libcpp \
1245 maybe-installcheck-libgui \
1246 maybe-installcheck-libiberty \
1247 maybe-installcheck-libtool \
1248 maybe-installcheck-m4 \
1249 maybe-installcheck-make \
1250 maybe-installcheck-mmalloc \
1251 maybe-installcheck-patch \
1252 maybe-installcheck-perl \
1253 maybe-installcheck-prms \
1254 maybe-installcheck-rcs \
1255 maybe-installcheck-readline \
1256 maybe-installcheck-release \
1257 maybe-installcheck-recode \
1258 maybe-installcheck-sed \
1259 maybe-installcheck-send-pr \
1260 maybe-installcheck-shellutils \
1261 maybe-installcheck-sid \
1262 maybe-installcheck-sim \
1263 maybe-installcheck-tar \
1264 maybe-installcheck-texinfo \
1265 maybe-installcheck-textutils \
1266 maybe-installcheck-time \
1267 maybe-installcheck-uudecode \
1268 maybe-installcheck-wdiff \
1269 maybe-installcheck-zip \
1270 maybe-installcheck-zlib \
1271 maybe-installcheck-gdb \
1272 maybe-installcheck-expect \
1273 maybe-installcheck-guile \
1274 maybe-installcheck-tk \
1275 maybe-installcheck-libtermcap \
1276 maybe-installcheck-utils
1278 .PHONY: installcheck-target
1279 installcheck-target: \
1280 maybe-installcheck-target-libstdc++-v3 \
1281 maybe-installcheck-target-libmudflap \
1282 maybe-installcheck-target-newlib \
1283 maybe-installcheck-target-libgfortran \
1284 maybe-installcheck-target-libobjc \
1285 maybe-installcheck-target-libtermcap \
1286 maybe-installcheck-target-winsup \
1287 maybe-installcheck-target-libgloss \
1288 maybe-installcheck-target-libiberty \
1289 maybe-installcheck-target-gperf \
1290 maybe-installcheck-target-examples \
1291 maybe-installcheck-target-libffi \
1292 maybe-installcheck-target-libjava \
1293 maybe-installcheck-target-zlib \
1294 maybe-installcheck-target-boehm-gc \
1295 maybe-installcheck-target-qthreads \
1296 maybe-installcheck-target-rda \
1297 maybe-installcheck-target-libada
1299 .PHONY: do-mostlyclean
1300 do-mostlyclean: unstage mostlyclean-host mostlyclean-target stage
1302 .PHONY: mostlyclean-host
1304 maybe-mostlyclean-ash \
1305 maybe-mostlyclean-autoconf \
1306 maybe-mostlyclean-automake \
1307 maybe-mostlyclean-bash \
1308 maybe-mostlyclean-bfd \
1309 maybe-mostlyclean-opcodes \
1310 maybe-mostlyclean-binutils \
1311 maybe-mostlyclean-bison \
1312 maybe-mostlyclean-byacc \
1313 maybe-mostlyclean-bzip2 \
1314 maybe-mostlyclean-dejagnu \
1315 maybe-mostlyclean-diff \
1316 maybe-mostlyclean-dosutils \
1317 maybe-mostlyclean-etc \
1318 maybe-mostlyclean-fastjar \
1319 maybe-mostlyclean-fileutils \
1320 maybe-mostlyclean-findutils \
1321 maybe-mostlyclean-find \
1322 maybe-mostlyclean-flex \
1323 maybe-mostlyclean-gas \
1324 maybe-mostlyclean-gcc \
1325 maybe-mostlyclean-gawk \
1326 maybe-mostlyclean-gettext \
1327 maybe-mostlyclean-gnuserv \
1328 maybe-mostlyclean-gprof \
1329 maybe-mostlyclean-gzip \
1330 maybe-mostlyclean-hello \
1331 maybe-mostlyclean-indent \
1332 maybe-mostlyclean-intl \
1333 maybe-mostlyclean-tcl \
1334 maybe-mostlyclean-itcl \
1335 maybe-mostlyclean-ld \
1336 maybe-mostlyclean-libcpp \
1337 maybe-mostlyclean-libgui \
1338 maybe-mostlyclean-libiberty \
1339 maybe-mostlyclean-libtool \
1340 maybe-mostlyclean-m4 \
1341 maybe-mostlyclean-make \
1342 maybe-mostlyclean-mmalloc \
1343 maybe-mostlyclean-patch \
1344 maybe-mostlyclean-perl \
1345 maybe-mostlyclean-prms \
1346 maybe-mostlyclean-rcs \
1347 maybe-mostlyclean-readline \
1348 maybe-mostlyclean-release \
1349 maybe-mostlyclean-recode \
1350 maybe-mostlyclean-sed \
1351 maybe-mostlyclean-send-pr \
1352 maybe-mostlyclean-shellutils \
1353 maybe-mostlyclean-sid \
1354 maybe-mostlyclean-sim \
1355 maybe-mostlyclean-tar \
1356 maybe-mostlyclean-texinfo \
1357 maybe-mostlyclean-textutils \
1358 maybe-mostlyclean-time \
1359 maybe-mostlyclean-uudecode \
1360 maybe-mostlyclean-wdiff \
1361 maybe-mostlyclean-zip \
1362 maybe-mostlyclean-zlib \
1363 maybe-mostlyclean-gdb \
1364 maybe-mostlyclean-expect \
1365 maybe-mostlyclean-guile \
1366 maybe-mostlyclean-tk \
1367 maybe-mostlyclean-libtermcap \
1368 maybe-mostlyclean-utils
1370 .PHONY: mostlyclean-target
1371 mostlyclean-target: \
1372 maybe-mostlyclean-target-libstdc++-v3 \
1373 maybe-mostlyclean-target-libmudflap \
1374 maybe-mostlyclean-target-newlib \
1375 maybe-mostlyclean-target-libgfortran \
1376 maybe-mostlyclean-target-libobjc \
1377 maybe-mostlyclean-target-libtermcap \
1378 maybe-mostlyclean-target-winsup \
1379 maybe-mostlyclean-target-libgloss \
1380 maybe-mostlyclean-target-libiberty \
1381 maybe-mostlyclean-target-gperf \
1382 maybe-mostlyclean-target-examples \
1383 maybe-mostlyclean-target-libffi \
1384 maybe-mostlyclean-target-libjava \
1385 maybe-mostlyclean-target-zlib \
1386 maybe-mostlyclean-target-boehm-gc \
1387 maybe-mostlyclean-target-qthreads \
1388 maybe-mostlyclean-target-rda \
1389 maybe-mostlyclean-target-libada
1392 do-clean: unstage clean-host clean-target stage
1397 maybe-clean-autoconf \
1398 maybe-clean-automake \
1401 maybe-clean-opcodes \
1402 maybe-clean-binutils \
1406 maybe-clean-dejagnu \
1408 maybe-clean-dosutils \
1410 maybe-clean-fastjar \
1411 maybe-clean-fileutils \
1412 maybe-clean-findutils \
1418 maybe-clean-gettext \
1419 maybe-clean-gnuserv \
1423 maybe-clean-indent \
1428 maybe-clean-libcpp \
1429 maybe-clean-libgui \
1430 maybe-clean-libiberty \
1431 maybe-clean-libtool \
1434 maybe-clean-mmalloc \
1439 maybe-clean-readline \
1440 maybe-clean-release \
1441 maybe-clean-recode \
1443 maybe-clean-send-pr \
1444 maybe-clean-shellutils \
1448 maybe-clean-texinfo \
1449 maybe-clean-textutils \
1451 maybe-clean-uudecode \
1456 maybe-clean-expect \
1459 maybe-clean-libtermcap \
1462 .PHONY: clean-target
1464 maybe-clean-target-libstdc++-v3 \
1465 maybe-clean-target-libmudflap \
1466 maybe-clean-target-newlib \
1467 maybe-clean-target-libgfortran \
1468 maybe-clean-target-libobjc \
1469 maybe-clean-target-libtermcap \
1470 maybe-clean-target-winsup \
1471 maybe-clean-target-libgloss \
1472 maybe-clean-target-libiberty \
1473 maybe-clean-target-gperf \
1474 maybe-clean-target-examples \
1475 maybe-clean-target-libffi \
1476 maybe-clean-target-libjava \
1477 maybe-clean-target-zlib \
1478 maybe-clean-target-boehm-gc \
1479 maybe-clean-target-qthreads \
1480 maybe-clean-target-rda \
1481 maybe-clean-target-libada
1483 .PHONY: do-distclean
1484 do-distclean: unstage distclean-host distclean-target stage
1486 .PHONY: distclean-host
1488 maybe-distclean-ash \
1489 maybe-distclean-autoconf \
1490 maybe-distclean-automake \
1491 maybe-distclean-bash \
1492 maybe-distclean-bfd \
1493 maybe-distclean-opcodes \
1494 maybe-distclean-binutils \
1495 maybe-distclean-bison \
1496 maybe-distclean-byacc \
1497 maybe-distclean-bzip2 \
1498 maybe-distclean-dejagnu \
1499 maybe-distclean-diff \
1500 maybe-distclean-dosutils \
1501 maybe-distclean-etc \
1502 maybe-distclean-fastjar \
1503 maybe-distclean-fileutils \
1504 maybe-distclean-findutils \
1505 maybe-distclean-find \
1506 maybe-distclean-flex \
1507 maybe-distclean-gas \
1508 maybe-distclean-gcc \
1509 maybe-distclean-gawk \
1510 maybe-distclean-gettext \
1511 maybe-distclean-gnuserv \
1512 maybe-distclean-gprof \
1513 maybe-distclean-gzip \
1514 maybe-distclean-hello \
1515 maybe-distclean-indent \
1516 maybe-distclean-intl \
1517 maybe-distclean-tcl \
1518 maybe-distclean-itcl \
1519 maybe-distclean-ld \
1520 maybe-distclean-libcpp \
1521 maybe-distclean-libgui \
1522 maybe-distclean-libiberty \
1523 maybe-distclean-libtool \
1524 maybe-distclean-m4 \
1525 maybe-distclean-make \
1526 maybe-distclean-mmalloc \
1527 maybe-distclean-patch \
1528 maybe-distclean-perl \
1529 maybe-distclean-prms \
1530 maybe-distclean-rcs \
1531 maybe-distclean-readline \
1532 maybe-distclean-release \
1533 maybe-distclean-recode \
1534 maybe-distclean-sed \
1535 maybe-distclean-send-pr \
1536 maybe-distclean-shellutils \
1537 maybe-distclean-sid \
1538 maybe-distclean-sim \
1539 maybe-distclean-tar \
1540 maybe-distclean-texinfo \
1541 maybe-distclean-textutils \
1542 maybe-distclean-time \
1543 maybe-distclean-uudecode \
1544 maybe-distclean-wdiff \
1545 maybe-distclean-zip \
1546 maybe-distclean-zlib \
1547 maybe-distclean-gdb \
1548 maybe-distclean-expect \
1549 maybe-distclean-guile \
1550 maybe-distclean-tk \
1551 maybe-distclean-libtermcap \
1552 maybe-distclean-utils
1554 .PHONY: distclean-target
1556 maybe-distclean-target-libstdc++-v3 \
1557 maybe-distclean-target-libmudflap \
1558 maybe-distclean-target-newlib \
1559 maybe-distclean-target-libgfortran \
1560 maybe-distclean-target-libobjc \
1561 maybe-distclean-target-libtermcap \
1562 maybe-distclean-target-winsup \
1563 maybe-distclean-target-libgloss \
1564 maybe-distclean-target-libiberty \
1565 maybe-distclean-target-gperf \
1566 maybe-distclean-target-examples \
1567 maybe-distclean-target-libffi \
1568 maybe-distclean-target-libjava \
1569 maybe-distclean-target-zlib \
1570 maybe-distclean-target-boehm-gc \
1571 maybe-distclean-target-qthreads \
1572 maybe-distclean-target-rda \
1573 maybe-distclean-target-libada
1575 .PHONY: do-maintainer-clean
1576 do-maintainer-clean: unstage maintainer-clean-host maintainer-clean-target stage
1578 .PHONY: maintainer-clean-host
1579 maintainer-clean-host: \
1580 maybe-maintainer-clean-ash \
1581 maybe-maintainer-clean-autoconf \
1582 maybe-maintainer-clean-automake \
1583 maybe-maintainer-clean-bash \
1584 maybe-maintainer-clean-bfd \
1585 maybe-maintainer-clean-opcodes \
1586 maybe-maintainer-clean-binutils \
1587 maybe-maintainer-clean-bison \
1588 maybe-maintainer-clean-byacc \
1589 maybe-maintainer-clean-bzip2 \
1590 maybe-maintainer-clean-dejagnu \
1591 maybe-maintainer-clean-diff \
1592 maybe-maintainer-clean-dosutils \
1593 maybe-maintainer-clean-etc \
1594 maybe-maintainer-clean-fastjar \
1595 maybe-maintainer-clean-fileutils \
1596 maybe-maintainer-clean-findutils \
1597 maybe-maintainer-clean-find \
1598 maybe-maintainer-clean-flex \
1599 maybe-maintainer-clean-gas \
1600 maybe-maintainer-clean-gcc \
1601 maybe-maintainer-clean-gawk \
1602 maybe-maintainer-clean-gettext \
1603 maybe-maintainer-clean-gnuserv \
1604 maybe-maintainer-clean-gprof \
1605 maybe-maintainer-clean-gzip \
1606 maybe-maintainer-clean-hello \
1607 maybe-maintainer-clean-indent \
1608 maybe-maintainer-clean-intl \
1609 maybe-maintainer-clean-tcl \
1610 maybe-maintainer-clean-itcl \
1611 maybe-maintainer-clean-ld \
1612 maybe-maintainer-clean-libcpp \
1613 maybe-maintainer-clean-libgui \
1614 maybe-maintainer-clean-libiberty \
1615 maybe-maintainer-clean-libtool \
1616 maybe-maintainer-clean-m4 \
1617 maybe-maintainer-clean-make \
1618 maybe-maintainer-clean-mmalloc \
1619 maybe-maintainer-clean-patch \
1620 maybe-maintainer-clean-perl \
1621 maybe-maintainer-clean-prms \
1622 maybe-maintainer-clean-rcs \
1623 maybe-maintainer-clean-readline \
1624 maybe-maintainer-clean-release \
1625 maybe-maintainer-clean-recode \
1626 maybe-maintainer-clean-sed \
1627 maybe-maintainer-clean-send-pr \
1628 maybe-maintainer-clean-shellutils \
1629 maybe-maintainer-clean-sid \
1630 maybe-maintainer-clean-sim \
1631 maybe-maintainer-clean-tar \
1632 maybe-maintainer-clean-texinfo \
1633 maybe-maintainer-clean-textutils \
1634 maybe-maintainer-clean-time \
1635 maybe-maintainer-clean-uudecode \
1636 maybe-maintainer-clean-wdiff \
1637 maybe-maintainer-clean-zip \
1638 maybe-maintainer-clean-zlib \
1639 maybe-maintainer-clean-gdb \
1640 maybe-maintainer-clean-expect \
1641 maybe-maintainer-clean-guile \
1642 maybe-maintainer-clean-tk \
1643 maybe-maintainer-clean-libtermcap \
1644 maybe-maintainer-clean-utils
1646 .PHONY: maintainer-clean-target
1647 maintainer-clean-target: \
1648 maybe-maintainer-clean-target-libstdc++-v3 \
1649 maybe-maintainer-clean-target-libmudflap \
1650 maybe-maintainer-clean-target-newlib \
1651 maybe-maintainer-clean-target-libgfortran \
1652 maybe-maintainer-clean-target-libobjc \
1653 maybe-maintainer-clean-target-libtermcap \
1654 maybe-maintainer-clean-target-winsup \
1655 maybe-maintainer-clean-target-libgloss \
1656 maybe-maintainer-clean-target-libiberty \
1657 maybe-maintainer-clean-target-gperf \
1658 maybe-maintainer-clean-target-examples \
1659 maybe-maintainer-clean-target-libffi \
1660 maybe-maintainer-clean-target-libjava \
1661 maybe-maintainer-clean-target-zlib \
1662 maybe-maintainer-clean-target-boehm-gc \
1663 maybe-maintainer-clean-target-qthreads \
1664 maybe-maintainer-clean-target-rda \
1665 maybe-maintainer-clean-target-libada
1668 # Here are the targets which correspond to the do-X targets.
1670 .PHONY: info installcheck dvi install-info
1671 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1672 .PHONY: local-clean local-distclean local-maintainer-clean
1674 installcheck: do-installcheck
1677 # Make sure makeinfo is built before we do a `make info', if we're
1678 # in fact building texinfo.
1679 do-info: maybe-all-texinfo
1681 install-info: do-install-info dir.info
1682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1683 if [ -f dir.info ] ; then \
1684 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1688 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1691 -rm -f Makefile config.status config.cache mh-frag mt-frag
1692 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1693 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1694 rm -rf $(TARGET_SUBDIR); \
1696 -rm -rf $(BUILD_SUBDIR)
1697 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1698 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1699 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1700 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1701 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1703 local-maintainer-clean:
1704 @echo "This command is intended for maintainers to use;"
1705 @echo "it deletes files that may require special tools to rebuild."
1707 clean: do-clean local-clean
1708 mostlyclean: do-mostlyclean local-clean
1709 distclean: do-distclean local-clean local-distclean
1710 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1711 maintainer-clean: local-distclean
1712 realclean: maintainer-clean
1714 # Extra dependency for clean-target, owing to the mixed nature of gcc
1715 clean-target: clean-target-libgcc
1716 clean-target-libgcc:
1717 test ! -d gcc/libgcc || \
1718 (cd gcc/libgcc && find . -type d -print) | \
1719 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1724 .PHONY: check do-check
1727 # Only include modules actually being configured and built.
1730 maybe-check-autoconf \
1731 maybe-check-automake \
1734 maybe-check-opcodes \
1735 maybe-check-binutils \
1739 maybe-check-dejagnu \
1741 maybe-check-dosutils \
1743 maybe-check-fastjar \
1744 maybe-check-fileutils \
1745 maybe-check-findutils \
1751 maybe-check-gettext \
1752 maybe-check-gnuserv \
1756 maybe-check-indent \
1761 maybe-check-libcpp \
1762 maybe-check-libgui \
1763 maybe-check-libiberty \
1764 maybe-check-libtool \
1767 maybe-check-mmalloc \
1772 maybe-check-readline \
1773 maybe-check-release \
1774 maybe-check-recode \
1776 maybe-check-send-pr \
1777 maybe-check-shellutils \
1781 maybe-check-texinfo \
1782 maybe-check-textutils \
1784 maybe-check-uudecode \
1789 maybe-check-expect \
1792 maybe-check-libtermcap \
1794 maybe-check-target-libstdc++-v3 \
1795 maybe-check-target-libmudflap \
1796 maybe-check-target-newlib \
1797 maybe-check-target-libgfortran \
1798 maybe-check-target-libobjc \
1799 maybe-check-target-libtermcap \
1800 maybe-check-target-winsup \
1801 maybe-check-target-libgloss \
1802 maybe-check-target-libiberty \
1803 maybe-check-target-gperf \
1804 maybe-check-target-examples \
1805 maybe-check-target-libffi \
1806 maybe-check-target-libjava \
1807 maybe-check-target-zlib \
1808 maybe-check-target-boehm-gc \
1809 maybe-check-target-qthreads \
1810 maybe-check-target-rda \
1811 maybe-check-target-libada stage
1813 # Automated reporting of test results.
1815 warning.log: build.log
1816 $(srcdir)/contrib/warn_summary build.log > $@
1819 if test x'$(BOOT_CFLAGS)' != x''; then \
1820 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1822 $(srcdir)/contrib/test_summary -t >$@
1824 echo If you really want to send e-mail, run ./$@ now
1826 mail-report-with-warnings.log: warning.log
1827 if test x'$(BOOT_CFLAGS)' != x''; then \
1828 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1830 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1832 echo If you really want to send e-mail, run ./$@ now
1834 # Installation targets.
1836 .PHONY: install uninstall
1837 install: installdirs install-host install-target
1839 .PHONY: install-host-nogcc
1840 install-host-nogcc: \
1842 maybe-install-autoconf \
1843 maybe-install-automake \
1844 maybe-install-bash \
1846 maybe-install-opcodes \
1847 maybe-install-binutils \
1848 maybe-install-bison \
1849 maybe-install-byacc \
1850 maybe-install-bzip2 \
1851 maybe-install-dejagnu \
1852 maybe-install-diff \
1853 maybe-install-dosutils \
1855 maybe-install-fastjar \
1856 maybe-install-fileutils \
1857 maybe-install-findutils \
1858 maybe-install-find \
1859 maybe-install-flex \
1861 maybe-install-gawk \
1862 maybe-install-gettext \
1863 maybe-install-gnuserv \
1864 maybe-install-gprof \
1865 maybe-install-gzip \
1866 maybe-install-hello \
1867 maybe-install-indent \
1868 maybe-install-intl \
1870 maybe-install-itcl \
1872 maybe-install-libcpp \
1873 maybe-install-libgui \
1874 maybe-install-libiberty \
1875 maybe-install-libtool \
1877 maybe-install-make \
1878 maybe-install-mmalloc \
1879 maybe-install-patch \
1880 maybe-install-perl \
1881 maybe-install-prms \
1883 maybe-install-readline \
1884 maybe-install-release \
1885 maybe-install-recode \
1887 maybe-install-send-pr \
1888 maybe-install-shellutils \
1892 maybe-install-texinfo \
1893 maybe-install-textutils \
1894 maybe-install-time \
1895 maybe-install-uudecode \
1896 maybe-install-wdiff \
1898 maybe-install-zlib \
1900 maybe-install-expect \
1901 maybe-install-guile \
1903 maybe-install-libtermcap \
1906 .PHONY: install-host
1909 maybe-install-autoconf \
1910 maybe-install-automake \
1911 maybe-install-bash \
1913 maybe-install-opcodes \
1914 maybe-install-binutils \
1915 maybe-install-bison \
1916 maybe-install-byacc \
1917 maybe-install-bzip2 \
1918 maybe-install-dejagnu \
1919 maybe-install-diff \
1920 maybe-install-dosutils \
1922 maybe-install-fastjar \
1923 maybe-install-fileutils \
1924 maybe-install-findutils \
1925 maybe-install-find \
1926 maybe-install-flex \
1929 maybe-install-gawk \
1930 maybe-install-gettext \
1931 maybe-install-gnuserv \
1932 maybe-install-gprof \
1933 maybe-install-gzip \
1934 maybe-install-hello \
1935 maybe-install-indent \
1936 maybe-install-intl \
1938 maybe-install-itcl \
1940 maybe-install-libcpp \
1941 maybe-install-libgui \
1942 maybe-install-libiberty \
1943 maybe-install-libtool \
1945 maybe-install-make \
1946 maybe-install-mmalloc \
1947 maybe-install-patch \
1948 maybe-install-perl \
1949 maybe-install-prms \
1951 maybe-install-readline \
1952 maybe-install-release \
1953 maybe-install-recode \
1955 maybe-install-send-pr \
1956 maybe-install-shellutils \
1960 maybe-install-texinfo \
1961 maybe-install-textutils \
1962 maybe-install-time \
1963 maybe-install-uudecode \
1964 maybe-install-wdiff \
1966 maybe-install-zlib \
1968 maybe-install-expect \
1969 maybe-install-guile \
1971 maybe-install-libtermcap \
1974 .PHONY: install-target
1976 maybe-install-target-libstdc++-v3 \
1977 maybe-install-target-libmudflap \
1978 maybe-install-target-newlib \
1979 maybe-install-target-libgfortran \
1980 maybe-install-target-libobjc \
1981 maybe-install-target-libtermcap \
1982 maybe-install-target-winsup \
1983 maybe-install-target-libgloss \
1984 maybe-install-target-libiberty \
1985 maybe-install-target-gperf \
1986 maybe-install-target-examples \
1987 maybe-install-target-libffi \
1988 maybe-install-target-libjava \
1989 maybe-install-target-zlib \
1990 maybe-install-target-boehm-gc \
1991 maybe-install-target-qthreads \
1992 maybe-install-target-rda \
1993 maybe-install-target-libada
1996 @echo "the uninstall target is not supported in this tree"
1999 install.all: install-no-fixedincludes
2000 @if [ -f ./gcc/Makefile ] ; then \
2001 r=`${PWD_COMMAND}` ; export r ; \
2005 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2010 # install-no-fixedincludes is used because Cygnus can not distribute
2011 # the fixed header files.
2012 .PHONY: install-no-fixedincludes
2013 install-no-fixedincludes: installdirs install-host-nogcc \
2014 install-target gcc-no-fixedincludes
2016 ### other supporting targets
2019 $(DESTDIR)$(prefix) \
2020 $(DESTDIR)$(exec_prefix)
2022 installdirs: mkinstalldirs
2023 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2025 dir.info: do-install-info
2026 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2027 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2028 mv -f dir.info.new dir.info ; \
2033 @echo "Building a full distribution of this tree isn't done"
2034 @echo "via 'make dist'. Check out the etc/ subdirectory"
2038 # Right now this just builds TAGS in each subdirectory. emacs19 has the
2039 # ability to use several tags files at once, so there is probably no need
2040 # to combine them into one big TAGS file (like CVS 1.3 does). We could
2041 # (if we felt like it) have this Makefile write a piece of elisp which
2042 # the user could load to tell emacs19 where all the TAGS files we just
2046 # --------------------------------------
2047 # Modules which run on the build machine
2048 # --------------------------------------
2050 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
2051 maybe-configure-build-libiberty:
2053 maybe-configure-build-libiberty: configure-build-libiberty
2054 configure-build-libiberty:
2055 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2056 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
2057 r=`${PWD_COMMAND}`; export r; \
2058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2060 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2061 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2063 /* | [A-Za-z]:[\\/]*) \
2064 topdir=$(srcdir) ;; \
2066 case "$(BUILD_SUBDIR)" in \
2067 .) topdir="../$(srcdir)" ;; \
2068 *) topdir="../../$(srcdir)" ;; \
2071 if [ "$(srcdir)" = "." ] ; then \
2072 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2073 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
2074 if [ -f Makefile ]; then \
2075 if $(MAKE) distclean; then \
2089 srcdiroption="--srcdir=."; \
2092 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2093 libsrcdir="$$s/libiberty"; \
2095 rm -f no-such-file || : ; \
2096 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2097 $(BUILD_CONFIGARGS) $${srcdiroption} \
2098 --with-build-subdir="$(BUILD_SUBDIR)" \
2100 @endif build-libiberty
2102 .PHONY: all-build-libiberty maybe-all-build-libiberty
2103 maybe-all-build-libiberty:
2105 TARGET-build-libiberty=all
2106 maybe-all-build-libiberty: all-build-libiberty
2107 all-build-libiberty: configure-build-libiberty
2108 @r=`${PWD_COMMAND}`; export r; \
2109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2111 (cd $(BUILD_SUBDIR)/libiberty && \
2112 $(MAKE) $(TARGET-build-libiberty))
2113 @endif build-libiberty
2115 .PHONY: configure-build-bison maybe-configure-build-bison
2116 maybe-configure-build-bison:
2118 maybe-configure-build-bison: configure-build-bison
2119 configure-build-bison:
2120 @test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2121 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2122 r=`${PWD_COMMAND}`; export r; \
2123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2125 echo Configuring in $(BUILD_SUBDIR)/bison; \
2126 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2128 /* | [A-Za-z]:[\\/]*) \
2129 topdir=$(srcdir) ;; \
2131 case "$(BUILD_SUBDIR)" in \
2132 .) topdir="../$(srcdir)" ;; \
2133 *) topdir="../../$(srcdir)" ;; \
2136 if [ "$(srcdir)" = "." ] ; then \
2137 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2138 if $(SHELL) $$s/symlink-tree $${topdir}/bison "no-such-file" ; then \
2139 if [ -f Makefile ]; then \
2140 if $(MAKE) distclean; then \
2154 srcdiroption="--srcdir=."; \
2157 srcdiroption="--srcdir=$${topdir}/bison"; \
2158 libsrcdir="$$s/bison"; \
2160 rm -f no-such-file || : ; \
2161 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2162 $(BUILD_CONFIGARGS) $${srcdiroption} \
2163 --with-build-subdir="$(BUILD_SUBDIR)" \
2167 .PHONY: all-build-bison maybe-all-build-bison
2168 maybe-all-build-bison:
2170 TARGET-build-bison=all
2171 maybe-all-build-bison: all-build-bison
2172 all-build-bison: configure-build-bison
2173 @r=`${PWD_COMMAND}`; export r; \
2174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2176 (cd $(BUILD_SUBDIR)/bison && \
2177 $(MAKE) $(TARGET-build-bison))
2180 .PHONY: configure-build-byacc maybe-configure-build-byacc
2181 maybe-configure-build-byacc:
2183 maybe-configure-build-byacc: configure-build-byacc
2184 configure-build-byacc:
2185 @test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2186 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
2187 r=`${PWD_COMMAND}`; export r; \
2188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2190 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2191 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2193 /* | [A-Za-z]:[\\/]*) \
2194 topdir=$(srcdir) ;; \
2196 case "$(BUILD_SUBDIR)" in \
2197 .) topdir="../$(srcdir)" ;; \
2198 *) topdir="../../$(srcdir)" ;; \
2201 if [ "$(srcdir)" = "." ] ; then \
2202 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2203 if $(SHELL) $$s/symlink-tree $${topdir}/byacc "no-such-file" ; then \
2204 if [ -f Makefile ]; then \
2205 if $(MAKE) distclean; then \
2219 srcdiroption="--srcdir=."; \
2222 srcdiroption="--srcdir=$${topdir}/byacc"; \
2223 libsrcdir="$$s/byacc"; \
2225 rm -f no-such-file || : ; \
2226 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2227 $(BUILD_CONFIGARGS) $${srcdiroption} \
2228 --with-build-subdir="$(BUILD_SUBDIR)" \
2232 .PHONY: all-build-byacc maybe-all-build-byacc
2233 maybe-all-build-byacc:
2235 TARGET-build-byacc=all
2236 maybe-all-build-byacc: all-build-byacc
2237 all-build-byacc: configure-build-byacc
2238 @r=`${PWD_COMMAND}`; export r; \
2239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2241 (cd $(BUILD_SUBDIR)/byacc && \
2242 $(MAKE) $(TARGET-build-byacc))
2245 .PHONY: configure-build-flex maybe-configure-build-flex
2246 maybe-configure-build-flex:
2248 maybe-configure-build-flex: configure-build-flex
2249 configure-build-flex:
2250 @test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2251 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2252 r=`${PWD_COMMAND}`; export r; \
2253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2255 echo Configuring in $(BUILD_SUBDIR)/flex; \
2256 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2258 /* | [A-Za-z]:[\\/]*) \
2259 topdir=$(srcdir) ;; \
2261 case "$(BUILD_SUBDIR)" in \
2262 .) topdir="../$(srcdir)" ;; \
2263 *) topdir="../../$(srcdir)" ;; \
2266 if [ "$(srcdir)" = "." ] ; then \
2267 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2268 if $(SHELL) $$s/symlink-tree $${topdir}/flex "no-such-file" ; then \
2269 if [ -f Makefile ]; then \
2270 if $(MAKE) distclean; then \
2284 srcdiroption="--srcdir=."; \
2287 srcdiroption="--srcdir=$${topdir}/flex"; \
2288 libsrcdir="$$s/flex"; \
2290 rm -f no-such-file || : ; \
2291 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2292 $(BUILD_CONFIGARGS) $${srcdiroption} \
2293 --with-build-subdir="$(BUILD_SUBDIR)" \
2297 .PHONY: all-build-flex maybe-all-build-flex
2298 maybe-all-build-flex:
2300 TARGET-build-flex=all
2301 maybe-all-build-flex: all-build-flex
2302 all-build-flex: configure-build-flex
2303 @r=`${PWD_COMMAND}`; export r; \
2304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2306 (cd $(BUILD_SUBDIR)/flex && \
2307 $(MAKE) $(TARGET-build-flex))
2310 .PHONY: configure-build-m4 maybe-configure-build-m4
2311 maybe-configure-build-m4:
2313 maybe-configure-build-m4: configure-build-m4
2315 @test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2316 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2317 r=`${PWD_COMMAND}`; export r; \
2318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2320 echo Configuring in $(BUILD_SUBDIR)/m4; \
2321 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2323 /* | [A-Za-z]:[\\/]*) \
2324 topdir=$(srcdir) ;; \
2326 case "$(BUILD_SUBDIR)" in \
2327 .) topdir="../$(srcdir)" ;; \
2328 *) topdir="../../$(srcdir)" ;; \
2331 if [ "$(srcdir)" = "." ] ; then \
2332 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2333 if $(SHELL) $$s/symlink-tree $${topdir}/m4 "no-such-file" ; then \
2334 if [ -f Makefile ]; then \
2335 if $(MAKE) distclean; then \
2349 srcdiroption="--srcdir=."; \
2352 srcdiroption="--srcdir=$${topdir}/m4"; \
2353 libsrcdir="$$s/m4"; \
2355 rm -f no-such-file || : ; \
2356 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2357 $(BUILD_CONFIGARGS) $${srcdiroption} \
2358 --with-build-subdir="$(BUILD_SUBDIR)" \
2362 .PHONY: all-build-m4 maybe-all-build-m4
2366 maybe-all-build-m4: all-build-m4
2367 all-build-m4: configure-build-m4
2368 @r=`${PWD_COMMAND}`; export r; \
2369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2371 (cd $(BUILD_SUBDIR)/m4 && \
2372 $(MAKE) $(TARGET-build-m4))
2375 .PHONY: configure-build-texinfo maybe-configure-build-texinfo
2376 maybe-configure-build-texinfo:
2378 maybe-configure-build-texinfo: configure-build-texinfo
2379 configure-build-texinfo:
2380 @test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2381 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2382 r=`${PWD_COMMAND}`; export r; \
2383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2385 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2386 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2388 /* | [A-Za-z]:[\\/]*) \
2389 topdir=$(srcdir) ;; \
2391 case "$(BUILD_SUBDIR)" in \
2392 .) topdir="../$(srcdir)" ;; \
2393 *) topdir="../../$(srcdir)" ;; \
2396 if [ "$(srcdir)" = "." ] ; then \
2397 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2398 if $(SHELL) $$s/symlink-tree $${topdir}/texinfo "no-such-file" ; then \
2399 if [ -f Makefile ]; then \
2400 if $(MAKE) distclean; then \
2414 srcdiroption="--srcdir=."; \
2417 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2418 libsrcdir="$$s/texinfo"; \
2420 rm -f no-such-file || : ; \
2421 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2422 $(BUILD_CONFIGARGS) $${srcdiroption} \
2423 --with-build-subdir="$(BUILD_SUBDIR)" \
2425 @endif build-texinfo
2427 .PHONY: all-build-texinfo maybe-all-build-texinfo
2428 maybe-all-build-texinfo:
2430 TARGET-build-texinfo=all
2431 maybe-all-build-texinfo: all-build-texinfo
2432 all-build-texinfo: configure-build-texinfo
2433 @r=`${PWD_COMMAND}`; export r; \
2434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2436 (cd $(BUILD_SUBDIR)/texinfo && \
2437 $(MAKE) $(TARGET-build-texinfo))
2438 @endif build-texinfo
2440 .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2441 maybe-configure-build-fixincludes:
2442 @if build-fixincludes
2443 maybe-configure-build-fixincludes: configure-build-fixincludes
2444 configure-build-fixincludes:
2445 @test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2446 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2447 r=`${PWD_COMMAND}`; export r; \
2448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2450 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2451 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2453 /* | [A-Za-z]:[\\/]*) \
2454 topdir=$(srcdir) ;; \
2456 case "$(BUILD_SUBDIR)" in \
2457 .) topdir="../$(srcdir)" ;; \
2458 *) topdir="../../$(srcdir)" ;; \
2461 if [ "$(srcdir)" = "." ] ; then \
2462 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2463 if $(SHELL) $$s/symlink-tree $${topdir}/fixincludes "no-such-file" ; then \
2464 if [ -f Makefile ]; then \
2465 if $(MAKE) distclean; then \
2479 srcdiroption="--srcdir=."; \
2482 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2483 libsrcdir="$$s/fixincludes"; \
2485 rm -f no-such-file || : ; \
2486 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2487 $(BUILD_CONFIGARGS) $${srcdiroption} \
2488 --with-build-subdir="$(BUILD_SUBDIR)" \
2490 @endif build-fixincludes
2492 .PHONY: all-build-fixincludes maybe-all-build-fixincludes
2493 maybe-all-build-fixincludes:
2494 @if build-fixincludes
2495 TARGET-build-fixincludes=all
2496 maybe-all-build-fixincludes: all-build-fixincludes
2497 all-build-fixincludes: configure-build-fixincludes
2498 @r=`${PWD_COMMAND}`; export r; \
2499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2501 (cd $(BUILD_SUBDIR)/fixincludes && \
2502 $(MAKE) $(TARGET-build-fixincludes))
2503 @endif build-fixincludes
2506 # --------------------------------------
2507 # Modules which run on the host machine
2508 # --------------------------------------
2510 .PHONY: configure-ash maybe-configure-ash
2511 maybe-configure-ash:
2513 maybe-configure-ash: configure-ash
2515 @test ! -f ash/Makefile || exit 0; \
2516 [ -d ash ] || mkdir ash; \
2517 r=`${PWD_COMMAND}`; export r; \
2518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2520 echo Configuring in ash; \
2524 srcdiroption="--srcdir=."; \
2526 /* | [A-Za-z]:[\\/]*) \
2527 srcdiroption="--srcdir=$(srcdir)/ash"; \
2528 libsrcdir="$$s/ash";; \
2530 srcdiroption="--srcdir=../$(srcdir)/ash"; \
2531 libsrcdir="$$s/ash";; \
2533 $(SHELL) $${libsrcdir}/configure \
2534 $(HOST_CONFIGARGS) $${srcdiroption} \
2538 .PHONY: all-ash maybe-all-ash
2541 maybe-all-ash: all-ash
2542 all-ash: configure-ash
2543 @r=`${PWD_COMMAND}`; export r; \
2544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2547 (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
2550 .PHONY: check-ash maybe-check-ash
2553 maybe-check-ash: check-ash
2556 @r=`${PWD_COMMAND}`; export r; \
2557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2560 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
2564 .PHONY: install-ash maybe-install-ash
2567 maybe-install-ash: install-ash
2569 install-ash: installdirs
2570 @r=`${PWD_COMMAND}`; export r; \
2571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2574 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
2578 # Other targets (info, dvi, etc.)
2580 .PHONY: maybe-info-ash info-ash
2583 maybe-info-ash: info-ash
2587 @[ -f ./ash/Makefile ] || exit 0; \
2588 r=`${PWD_COMMAND}`; export r; \
2589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2592 for flag in $(EXTRA_HOST_FLAGS) ; do \
2593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2595 echo "Doing info in ash" ; \
2597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2599 "RANLIB=$${RANLIB}" \
2600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2606 .PHONY: maybe-dvi-ash dvi-ash
2609 maybe-dvi-ash: dvi-ash
2613 @[ -f ./ash/Makefile ] || exit 0; \
2614 r=`${PWD_COMMAND}`; export r; \
2615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2618 for flag in $(EXTRA_HOST_FLAGS) ; do \
2619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2621 echo "Doing dvi in ash" ; \
2623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2625 "RANLIB=$${RANLIB}" \
2626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2632 .PHONY: maybe-TAGS-ash TAGS-ash
2635 maybe-TAGS-ash: TAGS-ash
2639 @[ -f ./ash/Makefile ] || exit 0; \
2640 r=`${PWD_COMMAND}`; export r; \
2641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2644 for flag in $(EXTRA_HOST_FLAGS) ; do \
2645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2647 echo "Doing TAGS in ash" ; \
2649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2651 "RANLIB=$${RANLIB}" \
2652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2658 .PHONY: maybe-install-info-ash install-info-ash
2659 maybe-install-info-ash:
2661 maybe-install-info-ash: install-info-ash
2666 @[ -f ./ash/Makefile ] || exit 0; \
2667 r=`${PWD_COMMAND}`; export r; \
2668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2671 for flag in $(EXTRA_HOST_FLAGS) ; do \
2672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2674 echo "Doing install-info in ash" ; \
2676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2678 "RANLIB=$${RANLIB}" \
2679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2685 .PHONY: maybe-installcheck-ash installcheck-ash
2686 maybe-installcheck-ash:
2688 maybe-installcheck-ash: installcheck-ash
2692 @[ -f ./ash/Makefile ] || exit 0; \
2693 r=`${PWD_COMMAND}`; export r; \
2694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2697 for flag in $(EXTRA_HOST_FLAGS) ; do \
2698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2700 echo "Doing installcheck in ash" ; \
2702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2704 "RANLIB=$${RANLIB}" \
2705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2711 .PHONY: maybe-mostlyclean-ash mostlyclean-ash
2712 maybe-mostlyclean-ash:
2714 maybe-mostlyclean-ash: mostlyclean-ash
2717 @[ -f ./ash/Makefile ] || exit 0; \
2718 r=`${PWD_COMMAND}`; export r; \
2719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2722 for flag in $(EXTRA_HOST_FLAGS) ; do \
2723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2725 echo "Doing mostlyclean in ash" ; \
2727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2729 "RANLIB=$${RANLIB}" \
2730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2736 .PHONY: maybe-clean-ash clean-ash
2739 maybe-clean-ash: clean-ash
2742 @[ -f ./ash/Makefile ] || exit 0; \
2743 r=`${PWD_COMMAND}`; export r; \
2744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2747 for flag in $(EXTRA_HOST_FLAGS) ; do \
2748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2750 echo "Doing clean in ash" ; \
2752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2754 "RANLIB=$${RANLIB}" \
2755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2761 .PHONY: maybe-distclean-ash distclean-ash
2762 maybe-distclean-ash:
2764 maybe-distclean-ash: distclean-ash
2767 @[ -f ./ash/Makefile ] || exit 0; \
2768 r=`${PWD_COMMAND}`; export r; \
2769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2772 for flag in $(EXTRA_HOST_FLAGS) ; do \
2773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2775 echo "Doing distclean in ash" ; \
2777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2779 "RANLIB=$${RANLIB}" \
2780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2786 .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2787 maybe-maintainer-clean-ash:
2789 maybe-maintainer-clean-ash: maintainer-clean-ash
2791 maintainer-clean-ash:
2792 @[ -f ./ash/Makefile ] || exit 0; \
2793 r=`${PWD_COMMAND}`; export r; \
2794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2797 for flag in $(EXTRA_HOST_FLAGS) ; do \
2798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2800 echo "Doing maintainer-clean in ash" ; \
2802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2804 "RANLIB=$${RANLIB}" \
2805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2812 .PHONY: configure-autoconf maybe-configure-autoconf
2813 maybe-configure-autoconf:
2815 maybe-configure-autoconf: configure-autoconf
2817 @test ! -f autoconf/Makefile || exit 0; \
2818 [ -d autoconf ] || mkdir autoconf; \
2819 r=`${PWD_COMMAND}`; export r; \
2820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2822 echo Configuring in autoconf; \
2823 cd autoconf || exit 1; \
2826 srcdiroption="--srcdir=."; \
2828 /* | [A-Za-z]:[\\/]*) \
2829 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
2830 libsrcdir="$$s/autoconf";; \
2832 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
2833 libsrcdir="$$s/autoconf";; \
2835 $(SHELL) $${libsrcdir}/configure \
2836 $(HOST_CONFIGARGS) $${srcdiroption} \
2840 .PHONY: all-autoconf maybe-all-autoconf
2843 maybe-all-autoconf: all-autoconf
2844 all-autoconf: configure-autoconf
2845 @r=`${PWD_COMMAND}`; export r; \
2846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2849 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
2852 .PHONY: check-autoconf maybe-check-autoconf
2853 maybe-check-autoconf:
2855 maybe-check-autoconf: check-autoconf
2858 @r=`${PWD_COMMAND}`; export r; \
2859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2862 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
2866 .PHONY: install-autoconf maybe-install-autoconf
2867 maybe-install-autoconf:
2869 maybe-install-autoconf: install-autoconf
2871 install-autoconf: installdirs
2872 @r=`${PWD_COMMAND}`; export r; \
2873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2876 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
2880 # Other targets (info, dvi, etc.)
2882 .PHONY: maybe-info-autoconf info-autoconf
2883 maybe-info-autoconf:
2885 maybe-info-autoconf: info-autoconf
2889 @[ -f ./autoconf/Makefile ] || exit 0; \
2890 r=`${PWD_COMMAND}`; export r; \
2891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2894 for flag in $(EXTRA_HOST_FLAGS) ; do \
2895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2897 echo "Doing info in autoconf" ; \
2899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2901 "RANLIB=$${RANLIB}" \
2902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2908 .PHONY: maybe-dvi-autoconf dvi-autoconf
2911 maybe-dvi-autoconf: dvi-autoconf
2915 @[ -f ./autoconf/Makefile ] || exit 0; \
2916 r=`${PWD_COMMAND}`; export r; \
2917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2920 for flag in $(EXTRA_HOST_FLAGS) ; do \
2921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2923 echo "Doing dvi in autoconf" ; \
2925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2927 "RANLIB=$${RANLIB}" \
2928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2934 .PHONY: maybe-TAGS-autoconf TAGS-autoconf
2935 maybe-TAGS-autoconf:
2937 maybe-TAGS-autoconf: TAGS-autoconf
2941 @[ -f ./autoconf/Makefile ] || exit 0; \
2942 r=`${PWD_COMMAND}`; export r; \
2943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2946 for flag in $(EXTRA_HOST_FLAGS) ; do \
2947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2949 echo "Doing TAGS in autoconf" ; \
2951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2953 "RANLIB=$${RANLIB}" \
2954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2960 .PHONY: maybe-install-info-autoconf install-info-autoconf
2961 maybe-install-info-autoconf:
2963 maybe-install-info-autoconf: install-info-autoconf
2965 install-info-autoconf: \
2966 configure-autoconf \
2968 @[ -f ./autoconf/Makefile ] || exit 0; \
2969 r=`${PWD_COMMAND}`; export r; \
2970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2973 for flag in $(EXTRA_HOST_FLAGS) ; do \
2974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2976 echo "Doing install-info in autoconf" ; \
2978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2980 "RANLIB=$${RANLIB}" \
2981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2987 .PHONY: maybe-installcheck-autoconf installcheck-autoconf
2988 maybe-installcheck-autoconf:
2990 maybe-installcheck-autoconf: installcheck-autoconf
2992 installcheck-autoconf: \
2994 @[ -f ./autoconf/Makefile ] || exit 0; \
2995 r=`${PWD_COMMAND}`; export r; \
2996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2999 for flag in $(EXTRA_HOST_FLAGS) ; do \
3000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3002 echo "Doing installcheck in autoconf" ; \
3004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3006 "RANLIB=$${RANLIB}" \
3007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3013 .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3014 maybe-mostlyclean-autoconf:
3016 maybe-mostlyclean-autoconf: mostlyclean-autoconf
3018 mostlyclean-autoconf:
3019 @[ -f ./autoconf/Makefile ] || exit 0; \
3020 r=`${PWD_COMMAND}`; export r; \
3021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3024 for flag in $(EXTRA_HOST_FLAGS) ; do \
3025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3027 echo "Doing mostlyclean in autoconf" ; \
3029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3031 "RANLIB=$${RANLIB}" \
3032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3038 .PHONY: maybe-clean-autoconf clean-autoconf
3039 maybe-clean-autoconf:
3041 maybe-clean-autoconf: clean-autoconf
3044 @[ -f ./autoconf/Makefile ] || exit 0; \
3045 r=`${PWD_COMMAND}`; export r; \
3046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3049 for flag in $(EXTRA_HOST_FLAGS) ; do \
3050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3052 echo "Doing clean in autoconf" ; \
3054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3056 "RANLIB=$${RANLIB}" \
3057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3063 .PHONY: maybe-distclean-autoconf distclean-autoconf
3064 maybe-distclean-autoconf:
3066 maybe-distclean-autoconf: distclean-autoconf
3069 @[ -f ./autoconf/Makefile ] || exit 0; \
3070 r=`${PWD_COMMAND}`; export r; \
3071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3074 for flag in $(EXTRA_HOST_FLAGS) ; do \
3075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3077 echo "Doing distclean in 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}" \
3088 .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3089 maybe-maintainer-clean-autoconf:
3091 maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
3093 maintainer-clean-autoconf:
3094 @[ -f ./autoconf/Makefile ] || exit 0; \
3095 r=`${PWD_COMMAND}`; export r; \
3096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3099 for flag in $(EXTRA_HOST_FLAGS) ; do \
3100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3102 echo "Doing maintainer-clean in autoconf" ; \
3104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3106 "RANLIB=$${RANLIB}" \
3107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3114 .PHONY: configure-automake maybe-configure-automake
3115 maybe-configure-automake:
3117 maybe-configure-automake: configure-automake
3119 @test ! -f automake/Makefile || exit 0; \
3120 [ -d automake ] || mkdir automake; \
3121 r=`${PWD_COMMAND}`; export r; \
3122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3124 echo Configuring in automake; \
3125 cd automake || exit 1; \
3128 srcdiroption="--srcdir=."; \
3130 /* | [A-Za-z]:[\\/]*) \
3131 srcdiroption="--srcdir=$(srcdir)/automake"; \
3132 libsrcdir="$$s/automake";; \
3134 srcdiroption="--srcdir=../$(srcdir)/automake"; \
3135 libsrcdir="$$s/automake";; \
3137 $(SHELL) $${libsrcdir}/configure \
3138 $(HOST_CONFIGARGS) $${srcdiroption} \
3142 .PHONY: all-automake maybe-all-automake
3145 maybe-all-automake: all-automake
3146 all-automake: configure-automake
3147 @r=`${PWD_COMMAND}`; export r; \
3148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3151 (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
3154 .PHONY: check-automake maybe-check-automake
3155 maybe-check-automake:
3157 maybe-check-automake: check-automake
3160 @r=`${PWD_COMMAND}`; export r; \
3161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3164 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
3168 .PHONY: install-automake maybe-install-automake
3169 maybe-install-automake:
3171 maybe-install-automake: install-automake
3173 install-automake: installdirs
3174 @r=`${PWD_COMMAND}`; export r; \
3175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3178 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
3182 # Other targets (info, dvi, etc.)
3184 .PHONY: maybe-info-automake info-automake
3185 maybe-info-automake:
3187 maybe-info-automake: info-automake
3191 @[ -f ./automake/Makefile ] || exit 0; \
3192 r=`${PWD_COMMAND}`; export r; \
3193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3196 for flag in $(EXTRA_HOST_FLAGS) ; do \
3197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3199 echo "Doing info in automake" ; \
3201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3203 "RANLIB=$${RANLIB}" \
3204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3210 .PHONY: maybe-dvi-automake dvi-automake
3213 maybe-dvi-automake: dvi-automake
3217 @[ -f ./automake/Makefile ] || exit 0; \
3218 r=`${PWD_COMMAND}`; export r; \
3219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3222 for flag in $(EXTRA_HOST_FLAGS) ; do \
3223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3225 echo "Doing dvi in automake" ; \
3227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3229 "RANLIB=$${RANLIB}" \
3230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3236 .PHONY: maybe-TAGS-automake TAGS-automake
3237 maybe-TAGS-automake:
3239 maybe-TAGS-automake: TAGS-automake
3243 @[ -f ./automake/Makefile ] || exit 0; \
3244 r=`${PWD_COMMAND}`; export r; \
3245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3248 for flag in $(EXTRA_HOST_FLAGS) ; do \
3249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3251 echo "Doing TAGS in automake" ; \
3253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3255 "RANLIB=$${RANLIB}" \
3256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3262 .PHONY: maybe-install-info-automake install-info-automake
3263 maybe-install-info-automake:
3265 maybe-install-info-automake: install-info-automake
3267 install-info-automake: \
3268 configure-automake \
3270 @[ -f ./automake/Makefile ] || exit 0; \
3271 r=`${PWD_COMMAND}`; export r; \
3272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3275 for flag in $(EXTRA_HOST_FLAGS) ; do \
3276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3278 echo "Doing install-info in automake" ; \
3280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3282 "RANLIB=$${RANLIB}" \
3283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3289 .PHONY: maybe-installcheck-automake installcheck-automake
3290 maybe-installcheck-automake:
3292 maybe-installcheck-automake: installcheck-automake
3294 installcheck-automake: \
3296 @[ -f ./automake/Makefile ] || exit 0; \
3297 r=`${PWD_COMMAND}`; export r; \
3298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3301 for flag in $(EXTRA_HOST_FLAGS) ; do \
3302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3304 echo "Doing installcheck in automake" ; \
3306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3308 "RANLIB=$${RANLIB}" \
3309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3315 .PHONY: maybe-mostlyclean-automake mostlyclean-automake
3316 maybe-mostlyclean-automake:
3318 maybe-mostlyclean-automake: mostlyclean-automake
3320 mostlyclean-automake:
3321 @[ -f ./automake/Makefile ] || exit 0; \
3322 r=`${PWD_COMMAND}`; export r; \
3323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3326 for flag in $(EXTRA_HOST_FLAGS) ; do \
3327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3329 echo "Doing mostlyclean in automake" ; \
3331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3333 "RANLIB=$${RANLIB}" \
3334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3340 .PHONY: maybe-clean-automake clean-automake
3341 maybe-clean-automake:
3343 maybe-clean-automake: clean-automake
3346 @[ -f ./automake/Makefile ] || exit 0; \
3347 r=`${PWD_COMMAND}`; export r; \
3348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3351 for flag in $(EXTRA_HOST_FLAGS) ; do \
3352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3354 echo "Doing clean in automake" ; \
3356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3358 "RANLIB=$${RANLIB}" \
3359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3365 .PHONY: maybe-distclean-automake distclean-automake
3366 maybe-distclean-automake:
3368 maybe-distclean-automake: distclean-automake
3371 @[ -f ./automake/Makefile ] || exit 0; \
3372 r=`${PWD_COMMAND}`; export r; \
3373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3376 for flag in $(EXTRA_HOST_FLAGS) ; do \
3377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3379 echo "Doing distclean in automake" ; \
3381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3383 "RANLIB=$${RANLIB}" \
3384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3390 .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3391 maybe-maintainer-clean-automake:
3393 maybe-maintainer-clean-automake: maintainer-clean-automake
3395 maintainer-clean-automake:
3396 @[ -f ./automake/Makefile ] || exit 0; \
3397 r=`${PWD_COMMAND}`; export r; \
3398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3401 for flag in $(EXTRA_HOST_FLAGS) ; do \
3402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3404 echo "Doing maintainer-clean in automake" ; \
3406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3408 "RANLIB=$${RANLIB}" \
3409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3416 .PHONY: configure-bash maybe-configure-bash
3417 maybe-configure-bash:
3419 maybe-configure-bash: configure-bash
3421 @test ! -f bash/Makefile || exit 0; \
3422 [ -d bash ] || mkdir bash; \
3423 r=`${PWD_COMMAND}`; export r; \
3424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3426 echo Configuring in bash; \
3427 cd bash || exit 1; \
3430 srcdiroption="--srcdir=."; \
3432 /* | [A-Za-z]:[\\/]*) \
3433 srcdiroption="--srcdir=$(srcdir)/bash"; \
3434 libsrcdir="$$s/bash";; \
3436 srcdiroption="--srcdir=../$(srcdir)/bash"; \
3437 libsrcdir="$$s/bash";; \
3439 $(SHELL) $${libsrcdir}/configure \
3440 $(HOST_CONFIGARGS) $${srcdiroption} \
3444 .PHONY: all-bash maybe-all-bash
3447 maybe-all-bash: all-bash
3448 all-bash: configure-bash
3449 @r=`${PWD_COMMAND}`; export r; \
3450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3453 (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
3456 .PHONY: check-bash maybe-check-bash
3459 maybe-check-bash: check-bash
3462 @r=`${PWD_COMMAND}`; export r; \
3463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3466 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
3470 .PHONY: install-bash maybe-install-bash
3473 maybe-install-bash: install-bash
3475 install-bash: installdirs
3476 @r=`${PWD_COMMAND}`; export r; \
3477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3480 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
3484 # Other targets (info, dvi, etc.)
3486 .PHONY: maybe-info-bash info-bash
3489 maybe-info-bash: info-bash
3493 @[ -f ./bash/Makefile ] || exit 0; \
3494 r=`${PWD_COMMAND}`; export r; \
3495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3498 for flag in $(EXTRA_HOST_FLAGS) ; do \
3499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3501 echo "Doing info in bash" ; \
3503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3505 "RANLIB=$${RANLIB}" \
3506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3512 .PHONY: maybe-dvi-bash dvi-bash
3515 maybe-dvi-bash: dvi-bash
3519 @[ -f ./bash/Makefile ] || exit 0; \
3520 r=`${PWD_COMMAND}`; export r; \
3521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3524 for flag in $(EXTRA_HOST_FLAGS) ; do \
3525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3527 echo "Doing dvi in bash" ; \
3529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3531 "RANLIB=$${RANLIB}" \
3532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3538 .PHONY: maybe-TAGS-bash TAGS-bash
3541 maybe-TAGS-bash: TAGS-bash
3545 @[ -f ./bash/Makefile ] || exit 0; \
3546 r=`${PWD_COMMAND}`; export r; \
3547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3550 for flag in $(EXTRA_HOST_FLAGS) ; do \
3551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3553 echo "Doing TAGS in bash" ; \
3555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3557 "RANLIB=$${RANLIB}" \
3558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3564 .PHONY: maybe-install-info-bash install-info-bash
3565 maybe-install-info-bash:
3567 maybe-install-info-bash: install-info-bash
3569 install-info-bash: \
3572 @[ -f ./bash/Makefile ] || exit 0; \
3573 r=`${PWD_COMMAND}`; export r; \
3574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3577 for flag in $(EXTRA_HOST_FLAGS) ; do \
3578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3580 echo "Doing install-info in bash" ; \
3582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3584 "RANLIB=$${RANLIB}" \
3585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3591 .PHONY: maybe-installcheck-bash installcheck-bash
3592 maybe-installcheck-bash:
3594 maybe-installcheck-bash: installcheck-bash
3596 installcheck-bash: \
3598 @[ -f ./bash/Makefile ] || exit 0; \
3599 r=`${PWD_COMMAND}`; export r; \
3600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3603 for flag in $(EXTRA_HOST_FLAGS) ; do \
3604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3606 echo "Doing installcheck in bash" ; \
3608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3610 "RANLIB=$${RANLIB}" \
3611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3617 .PHONY: maybe-mostlyclean-bash mostlyclean-bash
3618 maybe-mostlyclean-bash:
3620 maybe-mostlyclean-bash: mostlyclean-bash
3623 @[ -f ./bash/Makefile ] || exit 0; \
3624 r=`${PWD_COMMAND}`; export r; \
3625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3628 for flag in $(EXTRA_HOST_FLAGS) ; do \
3629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3631 echo "Doing mostlyclean in bash" ; \
3633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3635 "RANLIB=$${RANLIB}" \
3636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3642 .PHONY: maybe-clean-bash clean-bash
3645 maybe-clean-bash: clean-bash
3648 @[ -f ./bash/Makefile ] || exit 0; \
3649 r=`${PWD_COMMAND}`; export r; \
3650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3653 for flag in $(EXTRA_HOST_FLAGS) ; do \
3654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3656 echo "Doing clean in bash" ; \
3658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3660 "RANLIB=$${RANLIB}" \
3661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3667 .PHONY: maybe-distclean-bash distclean-bash
3668 maybe-distclean-bash:
3670 maybe-distclean-bash: distclean-bash
3673 @[ -f ./bash/Makefile ] || exit 0; \