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 = \
105 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
107 # This is the list of directories to be built for the build system.
108 BUILD_CONFIGDIRS = libiberty
109 # Build programs are put under this directory.
110 BUILD_SUBDIR = @build_subdir@
111 # This is set by the configure script to the arguments to use when configuring
112 # directories built for the build system.
113 BUILD_CONFIGARGS = @build_configargs@
115 # This is the list of variables to export in the environment when
116 # configuring any subdirectory. It must also be exported whenever
117 # recursing into a build directory in case that directory's Makefile
120 FLEX="$(FLEX)"; export FLEX; \
121 LEX="$(LEX)"; export LEX; \
122 BISON="$(BISON)"; export BISON; \
123 YACC="$(YACC)"; export YACC; \
124 M4="$(M4)"; export M4; \
125 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
127 # This is the list of variables to export in the environment when
128 # configuring subdirectories for the build system.
131 AR="$(AR_FOR_BUILD)"; export AR; \
132 AS="$(AS_FOR_BUILD)"; export AS; \
133 CC="$(CC_FOR_BUILD)"; export CC; \
134 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
135 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
136 CXX="$(CXX_FOR_BUILD)"; export CXX; \
137 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
138 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
139 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
140 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
141 LD="$(LD_FOR_BUILD)"; export LD; \
142 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
143 NM="$(NM_FOR_BUILD)"; export NM; \
144 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
145 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
147 # This is the list of directories to built for the host system.
148 SUBDIRS = @configdirs@
149 # This is set by the configure script to the arguments to use when configuring
150 # directories built for the host system.
151 HOST_CONFIGARGS = @host_configargs@
152 # Host programs are put under this directory, which is . except if building
154 HOST_SUBDIR = @host_subdir@
155 # This is the list of variables to export in the environment when
156 # configuring subdirectories for the host system.
159 CC="$(CC)"; export CC; \
160 CFLAGS="$(CFLAGS)"; export CFLAGS; \
161 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
162 CXX="$(CXX)"; export CXX; \
163 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
164 AR="$(AR)"; export AR; \
165 AS="$(AS)"; export AS; \
166 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
167 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
168 LD="$(LD)"; export LD; \
169 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
170 NM="$(NM)"; export NM; \
171 RANLIB="$(RANLIB)"; export RANLIB; \
172 WINDRES="$(WINDRES)"; export WINDRES; \
173 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
174 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
175 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
176 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
177 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
178 SET_GCC_LIB_PATH_CMD="@SET_GCC_LIB_PATH@"; export SET_GCC_LIB_PATH_CMD; \
181 # Similar, for later GCC stages.
182 STAGE_HOST_EXPORTS = \
184 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
185 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
186 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) \
187 $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
188 -B$$r/$(HOST_SUBDIR)/prev-gcc/ \
189 -B$(build_tooldir)/bin/"; export CC_FOR_BUILD;
191 # This is set by the configure script to the list of directories which
192 # should be built using the target tools.
193 TARGET_CONFIGDIRS = @target_configdirs@
194 # Target libraries are put under this directory:
195 TARGET_SUBDIR = @target_subdir@
196 # This is set by the configure script to the arguments to use when configuring
197 # directories built for the target.
198 TARGET_CONFIGARGS = @target_configargs@
199 # This is the list of variables to export in the environment when
200 # configuring subdirectories for the host system.
201 BASE_TARGET_EXPORTS = \
203 AR="$(AR_FOR_TARGET)"; export AR; \
204 AS="$(AS_FOR_TARGET)"; export AS; \
205 CC="$(CC_FOR_TARGET)"; export CC; \
206 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
207 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
208 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
209 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
210 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
211 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
212 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
213 LD="$(LD_FOR_TARGET)"; export LD; \
214 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
215 NM="$(NM_FOR_TARGET)"; export NM; \
216 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
217 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
218 SET_GCC_LIB_PATH_CMD="@SET_GCC_LIB_PATH@"; export SET_GCC_LIB_PATH_CMD; \
221 RAW_CXX_TARGET_EXPORTS = \
222 $(BASE_TARGET_EXPORTS) \
223 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
224 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
226 NORMAL_TARGET_EXPORTS = \
227 $(BASE_TARGET_EXPORTS) \
228 CXX="$(CXX_FOR_TARGET)"; export CXX;
231 HOST_GMPLIBS = @gmplibs@
232 HOST_GMPINC = @gmpinc@
234 # ----------------------------------------------
235 # Programs producing files for the BUILD machine
236 # ----------------------------------------------
238 SHELL = @config_shell@
240 # pwd command to use. Allow user to override default by setting PWDCMD in
241 # the environment to account for automounters. The make variable must not
242 # be called PWDCMD, otherwise the value set here is passed to make
243 # subprocesses and overrides the setting from the user's environment.
244 # Don't use PWD since it is a common shell environment variable and we
245 # don't want to corrupt it.
246 PWD_COMMAND = $${PWDCMD-pwd}
248 # compilers to use to create programs which must be run in the build
250 CC_FOR_BUILD = @CC_FOR_BUILD@
251 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
253 CXX_FOR_BUILD = $(CXX)
255 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
256 # here so that they can be overridden by Makefile fragments.
257 BUILD_PREFIX = @BUILD_PREFIX@
258 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
260 # Flags to pass to stage2 and later makes. They are defined
261 # here so that they can be overridden by Makefile fragments.
264 CONFIGURED_BISON = @CONFIGURED_BISON@
265 BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
266 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \
268 echo ${CONFIGURED_BISON} ; \
271 CONFIGURED_YACC = @CONFIGURED_YACC@
272 YACC = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
273 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison -y ; \
274 elif [ -f $$r/$(BUILD_SUBDIR)/byacc/byacc ] ; then \
275 echo $$r/$(BUILD_SUBDIR)/byacc/byacc ; \
277 echo ${CONFIGURED_YACC} ; \
280 CONFIGURED_FLEX = @CONFIGURED_FLEX@
281 FLEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
282 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
283 else echo ${CONFIGURED_FLEX} ; fi`
285 CONFIGURED_LEX = @CONFIGURED_LEX@
286 LEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
287 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
288 else echo ${CONFIGURED_LEX} ; fi`
290 CONFIGURED_M4 = @CONFIGURED_M4@
291 M4 = `if [ -f $$r/$(BUILD_SUBDIR)/m4/m4 ] ; \
292 then echo $$r/$(BUILD_SUBDIR)/m4/m4 ; \
293 else echo ${CONFIGURED_M4} ; fi`
295 # For an installed makeinfo, we require it to be from texinfo 4.2 or
296 # higher, else we use the "missing" dummy. We also pass the subdirectory
297 # makeinfo even if only the Makefile is there, because Texinfo builds its
298 # manual when made, and it requires its own version.
299 CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@
300 MAKEINFO = `if [ -f $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/Makefile ] ; \
301 then echo $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo ; \
302 else if (${CONFIGURED_MAKEINFO} --version \
303 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
304 then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
306 # This just becomes part of the MAKEINFO definition passed down to
307 # sub-makes. It lets flags be given on the command line while still
308 # using the makeinfo from the object tree.
309 # (Default to avoid splitting info files by setting the threshold high.)
310 MAKEINFOFLAGS = --split-size=5000000
312 # FIXME: expect may become a build tool?
313 EXPECT = `if [ -f $$r/$(HOST_SUBDIR)/expect/expect ] ; \
314 then echo $$r/$(HOST_SUBDIR)/expect/expect ; \
315 else echo expect ; fi`
317 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
318 then echo $$s/dejagnu/runtest ; \
319 else echo runtest ; fi`
321 # ---------------------------------------------
322 # Programs producing files for the HOST machine
323 # ---------------------------------------------
325 # This is the list of directories that may be needed in RPATH_ENVVAR
326 # so that programs built for the host machine work.
327 HOST_LIB_PATH = $$r/$(HOST_SUBDIR)/bfd:$$r/$(HOST_SUBDIR)/opcodes
336 LIBCFLAGS = $(CFLAGS)
339 CXXFLAGS = @CXXFLAGS@
340 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
355 # -----------------------------------------------
356 # Programs producing files for the TARGET machine
357 # -----------------------------------------------
359 # This is the list of directories that may be needed in RPATH_ENVVAR
360 # so that prorgams built for the target machine work.
361 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libmudflap/.libs
363 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
365 AR_FOR_TARGET=@AR_FOR_TARGET@
366 CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
367 USUAL_AR_FOR_TARGET = ` \
368 if [ -f $$r/$(HOST_SUBDIR)/binutils/ar ] ; then \
369 echo $$r/$(HOST_SUBDIR)/binutils/ar ; \
371 if [ '$(host)' = '$(target)' ] ; then \
374 echo $(CONFIGURED_AR_FOR_TARGET) ; \
378 AS_FOR_TARGET=@AS_FOR_TARGET@
379 CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
380 USUAL_AS_FOR_TARGET = ` \
381 if [ -f $$r/$(HOST_SUBDIR)/gas/as-new ] ; then \
382 echo $$r/$(HOST_SUBDIR)/gas/as-new ; \
383 elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \
384 $(CC_FOR_TARGET) -print-prog-name=as ; \
386 if [ '$(host)' = '$(target)' ] ; then \
389 echo $(CONFIGURED_AS_FOR_TARGET) ; \
393 CC_FOR_TARGET = @CC_FOR_TARGET@
394 # During gcc bootstrap, if we use some random cc for stage1 then
395 # CFLAGS will be just -g. We want to ensure that TARGET libraries
396 # (which we know are built with gcc) are built with optimizations so
397 # prepend -O2 when setting CFLAGS_FOR_TARGET.
398 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
399 # If GCC_FOR_TARGET is not overriden on the command line, then this
400 # variable is passed down to the gcc Makefile, where it is used to
401 # build libgcc2.a. We define it here so that it can itself be
402 # overridden on the command line.
403 GCC_FOR_TARGET=@GCC_FOR_TARGET@
404 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) \
405 $$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/ $(FLAGS_FOR_TARGET)
406 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
408 CXX_FOR_TARGET = @CXX_FOR_TARGET@
409 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
410 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
411 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
412 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
413 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
415 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
416 CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
417 USUAL_DLLTOOL_FOR_TARGET = ` \
418 if [ -f $$r/$(HOST_SUBDIR)/binutils/dlltool ] ; then \
419 echo $$r/$(HOST_SUBDIR)/binutils/dlltool ; \
421 if [ '$(host)' = '$(target)' ] ; then \
424 echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
428 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
429 GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
431 LD_FOR_TARGET=@LD_FOR_TARGET@
432 CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
433 USUAL_LD_FOR_TARGET = ` \
434 if [ -f $$r/$(HOST_SUBDIR)/ld/ld-new ] ; then \
435 echo $$r/$(HOST_SUBDIR)/ld/ld-new ; \
436 elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \
437 $(CC_FOR_TARGET) -print-prog-name=ld ; \
439 if [ '$(host)' = '$(target)' ] ; then \
442 echo $(CONFIGURED_LD_FOR_TARGET) ; \
448 NM_FOR_TARGET=@NM_FOR_TARGET@
449 CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
450 USUAL_NM_FOR_TARGET = ` \
451 if [ -f $$r/$(HOST_SUBDIR)/binutils/nm-new ] ; then \
452 echo $$r/$(HOST_SUBDIR)/binutils/nm-new ; \
453 elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \
454 $(CC_FOR_TARGET) -print-prog-name=nm ; \
456 if [ '$(host)' = '$(target)' ] ; then \
459 echo $(CONFIGURED_NM_FOR_TARGET) ; \
463 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
464 CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
465 USUAL_RANLIB_FOR_TARGET = ` \
466 if [ -f $$r/$(HOST_SUBDIR)/binutils/ranlib ] ; then \
467 echo $$r/$(HOST_SUBDIR)/binutils/ranlib ; \
469 if [ '$(host)' = '$(target)' ] ; then \
470 if [ x'$(RANLIB)' != x ]; then \
476 echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
480 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
481 CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
482 USUAL_WINDRES_FOR_TARGET = ` \
483 if [ -f $$r/$(HOST_SUBDIR)/binutils/windres ] ; then \
484 echo $$r/$(HOST_SUBDIR)/binutils/windres ; \
486 if [ '$(host)' = '$(target)' ] ; then \
489 echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
495 # ------------------------------------
496 # Miscellaneous targets and flag lists
497 # ------------------------------------
499 # The first rule in the file had better be this one. Don't put any above it.
500 # This lives here to allow makefile fragments to contain dependencies.
503 #### host and target specific makefile fragments come in here.
504 @target_makefile_frag@
510 # Flags to pass down to all sub-makes.
511 BASE_FLAGS_TO_PASS = \
512 "DESTDIR=$(DESTDIR)" \
513 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
514 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
516 "datadir=$(datadir)" \
517 "exec_prefix=$(exec_prefix)" \
518 "includedir=$(includedir)" \
519 "infodir=$(infodir)" \
521 "libexecdir=$(libexecdir)" \
522 "lispdir=$(lispdir)" \
523 "libstdcxx_incdir=$(libstdcxx_incdir)" \
524 "libsubdir=$(libsubdir)" \
525 "localstatedir=$(localstatedir)" \
527 "oldincludedir=$(oldincludedir)" \
529 "sbindir=$(sbindir)" \
530 "sharedstatedir=$(sharedstatedir)" \
531 "sysconfdir=$(sysconfdir)" \
532 "tooldir=$(tooldir)" \
533 "build_tooldir=$(build_tooldir)" \
534 "gxx_include_dir=$(gxx_include_dir)" \
535 "gcc_version=$(gcc_version)" \
536 "gcc_version_trigger=$(gcc_version_trigger)" \
537 "target_alias=$(target_alias)" \
539 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
540 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
543 "INSTALL=$(INSTALL)" \
544 "INSTALL_DATA=$(INSTALL_DATA)" \
545 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
546 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
550 "RUNTEST=$(RUNTEST)" \
551 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
554 "AR_FLAGS=$(AR_FLAGS)" \
556 "CXXFLAGS=$(CXXFLAGS)" \
557 "LDFLAGS=$(LDFLAGS)" \
558 "LIBCFLAGS=$(LIBCFLAGS)" \
559 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
560 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
561 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
562 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
563 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
564 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
565 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
566 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
567 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
568 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
569 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
570 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
571 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
572 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
573 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
574 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
575 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
576 "CONFIG_SHELL=$(SHELL)" \
577 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
579 # For any flags above that may contain shell code that varies from one
580 # target library to another. When doing recursive invocations of the
581 # top-level Makefile, we don't want the outer make to evaluate them,
582 # so we pass these variables down unchanged. They must not contain
583 # single nor double quotes.
585 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
586 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
588 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS)
590 # Flags to pass down to most sub-makes, in which we're building with
591 # the host environment.
597 'DLLTOOL=$(DLLTOOL)' \
603 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
605 # Flags that are concerned with the location of the X11 include files
608 # NOTE: until the top-level is getting the values via autoconf, it only
609 # causes problems to have this top-level Makefile overriding the autoconf-set
610 # values in child directories. Only variables that don't conflict with
611 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
613 X11_FLAGS_TO_PASS = \
614 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
615 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
617 # Flags to pass down to makes which are built with the target environment.
618 # The double $ decreases the length of the command line; the variables
619 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
620 EXTRA_TARGET_FLAGS = \
621 'AR=$$(AR_FOR_TARGET)' \
622 'AS=$$(AS_FOR_TARGET)' \
623 'CC=$$(CC_FOR_TARGET)' \
624 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
625 'CXX=$$(CXX_FOR_TARGET)' \
626 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
627 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
628 'LD=$$(LD_FOR_TARGET)' \
629 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
630 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
631 'NM=$$(NM_FOR_TARGET)' \
632 'RANLIB=$$(RANLIB_FOR_TARGET)' \
633 'WINDRES=$$(WINDRES_FOR_TARGET)'
635 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
637 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
638 # unfortunately needs the native compiler and the target ar and
640 # If any variables are added here, they must be added to do-*, below.
641 # The BUILD_* variables are a special case, which are used for the gcc
642 # cross-building scheme.
644 'BUILD_PREFIX=$(BUILD_PREFIX)' \
645 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
646 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
647 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
648 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
649 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
650 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
651 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
652 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
653 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
654 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
655 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
656 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
658 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
660 .PHONY: configure-host
662 maybe-configure-ash \
663 maybe-configure-autoconf \
664 maybe-configure-automake \
665 maybe-configure-bash \
666 maybe-configure-bfd \
667 maybe-configure-opcodes \
668 maybe-configure-binutils \
669 maybe-configure-bison \
670 maybe-configure-byacc \
671 maybe-configure-bzip2 \
672 maybe-configure-dejagnu \
673 maybe-configure-diff \
674 maybe-configure-dosutils \
675 maybe-configure-etc \
676 maybe-configure-fastjar \
677 maybe-configure-fileutils \
678 maybe-configure-findutils \
679 maybe-configure-find \
680 maybe-configure-fixincludes \
681 maybe-configure-flex \
682 maybe-configure-gas \
683 maybe-configure-gcc \
684 maybe-configure-gawk \
685 maybe-configure-gettext \
686 maybe-configure-gnuserv \
687 maybe-configure-gprof \
688 maybe-configure-gzip \
689 maybe-configure-hello \
690 maybe-configure-indent \
691 maybe-configure-intl \
692 maybe-configure-tcl \
693 maybe-configure-itcl \
695 maybe-configure-libcpp \
696 maybe-configure-libgui \
697 maybe-configure-libiberty \
698 maybe-configure-libtool \
700 maybe-configure-make \
701 maybe-configure-mmalloc \
702 maybe-configure-patch \
703 maybe-configure-perl \
704 maybe-configure-prms \
705 maybe-configure-rcs \
706 maybe-configure-readline \
707 maybe-configure-release \
708 maybe-configure-recode \
709 maybe-configure-sed \
710 maybe-configure-send-pr \
711 maybe-configure-shellutils \
712 maybe-configure-sid \
713 maybe-configure-sim \
714 maybe-configure-tar \
715 maybe-configure-texinfo \
716 maybe-configure-textutils \
717 maybe-configure-time \
718 maybe-configure-uudecode \
719 maybe-configure-wdiff \
720 maybe-configure-zip \
721 maybe-configure-zlib \
722 maybe-configure-gdb \
723 maybe-configure-expect \
724 maybe-configure-guile \
726 maybe-configure-libtermcap \
727 maybe-configure-utils \
728 maybe-configure-gnattools
729 .PHONY: configure-target
731 maybe-configure-target-libstdc++-v3 \
732 maybe-configure-target-libmudflap \
733 maybe-configure-target-newlib \
734 maybe-configure-target-libgfortran \
735 maybe-configure-target-libobjc \
736 maybe-configure-target-libtermcap \
737 maybe-configure-target-winsup \
738 maybe-configure-target-libgloss \
739 maybe-configure-target-libiberty \
740 maybe-configure-target-gperf \
741 maybe-configure-target-examples \
742 maybe-configure-target-libffi \
743 maybe-configure-target-libjava \
744 maybe-configure-target-zlib \
745 maybe-configure-target-boehm-gc \
746 maybe-configure-target-qthreads \
747 maybe-configure-target-rda \
748 maybe-configure-target-libada
750 # The target built for a native non-bootstrap build.
752 all: unstage all-host all-target stage
756 maybe-all-build-libiberty \
757 maybe-all-build-bison \
758 maybe-all-build-byacc \
759 maybe-all-build-flex \
761 maybe-all-build-texinfo \
762 maybe-all-build-fixincludes
780 maybe-all-fileutils \
781 maybe-all-findutils \
783 maybe-all-fixincludes \
800 maybe-all-libiberty \
814 maybe-all-shellutils \
819 maybe-all-textutils \
829 maybe-all-libtermcap \
834 maybe-all-target-libstdc++-v3 \
835 maybe-all-target-libmudflap \
836 maybe-all-target-newlib \
837 maybe-all-target-libgfortran \
838 maybe-all-target-libobjc \
839 maybe-all-target-libtermcap \
840 maybe-all-target-winsup \
841 maybe-all-target-libgloss \
842 maybe-all-target-libiberty \
843 maybe-all-target-gperf \
844 maybe-all-target-examples \
845 maybe-all-target-libffi \
846 maybe-all-target-libjava \
847 maybe-all-target-zlib \
848 maybe-all-target-boehm-gc \
849 maybe-all-target-qthreads \
850 maybe-all-target-rda \
851 maybe-all-target-libada
853 # Do a target for all the subdirectories. A ``make do-X'' will do a
854 # ``make X'' in all subdirectories (because, in general, there is a
855 # dependency (below) of X upon do-X, a ``make X'' will also do this,
856 # but it may do additional work as well).
859 do-info: unstage info-host info-target stage
864 maybe-info-autoconf \
865 maybe-info-automake \
869 maybe-info-binutils \
875 maybe-info-dosutils \
878 maybe-info-fileutils \
879 maybe-info-findutils \
881 maybe-info-fixincludes \
898 maybe-info-libiberty \
907 maybe-info-readline \
912 maybe-info-shellutils \
917 maybe-info-textutils \
919 maybe-info-uudecode \
927 maybe-info-libtermcap \
933 maybe-info-target-libstdc++-v3 \
934 maybe-info-target-libmudflap \
935 maybe-info-target-newlib \
936 maybe-info-target-libgfortran \
937 maybe-info-target-libobjc \
938 maybe-info-target-libtermcap \
939 maybe-info-target-winsup \
940 maybe-info-target-libgloss \
941 maybe-info-target-libiberty \
942 maybe-info-target-gperf \
943 maybe-info-target-examples \
944 maybe-info-target-libffi \
945 maybe-info-target-libjava \
946 maybe-info-target-zlib \
947 maybe-info-target-boehm-gc \
948 maybe-info-target-qthreads \
949 maybe-info-target-rda \
950 maybe-info-target-libada
953 do-dvi: unstage dvi-host dvi-target stage
972 maybe-dvi-fileutils \
973 maybe-dvi-findutils \
975 maybe-dvi-fixincludes \
992 maybe-dvi-libiberty \
1001 maybe-dvi-readline \
1006 maybe-dvi-shellutils \
1011 maybe-dvi-textutils \
1013 maybe-dvi-uudecode \
1021 maybe-dvi-libtermcap \
1027 maybe-dvi-target-libstdc++-v3 \
1028 maybe-dvi-target-libmudflap \
1029 maybe-dvi-target-newlib \
1030 maybe-dvi-target-libgfortran \
1031 maybe-dvi-target-libobjc \
1032 maybe-dvi-target-libtermcap \
1033 maybe-dvi-target-winsup \
1034 maybe-dvi-target-libgloss \
1035 maybe-dvi-target-libiberty \
1036 maybe-dvi-target-gperf \
1037 maybe-dvi-target-examples \
1038 maybe-dvi-target-libffi \
1039 maybe-dvi-target-libjava \
1040 maybe-dvi-target-zlib \
1041 maybe-dvi-target-boehm-gc \
1042 maybe-dvi-target-qthreads \
1043 maybe-dvi-target-rda \
1044 maybe-dvi-target-libada
1047 do-html: unstage html-host html-target stage
1052 maybe-html-autoconf \
1053 maybe-html-automake \
1056 maybe-html-opcodes \
1057 maybe-html-binutils \
1061 maybe-html-dejagnu \
1063 maybe-html-dosutils \
1065 maybe-html-fastjar \
1066 maybe-html-fileutils \
1067 maybe-html-findutils \
1069 maybe-html-fixincludes \
1074 maybe-html-gettext \
1075 maybe-html-gnuserv \
1086 maybe-html-libiberty \
1087 maybe-html-libtool \
1090 maybe-html-mmalloc \
1095 maybe-html-readline \
1096 maybe-html-release \
1099 maybe-html-send-pr \
1100 maybe-html-shellutils \
1104 maybe-html-texinfo \
1105 maybe-html-textutils \
1107 maybe-html-uudecode \
1115 maybe-html-libtermcap \
1117 maybe-html-gnattools
1121 maybe-html-target-libstdc++-v3 \
1122 maybe-html-target-libmudflap \
1123 maybe-html-target-newlib \
1124 maybe-html-target-libgfortran \
1125 maybe-html-target-libobjc \
1126 maybe-html-target-libtermcap \
1127 maybe-html-target-winsup \
1128 maybe-html-target-libgloss \
1129 maybe-html-target-libiberty \
1130 maybe-html-target-gperf \
1131 maybe-html-target-examples \
1132 maybe-html-target-libffi \
1133 maybe-html-target-libjava \
1134 maybe-html-target-zlib \
1135 maybe-html-target-boehm-gc \
1136 maybe-html-target-qthreads \
1137 maybe-html-target-rda \
1138 maybe-html-target-libada
1141 do-TAGS: unstage TAGS-host TAGS-target stage
1146 maybe-TAGS-autoconf \
1147 maybe-TAGS-automake \
1150 maybe-TAGS-opcodes \
1151 maybe-TAGS-binutils \
1155 maybe-TAGS-dejagnu \
1157 maybe-TAGS-dosutils \
1159 maybe-TAGS-fastjar \
1160 maybe-TAGS-fileutils \
1161 maybe-TAGS-findutils \
1163 maybe-TAGS-fixincludes \
1168 maybe-TAGS-gettext \
1169 maybe-TAGS-gnuserv \
1180 maybe-TAGS-libiberty \
1181 maybe-TAGS-libtool \
1184 maybe-TAGS-mmalloc \
1189 maybe-TAGS-readline \
1190 maybe-TAGS-release \
1193 maybe-TAGS-send-pr \
1194 maybe-TAGS-shellutils \
1198 maybe-TAGS-texinfo \
1199 maybe-TAGS-textutils \
1201 maybe-TAGS-uudecode \
1209 maybe-TAGS-libtermcap \
1211 maybe-TAGS-gnattools
1215 maybe-TAGS-target-libstdc++-v3 \
1216 maybe-TAGS-target-libmudflap \
1217 maybe-TAGS-target-newlib \
1218 maybe-TAGS-target-libgfortran \
1219 maybe-TAGS-target-libobjc \
1220 maybe-TAGS-target-libtermcap \
1221 maybe-TAGS-target-winsup \
1222 maybe-TAGS-target-libgloss \
1223 maybe-TAGS-target-libiberty \
1224 maybe-TAGS-target-gperf \
1225 maybe-TAGS-target-examples \
1226 maybe-TAGS-target-libffi \
1227 maybe-TAGS-target-libjava \
1228 maybe-TAGS-target-zlib \
1229 maybe-TAGS-target-boehm-gc \
1230 maybe-TAGS-target-qthreads \
1231 maybe-TAGS-target-rda \
1232 maybe-TAGS-target-libada
1234 .PHONY: do-install-info
1235 do-install-info: unstage install-info-host install-info-target stage
1237 .PHONY: install-info-host
1238 install-info-host: \
1239 maybe-install-info-ash \
1240 maybe-install-info-autoconf \
1241 maybe-install-info-automake \
1242 maybe-install-info-bash \
1243 maybe-install-info-bfd \
1244 maybe-install-info-opcodes \
1245 maybe-install-info-binutils \
1246 maybe-install-info-bison \
1247 maybe-install-info-byacc \
1248 maybe-install-info-bzip2 \
1249 maybe-install-info-dejagnu \
1250 maybe-install-info-diff \
1251 maybe-install-info-dosutils \
1252 maybe-install-info-etc \
1253 maybe-install-info-fastjar \
1254 maybe-install-info-fileutils \
1255 maybe-install-info-findutils \
1256 maybe-install-info-find \
1257 maybe-install-info-fixincludes \
1258 maybe-install-info-flex \
1259 maybe-install-info-gas \
1260 maybe-install-info-gcc \
1261 maybe-install-info-gawk \
1262 maybe-install-info-gettext \
1263 maybe-install-info-gnuserv \
1264 maybe-install-info-gprof \
1265 maybe-install-info-gzip \
1266 maybe-install-info-hello \
1267 maybe-install-info-indent \
1268 maybe-install-info-intl \
1269 maybe-install-info-tcl \
1270 maybe-install-info-itcl \
1271 maybe-install-info-ld \
1272 maybe-install-info-libcpp \
1273 maybe-install-info-libgui \
1274 maybe-install-info-libiberty \
1275 maybe-install-info-libtool \
1276 maybe-install-info-m4 \
1277 maybe-install-info-make \
1278 maybe-install-info-mmalloc \
1279 maybe-install-info-patch \
1280 maybe-install-info-perl \
1281 maybe-install-info-prms \
1282 maybe-install-info-rcs \
1283 maybe-install-info-readline \
1284 maybe-install-info-release \
1285 maybe-install-info-recode \
1286 maybe-install-info-sed \
1287 maybe-install-info-send-pr \
1288 maybe-install-info-shellutils \
1289 maybe-install-info-sid \
1290 maybe-install-info-sim \
1291 maybe-install-info-tar \
1292 maybe-install-info-texinfo \
1293 maybe-install-info-textutils \
1294 maybe-install-info-time \
1295 maybe-install-info-uudecode \
1296 maybe-install-info-wdiff \
1297 maybe-install-info-zip \
1298 maybe-install-info-zlib \
1299 maybe-install-info-gdb \
1300 maybe-install-info-expect \
1301 maybe-install-info-guile \
1302 maybe-install-info-tk \
1303 maybe-install-info-libtermcap \
1304 maybe-install-info-utils \
1305 maybe-install-info-gnattools
1307 .PHONY: install-info-target
1308 install-info-target: \
1309 maybe-install-info-target-libstdc++-v3 \
1310 maybe-install-info-target-libmudflap \
1311 maybe-install-info-target-newlib \
1312 maybe-install-info-target-libgfortran \
1313 maybe-install-info-target-libobjc \
1314 maybe-install-info-target-libtermcap \
1315 maybe-install-info-target-winsup \
1316 maybe-install-info-target-libgloss \
1317 maybe-install-info-target-libiberty \
1318 maybe-install-info-target-gperf \
1319 maybe-install-info-target-examples \
1320 maybe-install-info-target-libffi \
1321 maybe-install-info-target-libjava \
1322 maybe-install-info-target-zlib \
1323 maybe-install-info-target-boehm-gc \
1324 maybe-install-info-target-qthreads \
1325 maybe-install-info-target-rda \
1326 maybe-install-info-target-libada
1328 .PHONY: do-installcheck
1329 do-installcheck: unstage installcheck-host installcheck-target stage
1331 .PHONY: installcheck-host
1332 installcheck-host: \
1333 maybe-installcheck-ash \
1334 maybe-installcheck-autoconf \
1335 maybe-installcheck-automake \
1336 maybe-installcheck-bash \
1337 maybe-installcheck-bfd \
1338 maybe-installcheck-opcodes \
1339 maybe-installcheck-binutils \
1340 maybe-installcheck-bison \
1341 maybe-installcheck-byacc \
1342 maybe-installcheck-bzip2 \
1343 maybe-installcheck-dejagnu \
1344 maybe-installcheck-diff \
1345 maybe-installcheck-dosutils \
1346 maybe-installcheck-etc \
1347 maybe-installcheck-fastjar \
1348 maybe-installcheck-fileutils \
1349 maybe-installcheck-findutils \
1350 maybe-installcheck-find \
1351 maybe-installcheck-fixincludes \
1352 maybe-installcheck-flex \
1353 maybe-installcheck-gas \
1354 maybe-installcheck-gcc \
1355 maybe-installcheck-gawk \
1356 maybe-installcheck-gettext \
1357 maybe-installcheck-gnuserv \
1358 maybe-installcheck-gprof \
1359 maybe-installcheck-gzip \
1360 maybe-installcheck-hello \
1361 maybe-installcheck-indent \
1362 maybe-installcheck-intl \
1363 maybe-installcheck-tcl \
1364 maybe-installcheck-itcl \
1365 maybe-installcheck-ld \
1366 maybe-installcheck-libcpp \
1367 maybe-installcheck-libgui \
1368 maybe-installcheck-libiberty \
1369 maybe-installcheck-libtool \
1370 maybe-installcheck-m4 \
1371 maybe-installcheck-make \
1372 maybe-installcheck-mmalloc \
1373 maybe-installcheck-patch \
1374 maybe-installcheck-perl \
1375 maybe-installcheck-prms \
1376 maybe-installcheck-rcs \
1377 maybe-installcheck-readline \
1378 maybe-installcheck-release \
1379 maybe-installcheck-recode \
1380 maybe-installcheck-sed \
1381 maybe-installcheck-send-pr \
1382 maybe-installcheck-shellutils \
1383 maybe-installcheck-sid \
1384 maybe-installcheck-sim \
1385 maybe-installcheck-tar \
1386 maybe-installcheck-texinfo \
1387 maybe-installcheck-textutils \
1388 maybe-installcheck-time \
1389 maybe-installcheck-uudecode \
1390 maybe-installcheck-wdiff \
1391 maybe-installcheck-zip \
1392 maybe-installcheck-zlib \
1393 maybe-installcheck-gdb \
1394 maybe-installcheck-expect \
1395 maybe-installcheck-guile \
1396 maybe-installcheck-tk \
1397 maybe-installcheck-libtermcap \
1398 maybe-installcheck-utils \
1399 maybe-installcheck-gnattools
1401 .PHONY: installcheck-target
1402 installcheck-target: \
1403 maybe-installcheck-target-libstdc++-v3 \
1404 maybe-installcheck-target-libmudflap \
1405 maybe-installcheck-target-newlib \
1406 maybe-installcheck-target-libgfortran \
1407 maybe-installcheck-target-libobjc \
1408 maybe-installcheck-target-libtermcap \
1409 maybe-installcheck-target-winsup \
1410 maybe-installcheck-target-libgloss \
1411 maybe-installcheck-target-libiberty \
1412 maybe-installcheck-target-gperf \
1413 maybe-installcheck-target-examples \
1414 maybe-installcheck-target-libffi \
1415 maybe-installcheck-target-libjava \
1416 maybe-installcheck-target-zlib \
1417 maybe-installcheck-target-boehm-gc \
1418 maybe-installcheck-target-qthreads \
1419 maybe-installcheck-target-rda \
1420 maybe-installcheck-target-libada
1422 .PHONY: do-mostlyclean
1423 do-mostlyclean: unstage mostlyclean-host mostlyclean-target stage
1425 .PHONY: mostlyclean-host
1427 maybe-mostlyclean-ash \
1428 maybe-mostlyclean-autoconf \
1429 maybe-mostlyclean-automake \
1430 maybe-mostlyclean-bash \
1431 maybe-mostlyclean-bfd \
1432 maybe-mostlyclean-opcodes \
1433 maybe-mostlyclean-binutils \
1434 maybe-mostlyclean-bison \
1435 maybe-mostlyclean-byacc \
1436 maybe-mostlyclean-bzip2 \
1437 maybe-mostlyclean-dejagnu \
1438 maybe-mostlyclean-diff \
1439 maybe-mostlyclean-dosutils \
1440 maybe-mostlyclean-etc \
1441 maybe-mostlyclean-fastjar \
1442 maybe-mostlyclean-fileutils \
1443 maybe-mostlyclean-findutils \
1444 maybe-mostlyclean-find \
1445 maybe-mostlyclean-fixincludes \
1446 maybe-mostlyclean-flex \
1447 maybe-mostlyclean-gas \
1448 maybe-mostlyclean-gcc \
1449 maybe-mostlyclean-gawk \
1450 maybe-mostlyclean-gettext \
1451 maybe-mostlyclean-gnuserv \
1452 maybe-mostlyclean-gprof \
1453 maybe-mostlyclean-gzip \
1454 maybe-mostlyclean-hello \
1455 maybe-mostlyclean-indent \
1456 maybe-mostlyclean-intl \
1457 maybe-mostlyclean-tcl \
1458 maybe-mostlyclean-itcl \
1459 maybe-mostlyclean-ld \
1460 maybe-mostlyclean-libcpp \
1461 maybe-mostlyclean-libgui \
1462 maybe-mostlyclean-libiberty \
1463 maybe-mostlyclean-libtool \
1464 maybe-mostlyclean-m4 \
1465 maybe-mostlyclean-make \
1466 maybe-mostlyclean-mmalloc \
1467 maybe-mostlyclean-patch \
1468 maybe-mostlyclean-perl \
1469 maybe-mostlyclean-prms \
1470 maybe-mostlyclean-rcs \
1471 maybe-mostlyclean-readline \
1472 maybe-mostlyclean-release \
1473 maybe-mostlyclean-recode \
1474 maybe-mostlyclean-sed \
1475 maybe-mostlyclean-send-pr \
1476 maybe-mostlyclean-shellutils \
1477 maybe-mostlyclean-sid \
1478 maybe-mostlyclean-sim \
1479 maybe-mostlyclean-tar \
1480 maybe-mostlyclean-texinfo \
1481 maybe-mostlyclean-textutils \
1482 maybe-mostlyclean-time \
1483 maybe-mostlyclean-uudecode \
1484 maybe-mostlyclean-wdiff \
1485 maybe-mostlyclean-zip \
1486 maybe-mostlyclean-zlib \
1487 maybe-mostlyclean-gdb \
1488 maybe-mostlyclean-expect \
1489 maybe-mostlyclean-guile \
1490 maybe-mostlyclean-tk \
1491 maybe-mostlyclean-libtermcap \
1492 maybe-mostlyclean-utils \
1493 maybe-mostlyclean-gnattools
1495 .PHONY: mostlyclean-target
1496 mostlyclean-target: \
1497 maybe-mostlyclean-target-libstdc++-v3 \
1498 maybe-mostlyclean-target-libmudflap \
1499 maybe-mostlyclean-target-newlib \
1500 maybe-mostlyclean-target-libgfortran \
1501 maybe-mostlyclean-target-libobjc \
1502 maybe-mostlyclean-target-libtermcap \
1503 maybe-mostlyclean-target-winsup \
1504 maybe-mostlyclean-target-libgloss \
1505 maybe-mostlyclean-target-libiberty \
1506 maybe-mostlyclean-target-gperf \
1507 maybe-mostlyclean-target-examples \
1508 maybe-mostlyclean-target-libffi \
1509 maybe-mostlyclean-target-libjava \
1510 maybe-mostlyclean-target-zlib \
1511 maybe-mostlyclean-target-boehm-gc \
1512 maybe-mostlyclean-target-qthreads \
1513 maybe-mostlyclean-target-rda \
1514 maybe-mostlyclean-target-libada
1517 do-clean: unstage clean-host clean-target stage
1522 maybe-clean-autoconf \
1523 maybe-clean-automake \
1526 maybe-clean-opcodes \
1527 maybe-clean-binutils \
1531 maybe-clean-dejagnu \
1533 maybe-clean-dosutils \
1535 maybe-clean-fastjar \
1536 maybe-clean-fileutils \
1537 maybe-clean-findutils \
1539 maybe-clean-fixincludes \
1544 maybe-clean-gettext \
1545 maybe-clean-gnuserv \
1549 maybe-clean-indent \
1554 maybe-clean-libcpp \
1555 maybe-clean-libgui \
1556 maybe-clean-libiberty \
1557 maybe-clean-libtool \
1560 maybe-clean-mmalloc \
1565 maybe-clean-readline \
1566 maybe-clean-release \
1567 maybe-clean-recode \
1569 maybe-clean-send-pr \
1570 maybe-clean-shellutils \
1574 maybe-clean-texinfo \
1575 maybe-clean-textutils \
1577 maybe-clean-uudecode \
1582 maybe-clean-expect \
1585 maybe-clean-libtermcap \
1587 maybe-clean-gnattools
1589 .PHONY: clean-target
1591 maybe-clean-target-libstdc++-v3 \
1592 maybe-clean-target-libmudflap \
1593 maybe-clean-target-newlib \
1594 maybe-clean-target-libgfortran \
1595 maybe-clean-target-libobjc \
1596 maybe-clean-target-libtermcap \
1597 maybe-clean-target-winsup \
1598 maybe-clean-target-libgloss \
1599 maybe-clean-target-libiberty \
1600 maybe-clean-target-gperf \
1601 maybe-clean-target-examples \
1602 maybe-clean-target-libffi \
1603 maybe-clean-target-libjava \
1604 maybe-clean-target-zlib \
1605 maybe-clean-target-boehm-gc \
1606 maybe-clean-target-qthreads \
1607 maybe-clean-target-rda \
1608 maybe-clean-target-libada
1610 .PHONY: do-distclean
1611 do-distclean: unstage distclean-host distclean-target stage
1613 .PHONY: distclean-host
1615 maybe-distclean-ash \
1616 maybe-distclean-autoconf \
1617 maybe-distclean-automake \
1618 maybe-distclean-bash \
1619 maybe-distclean-bfd \
1620 maybe-distclean-opcodes \
1621 maybe-distclean-binutils \
1622 maybe-distclean-bison \
1623 maybe-distclean-byacc \
1624 maybe-distclean-bzip2 \
1625 maybe-distclean-dejagnu \
1626 maybe-distclean-diff \
1627 maybe-distclean-dosutils \
1628 maybe-distclean-etc \
1629 maybe-distclean-fastjar \
1630 maybe-distclean-fileutils \
1631 maybe-distclean-findutils \
1632 maybe-distclean-find \
1633 maybe-distclean-fixincludes \
1634 maybe-distclean-flex \
1635 maybe-distclean-gas \
1636 maybe-distclean-gcc \
1637 maybe-distclean-gawk \
1638 maybe-distclean-gettext \
1639 maybe-distclean-gnuserv \
1640 maybe-distclean-gprof \
1641 maybe-distclean-gzip \
1642 maybe-distclean-hello \
1643 maybe-distclean-indent \
1644 maybe-distclean-intl \
1645 maybe-distclean-tcl \
1646 maybe-distclean-itcl \
1647 maybe-distclean-ld \
1648 maybe-distclean-libcpp \
1649 maybe-distclean-libgui \
1650 maybe-distclean-libiberty \
1651 maybe-distclean-libtool \
1652 maybe-distclean-m4 \
1653 maybe-distclean-make \
1654 maybe-distclean-mmalloc \
1655 maybe-distclean-patch \
1656 maybe-distclean-perl \
1657 maybe-distclean-prms \
1658 maybe-distclean-rcs \
1659 maybe-distclean-readline \
1660 maybe-distclean-release \
1661 maybe-distclean-recode \
1662 maybe-distclean-sed \
1663 maybe-distclean-send-pr \
1664 maybe-distclean-shellutils \
1665 maybe-distclean-sid \
1666 maybe-distclean-sim \
1667 maybe-distclean-tar \
1668 maybe-distclean-texinfo \
1669 maybe-distclean-textutils \
1670 maybe-distclean-time \
1671 maybe-distclean-uudecode \
1672 maybe-distclean-wdiff \
1673 maybe-distclean-zip \
1674 maybe-distclean-zlib \
1675 maybe-distclean-gdb \
1676 maybe-distclean-expect \
1677 maybe-distclean-guile \
1678 maybe-distclean-tk \
1679 maybe-distclean-libtermcap \
1680 maybe-distclean-utils \
1681 maybe-distclean-gnattools
1683 .PHONY: distclean-target
1685 maybe-distclean-target-libstdc++-v3 \
1686 maybe-distclean-target-libmudflap \
1687 maybe-distclean-target-newlib \
1688 maybe-distclean-target-libgfortran \
1689 maybe-distclean-target-libobjc \
1690 maybe-distclean-target-libtermcap \
1691 maybe-distclean-target-winsup \
1692 maybe-distclean-target-libgloss \
1693 maybe-distclean-target-libiberty \
1694 maybe-distclean-target-gperf \
1695 maybe-distclean-target-examples \
1696 maybe-distclean-target-libffi \
1697 maybe-distclean-target-libjava \
1698 maybe-distclean-target-zlib \
1699 maybe-distclean-target-boehm-gc \
1700 maybe-distclean-target-qthreads \
1701 maybe-distclean-target-rda \
1702 maybe-distclean-target-libada
1704 .PHONY: do-maintainer-clean
1705 do-maintainer-clean: unstage maintainer-clean-host maintainer-clean-target stage
1707 .PHONY: maintainer-clean-host
1708 maintainer-clean-host: \
1709 maybe-maintainer-clean-ash \
1710 maybe-maintainer-clean-autoconf \
1711 maybe-maintainer-clean-automake \
1712 maybe-maintainer-clean-bash \
1713 maybe-maintainer-clean-bfd \
1714 maybe-maintainer-clean-opcodes \
1715 maybe-maintainer-clean-binutils \
1716 maybe-maintainer-clean-bison \
1717 maybe-maintainer-clean-byacc \
1718 maybe-maintainer-clean-bzip2 \
1719 maybe-maintainer-clean-dejagnu \
1720 maybe-maintainer-clean-diff \
1721 maybe-maintainer-clean-dosutils \
1722 maybe-maintainer-clean-etc \
1723 maybe-maintainer-clean-fastjar \
1724 maybe-maintainer-clean-fileutils \
1725 maybe-maintainer-clean-findutils \
1726 maybe-maintainer-clean-find \
1727 maybe-maintainer-clean-fixincludes \
1728 maybe-maintainer-clean-flex \
1729 maybe-maintainer-clean-gas \
1730 maybe-maintainer-clean-gcc \
1731 maybe-maintainer-clean-gawk \
1732 maybe-maintainer-clean-gettext \
1733 maybe-maintainer-clean-gnuserv \
1734 maybe-maintainer-clean-gprof \
1735 maybe-maintainer-clean-gzip \
1736 maybe-maintainer-clean-hello \
1737 maybe-maintainer-clean-indent \
1738 maybe-maintainer-clean-intl \
1739 maybe-maintainer-clean-tcl \
1740 maybe-maintainer-clean-itcl \
1741 maybe-maintainer-clean-ld \
1742 maybe-maintainer-clean-libcpp \
1743 maybe-maintainer-clean-libgui \
1744 maybe-maintainer-clean-libiberty \
1745 maybe-maintainer-clean-libtool \
1746 maybe-maintainer-clean-m4 \
1747 maybe-maintainer-clean-make \
1748 maybe-maintainer-clean-mmalloc \
1749 maybe-maintainer-clean-patch \
1750 maybe-maintainer-clean-perl \
1751 maybe-maintainer-clean-prms \
1752 maybe-maintainer-clean-rcs \
1753 maybe-maintainer-clean-readline \
1754 maybe-maintainer-clean-release \
1755 maybe-maintainer-clean-recode \
1756 maybe-maintainer-clean-sed \
1757 maybe-maintainer-clean-send-pr \
1758 maybe-maintainer-clean-shellutils \
1759 maybe-maintainer-clean-sid \
1760 maybe-maintainer-clean-sim \
1761 maybe-maintainer-clean-tar \
1762 maybe-maintainer-clean-texinfo \
1763 maybe-maintainer-clean-textutils \
1764 maybe-maintainer-clean-time \
1765 maybe-maintainer-clean-uudecode \
1766 maybe-maintainer-clean-wdiff \
1767 maybe-maintainer-clean-zip \
1768 maybe-maintainer-clean-zlib \
1769 maybe-maintainer-clean-gdb \
1770 maybe-maintainer-clean-expect \
1771 maybe-maintainer-clean-guile \
1772 maybe-maintainer-clean-tk \
1773 maybe-maintainer-clean-libtermcap \
1774 maybe-maintainer-clean-utils \
1775 maybe-maintainer-clean-gnattools
1777 .PHONY: maintainer-clean-target
1778 maintainer-clean-target: \
1779 maybe-maintainer-clean-target-libstdc++-v3 \
1780 maybe-maintainer-clean-target-libmudflap \
1781 maybe-maintainer-clean-target-newlib \
1782 maybe-maintainer-clean-target-libgfortran \
1783 maybe-maintainer-clean-target-libobjc \
1784 maybe-maintainer-clean-target-libtermcap \
1785 maybe-maintainer-clean-target-winsup \
1786 maybe-maintainer-clean-target-libgloss \
1787 maybe-maintainer-clean-target-libiberty \
1788 maybe-maintainer-clean-target-gperf \
1789 maybe-maintainer-clean-target-examples \
1790 maybe-maintainer-clean-target-libffi \
1791 maybe-maintainer-clean-target-libjava \
1792 maybe-maintainer-clean-target-zlib \
1793 maybe-maintainer-clean-target-boehm-gc \
1794 maybe-maintainer-clean-target-qthreads \
1795 maybe-maintainer-clean-target-rda \
1796 maybe-maintainer-clean-target-libada
1799 # Here are the targets which correspond to the do-X targets.
1801 .PHONY: info installcheck dvi html install-info
1802 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1803 .PHONY: local-clean local-distclean local-maintainer-clean
1805 installcheck: do-installcheck
1809 # Make sure makeinfo is built before we do a `make info', if we're
1810 # in fact building texinfo.
1811 do-info: maybe-all-texinfo
1813 install-info: do-install-info dir.info
1814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1815 if [ -f dir.info ] ; then \
1816 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1820 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1823 -rm -f Makefile config.status config.cache mh-frag mt-frag
1824 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1825 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1826 rm -rf $(TARGET_SUBDIR); \
1828 -rm -rf $(BUILD_SUBDIR)
1829 -if [ "$(HOST_SUBDIR)" != "." ]; then \
1830 rm -rf $(HOST_SUBDIR); \
1832 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1833 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1834 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1835 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1836 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1838 local-maintainer-clean:
1839 @echo "This command is intended for maintainers to use;"
1840 @echo "it deletes files that may require special tools to rebuild."
1842 clean: do-clean local-clean
1843 mostlyclean: do-mostlyclean local-clean
1844 distclean: do-distclean local-clean local-distclean
1845 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1846 maintainer-clean: local-distclean
1847 realclean: maintainer-clean
1849 # Extra dependency for clean-target, owing to the mixed nature of gcc
1850 clean-target: clean-target-libgcc
1851 clean-target-libgcc:
1852 test ! -d gcc/libgcc || \
1853 (cd gcc/libgcc && find . -type d -print) | \
1854 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1856 -rm -f gcc/stmp-dirs
1860 .PHONY: check do-check
1863 # Only include modules actually being configured and built.
1866 maybe-check-autoconf \
1867 maybe-check-automake \
1870 maybe-check-opcodes \
1871 maybe-check-binutils \
1875 maybe-check-dejagnu \
1877 maybe-check-dosutils \
1879 maybe-check-fastjar \
1880 maybe-check-fileutils \
1881 maybe-check-findutils \
1883 maybe-check-fixincludes \
1888 maybe-check-gettext \
1889 maybe-check-gnuserv \
1893 maybe-check-indent \
1898 maybe-check-libcpp \
1899 maybe-check-libgui \
1900 maybe-check-libiberty \
1901 maybe-check-libtool \
1904 maybe-check-mmalloc \
1909 maybe-check-readline \
1910 maybe-check-release \
1911 maybe-check-recode \
1913 maybe-check-send-pr \
1914 maybe-check-shellutils \
1918 maybe-check-texinfo \
1919 maybe-check-textutils \
1921 maybe-check-uudecode \
1926 maybe-check-expect \
1929 maybe-check-libtermcap \
1931 maybe-check-gnattools \
1932 maybe-check-target-libstdc++-v3 \
1933 maybe-check-target-libmudflap \
1934 maybe-check-target-newlib \
1935 maybe-check-target-libgfortran \
1936 maybe-check-target-libobjc \
1937 maybe-check-target-libtermcap \
1938 maybe-check-target-winsup \
1939 maybe-check-target-libgloss \
1940 maybe-check-target-libiberty \
1941 maybe-check-target-gperf \
1942 maybe-check-target-examples \
1943 maybe-check-target-libffi \
1944 maybe-check-target-libjava \
1945 maybe-check-target-zlib \
1946 maybe-check-target-boehm-gc \
1947 maybe-check-target-qthreads \
1948 maybe-check-target-rda \
1949 maybe-check-target-libada stage
1951 # Automated reporting of test results.
1953 warning.log: build.log
1954 $(srcdir)/contrib/warn_summary build.log > $@
1957 if test x'$(BOOT_CFLAGS)' != x''; then \
1958 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1960 $(srcdir)/contrib/test_summary -t >$@
1962 echo If you really want to send e-mail, run ./$@ now
1964 mail-report-with-warnings.log: warning.log
1965 if test x'$(BOOT_CFLAGS)' != x''; then \
1966 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1968 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1970 echo If you really want to send e-mail, run ./$@ now
1972 # Installation targets.
1974 .PHONY: install uninstall
1975 install: installdirs install-host install-target
1977 .PHONY: install-host-nogcc
1978 install-host-nogcc: \
1980 maybe-install-autoconf \
1981 maybe-install-automake \
1982 maybe-install-bash \
1984 maybe-install-opcodes \
1985 maybe-install-binutils \
1986 maybe-install-bison \
1987 maybe-install-byacc \
1988 maybe-install-bzip2 \
1989 maybe-install-dejagnu \
1990 maybe-install-diff \
1991 maybe-install-dosutils \
1993 maybe-install-fastjar \
1994 maybe-install-fileutils \
1995 maybe-install-findutils \
1996 maybe-install-find \
1997 maybe-install-fixincludes \
1998 maybe-install-flex \
2000 maybe-install-gawk \
2001 maybe-install-gettext \
2002 maybe-install-gnuserv \
2003 maybe-install-gprof \
2004 maybe-install-gzip \
2005 maybe-install-hello \
2006 maybe-install-indent \
2007 maybe-install-intl \
2009 maybe-install-itcl \
2011 maybe-install-libcpp \
2012 maybe-install-libgui \
2013 maybe-install-libiberty \
2014 maybe-install-libtool \
2016 maybe-install-make \
2017 maybe-install-mmalloc \
2018 maybe-install-patch \
2019 maybe-install-perl \
2020 maybe-install-prms \
2022 maybe-install-readline \
2023 maybe-install-release \
2024 maybe-install-recode \
2026 maybe-install-send-pr \
2027 maybe-install-shellutils \
2031 maybe-install-texinfo \
2032 maybe-install-textutils \
2033 maybe-install-time \
2034 maybe-install-uudecode \
2035 maybe-install-wdiff \
2037 maybe-install-zlib \
2039 maybe-install-expect \
2040 maybe-install-guile \
2042 maybe-install-libtermcap \
2043 maybe-install-utils \
2044 maybe-install-gnattools
2046 .PHONY: install-host
2049 maybe-install-autoconf \
2050 maybe-install-automake \
2051 maybe-install-bash \
2053 maybe-install-opcodes \
2054 maybe-install-binutils \
2055 maybe-install-bison \
2056 maybe-install-byacc \
2057 maybe-install-bzip2 \
2058 maybe-install-dejagnu \
2059 maybe-install-diff \
2060 maybe-install-dosutils \
2062 maybe-install-fastjar \
2063 maybe-install-fileutils \
2064 maybe-install-findutils \
2065 maybe-install-find \
2066 maybe-install-fixincludes \
2067 maybe-install-flex \
2070 maybe-install-gawk \
2071 maybe-install-gettext \
2072 maybe-install-gnuserv \
2073 maybe-install-gprof \
2074 maybe-install-gzip \
2075 maybe-install-hello \
2076 maybe-install-indent \
2077 maybe-install-intl \
2079 maybe-install-itcl \
2081 maybe-install-libcpp \
2082 maybe-install-libgui \
2083 maybe-install-libiberty \
2084 maybe-install-libtool \
2086 maybe-install-make \
2087 maybe-install-mmalloc \
2088 maybe-install-patch \
2089 maybe-install-perl \
2090 maybe-install-prms \
2092 maybe-install-readline \
2093 maybe-install-release \
2094 maybe-install-recode \
2096 maybe-install-send-pr \
2097 maybe-install-shellutils \
2101 maybe-install-texinfo \
2102 maybe-install-textutils \
2103 maybe-install-time \
2104 maybe-install-uudecode \
2105 maybe-install-wdiff \
2107 maybe-install-zlib \
2109 maybe-install-expect \
2110 maybe-install-guile \
2112 maybe-install-libtermcap \
2113 maybe-install-utils \
2114 maybe-install-gnattools
2116 .PHONY: install-target
2118 maybe-install-target-libstdc++-v3 \
2119 maybe-install-target-libmudflap \
2120 maybe-install-target-newlib \
2121 maybe-install-target-libgfortran \
2122 maybe-install-target-libobjc \
2123 maybe-install-target-libtermcap \
2124 maybe-install-target-winsup \
2125 maybe-install-target-libgloss \
2126 maybe-install-target-libiberty \
2127 maybe-install-target-gperf \
2128 maybe-install-target-examples \
2129 maybe-install-target-libffi \
2130 maybe-install-target-libjava \
2131 maybe-install-target-zlib \
2132 maybe-install-target-boehm-gc \
2133 maybe-install-target-qthreads \
2134 maybe-install-target-rda \
2135 maybe-install-target-libada
2138 @echo "the uninstall target is not supported in this tree"
2141 install.all: install-no-fixedincludes
2142 @if [ -f ./gcc/Makefile ] ; then \
2143 r=`${PWD_COMMAND}` ; export r ; \
2147 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
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
2158 ### other supporting targets
2161 $(DESTDIR)$(prefix) \
2162 $(DESTDIR)$(exec_prefix)
2164 installdirs: mkinstalldirs
2165 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
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 ; \
2175 @echo "Building a full distribution of this tree isn't done"
2176 @echo "via 'make dist'. Check out the etc/ subdirectory"
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
2188 # --------------------------------------
2189 # Modules which run on the build machine
2190 # --------------------------------------
2192 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
2193 maybe-configure-build-libiberty:
2195 maybe-configure-build-libiberty: configure-build-libiberty
2196 configure-build-libiberty:
2197 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2198 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
2199 r=`${PWD_COMMAND}`; export r; \
2200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2202 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2203 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2205 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2206 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2207 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2209 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2210 libsrcdir="$$s/libiberty"; \
2211 rm -f no-such-file || : ; \
2212 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2213 $(BUILD_CONFIGARGS) $${srcdiroption} \
2214 --with-build-subdir="$(BUILD_SUBDIR)" \
2216 @endif build-libiberty
2218 .PHONY: all-build-libiberty maybe-all-build-libiberty
2219 maybe-all-build-libiberty:
2221 TARGET-build-libiberty=all
2222 maybe-all-build-libiberty: all-build-libiberty
2223 all-build-libiberty: configure-build-libiberty
2224 @r=`${PWD_COMMAND}`; export r; \
2225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2227 (cd $(BUILD_SUBDIR)/libiberty && \
2228 $(MAKE) $(TARGET-build-libiberty))
2229 @endif build-libiberty
2231 .PHONY: configure-build-bison maybe-configure-build-bison
2232 maybe-configure-build-bison:
2234 maybe-configure-build-bison: configure-build-bison
2235 configure-build-bison:
2236 @test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2237 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2238 r=`${PWD_COMMAND}`; export r; \
2239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2241 echo Configuring in $(BUILD_SUBDIR)/bison; \
2242 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2244 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2245 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2246 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2248 srcdiroption="--srcdir=$${topdir}/bison"; \
2249 libsrcdir="$$s/bison"; \
2250 rm -f no-such-file || : ; \
2251 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2252 $(BUILD_CONFIGARGS) $${srcdiroption} \
2253 --with-build-subdir="$(BUILD_SUBDIR)" \
2257 .PHONY: all-build-bison maybe-all-build-bison
2258 maybe-all-build-bison:
2260 TARGET-build-bison=all
2261 maybe-all-build-bison: all-build-bison
2262 all-build-bison: configure-build-bison
2263 @r=`${PWD_COMMAND}`; export r; \
2264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2266 (cd $(BUILD_SUBDIR)/bison && \
2267 $(MAKE) $(TARGET-build-bison))
2270 .PHONY: configure-build-byacc maybe-configure-build-byacc
2271 maybe-configure-build-byacc:
2273 maybe-configure-build-byacc: configure-build-byacc
2274 configure-build-byacc:
2275 @test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2276 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
2277 r=`${PWD_COMMAND}`; export r; \
2278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2280 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2281 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2283 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2284 *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \
2285 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2287 srcdiroption="--srcdir=$${topdir}/byacc"; \
2288 libsrcdir="$$s/byacc"; \
2289 rm -f no-such-file || : ; \
2290 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2291 $(BUILD_CONFIGARGS) $${srcdiroption} \
2292 --with-build-subdir="$(BUILD_SUBDIR)" \
2296 .PHONY: all-build-byacc maybe-all-build-byacc
2297 maybe-all-build-byacc:
2299 TARGET-build-byacc=all
2300 maybe-all-build-byacc: all-build-byacc
2301 all-build-byacc: configure-build-byacc
2302 @r=`${PWD_COMMAND}`; export r; \
2303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2305 (cd $(BUILD_SUBDIR)/byacc && \
2306 $(MAKE) $(TARGET-build-byacc))
2309 .PHONY: configure-build-flex maybe-configure-build-flex
2310 maybe-configure-build-flex:
2312 maybe-configure-build-flex: configure-build-flex
2313 configure-build-flex:
2314 @test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2315 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2316 r=`${PWD_COMMAND}`; export r; \
2317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2319 echo Configuring in $(BUILD_SUBDIR)/flex; \
2320 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2322 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2323 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2324 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2326 srcdiroption="--srcdir=$${topdir}/flex"; \
2327 libsrcdir="$$s/flex"; \
2328 rm -f no-such-file || : ; \
2329 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2330 $(BUILD_CONFIGARGS) $${srcdiroption} \
2331 --with-build-subdir="$(BUILD_SUBDIR)" \
2335 .PHONY: all-build-flex maybe-all-build-flex
2336 maybe-all-build-flex:
2338 TARGET-build-flex=all
2339 maybe-all-build-flex: all-build-flex
2340 all-build-flex: configure-build-flex
2341 @r=`${PWD_COMMAND}`; export r; \
2342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2344 (cd $(BUILD_SUBDIR)/flex && \
2345 $(MAKE) $(TARGET-build-flex))
2348 .PHONY: configure-build-m4 maybe-configure-build-m4
2349 maybe-configure-build-m4:
2351 maybe-configure-build-m4: configure-build-m4
2353 @test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2354 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2355 r=`${PWD_COMMAND}`; export r; \
2356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2358 echo Configuring in $(BUILD_SUBDIR)/m4; \
2359 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2361 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2362 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2363 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2365 srcdiroption="--srcdir=$${topdir}/m4"; \
2366 libsrcdir="$$s/m4"; \
2367 rm -f no-such-file || : ; \
2368 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2369 $(BUILD_CONFIGARGS) $${srcdiroption} \
2370 --with-build-subdir="$(BUILD_SUBDIR)" \
2374 .PHONY: all-build-m4 maybe-all-build-m4
2378 maybe-all-build-m4: all-build-m4
2379 all-build-m4: configure-build-m4
2380 @r=`${PWD_COMMAND}`; export r; \
2381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2383 (cd $(BUILD_SUBDIR)/m4 && \
2384 $(MAKE) $(TARGET-build-m4))
2387 .PHONY: configure-build-texinfo maybe-configure-build-texinfo
2388 maybe-configure-build-texinfo:
2390 maybe-configure-build-texinfo: configure-build-texinfo
2391 configure-build-texinfo:
2392 @test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2393 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2394 r=`${PWD_COMMAND}`; export r; \
2395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2397 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2398 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2400 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2401 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2402 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2404 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2405 libsrcdir="$$s/texinfo"; \
2406 rm -f no-such-file || : ; \
2407 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2408 $(BUILD_CONFIGARGS) $${srcdiroption} \
2409 --with-build-subdir="$(BUILD_SUBDIR)" \
2411 @endif build-texinfo
2413 .PHONY: all-build-texinfo maybe-all-build-texinfo
2414 maybe-all-build-texinfo:
2416 TARGET-build-texinfo=all
2417 maybe-all-build-texinfo: all-build-texinfo
2418 all-build-texinfo: configure-build-texinfo
2419 @r=`${PWD_COMMAND}`; export r; \
2420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2422 (cd $(BUILD_SUBDIR)/texinfo && \
2423 $(MAKE) $(TARGET-build-texinfo))
2424 @endif build-texinfo
2426 .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2427 maybe-configure-build-fixincludes:
2428 @if build-fixincludes
2429 maybe-configure-build-fixincludes: configure-build-fixincludes
2430 configure-build-fixincludes:
2431 @test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2432 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2433 r=`${PWD_COMMAND}`; export r; \
2434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2436 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2437 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2439 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2440 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2441 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2443 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2444 libsrcdir="$$s/fixincludes"; \
2445 rm -f no-such-file || : ; \
2446 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2447 $(BUILD_CONFIGARGS) $${srcdiroption} \
2448 --with-build-subdir="$(BUILD_SUBDIR)" \
2450 @endif build-fixincludes
2452 .PHONY: all-build-fixincludes maybe-all-build-fixincludes
2453 maybe-all-build-fixincludes:
2454 @if build-fixincludes
2455 TARGET-build-fixincludes=all
2456 maybe-all-build-fixincludes: all-build-fixincludes
2457 all-build-fixincludes: configure-build-fixincludes
2458 @r=`${PWD_COMMAND}`; export r; \
2459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2461 (cd $(BUILD_SUBDIR)/fixincludes && \
2462 $(MAKE) $(TARGET-build-fixincludes))
2463 @endif build-fixincludes
2466 # --------------------------------------
2467 # Modules which run on the host machine
2468 # --------------------------------------
2470 .PHONY: configure-ash maybe-configure-ash
2471 maybe-configure-ash:
2473 maybe-configure-ash: configure-ash
2475 @test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \
2476 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \
2477 r=`${PWD_COMMAND}`; export r; \
2478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2480 echo Configuring in ash; \
2481 cd $(HOST_SUBDIR)/ash || exit 1; \
2483 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2484 *) topdir=`echo $(HOST_SUBDIR)/ash/ | \
2485 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2487 srcdiroption="--srcdir=$${topdir}/ash"; \
2488 libsrcdir="$$s/ash"; \
2489 $(SHELL) $${libsrcdir}/configure \
2490 $(HOST_CONFIGARGS) $${srcdiroption} \
2494 .PHONY: all-ash maybe-all-ash
2498 maybe-all-ash: all-ash
2499 all-ash: configure-ash
2500 @r=`${PWD_COMMAND}`; export r; \
2501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2504 (cd $(HOST_SUBDIR)/ash && \
2505 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ash))
2508 .PHONY: check-ash maybe-check-ash
2511 maybe-check-ash: check-ash
2514 @r=`${PWD_COMMAND}`; export r; \
2515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2518 (cd $(HOST_SUBDIR)/ash && \
2519 $(MAKE) $(FLAGS_TO_PASS) check)
2523 .PHONY: install-ash maybe-install-ash
2526 maybe-install-ash: install-ash
2528 install-ash: installdirs
2529 @r=`${PWD_COMMAND}`; export r; \
2530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2533 (cd $(HOST_SUBDIR)/ash && \
2534 $(MAKE) $(FLAGS_TO_PASS) install)
2538 # Other targets (info, dvi, etc.)
2540 .PHONY: maybe-info-ash info-ash
2543 maybe-info-ash: info-ash
2547 @[ -f ./ash/Makefile ] || exit 0; \
2548 r=`${PWD_COMMAND}`; export r; \
2549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2552 for flag in $(EXTRA_HOST_FLAGS) ; do \
2553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2555 echo "Doing info in ash" ; \
2556 (cd $(HOST_SUBDIR)/ash && \
2557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2559 "RANLIB=$${RANLIB}" \
2560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2566 .PHONY: maybe-dvi-ash dvi-ash
2569 maybe-dvi-ash: dvi-ash
2573 @[ -f ./ash/Makefile ] || exit 0; \
2574 r=`${PWD_COMMAND}`; export r; \
2575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2578 for flag in $(EXTRA_HOST_FLAGS) ; do \
2579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2581 echo "Doing dvi in ash" ; \
2582 (cd $(HOST_SUBDIR)/ash && \
2583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2585 "RANLIB=$${RANLIB}" \
2586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2592 .PHONY: maybe-html-ash html-ash
2595 maybe-html-ash: html-ash
2599 @[ -f ./ash/Makefile ] || exit 0; \
2600 r=`${PWD_COMMAND}`; export r; \
2601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2604 for flag in $(EXTRA_HOST_FLAGS) ; do \
2605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2607 echo "Doing html in ash" ; \
2608 (cd $(HOST_SUBDIR)/ash && \
2609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2611 "RANLIB=$${RANLIB}" \
2612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2618 .PHONY: maybe-TAGS-ash TAGS-ash
2621 maybe-TAGS-ash: TAGS-ash
2625 @[ -f ./ash/Makefile ] || exit 0; \
2626 r=`${PWD_COMMAND}`; export r; \
2627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2630 for flag in $(EXTRA_HOST_FLAGS) ; do \
2631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2633 echo "Doing TAGS in ash" ; \
2634 (cd $(HOST_SUBDIR)/ash && \
2635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2637 "RANLIB=$${RANLIB}" \
2638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2644 .PHONY: maybe-install-info-ash install-info-ash
2645 maybe-install-info-ash:
2647 maybe-install-info-ash: install-info-ash
2652 @[ -f ./ash/Makefile ] || exit 0; \
2653 r=`${PWD_COMMAND}`; export r; \
2654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2657 for flag in $(EXTRA_HOST_FLAGS) ; do \
2658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2660 echo "Doing install-info in ash" ; \
2661 (cd $(HOST_SUBDIR)/ash && \
2662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2664 "RANLIB=$${RANLIB}" \
2665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2671 .PHONY: maybe-installcheck-ash installcheck-ash
2672 maybe-installcheck-ash:
2674 maybe-installcheck-ash: installcheck-ash
2678 @[ -f ./ash/Makefile ] || exit 0; \
2679 r=`${PWD_COMMAND}`; export r; \
2680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2683 for flag in $(EXTRA_HOST_FLAGS) ; do \
2684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2686 echo "Doing installcheck in ash" ; \
2687 (cd $(HOST_SUBDIR)/ash && \
2688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2690 "RANLIB=$${RANLIB}" \
2691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2697 .PHONY: maybe-mostlyclean-ash mostlyclean-ash
2698 maybe-mostlyclean-ash:
2700 maybe-mostlyclean-ash: mostlyclean-ash
2703 @[ -f ./ash/Makefile ] || exit 0; \
2704 r=`${PWD_COMMAND}`; export r; \
2705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2708 for flag in $(EXTRA_HOST_FLAGS) ; do \
2709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2711 echo "Doing mostlyclean in ash" ; \
2712 (cd $(HOST_SUBDIR)/ash && \
2713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2715 "RANLIB=$${RANLIB}" \
2716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2722 .PHONY: maybe-clean-ash clean-ash
2725 maybe-clean-ash: clean-ash
2728 @[ -f ./ash/Makefile ] || exit 0; \
2729 r=`${PWD_COMMAND}`; export r; \
2730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2733 for flag in $(EXTRA_HOST_FLAGS) ; do \
2734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2736 echo "Doing clean in ash" ; \
2737 (cd $(HOST_SUBDIR)/ash && \
2738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2740 "RANLIB=$${RANLIB}" \
2741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2747 .PHONY: maybe-distclean-ash distclean-ash
2748 maybe-distclean-ash:
2750 maybe-distclean-ash: distclean-ash
2753 @[ -f ./ash/Makefile ] || exit 0; \
2754 r=`${PWD_COMMAND}`; export r; \
2755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2758 for flag in $(EXTRA_HOST_FLAGS) ; do \
2759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2761 echo "Doing distclean in ash" ; \
2762 (cd $(HOST_SUBDIR)/ash && \
2763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2765 "RANLIB=$${RANLIB}" \
2766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2772 .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2773 maybe-maintainer-clean-ash:
2775 maybe-maintainer-clean-ash: maintainer-clean-ash
2777 maintainer-clean-ash:
2778 @[ -f ./ash/Makefile ] || exit 0; \
2779 r=`${PWD_COMMAND}`; export r; \
2780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2783 for flag in $(EXTRA_HOST_FLAGS) ; do \
2784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2786 echo "Doing maintainer-clean in ash" ; \
2787 (cd $(HOST_SUBDIR)/ash && \
2788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2790 "RANLIB=$${RANLIB}" \
2791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2798 .PHONY: configure-autoconf maybe-configure-autoconf
2799 maybe-configure-autoconf:
2801 maybe-configure-autoconf: configure-autoconf
2803 @test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \
2804 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \
2805 r=`${PWD_COMMAND}`; export r; \
2806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2808 echo Configuring in autoconf; \
2809 cd $(HOST_SUBDIR)/autoconf || exit 1; \
2811 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2812 *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \
2813 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2815 srcdiroption="--srcdir=$${topdir}/autoconf"; \
2816 libsrcdir="$$s/autoconf"; \
2817 $(SHELL) $${libsrcdir}/configure \
2818 $(HOST_CONFIGARGS) $${srcdiroption} \
2822 .PHONY: all-autoconf maybe-all-autoconf
2826 maybe-all-autoconf: all-autoconf
2827 all-autoconf: configure-autoconf
2828 @r=`${PWD_COMMAND}`; export r; \
2829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2832 (cd $(HOST_SUBDIR)/autoconf && \
2833 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-autoconf))
2836 .PHONY: check-autoconf maybe-check-autoconf
2837 maybe-check-autoconf:
2839 maybe-check-autoconf: check-autoconf
2842 @r=`${PWD_COMMAND}`; export r; \
2843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2846 (cd $(HOST_SUBDIR)/autoconf && \
2847 $(MAKE) $(FLAGS_TO_PASS) check)
2851 .PHONY: install-autoconf maybe-install-autoconf
2852 maybe-install-autoconf:
2854 maybe-install-autoconf: install-autoconf
2856 install-autoconf: installdirs
2857 @r=`${PWD_COMMAND}`; export r; \
2858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2861 (cd $(HOST_SUBDIR)/autoconf && \
2862 $(MAKE) $(FLAGS_TO_PASS) install)
2866 # Other targets (info, dvi, etc.)
2868 .PHONY: maybe-info-autoconf info-autoconf
2869 maybe-info-autoconf:
2871 maybe-info-autoconf: info-autoconf
2875 @[ -f ./autoconf/Makefile ] || exit 0; \
2876 r=`${PWD_COMMAND}`; export r; \
2877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2880 for flag in $(EXTRA_HOST_FLAGS) ; do \
2881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2883 echo "Doing info in autoconf" ; \
2884 (cd $(HOST_SUBDIR)/autoconf && \
2885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2887 "RANLIB=$${RANLIB}" \
2888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2894 .PHONY: maybe-dvi-autoconf dvi-autoconf
2897 maybe-dvi-autoconf: dvi-autoconf
2901 @[ -f ./autoconf/Makefile ] || exit 0; \
2902 r=`${PWD_COMMAND}`; export r; \
2903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2906 for flag in $(EXTRA_HOST_FLAGS) ; do \
2907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2909 echo "Doing dvi in autoconf" ; \
2910 (cd $(HOST_SUBDIR)/autoconf && \
2911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2913 "RANLIB=$${RANLIB}" \
2914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2920 .PHONY: maybe-html-autoconf html-autoconf
2921 maybe-html-autoconf:
2923 maybe-html-autoconf: html-autoconf
2927 @[ -f ./autoconf/Makefile ] || exit 0; \
2928 r=`${PWD_COMMAND}`; export r; \
2929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2932 for flag in $(EXTRA_HOST_FLAGS) ; do \
2933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2935 echo "Doing html in autoconf" ; \
2936 (cd $(HOST_SUBDIR)/autoconf && \
2937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2939 "RANLIB=$${RANLIB}" \
2940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2946 .PHONY: maybe-TAGS-autoconf TAGS-autoconf
2947 maybe-TAGS-autoconf:
2949 maybe-TAGS-autoconf: TAGS-autoconf
2953 @[ -f ./autoconf/Makefile ] || exit 0; \
2954 r=`${PWD_COMMAND}`; export r; \
2955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2958 for flag in $(EXTRA_HOST_FLAGS) ; do \
2959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2961 echo "Doing TAGS in autoconf" ; \
2962 (cd $(HOST_SUBDIR)/autoconf && \
2963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2965 "RANLIB=$${RANLIB}" \
2966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2972 .PHONY: maybe-install-info-autoconf install-info-autoconf
2973 maybe-install-info-autoconf:
2975 maybe-install-info-autoconf: install-info-autoconf
2977 install-info-autoconf: \
2978 configure-autoconf \
2980 @[ -f ./autoconf/Makefile ] || exit 0; \
2981 r=`${PWD_COMMAND}`; export r; \
2982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2985 for flag in $(EXTRA_HOST_FLAGS) ; do \
2986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2988 echo "Doing install-info in autoconf" ; \
2989 (cd $(HOST_SUBDIR)/autoconf && \
2990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2992 "RANLIB=$${RANLIB}" \
2993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2999 .PHONY: maybe-installcheck-autoconf installcheck-autoconf
3000 maybe-installcheck-autoconf:
3002 maybe-installcheck-autoconf: installcheck-autoconf
3004 installcheck-autoconf: \
3006 @[ -f ./autoconf/Makefile ] || exit 0; \
3007 r=`${PWD_COMMAND}`; export r; \
3008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3011 for flag in $(EXTRA_HOST_FLAGS) ; do \
3012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3014 echo "Doing installcheck in autoconf" ; \
3015 (cd $(HOST_SUBDIR)/autoconf && \
3016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3018 "RANLIB=$${RANLIB}" \
3019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3025 .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3026 maybe-mostlyclean-autoconf:
3028 maybe-mostlyclean-autoconf: mostlyclean-autoconf
3030 mostlyclean-autoconf:
3031 @[ -f ./autoconf/Makefile ] || exit 0; \
3032 r=`${PWD_COMMAND}`; export r; \
3033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3036 for flag in $(EXTRA_HOST_FLAGS) ; do \
3037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3039 echo "Doing mostlyclean in autoconf" ; \
3040 (cd $(HOST_SUBDIR)/autoconf && \
3041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3043 "RANLIB=$${RANLIB}" \
3044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3050 .PHONY: maybe-clean-autoconf clean-autoconf
3051 maybe-clean-autoconf:
3053 maybe-clean-autoconf: clean-autoconf
3056 @[ -f ./autoconf/Makefile ] || exit 0; \
3057 r=`${PWD_COMMAND}`; export r; \
3058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3061 for flag in $(EXTRA_HOST_FLAGS) ; do \
3062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3064 echo "Doing clean in autoconf" ; \
3065 (cd $(HOST_SUBDIR)/autoconf && \
3066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3068 "RANLIB=$${RANLIB}" \
3069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3075 .PHONY: maybe-distclean-autoconf distclean-autoconf
3076 maybe-distclean-autoconf:
3078 maybe-distclean-autoconf: distclean-autoconf
3081 @[ -f ./autoconf/Makefile ] || exit 0; \
3082 r=`${PWD_COMMAND}`; export r; \
3083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3086 for flag in $(EXTRA_HOST_FLAGS) ; do \
3087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3089 echo "Doing distclean in autoconf" ; \
3090 (cd $(HOST_SUBDIR)/autoconf && \
3091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3093 "RANLIB=$${RANLIB}" \
3094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3100 .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3101 maybe-maintainer-clean-autoconf:
3103 maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
3105 maintainer-clean-autoconf:
3106 @[ -f ./autoconf/Makefile ] || exit 0; \
3107 r=`${PWD_COMMAND}`; export r; \
3108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3111 for flag in $(EXTRA_HOST_FLAGS) ; do \
3112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3114 echo "Doing maintainer-clean in autoconf" ; \
3115 (cd $(HOST_SUBDIR)/autoconf && \
3116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3118 "RANLIB=$${RANLIB}" \
3119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3126 .PHONY: configure-automake maybe-configure-automake
3127 maybe-configure-automake:
3129 maybe-configure-automake: configure-automake
3131 @test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \
3132 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \
3133 r=`${PWD_COMMAND}`; export r; \
3134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3136 echo Configuring in automake; \
3137 cd $(HOST_SUBDIR)/automake || exit 1; \
3139 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3140 *) topdir=`echo $(HOST_SUBDIR)/automake/ | \
3141 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3143 srcdiroption="--srcdir=$${topdir}/automake"; \
3144 libsrcdir="$$s/automake"; \
3145 $(SHELL) $${libsrcdir}/configure \
3146 $(HOST_CONFIGARGS) $${srcdiroption} \
3150 .PHONY: all-automake maybe-all-automake
3154 maybe-all-automake: all-automake
3155 all-automake: configure-automake
3156 @r=`${PWD_COMMAND}`; export r; \
3157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3160 (cd $(HOST_SUBDIR)/automake && \
3161 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-automake))
3164 .PHONY: check-automake maybe-check-automake
3165 maybe-check-automake:
3167 maybe-check-automake: check-automake
3170 @r=`${PWD_COMMAND}`; export r; \
3171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3174 (cd $(HOST_SUBDIR)/automake && \
3175 $(MAKE) $(FLAGS_TO_PASS) check)
3179 .PHONY: install-automake maybe-install-automake
3180 maybe-install-automake:
3182 maybe-install-automake: install-automake
3184 install-automake: installdirs
3185 @r=`${PWD_COMMAND}`; export r; \
3186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3189 (cd $(HOST_SUBDIR)/automake && \
3190 $(MAKE) $(FLAGS_TO_PASS) install)
3194 # Other targets (info, dvi, etc.)
3196 .PHONY: maybe-info-automake info-automake
3197 maybe-info-automake:
3199 maybe-info-automake: info-automake
3203 @[ -f ./automake/Makefile ] || exit 0; \
3204 r=`${PWD_COMMAND}`; export r; \
3205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3208 for flag in $(EXTRA_HOST_FLAGS) ; do \
3209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3211 echo "Doing info in automake" ; \
3212 (cd $(HOST_SUBDIR)/automake && \
3213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3215 "RANLIB=$${RANLIB}" \
3216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3222 .PHONY: maybe-dvi-automake dvi-automake
3225 maybe-dvi-automake: dvi-automake
3229 @[ -f ./automake/Makefile ] || exit 0; \
3230 r=`${PWD_COMMAND}`; export r; \
3231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3234 for flag in $(EXTRA_HOST_FLAGS) ; do \
3235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3237 echo "Doing dvi in automake" ; \
3238 (cd $(HOST_SUBDIR)/automake && \
3239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3241 "RANLIB=$${RANLIB}" \
3242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3248 .PHONY: maybe-html-automake html-automake
3249 maybe-html-automake:
3251 maybe-html-automake: html-automake
3255 @[ -f ./automake/Makefile ] || exit 0; \
3256 r=`${PWD_COMMAND}`; export r; \
3257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3260 for flag in $(EXTRA_HOST_FLAGS) ; do \
3261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3263 echo "Doing html in automake" ; \
3264 (cd $(HOST_SUBDIR)/automake && \
3265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3267 "RANLIB=$${RANLIB}" \
3268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3274 .PHONY: maybe-TAGS-automake TAGS-automake
3275 maybe-TAGS-automake:
3277 maybe-TAGS-automake: TAGS-automake
3281 @[ -f ./automake/Makefile ] || exit 0; \
3282 r=`${PWD_COMMAND}`; export r; \
3283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3286 for flag in $(EXTRA_HOST_FLAGS) ; do \
3287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3289 echo "Doing TAGS in automake" ; \
3290 (cd $(HOST_SUBDIR)/automake && \
3291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3293 "RANLIB=$${RANLIB}" \
3294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3300 .PHONY: maybe-install-info-automake install-info-automake
3301 maybe-install-info-automake:
3303 maybe-install-info-automake: install-info-automake
3305 install-info-automake: \
3306 configure-automake \
3308 @[ -f ./automake/Makefile ] || exit 0; \
3309 r=`${PWD_COMMAND}`; export r; \
3310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3313 for flag in $(EXTRA_HOST_FLAGS) ; do \
3314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3316 echo "Doing install-info in automake" ; \
3317 (cd $(HOST_SUBDIR)/automake && \
3318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3320 "RANLIB=$${RANLIB}" \
3321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3327 .PHONY: maybe-installcheck-automake installcheck-automake
3328 maybe-installcheck-automake:
3330 maybe-installcheck-automake: installcheck-automake
3332 installcheck-automake: \
3334 @[ -f ./automake/Makefile ] || exit 0; \
3335 r=`${PWD_COMMAND}`; export r; \
3336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3339 for flag in $(EXTRA_HOST_FLAGS) ; do \
3340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3342 echo "Doing installcheck in automake" ; \
3343 (cd $(HOST_SUBDIR)/automake && \
3344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3346 "RANLIB=$${RANLIB}" \
3347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3353 .PHONY: maybe-mostlyclean-automake mostlyclean-automake
3354 maybe-mostlyclean-automake:
3356 maybe-mostlyclean-automake: mostlyclean-automake
3358 mostlyclean-automake:
3359 @[ -f ./automake/Makefile ] || exit 0; \
3360 r=`${PWD_COMMAND}`; export r; \
3361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3364 for flag in $(EXTRA_HOST_FLAGS) ; do \
3365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3367 echo "Doing mostlyclean in automake" ; \
3368 (cd $(HOST_SUBDIR)/automake && \
3369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3371 "RANLIB=$${RANLIB}" \
3372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3378 .PHONY: maybe-clean-automake clean-automake
3379 maybe-clean-automake:
3381 maybe-clean-automake: clean-automake
3384 @[ -f ./automake/Makefile ] || exit 0; \
3385 r=`${PWD_COMMAND}`; export r; \
3386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3389 for flag in $(EXTRA_HOST_FLAGS) ; do \
3390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3392 echo "Doing clean in automake" ; \
3393 (cd $(HOST_SUBDIR)/automake && \
3394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3396 "RANLIB=$${RANLIB}" \
3397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3403 .PHONY: maybe-distclean-automake distclean-automake
3404 maybe-distclean-automake:
3406 maybe-distclean-automake: distclean-automake
3409 @[ -f ./automake/Makefile ] || exit 0; \
3410 r=`${PWD_COMMAND}`; export r; \
3411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3414 for flag in $(EXTRA_HOST_FLAGS) ; do \
3415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3417 echo "Doing distclean in automake" ; \
3418 (cd $(HOST_SUBDIR)/automake && \
3419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3421 "RANLIB=$${RANLIB}" \
3422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3428 .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3429 maybe-maintainer-clean-automake:
3431 maybe-maintainer-clean-automake: maintainer-clean-automake
3433 maintainer-clean-automake:
3434 @[ -f ./automake/Makefile ] || exit 0; \
3435 r=`${PWD_COMMAND}`; export r; \
3436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3439 for flag in $(EXTRA_HOST_FLAGS) ; do \
3440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3442 echo "Doing maintainer-clean in automake" ; \
3443 (cd $(HOST_SUBDIR)/automake && \
3444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3446 "RANLIB=$${RANLIB}" \
3447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3454 .PHONY: configure-bash maybe-configure-bash
3455 maybe-configure-bash:
3457 maybe-configure-bash: configure-bash
3459 @test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \
3460 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \
3461 r=`${PWD_COMMAND}`; export r; \
3462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3464 echo Configuring in bash; \
3465 cd $(HOST_SUBDIR)/bash || exit 1; \
3467 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3468 *) topdir=`echo $(HOST_SUBDIR)/bash/ | \
3469 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3471 srcdiroption="--srcdir=$${topdir}/bash"; \
3472 libsrcdir="$$s/bash"; \
3473 $(SHELL) $${libsrcdir}/configure \
3474 $(HOST_CONFIGARGS) $${srcdiroption} \
3478 .PHONY: all-bash maybe-all-bash
3482 maybe-all-bash: all-bash
3483 all-bash: configure-bash
3484 @r=`${PWD_COMMAND}`; export r; \
3485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3488 (cd $(HOST_SUBDIR)/bash && \
3489 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bash))
3492 .PHONY: check-bash maybe-check-bash
3495 maybe-check-bash: check-bash
3498 @r=`${PWD_COMMAND}`; export r; \
3499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3502 (cd $(HOST_SUBDIR)/bash && \
3503 $(MAKE) $(FLAGS_TO_PASS) check)
3507 .PHONY: install-bash maybe-install-bash
3510 maybe-install-bash: install-bash
3512 install-bash: installdirs
3513 @r=`${PWD_COMMAND}`; export r; \
3514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3517 (cd $(HOST_SUBDIR)/bash && \
3518 $(MAKE) $(FLAGS_TO_PASS) install)
3522 # Other targets (info, dvi, etc.)
3524 .PHONY: maybe-info-bash info-bash
3527 maybe-info-bash: info-bash
3531 @[ -f ./bash/Makefile ] || exit 0; \
3532 r=`${PWD_COMMAND}`; export r; \
3533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3536 for flag in $(EXTRA_HOST_FLAGS) ; do \
3537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3539 echo "Doing info in bash" ; \
3540 (cd $(HOST_SUBDIR)/bash && \
3541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3543 "RANLIB=$${RANLIB}" \
3544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3550 .PHONY: maybe-dvi-bash dvi-bash
3553 maybe-dvi-bash: dvi-bash
3557 @[ -f ./bash/Makefile ] || exit 0; \
3558 r=`${PWD_COMMAND}`; export r; \
3559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3562 for flag in $(EXTRA_HOST_FLAGS) ; do \
3563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3565 echo "Doing dvi in bash" ; \
3566 (cd $(HOST_SUBDIR)/bash && \
3567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3569 "RANLIB=$${RANLIB}" \
3570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3576 .PHONY: maybe-html-bash html-bash
3579 maybe-html-bash: html-bash
3583 @[ -f ./bash/Makefile ] || exit 0; \
3584 r=`${PWD_COMMAND}`; export r; \
3585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3588 for flag in $(EXTRA_HOST_FLAGS) ; do \
3589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
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}" \
3602 .PHONY: maybe-TAGS-bash TAGS-bash
3605 maybe-TAGS-bash: TAGS-bash
3609 @[ -f ./bash/Makefile ] || exit 0; \
3610 r=`${PWD_COMMAND}`; export r; \
3611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3614 for flag in $(EXTRA_HOST_FLAGS) ; do \
3615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3617 echo "Doing TAGS in bash" ; \
3618 (cd $(HOST_SUBDIR)/bash && \
3619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3621 "RANLIB=$${RANLIB}" \
3622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3628 .PHONY: maybe-install-info-bash install-info-bash
3629 maybe-install-info-bash:
3631 maybe-install-info-bash: install-info-bash
3633 install-info-bash: \
3636 @[ -f ./bash/Makefile ] || exit 0; \
3637 r=`${PWD_COMMAND}`; export r; \
3638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3641 for flag in $(EXTRA_HOST_FLAGS) ; do \
3642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3644 echo "Doing install-info in bash" ; \
3645 (cd $(HOST_SUBDIR)/bash && \
3646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3648 "RANLIB=$${RANLIB}" \
3649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3655 .PHONY: maybe-installcheck-bash installcheck-bash
3656 maybe-installcheck-bash:
3658 maybe-installcheck-bash: installcheck-bash
3660 installcheck-bash: \
3662 @[ -f ./bash/Makefile ] || exit 0; \
3663 r=`${PWD_COMMAND}`; export r; \
3664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3667 for flag in $(EXTRA_HOST_FLAGS) ; do \
3668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3670 echo "Doing installcheck in bash" ; \
3671 (cd $(HOST_SUBDIR)/bash && \
3672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3674 "RANLIB=$${RANLIB}" \
3675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3681 .PHONY: maybe-mostlyclean-bash mostlyclean-bash
3682 maybe-mostlyclean-bash:
3684 maybe-mostlyclean-bash: mostlyclean-bash
3687 @[ -f ./bash/Makefile ] || exit 0; \
3688 r=`${PWD_COMMAND}`; export r; \
3689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3692 for flag in $(EXTRA_HOST_FLAGS) ; do \
3693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3695 echo "Doing mostlyclean in bash" ; \
3696 (cd $(HOST_SUBDIR)/bash &&