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 gcc driver likes to know the arguments it was configured with.
76 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
79 build_tooldir = @build_tooldir@
83 # This is the name of the environment variable used for the path to
85 RPATH_ENVVAR = @RPATH_ENVVAR@
87 # This is the list of directories to be built for the build system.
88 BUILD_CONFIGDIRS = libiberty
89 # Build programs are put under this directory.
90 BUILD_SUBDIR = @build_subdir@
91 # This is set by the configure script to the arguments to use when configuring
92 # directories built for the build system.
93 BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
95 # This is the list of variables to export in the environment when
96 # configuring any subdirectory. It must also be exported whenever
97 # recursing into a build directory in case that directory's Makefile
100 FLEX="$(FLEX)"; export FLEX; \
101 LEX="$(LEX)"; export LEX; \
102 BISON="$(BISON)"; export BISON; \
103 YACC="$(YACC)"; export YACC; \
104 M4="$(M4)"; export M4; \
105 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
107 # This is the list of variables to export in the environment when
108 # configuring subdirectories for the build system.
111 AR="$(AR_FOR_BUILD)"; export AR; \
112 AS="$(AS_FOR_BUILD)"; export AS; \
113 CC="$(CC_FOR_BUILD)"; export CC; \
114 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
115 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
116 CXX="$(CXX_FOR_BUILD)"; export CXX; \
117 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
118 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
119 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
120 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
121 LD="$(LD_FOR_BUILD)"; export LD; \
122 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
123 NM="$(NM_FOR_BUILD)"; export NM; \
124 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
125 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
127 # This is the list of directories to built for the host system.
128 SUBDIRS = @configdirs@
129 # This is set by the configure script to the arguments to use when configuring
130 # directories built for the host system.
131 HOST_CONFIGARGS = @host_configargs@
132 # Host programs are put under this directory, which is . except if building
134 HOST_SUBDIR = @host_subdir@
135 # This is the list of variables to export in the environment when
136 # configuring subdirectories for the host system.
139 CC="$(CC)"; export CC; \
140 CFLAGS="$(CFLAGS)"; export CFLAGS; \
141 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
142 CXX="$(CXX)"; export CXX; \
143 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
144 AR="$(AR)"; export AR; \
145 AS="$(AS)"; export AS; \
146 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
147 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
148 LD="$(LD)"; export LD; \
149 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
150 NM="$(NM)"; export NM; \
151 RANLIB="$(RANLIB)"; export RANLIB; \
152 WINDRES="$(WINDRES)"; export WINDRES; \
153 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
154 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
155 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
156 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
157 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
158 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
160 # Similar, for later GCC stages.
161 STAGE_HOST_EXPORTS = \
162 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
164 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
165 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
166 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) \
167 $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
168 -B$$r/$(HOST_SUBDIR)/prev-gcc/ \
169 -B$(build_tooldir)/bin/"; export CC_FOR_BUILD;
171 # This is set by the configure script to the list of directories which
172 # should be built using the target tools.
173 TARGET_CONFIGDIRS = @target_configdirs@
174 # Target libraries are put under this directory:
175 TARGET_SUBDIR = @target_subdir@
176 # This is set by the configure script to the arguments to use when configuring
177 # directories built for the target.
178 TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
179 # This is the list of variables to export in the environment when
180 # configuring subdirectories for the host system.
181 BASE_TARGET_EXPORTS = \
183 AR="$(AR_FOR_TARGET)"; export AR; \
184 AS="$(AS_FOR_TARGET)"; export AS; \
185 CC="$(CC_FOR_TARGET)"; export CC; \
186 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
187 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
188 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
189 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
190 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
191 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
192 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
193 LD="$(LD_FOR_TARGET)"; export LD; \
194 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
195 NM="$(NM_FOR_TARGET)"; export NM; \
196 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
197 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
198 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
200 RAW_CXX_TARGET_EXPORTS = \
201 $(BASE_TARGET_EXPORTS) \
202 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
203 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
205 NORMAL_TARGET_EXPORTS = \
206 $(BASE_TARGET_EXPORTS) \
207 CXX="$(CXX_FOR_TARGET)"; export CXX;
210 HOST_GMPLIBS = @gmplibs@
211 HOST_GMPINC = @gmpinc@
213 # ----------------------------------------------
214 # Programs producing files for the BUILD machine
215 # ----------------------------------------------
217 SHELL = @config_shell@
219 # pwd command to use. Allow user to override default by setting PWDCMD in
220 # the environment to account for automounters. The make variable must not
221 # be called PWDCMD, otherwise the value set here is passed to make
222 # subprocesses and overrides the setting from the user's environment.
223 # Don't use PWD since it is a common shell environment variable and we
224 # don't want to corrupt it.
225 PWD_COMMAND = $${PWDCMD-pwd}
227 # compilers to use to create programs which must be run in the build
229 CC_FOR_BUILD = @CC_FOR_BUILD@
230 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
232 CXX_FOR_BUILD = $(CXX)
234 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
235 # here so that they can be overridden by Makefile fragments.
236 BUILD_PREFIX = @BUILD_PREFIX@
237 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
239 # Flags to pass to stage2 and later makes. They are defined
240 # here so that they can be overridden by Makefile fragments.
243 CONFIGURED_BISON = @CONFIGURED_BISON@
244 BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
245 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \
247 echo ${CONFIGURED_BISON} ; \
250 CONFIGURED_YACC = @CONFIGURED_YACC@
251 YACC = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
252 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison -y ; \
253 elif [ -f $$r/$(BUILD_SUBDIR)/byacc/byacc ] ; then \
254 echo $$r/$(BUILD_SUBDIR)/byacc/byacc ; \
256 echo ${CONFIGURED_YACC} ; \
259 CONFIGURED_FLEX = @CONFIGURED_FLEX@
260 FLEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
261 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
262 else echo ${CONFIGURED_FLEX} ; fi`
264 CONFIGURED_LEX = @CONFIGURED_LEX@
265 LEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
266 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
267 else echo ${CONFIGURED_LEX} ; fi`
269 CONFIGURED_M4 = @CONFIGURED_M4@
270 M4 = `if [ -f $$r/$(BUILD_SUBDIR)/m4/m4 ] ; \
271 then echo $$r/$(BUILD_SUBDIR)/m4/m4 ; \
272 else echo ${CONFIGURED_M4} ; fi`
274 # For an installed makeinfo, we require it to be from texinfo 4.2 or
275 # higher, else we use the "missing" dummy. We also pass the subdirectory
276 # makeinfo even if only the Makefile is there, because Texinfo builds its
277 # manual when made, and it requires its own version.
278 CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@
279 MAKEINFO = `if [ -f $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/Makefile ] ; \
280 then echo $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo ; \
281 else if (${CONFIGURED_MAKEINFO} --version \
282 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
283 then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
285 # This just becomes part of the MAKEINFO definition passed down to
286 # sub-makes. It lets flags be given on the command line while still
287 # using the makeinfo from the object tree.
288 # (Default to avoid splitting info files by setting the threshold high.)
289 MAKEINFOFLAGS = --split-size=5000000
291 # FIXME: expect may become a build tool?
292 EXPECT = `if [ -f $$r/$(HOST_SUBDIR)/expect/expect ] ; \
293 then echo $$r/$(HOST_SUBDIR)/expect/expect ; \
294 else echo expect ; fi`
296 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
297 then echo $$s/dejagnu/runtest ; \
298 else echo runtest ; fi`
300 # ---------------------------------------------
301 # Programs producing files for the HOST machine
302 # ---------------------------------------------
311 LIBCFLAGS = $(CFLAGS)
314 CXXFLAGS = @CXXFLAGS@
315 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
330 # -----------------------------------------------
331 # Programs producing files for the TARGET machine
332 # -----------------------------------------------
334 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
336 AR_FOR_TARGET=@AR_FOR_TARGET@
337 CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
338 USUAL_AR_FOR_TARGET = ` \
339 if [ -f $$r/$(HOST_SUBDIR)/binutils/ar ] ; then \
340 echo $$r/$(HOST_SUBDIR)/binutils/ar ; \
342 if [ '$(host)' = '$(target)' ] ; then \
345 echo $(CONFIGURED_AR_FOR_TARGET) ; \
349 AS_FOR_TARGET=@AS_FOR_TARGET@
350 CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
351 USUAL_AS_FOR_TARGET = ` \
352 if [ -f $$r/$(HOST_SUBDIR)/gas/as-new ] ; then \
353 echo $$r/$(HOST_SUBDIR)/gas/as-new ; \
354 elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \
355 $(CC_FOR_TARGET) -print-prog-name=as ; \
357 if [ '$(host)' = '$(target)' ] ; then \
360 echo $(CONFIGURED_AS_FOR_TARGET) ; \
364 CC_FOR_TARGET = @CC_FOR_TARGET@
365 # During gcc bootstrap, if we use some random cc for stage1 then
366 # CFLAGS will be just -g. We want to ensure that TARGET libraries
367 # (which we know are built with gcc) are built with optimizations so
368 # prepend -O2 when setting CFLAGS_FOR_TARGET.
369 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
370 # If GCC_FOR_TARGET is not overriden on the command line, then this
371 # variable is passed down to the gcc Makefile, where it is used to
372 # build libgcc2.a. We define it here so that it can itself be
373 # overridden on the command line.
374 GCC_FOR_TARGET=@GCC_FOR_TARGET@
375 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) \
376 $$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/ $(FLAGS_FOR_TARGET)
377 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
379 CXX_FOR_TARGET = @CXX_FOR_TARGET@
380 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
381 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
382 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
383 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
384 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
386 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
387 CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
388 USUAL_DLLTOOL_FOR_TARGET = ` \
389 if [ -f $$r/$(HOST_SUBDIR)/binutils/dlltool ] ; then \
390 echo $$r/$(HOST_SUBDIR)/binutils/dlltool ; \
392 if [ '$(host)' = '$(target)' ] ; then \
395 echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
399 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
400 GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
402 LD_FOR_TARGET=@LD_FOR_TARGET@
403 CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
404 USUAL_LD_FOR_TARGET = ` \
405 if [ -f $$r/$(HOST_SUBDIR)/ld/ld-new ] ; then \
406 echo $$r/$(HOST_SUBDIR)/ld/ld-new ; \
407 elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \
408 $(CC_FOR_TARGET) -print-prog-name=ld ; \
410 if [ '$(host)' = '$(target)' ] ; then \
413 echo $(CONFIGURED_LD_FOR_TARGET) ; \
419 NM_FOR_TARGET=@NM_FOR_TARGET@
420 CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
421 USUAL_NM_FOR_TARGET = ` \
422 if [ -f $$r/$(HOST_SUBDIR)/binutils/nm-new ] ; then \
423 echo $$r/$(HOST_SUBDIR)/binutils/nm-new ; \
424 elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \
425 $(CC_FOR_TARGET) -print-prog-name=nm ; \
427 if [ '$(host)' = '$(target)' ] ; then \
430 echo $(CONFIGURED_NM_FOR_TARGET) ; \
434 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
435 CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
436 USUAL_RANLIB_FOR_TARGET = ` \
437 if [ -f $$r/$(HOST_SUBDIR)/binutils/ranlib ] ; then \
438 echo $$r/$(HOST_SUBDIR)/binutils/ranlib ; \
440 if [ '$(host)' = '$(target)' ] ; then \
441 if [ x'$(RANLIB)' != x ]; then \
447 echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
451 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
452 CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
453 USUAL_WINDRES_FOR_TARGET = ` \
454 if [ -f $$r/$(HOST_SUBDIR)/binutils/windres ] ; then \
455 echo $$r/$(HOST_SUBDIR)/binutils/windres ; \
457 if [ '$(host)' = '$(target)' ] ; then \
460 echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
466 # ------------------------------------
467 # Miscellaneous targets and flag lists
468 # ------------------------------------
470 # The first rule in the file had better be this one. Don't put any above it.
471 # This lives here to allow makefile fragments to contain dependencies.
474 #### host and target specific makefile fragments come in here.
475 @target_makefile_frag@
481 # This is the list of directories that may be needed in RPATH_ENVVAR
482 # so that prorgams built for the target machine work.
483 TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libmudflap)$(HOST_LIB_PATH_gcc)
485 @if target-libstdc++-v3
486 TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/.libs:
487 @endif target-libstdc++-v3
489 @if target-libmudflap
490 TARGET_LIB_PATH_libmudflap = $$r/$(TARGET_SUBDIR)/libmudflap/.libs:
491 @endif target-libmudflap
495 # This is the list of directories that may be needed in RPATH_ENVVAR
496 # so that programs built for the host machine work.
497 HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)
499 # Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
501 HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc:$$r/$(HOST_SUBDIR)/prev-gcc:
506 HOST_LIB_PATH_bfd = \
507 $$r/$(HOST_SUBDIR)/bfd/.:$$r/$(HOST_SUBDIR)/prev-bfd/.:
511 HOST_LIB_PATH_opcodes = \
512 $$r/$(HOST_SUBDIR)/opcodes/.:$$r/$(HOST_SUBDIR)/prev-opcodes/.:
516 # Flags to pass down to all sub-makes.
517 BASE_FLAGS_TO_PASS = \
518 "DESTDIR=$(DESTDIR)" \
519 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
520 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
522 "datadir=$(datadir)" \
523 "exec_prefix=$(exec_prefix)" \
524 "includedir=$(includedir)" \
525 "infodir=$(infodir)" \
527 "libexecdir=$(libexecdir)" \
528 "lispdir=$(lispdir)" \
529 "localstatedir=$(localstatedir)" \
531 "oldincludedir=$(oldincludedir)" \
533 "sbindir=$(sbindir)" \
534 "sharedstatedir=$(sharedstatedir)" \
535 "sysconfdir=$(sysconfdir)" \
536 "tooldir=$(tooldir)" \
537 "build_tooldir=$(build_tooldir)" \
538 "target_alias=$(target_alias)" \
540 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
541 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
544 "INSTALL=$(INSTALL)" \
545 "INSTALL_DATA=$(INSTALL_DATA)" \
546 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
547 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
551 "RUNTEST=$(RUNTEST)" \
552 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
555 "AR_FLAGS=$(AR_FLAGS)" \
557 "CXXFLAGS=$(CXXFLAGS)" \
558 "LDFLAGS=$(LDFLAGS)" \
559 "LIBCFLAGS=$(LIBCFLAGS)" \
560 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
561 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
562 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
563 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
564 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
565 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
566 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
567 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
568 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
569 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
570 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
571 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
572 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
573 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
574 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
575 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
576 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
577 "CONFIG_SHELL=$(SHELL)" \
578 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
580 # For any flags above that may contain shell code that varies from one
581 # target library to another. When doing recursive invocations of the
582 # top-level Makefile, we don't want the outer make to evaluate them,
583 # so we pass these variables down unchanged. They must not contain
584 # single nor double quotes.
586 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
587 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
589 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS)
591 # Flags to pass down to most sub-makes, in which we're building with
592 # the host environment.
598 'DLLTOOL=$(DLLTOOL)' \
604 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
606 # Flags that are concerned with the location of the X11 include files
609 # NOTE: until the top-level is getting the values via autoconf, it only
610 # causes problems to have this top-level Makefile overriding the autoconf-set
611 # values in child directories. Only variables that don't conflict with
612 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
614 X11_FLAGS_TO_PASS = \
615 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
616 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
618 # Flags to pass down to makes which are built with the target environment.
619 # The double $ decreases the length of the command line; the variables
620 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
621 EXTRA_TARGET_FLAGS = \
622 'AR=$$(AR_FOR_TARGET)' \
623 'AS=$$(AS_FOR_TARGET)' \
624 'CC=$$(CC_FOR_TARGET)' \
625 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
626 'CXX=$$(CXX_FOR_TARGET)' \
627 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
628 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
629 'LD=$$(LD_FOR_TARGET)' \
630 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
631 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
632 'NM=$$(NM_FOR_TARGET)' \
633 'RANLIB=$$(RANLIB_FOR_TARGET)' \
634 'WINDRES=$$(WINDRES_FOR_TARGET)'
636 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
638 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
639 # unfortunately needs the native compiler and the target ar and
641 # If any variables are added here, they must be added to do-*, below.
642 # The BUILD_* variables are a special case, which are used for the gcc
643 # cross-building scheme.
645 'BUILD_PREFIX=$(BUILD_PREFIX)' \
646 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
647 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
648 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
649 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
650 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
651 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
652 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
653 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
654 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
655 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
656 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
657 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
659 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
661 .PHONY: configure-host
663 maybe-configure-ash \
664 maybe-configure-autoconf \
665 maybe-configure-automake \
666 maybe-configure-bash \
667 maybe-configure-bfd \
668 maybe-configure-opcodes \
669 maybe-configure-binutils \
670 maybe-configure-bison \
671 maybe-configure-byacc \
672 maybe-configure-bzip2 \
673 maybe-configure-dejagnu \
674 maybe-configure-diff \
675 maybe-configure-dosutils \
676 maybe-configure-etc \
677 maybe-configure-fastjar \
678 maybe-configure-fileutils \
679 maybe-configure-findutils \
680 maybe-configure-find \
681 maybe-configure-fixincludes \
682 maybe-configure-flex \
683 maybe-configure-gas \
684 maybe-configure-gcc \
685 maybe-configure-gawk \
686 maybe-configure-gettext \
687 maybe-configure-gnuserv \
688 maybe-configure-gprof \
689 maybe-configure-gzip \
690 maybe-configure-hello \
691 maybe-configure-indent \
692 maybe-configure-intl \
693 maybe-configure-tcl \
694 maybe-configure-itcl \
696 maybe-configure-libcpp \
697 maybe-configure-libgui \
698 maybe-configure-libiberty \
699 maybe-configure-libtool \
701 maybe-configure-make \
702 maybe-configure-mmalloc \
703 maybe-configure-patch \
704 maybe-configure-perl \
705 maybe-configure-prms \
706 maybe-configure-rcs \
707 maybe-configure-readline \
708 maybe-configure-release \
709 maybe-configure-recode \
710 maybe-configure-sed \
711 maybe-configure-send-pr \
712 maybe-configure-shellutils \
713 maybe-configure-sid \
714 maybe-configure-sim \
715 maybe-configure-tar \
716 maybe-configure-texinfo \
717 maybe-configure-textutils \
718 maybe-configure-time \
719 maybe-configure-uudecode \
720 maybe-configure-wdiff \
721 maybe-configure-zip \
722 maybe-configure-zlib \
723 maybe-configure-gdb \
724 maybe-configure-expect \
725 maybe-configure-guile \
727 maybe-configure-libtermcap \
728 maybe-configure-utils \
729 maybe-configure-gnattools
730 .PHONY: configure-target
732 maybe-configure-target-libstdc++-v3 \
733 maybe-configure-target-libmudflap \
734 maybe-configure-target-newlib \
735 maybe-configure-target-libgfortran \
736 maybe-configure-target-libobjc \
737 maybe-configure-target-libtermcap \
738 maybe-configure-target-winsup \
739 maybe-configure-target-libgloss \
740 maybe-configure-target-libiberty \
741 maybe-configure-target-gperf \
742 maybe-configure-target-examples \
743 maybe-configure-target-libffi \
744 maybe-configure-target-libjava \
745 maybe-configure-target-zlib \
746 maybe-configure-target-boehm-gc \
747 maybe-configure-target-qthreads \
748 maybe-configure-target-rda \
749 maybe-configure-target-libada
751 # The target built for a native non-bootstrap build.
753 all: unstage all-host all-target stage
757 maybe-all-build-libiberty \
758 maybe-all-build-bison \
759 maybe-all-build-byacc \
760 maybe-all-build-flex \
762 maybe-all-build-texinfo \
763 maybe-all-build-fixincludes
781 maybe-all-fileutils \
782 maybe-all-findutils \
784 maybe-all-fixincludes \
801 maybe-all-libiberty \
815 maybe-all-shellutils \
820 maybe-all-textutils \
830 maybe-all-libtermcap \
835 maybe-all-target-libstdc++-v3 \
836 maybe-all-target-libmudflap \
837 maybe-all-target-newlib \
838 maybe-all-target-libgfortran \
839 maybe-all-target-libobjc \
840 maybe-all-target-libtermcap \
841 maybe-all-target-winsup \
842 maybe-all-target-libgloss \
843 maybe-all-target-libiberty \
844 maybe-all-target-gperf \
845 maybe-all-target-examples \
846 maybe-all-target-libffi \
847 maybe-all-target-libjava \
848 maybe-all-target-zlib \
849 maybe-all-target-boehm-gc \
850 maybe-all-target-qthreads \
851 maybe-all-target-rda \
852 maybe-all-target-libada
854 # Do a target for all the subdirectories. A ``make do-X'' will do a
855 # ``make X'' in all subdirectories (because, in general, there is a
856 # dependency (below) of X upon do-X, a ``make X'' will also do this,
857 # but it may do additional work as well).
860 do-info: unstage info-host info-target stage
865 maybe-info-autoconf \
866 maybe-info-automake \
870 maybe-info-binutils \
876 maybe-info-dosutils \
879 maybe-info-fileutils \
880 maybe-info-findutils \
882 maybe-info-fixincludes \
899 maybe-info-libiberty \
908 maybe-info-readline \
913 maybe-info-shellutils \
918 maybe-info-textutils \
920 maybe-info-uudecode \
928 maybe-info-libtermcap \
934 maybe-info-target-libstdc++-v3 \
935 maybe-info-target-libmudflap \
936 maybe-info-target-newlib \
937 maybe-info-target-libgfortran \
938 maybe-info-target-libobjc \
939 maybe-info-target-libtermcap \
940 maybe-info-target-winsup \
941 maybe-info-target-libgloss \
942 maybe-info-target-libiberty \
943 maybe-info-target-gperf \
944 maybe-info-target-examples \
945 maybe-info-target-libffi \
946 maybe-info-target-libjava \
947 maybe-info-target-zlib \
948 maybe-info-target-boehm-gc \
949 maybe-info-target-qthreads \
950 maybe-info-target-rda \
951 maybe-info-target-libada
954 do-dvi: unstage dvi-host dvi-target stage
973 maybe-dvi-fileutils \
974 maybe-dvi-findutils \
976 maybe-dvi-fixincludes \
993 maybe-dvi-libiberty \
1002 maybe-dvi-readline \
1007 maybe-dvi-shellutils \
1012 maybe-dvi-textutils \
1014 maybe-dvi-uudecode \
1022 maybe-dvi-libtermcap \
1028 maybe-dvi-target-libstdc++-v3 \
1029 maybe-dvi-target-libmudflap \
1030 maybe-dvi-target-newlib \
1031 maybe-dvi-target-libgfortran \
1032 maybe-dvi-target-libobjc \
1033 maybe-dvi-target-libtermcap \
1034 maybe-dvi-target-winsup \
1035 maybe-dvi-target-libgloss \
1036 maybe-dvi-target-libiberty \
1037 maybe-dvi-target-gperf \
1038 maybe-dvi-target-examples \
1039 maybe-dvi-target-libffi \
1040 maybe-dvi-target-libjava \
1041 maybe-dvi-target-zlib \
1042 maybe-dvi-target-boehm-gc \
1043 maybe-dvi-target-qthreads \
1044 maybe-dvi-target-rda \
1045 maybe-dvi-target-libada
1048 do-html: unstage html-host html-target stage
1053 maybe-html-autoconf \
1054 maybe-html-automake \
1057 maybe-html-opcodes \
1058 maybe-html-binutils \
1062 maybe-html-dejagnu \
1064 maybe-html-dosutils \
1066 maybe-html-fastjar \
1067 maybe-html-fileutils \
1068 maybe-html-findutils \
1070 maybe-html-fixincludes \
1075 maybe-html-gettext \
1076 maybe-html-gnuserv \
1087 maybe-html-libiberty \
1088 maybe-html-libtool \
1091 maybe-html-mmalloc \
1096 maybe-html-readline \
1097 maybe-html-release \
1100 maybe-html-send-pr \
1101 maybe-html-shellutils \
1105 maybe-html-texinfo \
1106 maybe-html-textutils \
1108 maybe-html-uudecode \
1116 maybe-html-libtermcap \
1118 maybe-html-gnattools
1122 maybe-html-target-libstdc++-v3 \
1123 maybe-html-target-libmudflap \
1124 maybe-html-target-newlib \
1125 maybe-html-target-libgfortran \
1126 maybe-html-target-libobjc \
1127 maybe-html-target-libtermcap \
1128 maybe-html-target-winsup \
1129 maybe-html-target-libgloss \
1130 maybe-html-target-libiberty \
1131 maybe-html-target-gperf \
1132 maybe-html-target-examples \
1133 maybe-html-target-libffi \
1134 maybe-html-target-libjava \
1135 maybe-html-target-zlib \
1136 maybe-html-target-boehm-gc \
1137 maybe-html-target-qthreads \
1138 maybe-html-target-rda \
1139 maybe-html-target-libada
1142 do-TAGS: unstage TAGS-host TAGS-target stage
1147 maybe-TAGS-autoconf \
1148 maybe-TAGS-automake \
1151 maybe-TAGS-opcodes \
1152 maybe-TAGS-binutils \
1156 maybe-TAGS-dejagnu \
1158 maybe-TAGS-dosutils \
1160 maybe-TAGS-fastjar \
1161 maybe-TAGS-fileutils \
1162 maybe-TAGS-findutils \
1164 maybe-TAGS-fixincludes \
1169 maybe-TAGS-gettext \
1170 maybe-TAGS-gnuserv \
1181 maybe-TAGS-libiberty \
1182 maybe-TAGS-libtool \
1185 maybe-TAGS-mmalloc \
1190 maybe-TAGS-readline \
1191 maybe-TAGS-release \
1194 maybe-TAGS-send-pr \
1195 maybe-TAGS-shellutils \
1199 maybe-TAGS-texinfo \
1200 maybe-TAGS-textutils \
1202 maybe-TAGS-uudecode \
1210 maybe-TAGS-libtermcap \
1212 maybe-TAGS-gnattools
1216 maybe-TAGS-target-libstdc++-v3 \
1217 maybe-TAGS-target-libmudflap \
1218 maybe-TAGS-target-newlib \
1219 maybe-TAGS-target-libgfortran \
1220 maybe-TAGS-target-libobjc \
1221 maybe-TAGS-target-libtermcap \
1222 maybe-TAGS-target-winsup \
1223 maybe-TAGS-target-libgloss \
1224 maybe-TAGS-target-libiberty \
1225 maybe-TAGS-target-gperf \
1226 maybe-TAGS-target-examples \
1227 maybe-TAGS-target-libffi \
1228 maybe-TAGS-target-libjava \
1229 maybe-TAGS-target-zlib \
1230 maybe-TAGS-target-boehm-gc \
1231 maybe-TAGS-target-qthreads \
1232 maybe-TAGS-target-rda \
1233 maybe-TAGS-target-libada
1235 .PHONY: do-install-info
1236 do-install-info: unstage install-info-host install-info-target stage
1238 .PHONY: install-info-host
1239 install-info-host: \
1240 maybe-install-info-ash \
1241 maybe-install-info-autoconf \
1242 maybe-install-info-automake \
1243 maybe-install-info-bash \
1244 maybe-install-info-bfd \
1245 maybe-install-info-opcodes \
1246 maybe-install-info-binutils \
1247 maybe-install-info-bison \
1248 maybe-install-info-byacc \
1249 maybe-install-info-bzip2 \
1250 maybe-install-info-dejagnu \
1251 maybe-install-info-diff \
1252 maybe-install-info-dosutils \
1253 maybe-install-info-etc \
1254 maybe-install-info-fastjar \
1255 maybe-install-info-fileutils \
1256 maybe-install-info-findutils \
1257 maybe-install-info-find \
1258 maybe-install-info-fixincludes \
1259 maybe-install-info-flex \
1260 maybe-install-info-gas \
1261 maybe-install-info-gcc \
1262 maybe-install-info-gawk \
1263 maybe-install-info-gettext \
1264 maybe-install-info-gnuserv \
1265 maybe-install-info-gprof \
1266 maybe-install-info-gzip \
1267 maybe-install-info-hello \
1268 maybe-install-info-indent \
1269 maybe-install-info-intl \
1270 maybe-install-info-tcl \
1271 maybe-install-info-itcl \
1272 maybe-install-info-ld \
1273 maybe-install-info-libcpp \
1274 maybe-install-info-libgui \
1275 maybe-install-info-libiberty \
1276 maybe-install-info-libtool \
1277 maybe-install-info-m4 \
1278 maybe-install-info-make \
1279 maybe-install-info-mmalloc \
1280 maybe-install-info-patch \
1281 maybe-install-info-perl \
1282 maybe-install-info-prms \
1283 maybe-install-info-rcs \
1284 maybe-install-info-readline \
1285 maybe-install-info-release \
1286 maybe-install-info-recode \
1287 maybe-install-info-sed \
1288 maybe-install-info-send-pr \
1289 maybe-install-info-shellutils \
1290 maybe-install-info-sid \
1291 maybe-install-info-sim \
1292 maybe-install-info-tar \
1293 maybe-install-info-texinfo \
1294 maybe-install-info-textutils \
1295 maybe-install-info-time \
1296 maybe-install-info-uudecode \
1297 maybe-install-info-wdiff \
1298 maybe-install-info-zip \
1299 maybe-install-info-zlib \
1300 maybe-install-info-gdb \
1301 maybe-install-info-expect \
1302 maybe-install-info-guile \
1303 maybe-install-info-tk \
1304 maybe-install-info-libtermcap \
1305 maybe-install-info-utils \
1306 maybe-install-info-gnattools
1308 .PHONY: install-info-target
1309 install-info-target: \
1310 maybe-install-info-target-libstdc++-v3 \
1311 maybe-install-info-target-libmudflap \
1312 maybe-install-info-target-newlib \
1313 maybe-install-info-target-libgfortran \
1314 maybe-install-info-target-libobjc \
1315 maybe-install-info-target-libtermcap \
1316 maybe-install-info-target-winsup \
1317 maybe-install-info-target-libgloss \
1318 maybe-install-info-target-libiberty \
1319 maybe-install-info-target-gperf \
1320 maybe-install-info-target-examples \
1321 maybe-install-info-target-libffi \
1322 maybe-install-info-target-libjava \
1323 maybe-install-info-target-zlib \
1324 maybe-install-info-target-boehm-gc \
1325 maybe-install-info-target-qthreads \
1326 maybe-install-info-target-rda \
1327 maybe-install-info-target-libada
1329 .PHONY: do-installcheck
1330 do-installcheck: unstage installcheck-host installcheck-target stage
1332 .PHONY: installcheck-host
1333 installcheck-host: \
1334 maybe-installcheck-ash \
1335 maybe-installcheck-autoconf \
1336 maybe-installcheck-automake \
1337 maybe-installcheck-bash \
1338 maybe-installcheck-bfd \
1339 maybe-installcheck-opcodes \
1340 maybe-installcheck-binutils \
1341 maybe-installcheck-bison \
1342 maybe-installcheck-byacc \
1343 maybe-installcheck-bzip2 \
1344 maybe-installcheck-dejagnu \
1345 maybe-installcheck-diff \
1346 maybe-installcheck-dosutils \
1347 maybe-installcheck-etc \
1348 maybe-installcheck-fastjar \
1349 maybe-installcheck-fileutils \
1350 maybe-installcheck-findutils \
1351 maybe-installcheck-find \
1352 maybe-installcheck-fixincludes \
1353 maybe-installcheck-flex \
1354 maybe-installcheck-gas \
1355 maybe-installcheck-gcc \
1356 maybe-installcheck-gawk \
1357 maybe-installcheck-gettext \
1358 maybe-installcheck-gnuserv \
1359 maybe-installcheck-gprof \
1360 maybe-installcheck-gzip \
1361 maybe-installcheck-hello \
1362 maybe-installcheck-indent \
1363 maybe-installcheck-intl \
1364 maybe-installcheck-tcl \
1365 maybe-installcheck-itcl \
1366 maybe-installcheck-ld \
1367 maybe-installcheck-libcpp \
1368 maybe-installcheck-libgui \
1369 maybe-installcheck-libiberty \
1370 maybe-installcheck-libtool \
1371 maybe-installcheck-m4 \
1372 maybe-installcheck-make \
1373 maybe-installcheck-mmalloc \
1374 maybe-installcheck-patch \
1375 maybe-installcheck-perl \
1376 maybe-installcheck-prms \
1377 maybe-installcheck-rcs \
1378 maybe-installcheck-readline \
1379 maybe-installcheck-release \
1380 maybe-installcheck-recode \
1381 maybe-installcheck-sed \
1382 maybe-installcheck-send-pr \
1383 maybe-installcheck-shellutils \
1384 maybe-installcheck-sid \
1385 maybe-installcheck-sim \
1386 maybe-installcheck-tar \
1387 maybe-installcheck-texinfo \
1388 maybe-installcheck-textutils \
1389 maybe-installcheck-time \
1390 maybe-installcheck-uudecode \
1391 maybe-installcheck-wdiff \
1392 maybe-installcheck-zip \
1393 maybe-installcheck-zlib \
1394 maybe-installcheck-gdb \
1395 maybe-installcheck-expect \
1396 maybe-installcheck-guile \
1397 maybe-installcheck-tk \
1398 maybe-installcheck-libtermcap \
1399 maybe-installcheck-utils \
1400 maybe-installcheck-gnattools
1402 .PHONY: installcheck-target
1403 installcheck-target: \
1404 maybe-installcheck-target-libstdc++-v3 \
1405 maybe-installcheck-target-libmudflap \
1406 maybe-installcheck-target-newlib \
1407 maybe-installcheck-target-libgfortran \
1408 maybe-installcheck-target-libobjc \
1409 maybe-installcheck-target-libtermcap \
1410 maybe-installcheck-target-winsup \
1411 maybe-installcheck-target-libgloss \
1412 maybe-installcheck-target-libiberty \
1413 maybe-installcheck-target-gperf \
1414 maybe-installcheck-target-examples \
1415 maybe-installcheck-target-libffi \
1416 maybe-installcheck-target-libjava \
1417 maybe-installcheck-target-zlib \
1418 maybe-installcheck-target-boehm-gc \
1419 maybe-installcheck-target-qthreads \
1420 maybe-installcheck-target-rda \
1421 maybe-installcheck-target-libada
1423 .PHONY: do-mostlyclean
1424 do-mostlyclean: unstage mostlyclean-host mostlyclean-target stage
1426 .PHONY: mostlyclean-host
1428 maybe-mostlyclean-ash \
1429 maybe-mostlyclean-autoconf \
1430 maybe-mostlyclean-automake \
1431 maybe-mostlyclean-bash \
1432 maybe-mostlyclean-bfd \
1433 maybe-mostlyclean-opcodes \
1434 maybe-mostlyclean-binutils \
1435 maybe-mostlyclean-bison \
1436 maybe-mostlyclean-byacc \
1437 maybe-mostlyclean-bzip2 \
1438 maybe-mostlyclean-dejagnu \
1439 maybe-mostlyclean-diff \
1440 maybe-mostlyclean-dosutils \
1441 maybe-mostlyclean-etc \
1442 maybe-mostlyclean-fastjar \
1443 maybe-mostlyclean-fileutils \
1444 maybe-mostlyclean-findutils \
1445 maybe-mostlyclean-find \
1446 maybe-mostlyclean-fixincludes \
1447 maybe-mostlyclean-flex \
1448 maybe-mostlyclean-gas \
1449 maybe-mostlyclean-gcc \
1450 maybe-mostlyclean-gawk \
1451 maybe-mostlyclean-gettext \
1452 maybe-mostlyclean-gnuserv \
1453 maybe-mostlyclean-gprof \
1454 maybe-mostlyclean-gzip \
1455 maybe-mostlyclean-hello \
1456 maybe-mostlyclean-indent \
1457 maybe-mostlyclean-intl \
1458 maybe-mostlyclean-tcl \
1459 maybe-mostlyclean-itcl \
1460 maybe-mostlyclean-ld \
1461 maybe-mostlyclean-libcpp \
1462 maybe-mostlyclean-libgui \
1463 maybe-mostlyclean-libiberty \
1464 maybe-mostlyclean-libtool \
1465 maybe-mostlyclean-m4 \
1466 maybe-mostlyclean-make \
1467 maybe-mostlyclean-mmalloc \
1468 maybe-mostlyclean-patch \
1469 maybe-mostlyclean-perl \
1470 maybe-mostlyclean-prms \
1471 maybe-mostlyclean-rcs \
1472 maybe-mostlyclean-readline \
1473 maybe-mostlyclean-release \
1474 maybe-mostlyclean-recode \
1475 maybe-mostlyclean-sed \
1476 maybe-mostlyclean-send-pr \
1477 maybe-mostlyclean-shellutils \
1478 maybe-mostlyclean-sid \
1479 maybe-mostlyclean-sim \
1480 maybe-mostlyclean-tar \
1481 maybe-mostlyclean-texinfo \
1482 maybe-mostlyclean-textutils \
1483 maybe-mostlyclean-time \
1484 maybe-mostlyclean-uudecode \
1485 maybe-mostlyclean-wdiff \
1486 maybe-mostlyclean-zip \
1487 maybe-mostlyclean-zlib \
1488 maybe-mostlyclean-gdb \
1489 maybe-mostlyclean-expect \
1490 maybe-mostlyclean-guile \
1491 maybe-mostlyclean-tk \
1492 maybe-mostlyclean-libtermcap \
1493 maybe-mostlyclean-utils \
1494 maybe-mostlyclean-gnattools
1496 .PHONY: mostlyclean-target
1497 mostlyclean-target: \
1498 maybe-mostlyclean-target-libstdc++-v3 \
1499 maybe-mostlyclean-target-libmudflap \
1500 maybe-mostlyclean-target-newlib \
1501 maybe-mostlyclean-target-libgfortran \
1502 maybe-mostlyclean-target-libobjc \
1503 maybe-mostlyclean-target-libtermcap \
1504 maybe-mostlyclean-target-winsup \
1505 maybe-mostlyclean-target-libgloss \
1506 maybe-mostlyclean-target-libiberty \
1507 maybe-mostlyclean-target-gperf \
1508 maybe-mostlyclean-target-examples \
1509 maybe-mostlyclean-target-libffi \
1510 maybe-mostlyclean-target-libjava \
1511 maybe-mostlyclean-target-zlib \
1512 maybe-mostlyclean-target-boehm-gc \
1513 maybe-mostlyclean-target-qthreads \
1514 maybe-mostlyclean-target-rda \
1515 maybe-mostlyclean-target-libada
1518 do-clean: unstage clean-host clean-target stage
1523 maybe-clean-autoconf \
1524 maybe-clean-automake \
1527 maybe-clean-opcodes \
1528 maybe-clean-binutils \
1532 maybe-clean-dejagnu \
1534 maybe-clean-dosutils \
1536 maybe-clean-fastjar \
1537 maybe-clean-fileutils \
1538 maybe-clean-findutils \
1540 maybe-clean-fixincludes \
1545 maybe-clean-gettext \
1546 maybe-clean-gnuserv \
1550 maybe-clean-indent \
1555 maybe-clean-libcpp \
1556 maybe-clean-libgui \
1557 maybe-clean-libiberty \
1558 maybe-clean-libtool \
1561 maybe-clean-mmalloc \
1566 maybe-clean-readline \
1567 maybe-clean-release \
1568 maybe-clean-recode \
1570 maybe-clean-send-pr \
1571 maybe-clean-shellutils \
1575 maybe-clean-texinfo \
1576 maybe-clean-textutils \
1578 maybe-clean-uudecode \
1583 maybe-clean-expect \
1586 maybe-clean-libtermcap \
1588 maybe-clean-gnattools
1590 .PHONY: clean-target
1592 maybe-clean-target-libstdc++-v3 \
1593 maybe-clean-target-libmudflap \
1594 maybe-clean-target-newlib \
1595 maybe-clean-target-libgfortran \
1596 maybe-clean-target-libobjc \
1597 maybe-clean-target-libtermcap \
1598 maybe-clean-target-winsup \
1599 maybe-clean-target-libgloss \
1600 maybe-clean-target-libiberty \
1601 maybe-clean-target-gperf \
1602 maybe-clean-target-examples \
1603 maybe-clean-target-libffi \
1604 maybe-clean-target-libjava \
1605 maybe-clean-target-zlib \
1606 maybe-clean-target-boehm-gc \
1607 maybe-clean-target-qthreads \
1608 maybe-clean-target-rda \
1609 maybe-clean-target-libada
1611 .PHONY: do-distclean
1612 do-distclean: unstage distclean-host distclean-target stage
1614 .PHONY: distclean-host
1616 maybe-distclean-ash \
1617 maybe-distclean-autoconf \
1618 maybe-distclean-automake \
1619 maybe-distclean-bash \
1620 maybe-distclean-bfd \
1621 maybe-distclean-opcodes \
1622 maybe-distclean-binutils \
1623 maybe-distclean-bison \
1624 maybe-distclean-byacc \
1625 maybe-distclean-bzip2 \
1626 maybe-distclean-dejagnu \
1627 maybe-distclean-diff \
1628 maybe-distclean-dosutils \
1629 maybe-distclean-etc \
1630 maybe-distclean-fastjar \
1631 maybe-distclean-fileutils \
1632 maybe-distclean-findutils \
1633 maybe-distclean-find \
1634 maybe-distclean-fixincludes \
1635 maybe-distclean-flex \
1636 maybe-distclean-gas \
1637 maybe-distclean-gcc \
1638 maybe-distclean-gawk \
1639 maybe-distclean-gettext \
1640 maybe-distclean-gnuserv \
1641 maybe-distclean-gprof \
1642 maybe-distclean-gzip \
1643 maybe-distclean-hello \
1644 maybe-distclean-indent \
1645 maybe-distclean-intl \
1646 maybe-distclean-tcl \
1647 maybe-distclean-itcl \
1648 maybe-distclean-ld \
1649 maybe-distclean-libcpp \
1650 maybe-distclean-libgui \
1651 maybe-distclean-libiberty \
1652 maybe-distclean-libtool \
1653 maybe-distclean-m4 \
1654 maybe-distclean-make \
1655 maybe-distclean-mmalloc \
1656 maybe-distclean-patch \
1657 maybe-distclean-perl \
1658 maybe-distclean-prms \
1659 maybe-distclean-rcs \
1660 maybe-distclean-readline \
1661 maybe-distclean-release \
1662 maybe-distclean-recode \
1663 maybe-distclean-sed \
1664 maybe-distclean-send-pr \
1665 maybe-distclean-shellutils \
1666 maybe-distclean-sid \
1667 maybe-distclean-sim \
1668 maybe-distclean-tar \
1669 maybe-distclean-texinfo \
1670 maybe-distclean-textutils \
1671 maybe-distclean-time \
1672 maybe-distclean-uudecode \
1673 maybe-distclean-wdiff \
1674 maybe-distclean-zip \
1675 maybe-distclean-zlib \
1676 maybe-distclean-gdb \
1677 maybe-distclean-expect \
1678 maybe-distclean-guile \
1679 maybe-distclean-tk \
1680 maybe-distclean-libtermcap \
1681 maybe-distclean-utils \
1682 maybe-distclean-gnattools
1684 .PHONY: distclean-target
1686 maybe-distclean-target-libstdc++-v3 \
1687 maybe-distclean-target-libmudflap \
1688 maybe-distclean-target-newlib \
1689 maybe-distclean-target-libgfortran \
1690 maybe-distclean-target-libobjc \
1691 maybe-distclean-target-libtermcap \
1692 maybe-distclean-target-winsup \
1693 maybe-distclean-target-libgloss \
1694 maybe-distclean-target-libiberty \
1695 maybe-distclean-target-gperf \
1696 maybe-distclean-target-examples \
1697 maybe-distclean-target-libffi \
1698 maybe-distclean-target-libjava \
1699 maybe-distclean-target-zlib \
1700 maybe-distclean-target-boehm-gc \
1701 maybe-distclean-target-qthreads \
1702 maybe-distclean-target-rda \
1703 maybe-distclean-target-libada
1705 .PHONY: do-maintainer-clean
1706 do-maintainer-clean: unstage maintainer-clean-host maintainer-clean-target stage
1708 .PHONY: maintainer-clean-host
1709 maintainer-clean-host: \
1710 maybe-maintainer-clean-ash \
1711 maybe-maintainer-clean-autoconf \
1712 maybe-maintainer-clean-automake \
1713 maybe-maintainer-clean-bash \
1714 maybe-maintainer-clean-bfd \
1715 maybe-maintainer-clean-opcodes \
1716 maybe-maintainer-clean-binutils \
1717 maybe-maintainer-clean-bison \
1718 maybe-maintainer-clean-byacc \
1719 maybe-maintainer-clean-bzip2 \
1720 maybe-maintainer-clean-dejagnu \
1721 maybe-maintainer-clean-diff \
1722 maybe-maintainer-clean-dosutils \
1723 maybe-maintainer-clean-etc \
1724 maybe-maintainer-clean-fastjar \
1725 maybe-maintainer-clean-fileutils \
1726 maybe-maintainer-clean-findutils \
1727 maybe-maintainer-clean-find \
1728 maybe-maintainer-clean-fixincludes \
1729 maybe-maintainer-clean-flex \
1730 maybe-maintainer-clean-gas \
1731 maybe-maintainer-clean-gcc \
1732 maybe-maintainer-clean-gawk \
1733 maybe-maintainer-clean-gettext \
1734 maybe-maintainer-clean-gnuserv \
1735 maybe-maintainer-clean-gprof \
1736 maybe-maintainer-clean-gzip \
1737 maybe-maintainer-clean-hello \
1738 maybe-maintainer-clean-indent \
1739 maybe-maintainer-clean-intl \
1740 maybe-maintainer-clean-tcl \
1741 maybe-maintainer-clean-itcl \
1742 maybe-maintainer-clean-ld \
1743 maybe-maintainer-clean-libcpp \
1744 maybe-maintainer-clean-libgui \
1745 maybe-maintainer-clean-libiberty \
1746 maybe-maintainer-clean-libtool \
1747 maybe-maintainer-clean-m4 \
1748 maybe-maintainer-clean-make \
1749 maybe-maintainer-clean-mmalloc \
1750 maybe-maintainer-clean-patch \
1751 maybe-maintainer-clean-perl \
1752 maybe-maintainer-clean-prms \
1753 maybe-maintainer-clean-rcs \
1754 maybe-maintainer-clean-readline \
1755 maybe-maintainer-clean-release \
1756 maybe-maintainer-clean-recode \
1757 maybe-maintainer-clean-sed \
1758 maybe-maintainer-clean-send-pr \
1759 maybe-maintainer-clean-shellutils \
1760 maybe-maintainer-clean-sid \
1761 maybe-maintainer-clean-sim \
1762 maybe-maintainer-clean-tar \
1763 maybe-maintainer-clean-texinfo \
1764 maybe-maintainer-clean-textutils \
1765 maybe-maintainer-clean-time \
1766 maybe-maintainer-clean-uudecode \
1767 maybe-maintainer-clean-wdiff \
1768 maybe-maintainer-clean-zip \
1769 maybe-maintainer-clean-zlib \
1770 maybe-maintainer-clean-gdb \
1771 maybe-maintainer-clean-expect \
1772 maybe-maintainer-clean-guile \
1773 maybe-maintainer-clean-tk \
1774 maybe-maintainer-clean-libtermcap \
1775 maybe-maintainer-clean-utils \
1776 maybe-maintainer-clean-gnattools
1778 .PHONY: maintainer-clean-target
1779 maintainer-clean-target: \
1780 maybe-maintainer-clean-target-libstdc++-v3 \
1781 maybe-maintainer-clean-target-libmudflap \
1782 maybe-maintainer-clean-target-newlib \
1783 maybe-maintainer-clean-target-libgfortran \
1784 maybe-maintainer-clean-target-libobjc \
1785 maybe-maintainer-clean-target-libtermcap \
1786 maybe-maintainer-clean-target-winsup \
1787 maybe-maintainer-clean-target-libgloss \
1788 maybe-maintainer-clean-target-libiberty \
1789 maybe-maintainer-clean-target-gperf \
1790 maybe-maintainer-clean-target-examples \
1791 maybe-maintainer-clean-target-libffi \
1792 maybe-maintainer-clean-target-libjava \
1793 maybe-maintainer-clean-target-zlib \
1794 maybe-maintainer-clean-target-boehm-gc \
1795 maybe-maintainer-clean-target-qthreads \
1796 maybe-maintainer-clean-target-rda \
1797 maybe-maintainer-clean-target-libada
1800 # Here are the targets which correspond to the do-X targets.
1802 .PHONY: info installcheck dvi html install-info
1803 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1804 .PHONY: local-clean local-distclean local-maintainer-clean
1806 installcheck: do-installcheck
1810 # Make sure makeinfo is built before we do a `make info', if we're
1811 # in fact building texinfo.
1812 do-info: maybe-all-texinfo
1814 install-info: do-install-info dir.info
1815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1816 if [ -f dir.info ] ; then \
1817 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1821 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1824 -rm -f Makefile config.status config.cache mh-frag mt-frag
1825 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1826 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1827 rm -rf $(TARGET_SUBDIR); \
1829 -rm -rf $(BUILD_SUBDIR)
1830 -if [ "$(HOST_SUBDIR)" != "." ]; then \
1831 rm -rf $(HOST_SUBDIR); \
1833 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1834 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1835 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1836 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1837 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1839 local-maintainer-clean:
1840 @echo "This command is intended for maintainers to use;"
1841 @echo "it deletes files that may require special tools to rebuild."
1843 clean: do-clean local-clean
1844 mostlyclean: do-mostlyclean local-clean
1845 distclean: do-distclean local-clean local-distclean
1846 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1847 maintainer-clean: local-distclean
1848 realclean: maintainer-clean
1850 # Extra dependency for clean-target, owing to the mixed nature of gcc
1851 clean-target: clean-target-libgcc
1852 clean-target-libgcc:
1853 test ! -d gcc/libgcc || \
1854 (cd gcc/libgcc && find . -type d -print) | \
1855 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1857 -rm -f gcc/stmp-dirs
1861 .PHONY: check do-check
1864 # Only include modules actually being configured and built.
1867 maybe-check-autoconf \
1868 maybe-check-automake \
1871 maybe-check-opcodes \
1872 maybe-check-binutils \
1876 maybe-check-dejagnu \
1878 maybe-check-dosutils \
1880 maybe-check-fastjar \
1881 maybe-check-fileutils \
1882 maybe-check-findutils \
1884 maybe-check-fixincludes \
1889 maybe-check-gettext \
1890 maybe-check-gnuserv \
1894 maybe-check-indent \
1899 maybe-check-libcpp \
1900 maybe-check-libgui \
1901 maybe-check-libiberty \
1902 maybe-check-libtool \
1905 maybe-check-mmalloc \
1910 maybe-check-readline \
1911 maybe-check-release \
1912 maybe-check-recode \
1914 maybe-check-send-pr \
1915 maybe-check-shellutils \
1919 maybe-check-texinfo \
1920 maybe-check-textutils \
1922 maybe-check-uudecode \
1927 maybe-check-expect \
1930 maybe-check-libtermcap \
1932 maybe-check-gnattools \
1933 maybe-check-target-libstdc++-v3 \
1934 maybe-check-target-libmudflap \
1935 maybe-check-target-newlib \
1936 maybe-check-target-libgfortran \
1937 maybe-check-target-libobjc \
1938 maybe-check-target-libtermcap \
1939 maybe-check-target-winsup \
1940 maybe-check-target-libgloss \
1941 maybe-check-target-libiberty \
1942 maybe-check-target-gperf \
1943 maybe-check-target-examples \
1944 maybe-check-target-libffi \
1945 maybe-check-target-libjava \
1946 maybe-check-target-zlib \
1947 maybe-check-target-boehm-gc \
1948 maybe-check-target-qthreads \
1949 maybe-check-target-rda \
1950 maybe-check-target-libada stage
1952 # Automated reporting of test results.
1954 warning.log: build.log
1955 $(srcdir)/contrib/warn_summary build.log > $@
1958 if test x'$(BOOT_CFLAGS)' != x''; then \
1959 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1961 $(srcdir)/contrib/test_summary -t >$@
1963 echo If you really want to send e-mail, run ./$@ now
1965 mail-report-with-warnings.log: warning.log
1966 if test x'$(BOOT_CFLAGS)' != x''; then \
1967 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1969 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1971 echo If you really want to send e-mail, run ./$@ now
1973 # Installation targets.
1975 .PHONY: install uninstall
1976 install: installdirs install-host install-target
1978 .PHONY: install-host-nogcc
1979 install-host-nogcc: \
1981 maybe-install-autoconf \
1982 maybe-install-automake \
1983 maybe-install-bash \
1985 maybe-install-opcodes \
1986 maybe-install-binutils \
1987 maybe-install-bison \
1988 maybe-install-byacc \
1989 maybe-install-bzip2 \
1990 maybe-install-dejagnu \
1991 maybe-install-diff \
1992 maybe-install-dosutils \
1994 maybe-install-fastjar \
1995 maybe-install-fileutils \
1996 maybe-install-findutils \
1997 maybe-install-find \
1998 maybe-install-fixincludes \
1999 maybe-install-flex \
2001 maybe-install-gawk \
2002 maybe-install-gettext \
2003 maybe-install-gnuserv \
2004 maybe-install-gprof \
2005 maybe-install-gzip \
2006 maybe-install-hello \
2007 maybe-install-indent \
2008 maybe-install-intl \
2010 maybe-install-itcl \
2012 maybe-install-libcpp \
2013 maybe-install-libgui \
2014 maybe-install-libiberty \
2015 maybe-install-libtool \
2017 maybe-install-make \
2018 maybe-install-mmalloc \
2019 maybe-install-patch \
2020 maybe-install-perl \
2021 maybe-install-prms \
2023 maybe-install-readline \
2024 maybe-install-release \
2025 maybe-install-recode \
2027 maybe-install-send-pr \
2028 maybe-install-shellutils \
2032 maybe-install-texinfo \
2033 maybe-install-textutils \
2034 maybe-install-time \
2035 maybe-install-uudecode \
2036 maybe-install-wdiff \
2038 maybe-install-zlib \
2040 maybe-install-expect \
2041 maybe-install-guile \
2043 maybe-install-libtermcap \
2044 maybe-install-utils \
2045 maybe-install-gnattools
2047 .PHONY: install-host
2050 maybe-install-autoconf \
2051 maybe-install-automake \
2052 maybe-install-bash \
2054 maybe-install-opcodes \
2055 maybe-install-binutils \
2056 maybe-install-bison \
2057 maybe-install-byacc \
2058 maybe-install-bzip2 \
2059 maybe-install-dejagnu \
2060 maybe-install-diff \
2061 maybe-install-dosutils \
2063 maybe-install-fastjar \
2064 maybe-install-fileutils \
2065 maybe-install-findutils \
2066 maybe-install-find \
2067 maybe-install-fixincludes \
2068 maybe-install-flex \
2071 maybe-install-gawk \
2072 maybe-install-gettext \
2073 maybe-install-gnuserv \
2074 maybe-install-gprof \
2075 maybe-install-gzip \
2076 maybe-install-hello \
2077 maybe-install-indent \
2078 maybe-install-intl \
2080 maybe-install-itcl \
2082 maybe-install-libcpp \
2083 maybe-install-libgui \
2084 maybe-install-libiberty \
2085 maybe-install-libtool \
2087 maybe-install-make \
2088 maybe-install-mmalloc \
2089 maybe-install-patch \
2090 maybe-install-perl \
2091 maybe-install-prms \
2093 maybe-install-readline \
2094 maybe-install-release \
2095 maybe-install-recode \
2097 maybe-install-send-pr \
2098 maybe-install-shellutils \
2102 maybe-install-texinfo \
2103 maybe-install-textutils \
2104 maybe-install-time \
2105 maybe-install-uudecode \
2106 maybe-install-wdiff \
2108 maybe-install-zlib \
2110 maybe-install-expect \
2111 maybe-install-guile \
2113 maybe-install-libtermcap \
2114 maybe-install-utils \
2115 maybe-install-gnattools
2117 .PHONY: install-target
2119 maybe-install-target-libstdc++-v3 \
2120 maybe-install-target-libmudflap \
2121 maybe-install-target-newlib \
2122 maybe-install-target-libgfortran \
2123 maybe-install-target-libobjc \
2124 maybe-install-target-libtermcap \
2125 maybe-install-target-winsup \
2126 maybe-install-target-libgloss \
2127 maybe-install-target-libiberty \
2128 maybe-install-target-gperf \
2129 maybe-install-target-examples \
2130 maybe-install-target-libffi \
2131 maybe-install-target-libjava \
2132 maybe-install-target-zlib \
2133 maybe-install-target-boehm-gc \
2134 maybe-install-target-qthreads \
2135 maybe-install-target-rda \
2136 maybe-install-target-libada
2139 @echo "the uninstall target is not supported in this tree"
2142 install.all: install-no-fixedincludes
2143 @if [ -f ./gcc/Makefile ] ; then \
2144 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 # Macros for configure and all targets
2190 # ------------------------------------
2196 # --------------------------------------
2197 # Modules which run on the build machine
2198 # --------------------------------------
2201 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
2202 maybe-configure-build-libiberty:
2204 maybe-configure-build-libiberty: configure-build-libiberty
2205 configure-build-libiberty:
2206 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2207 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
2208 r=`${PWD_COMMAND}`; export r; \
2209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2211 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2212 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2214 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2215 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2216 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2218 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2219 libsrcdir="$$s/libiberty"; \
2220 rm -f no-such-file || : ; \
2221 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2222 $(BUILD_CONFIGARGS) $${srcdiroption} \
2224 @endif build-libiberty
2228 .PHONY: all-build-libiberty maybe-all-build-libiberty
2229 maybe-all-build-libiberty:
2231 TARGET-build-libiberty=all
2232 maybe-all-build-libiberty: all-build-libiberty
2233 all-build-libiberty: configure-build-libiberty
2234 @r=`${PWD_COMMAND}`; export r; \
2235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2237 (cd $(BUILD_SUBDIR)/libiberty && \
2238 $(MAKE) $(TARGET-build-libiberty))
2239 @endif build-libiberty
2243 .PHONY: configure-build-bison maybe-configure-build-bison
2244 maybe-configure-build-bison:
2246 maybe-configure-build-bison: configure-build-bison
2247 configure-build-bison:
2248 @test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2249 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2250 r=`${PWD_COMMAND}`; export r; \
2251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2253 echo Configuring in $(BUILD_SUBDIR)/bison; \
2254 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2256 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2257 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2258 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2260 srcdiroption="--srcdir=$${topdir}/bison"; \
2261 libsrcdir="$$s/bison"; \
2262 rm -f no-such-file || : ; \
2263 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2264 $(BUILD_CONFIGARGS) $${srcdiroption} \
2270 .PHONY: all-build-bison maybe-all-build-bison
2271 maybe-all-build-bison:
2273 TARGET-build-bison=all
2274 maybe-all-build-bison: all-build-bison
2275 all-build-bison: configure-build-bison
2276 @r=`${PWD_COMMAND}`; export r; \
2277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2279 (cd $(BUILD_SUBDIR)/bison && \
2280 $(MAKE) $(TARGET-build-bison))
2285 .PHONY: configure-build-byacc maybe-configure-build-byacc
2286 maybe-configure-build-byacc:
2288 maybe-configure-build-byacc: configure-build-byacc
2289 configure-build-byacc:
2290 @test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2291 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
2292 r=`${PWD_COMMAND}`; export r; \
2293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2295 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2296 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2298 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2299 *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \
2300 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2302 srcdiroption="--srcdir=$${topdir}/byacc"; \
2303 libsrcdir="$$s/byacc"; \
2304 rm -f no-such-file || : ; \
2305 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2306 $(BUILD_CONFIGARGS) $${srcdiroption} \
2312 .PHONY: all-build-byacc maybe-all-build-byacc
2313 maybe-all-build-byacc:
2315 TARGET-build-byacc=all
2316 maybe-all-build-byacc: all-build-byacc
2317 all-build-byacc: configure-build-byacc
2318 @r=`${PWD_COMMAND}`; export r; \
2319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2321 (cd $(BUILD_SUBDIR)/byacc && \
2322 $(MAKE) $(TARGET-build-byacc))
2327 .PHONY: configure-build-flex maybe-configure-build-flex
2328 maybe-configure-build-flex:
2330 maybe-configure-build-flex: configure-build-flex
2331 configure-build-flex:
2332 @test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2333 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2334 r=`${PWD_COMMAND}`; export r; \
2335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2337 echo Configuring in $(BUILD_SUBDIR)/flex; \
2338 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2340 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2341 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2342 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2344 srcdiroption="--srcdir=$${topdir}/flex"; \
2345 libsrcdir="$$s/flex"; \
2346 rm -f no-such-file || : ; \
2347 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2348 $(BUILD_CONFIGARGS) $${srcdiroption} \
2354 .PHONY: all-build-flex maybe-all-build-flex
2355 maybe-all-build-flex:
2357 TARGET-build-flex=all
2358 maybe-all-build-flex: all-build-flex
2359 all-build-flex: configure-build-flex
2360 @r=`${PWD_COMMAND}`; export r; \
2361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2363 (cd $(BUILD_SUBDIR)/flex && \
2364 $(MAKE) $(TARGET-build-flex))
2369 .PHONY: configure-build-m4 maybe-configure-build-m4
2370 maybe-configure-build-m4:
2372 maybe-configure-build-m4: configure-build-m4
2374 @test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2375 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2376 r=`${PWD_COMMAND}`; export r; \
2377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2379 echo Configuring in $(BUILD_SUBDIR)/m4; \
2380 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2382 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2383 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2384 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2386 srcdiroption="--srcdir=$${topdir}/m4"; \
2387 libsrcdir="$$s/m4"; \
2388 rm -f no-such-file || : ; \
2389 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2390 $(BUILD_CONFIGARGS) $${srcdiroption} \
2396 .PHONY: all-build-m4 maybe-all-build-m4
2400 maybe-all-build-m4: all-build-m4
2401 all-build-m4: configure-build-m4
2402 @r=`${PWD_COMMAND}`; export r; \
2403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2405 (cd $(BUILD_SUBDIR)/m4 && \
2406 $(MAKE) $(TARGET-build-m4))
2411 .PHONY: configure-build-texinfo maybe-configure-build-texinfo
2412 maybe-configure-build-texinfo:
2414 maybe-configure-build-texinfo: configure-build-texinfo
2415 configure-build-texinfo:
2416 @test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2417 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2418 r=`${PWD_COMMAND}`; export r; \
2419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2421 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2422 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2424 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2425 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2426 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2428 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2429 libsrcdir="$$s/texinfo"; \
2430 rm -f no-such-file || : ; \
2431 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2432 $(BUILD_CONFIGARGS) $${srcdiroption} \
2434 @endif build-texinfo
2438 .PHONY: all-build-texinfo maybe-all-build-texinfo
2439 maybe-all-build-texinfo:
2441 TARGET-build-texinfo=all
2442 maybe-all-build-texinfo: all-build-texinfo
2443 all-build-texinfo: configure-build-texinfo
2444 @r=`${PWD_COMMAND}`; export r; \
2445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2447 (cd $(BUILD_SUBDIR)/texinfo && \
2448 $(MAKE) $(TARGET-build-texinfo))
2449 @endif build-texinfo
2453 .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2454 maybe-configure-build-fixincludes:
2455 @if build-fixincludes
2456 maybe-configure-build-fixincludes: configure-build-fixincludes
2457 configure-build-fixincludes:
2458 @test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2459 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2460 r=`${PWD_COMMAND}`; export r; \
2461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2463 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2464 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2466 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2467 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2468 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2470 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2471 libsrcdir="$$s/fixincludes"; \
2472 rm -f no-such-file || : ; \
2473 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2474 $(BUILD_CONFIGARGS) $${srcdiroption} \
2476 @endif build-fixincludes
2480 .PHONY: all-build-fixincludes maybe-all-build-fixincludes
2481 maybe-all-build-fixincludes:
2482 @if build-fixincludes
2483 TARGET-build-fixincludes=all
2484 maybe-all-build-fixincludes: all-build-fixincludes
2485 all-build-fixincludes: configure-build-fixincludes
2486 @r=`${PWD_COMMAND}`; export r; \
2487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2489 (cd $(BUILD_SUBDIR)/fixincludes && \
2490 $(MAKE) $(TARGET-build-fixincludes))
2491 @endif build-fixincludes
2495 # --------------------------------------
2496 # Modules which run on the host machine
2497 # --------------------------------------
2500 .PHONY: configure-ash maybe-configure-ash
2501 maybe-configure-ash:
2503 maybe-configure-ash: configure-ash
2505 @test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \
2506 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \
2507 r=`${PWD_COMMAND}`; export r; \
2508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2510 echo Configuring in $(HOST_SUBDIR)/ash; \
2511 cd "$(HOST_SUBDIR)/ash" || exit 1; \
2513 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2514 *) topdir=`echo $(HOST_SUBDIR)/ash/ | \
2515 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2517 srcdiroption="--srcdir=$${topdir}/ash"; \
2518 libsrcdir="$$s/ash"; \
2519 $(SHELL) $${libsrcdir}/configure \
2520 $(HOST_CONFIGARGS) $${srcdiroption} \
2526 .PHONY: all-ash maybe-all-ash
2530 maybe-all-ash: all-ash
2531 all-ash: configure-ash
2532 @r=`${PWD_COMMAND}`; export r; \
2533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2535 (cd $(HOST_SUBDIR)/ash && \
2536 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ash))
2540 .PHONY: check-ash maybe-check-ash
2543 maybe-check-ash: check-ash
2546 @r=`${PWD_COMMAND}`; export r; \
2547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2549 (cd $(HOST_SUBDIR)/ash && \
2550 $(MAKE) $(FLAGS_TO_PASS) check)
2554 .PHONY: install-ash maybe-install-ash
2557 maybe-install-ash: install-ash
2559 install-ash: installdirs
2560 @r=`${PWD_COMMAND}`; export r; \
2561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2563 (cd $(HOST_SUBDIR)/ash && \
2564 $(MAKE) $(FLAGS_TO_PASS) install)
2568 # Other targets (info, dvi, etc.)
2570 .PHONY: maybe-info-ash info-ash
2573 maybe-info-ash: info-ash
2577 @[ -f ./ash/Makefile ] || exit 0; \
2578 r=`${PWD_COMMAND}`; export r; \
2579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2581 for flag in $(EXTRA_HOST_FLAGS) ; do \
2582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2584 echo "Doing info in ash" ; \
2585 (cd $(HOST_SUBDIR)/ash && \
2586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2588 "RANLIB=$${RANLIB}" \
2589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2595 .PHONY: maybe-dvi-ash dvi-ash
2598 maybe-dvi-ash: dvi-ash
2602 @[ -f ./ash/Makefile ] || exit 0; \
2603 r=`${PWD_COMMAND}`; export r; \
2604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2606 for flag in $(EXTRA_HOST_FLAGS) ; do \
2607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2609 echo "Doing dvi in ash" ; \
2610 (cd $(HOST_SUBDIR)/ash && \
2611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2613 "RANLIB=$${RANLIB}" \
2614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2620 .PHONY: maybe-html-ash html-ash
2623 maybe-html-ash: html-ash
2627 @[ -f ./ash/Makefile ] || exit 0; \
2628 r=`${PWD_COMMAND}`; export r; \
2629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2631 for flag in $(EXTRA_HOST_FLAGS) ; do \
2632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2634 echo "Doing html in ash" ; \
2635 (cd $(HOST_SUBDIR)/ash && \
2636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2638 "RANLIB=$${RANLIB}" \
2639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2645 .PHONY: maybe-TAGS-ash TAGS-ash
2648 maybe-TAGS-ash: TAGS-ash
2652 @[ -f ./ash/Makefile ] || exit 0; \
2653 r=`${PWD_COMMAND}`; export r; \
2654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2656 for flag in $(EXTRA_HOST_FLAGS) ; do \
2657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2659 echo "Doing TAGS in ash" ; \
2660 (cd $(HOST_SUBDIR)/ash && \
2661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2663 "RANLIB=$${RANLIB}" \
2664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2670 .PHONY: maybe-install-info-ash install-info-ash
2671 maybe-install-info-ash:
2673 maybe-install-info-ash: install-info-ash
2678 @[ -f ./ash/Makefile ] || exit 0; \
2679 r=`${PWD_COMMAND}`; export r; \
2680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2682 for flag in $(EXTRA_HOST_FLAGS) ; do \
2683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2685 echo "Doing install-info in ash" ; \
2686 (cd $(HOST_SUBDIR)/ash && \
2687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2689 "RANLIB=$${RANLIB}" \
2690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2696 .PHONY: maybe-installcheck-ash installcheck-ash
2697 maybe-installcheck-ash:
2699 maybe-installcheck-ash: installcheck-ash
2703 @[ -f ./ash/Makefile ] || exit 0; \
2704 r=`${PWD_COMMAND}`; export r; \
2705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2707 for flag in $(EXTRA_HOST_FLAGS) ; do \
2708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2710 echo "Doing installcheck in ash" ; \
2711 (cd $(HOST_SUBDIR)/ash && \
2712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2714 "RANLIB=$${RANLIB}" \
2715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2721 .PHONY: maybe-mostlyclean-ash mostlyclean-ash
2722 maybe-mostlyclean-ash:
2724 maybe-mostlyclean-ash: mostlyclean-ash
2727 @[ -f ./ash/Makefile ] || exit 0; \
2728 r=`${PWD_COMMAND}`; export r; \
2729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2731 for flag in $(EXTRA_HOST_FLAGS) ; do \
2732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2734 echo "Doing mostlyclean in ash" ; \
2735 (cd $(HOST_SUBDIR)/ash && \
2736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2738 "RANLIB=$${RANLIB}" \
2739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2745 .PHONY: maybe-clean-ash clean-ash
2748 maybe-clean-ash: clean-ash
2751 @[ -f ./ash/Makefile ] || exit 0; \
2752 r=`${PWD_COMMAND}`; export r; \
2753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2755 for flag in $(EXTRA_HOST_FLAGS) ; do \
2756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2758 echo "Doing clean in ash" ; \
2759 (cd $(HOST_SUBDIR)/ash && \
2760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2762 "RANLIB=$${RANLIB}" \
2763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2769 .PHONY: maybe-distclean-ash distclean-ash
2770 maybe-distclean-ash:
2772 maybe-distclean-ash: distclean-ash
2775 @[ -f ./ash/Makefile ] || exit 0; \
2776 r=`${PWD_COMMAND}`; export r; \
2777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2779 for flag in $(EXTRA_HOST_FLAGS) ; do \
2780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2782 echo "Doing distclean in ash" ; \
2783 (cd $(HOST_SUBDIR)/ash && \
2784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2786 "RANLIB=$${RANLIB}" \
2787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2793 .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2794 maybe-maintainer-clean-ash:
2796 maybe-maintainer-clean-ash: maintainer-clean-ash
2798 maintainer-clean-ash:
2799 @[ -f ./ash/Makefile ] || exit 0; \
2800 r=`${PWD_COMMAND}`; export r; \
2801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2803 for flag in $(EXTRA_HOST_FLAGS) ; do \
2804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2806 echo "Doing maintainer-clean in ash" ; \
2807 (cd $(HOST_SUBDIR)/ash && \
2808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2810 "RANLIB=$${RANLIB}" \
2811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2819 .PHONY: configure-autoconf maybe-configure-autoconf
2820 maybe-configure-autoconf:
2822 maybe-configure-autoconf: configure-autoconf
2824 @test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \
2825 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \
2826 r=`${PWD_COMMAND}`; export r; \
2827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2829 echo Configuring in $(HOST_SUBDIR)/autoconf; \
2830 cd "$(HOST_SUBDIR)/autoconf" || exit 1; \
2832 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2833 *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \
2834 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2836 srcdiroption="--srcdir=$${topdir}/autoconf"; \
2837 libsrcdir="$$s/autoconf"; \
2838 $(SHELL) $${libsrcdir}/configure \
2839 $(HOST_CONFIGARGS) $${srcdiroption} \
2845 .PHONY: all-autoconf maybe-all-autoconf
2849 maybe-all-autoconf: all-autoconf
2850 all-autoconf: configure-autoconf
2851 @r=`${PWD_COMMAND}`; export r; \
2852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2854 (cd $(HOST_SUBDIR)/autoconf && \
2855 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-autoconf))
2859 .PHONY: check-autoconf maybe-check-autoconf
2860 maybe-check-autoconf:
2862 maybe-check-autoconf: check-autoconf
2865 @r=`${PWD_COMMAND}`; export r; \
2866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2868 (cd $(HOST_SUBDIR)/autoconf && \
2869 $(MAKE) $(FLAGS_TO_PASS) check)
2873 .PHONY: install-autoconf maybe-install-autoconf
2874 maybe-install-autoconf:
2876 maybe-install-autoconf: install-autoconf
2878 install-autoconf: installdirs
2879 @r=`${PWD_COMMAND}`; export r; \
2880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2882 (cd $(HOST_SUBDIR)/autoconf && \
2883 $(MAKE) $(FLAGS_TO_PASS) install)
2887 # Other targets (info, dvi, etc.)
2889 .PHONY: maybe-info-autoconf info-autoconf
2890 maybe-info-autoconf:
2892 maybe-info-autoconf: info-autoconf
2896 @[ -f ./autoconf/Makefile ] || exit 0; \
2897 r=`${PWD_COMMAND}`; export r; \
2898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2900 for flag in $(EXTRA_HOST_FLAGS) ; do \
2901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2903 echo "Doing info in autoconf" ; \
2904 (cd $(HOST_SUBDIR)/autoconf && \
2905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2907 "RANLIB=$${RANLIB}" \
2908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2914 .PHONY: maybe-dvi-autoconf dvi-autoconf
2917 maybe-dvi-autoconf: dvi-autoconf
2921 @[ -f ./autoconf/Makefile ] || exit 0; \
2922 r=`${PWD_COMMAND}`; export r; \
2923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2925 for flag in $(EXTRA_HOST_FLAGS) ; do \
2926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2928 echo "Doing dvi in autoconf" ; \
2929 (cd $(HOST_SUBDIR)/autoconf && \
2930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2932 "RANLIB=$${RANLIB}" \
2933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2939 .PHONY: maybe-html-autoconf html-autoconf
2940 maybe-html-autoconf:
2942 maybe-html-autoconf: html-autoconf
2946 @[ -f ./autoconf/Makefile ] || exit 0; \
2947 r=`${PWD_COMMAND}`; export r; \
2948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2950 for flag in $(EXTRA_HOST_FLAGS) ; do \
2951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2953 echo "Doing html in autoconf" ; \
2954 (cd $(HOST_SUBDIR)/autoconf && \
2955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2957 "RANLIB=$${RANLIB}" \
2958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2964 .PHONY: maybe-TAGS-autoconf TAGS-autoconf
2965 maybe-TAGS-autoconf:
2967 maybe-TAGS-autoconf: TAGS-autoconf
2971 @[ -f ./autoconf/Makefile ] || exit 0; \
2972 r=`${PWD_COMMAND}`; export r; \
2973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2975 for flag in $(EXTRA_HOST_FLAGS) ; do \
2976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2978 echo "Doing TAGS in autoconf" ; \
2979 (cd $(HOST_SUBDIR)/autoconf && \
2980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2982 "RANLIB=$${RANLIB}" \
2983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2989 .PHONY: maybe-install-info-autoconf install-info-autoconf
2990 maybe-install-info-autoconf:
2992 maybe-install-info-autoconf: install-info-autoconf
2994 install-info-autoconf: \
2995 configure-autoconf \
2997 @[ -f ./autoconf/Makefile ] || exit 0; \
2998 r=`${PWD_COMMAND}`; export r; \
2999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3001 for flag in $(EXTRA_HOST_FLAGS) ; do \
3002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3004 echo "Doing install-info in autoconf" ; \
3005 (cd $(HOST_SUBDIR)/autoconf && \
3006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3008 "RANLIB=$${RANLIB}" \
3009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3015 .PHONY: maybe-installcheck-autoconf installcheck-autoconf
3016 maybe-installcheck-autoconf:
3018 maybe-installcheck-autoconf: installcheck-autoconf
3020 installcheck-autoconf: \
3022 @[ -f ./autoconf/Makefile ] || exit 0; \
3023 r=`${PWD_COMMAND}`; export r; \
3024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3026 for flag in $(EXTRA_HOST_FLAGS) ; do \
3027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3029 echo "Doing installcheck in autoconf" ; \
3030 (cd $(HOST_SUBDIR)/autoconf && \
3031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3033 "RANLIB=$${RANLIB}" \
3034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3040 .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3041 maybe-mostlyclean-autoconf:
3043 maybe-mostlyclean-autoconf: mostlyclean-autoconf
3045 mostlyclean-autoconf:
3046 @[ -f ./autoconf/Makefile ] || exit 0; \
3047 r=`${PWD_COMMAND}`; export r; \
3048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3050 for flag in $(EXTRA_HOST_FLAGS) ; do \
3051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3053 echo "Doing mostlyclean in autoconf" ; \
3054 (cd $(HOST_SUBDIR)/autoconf && \
3055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3057 "RANLIB=$${RANLIB}" \
3058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3064 .PHONY: maybe-clean-autoconf clean-autoconf
3065 maybe-clean-autoconf:
3067 maybe-clean-autoconf: clean-autoconf
3070 @[ -f ./autoconf/Makefile ] || exit 0; \
3071 r=`${PWD_COMMAND}`; export r; \
3072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3074 for flag in $(EXTRA_HOST_FLAGS) ; do \
3075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3077 echo "Doing clean in autoconf" ; \
3078 (cd $(HOST_SUBDIR)/autoconf && \
3079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3081 "RANLIB=$${RANLIB}" \
3082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3088 .PHONY: maybe-distclean-autoconf distclean-autoconf
3089 maybe-distclean-autoconf:
3091 maybe-distclean-autoconf: distclean-autoconf
3094 @[ -f ./autoconf/Makefile ] || exit 0; \
3095 r=`${PWD_COMMAND}`; export r; \
3096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3098 for flag in $(EXTRA_HOST_FLAGS) ; do \
3099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3101 echo "Doing distclean in autoconf" ; \
3102 (cd $(HOST_SUBDIR)/autoconf && \
3103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3105 "RANLIB=$${RANLIB}" \
3106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3112 .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3113 maybe-maintainer-clean-autoconf:
3115 maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
3117 maintainer-clean-autoconf:
3118 @[ -f ./autoconf/Makefile ] || exit 0; \
3119 r=`${PWD_COMMAND}`; export r; \
3120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3122 for flag in $(EXTRA_HOST_FLAGS) ; do \
3123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3125 echo "Doing maintainer-clean in autoconf" ; \
3126 (cd $(HOST_SUBDIR)/autoconf && \
3127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3129 "RANLIB=$${RANLIB}" \
3130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3138 .PHONY: configure-automake maybe-configure-automake
3139 maybe-configure-automake:
3141 maybe-configure-automake: configure-automake
3143 @test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \
3144 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \
3145 r=`${PWD_COMMAND}`; export r; \
3146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3148 echo Configuring in $(HOST_SUBDIR)/automake; \
3149 cd "$(HOST_SUBDIR)/automake" || exit 1; \
3151 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3152 *) topdir=`echo $(HOST_SUBDIR)/automake/ | \
3153 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3155 srcdiroption="--srcdir=$${topdir}/automake"; \
3156 libsrcdir="$$s/automake"; \
3157 $(SHELL) $${libsrcdir}/configure \
3158 $(HOST_CONFIGARGS) $${srcdiroption} \
3164 .PHONY: all-automake maybe-all-automake
3168 maybe-all-automake: all-automake
3169 all-automake: configure-automake
3170 @r=`${PWD_COMMAND}`; export r; \
3171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3173 (cd $(HOST_SUBDIR)/automake && \
3174 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-automake))
3178 .PHONY: check-automake maybe-check-automake
3179 maybe-check-automake:
3181 maybe-check-automake: check-automake
3184 @r=`${PWD_COMMAND}`; export r; \
3185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3187 (cd $(HOST_SUBDIR)/automake && \
3188 $(MAKE) $(FLAGS_TO_PASS) check)
3192 .PHONY: install-automake maybe-install-automake
3193 maybe-install-automake:
3195 maybe-install-automake: install-automake
3197 install-automake: installdirs
3198 @r=`${PWD_COMMAND}`; export r; \
3199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3201 (cd $(HOST_SUBDIR)/automake && \
3202 $(MAKE) $(FLAGS_TO_PASS) install)
3206 # Other targets (info, dvi, etc.)
3208 .PHONY: maybe-info-automake info-automake
3209 maybe-info-automake:
3211 maybe-info-automake: info-automake
3215 @[ -f ./automake/Makefile ] || exit 0; \
3216 r=`${PWD_COMMAND}`; export r; \
3217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3219 for flag in $(EXTRA_HOST_FLAGS) ; do \
3220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3222 echo "Doing info in automake" ; \
3223 (cd $(HOST_SUBDIR)/automake && \
3224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3226 "RANLIB=$${RANLIB}" \
3227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3233 .PHONY: maybe-dvi-automake dvi-automake
3236 maybe-dvi-automake: dvi-automake
3240 @[ -f ./automake/Makefile ] || exit 0; \
3241 r=`${PWD_COMMAND}`; export r; \
3242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3244 for flag in $(EXTRA_HOST_FLAGS) ; do \
3245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3247 echo "Doing dvi in automake" ; \
3248 (cd $(HOST_SUBDIR)/automake && \
3249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3251 "RANLIB=$${RANLIB}" \
3252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3258 .PHONY: maybe-html-automake html-automake
3259 maybe-html-automake:
3261 maybe-html-automake: html-automake
3265 @[ -f ./automake/Makefile ] || exit 0; \
3266 r=`${PWD_COMMAND}`; export r; \
3267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3269 for flag in $(EXTRA_HOST_FLAGS) ; do \
3270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3272 echo "Doing html in automake" ; \
3273 (cd $(HOST_SUBDIR)/automake && \
3274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3276 "RANLIB=$${RANLIB}" \
3277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3283 .PHONY: maybe-TAGS-automake TAGS-automake
3284 maybe-TAGS-automake:
3286 maybe-TAGS-automake: TAGS-automake
3290 @[ -f ./automake/Makefile ] || exit 0; \
3291 r=`${PWD_COMMAND}`; export r; \
3292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3294 for flag in $(EXTRA_HOST_FLAGS) ; do \
3295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3297 echo "Doing TAGS in automake" ; \
3298 (cd $(HOST_SUBDIR)/automake && \
3299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3301 "RANLIB=$${RANLIB}" \
3302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3308 .PHONY: maybe-install-info-automake install-info-automake
3309 maybe-install-info-automake:
3311 maybe-install-info-automake: install-info-automake
3313 install-info-automake: \
3314 configure-automake \
3316 @[ -f ./automake/Makefile ] || exit 0; \
3317 r=`${PWD_COMMAND}`; export r; \
3318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3320 for flag in $(EXTRA_HOST_FLAGS) ; do \
3321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3323 echo "Doing install-info in automake" ; \
3324 (cd $(HOST_SUBDIR)/automake && \
3325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3327 "RANLIB=$${RANLIB}" \
3328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3334 .PHONY: maybe-installcheck-automake installcheck-automake
3335 maybe-installcheck-automake:
3337 maybe-installcheck-automake: installcheck-automake
3339 installcheck-automake: \
3341 @[ -f ./automake/Makefile ] || exit 0; \
3342 r=`${PWD_COMMAND}`; export r; \
3343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3345 for flag in $(EXTRA_HOST_FLAGS) ; do \
3346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3348 echo "Doing installcheck in automake" ; \
3349 (cd $(HOST_SUBDIR)/automake && \
3350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3352 "RANLIB=$${RANLIB}" \
3353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3359 .PHONY: maybe-mostlyclean-automake mostlyclean-automake
3360 maybe-mostlyclean-automake:
3362 maybe-mostlyclean-automake: mostlyclean-automake
3364 mostlyclean-automake:
3365 @[ -f ./automake/Makefile ] || exit 0; \
3366 r=`${PWD_COMMAND}`; export r; \
3367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3369 for flag in $(EXTRA_HOST_FLAGS) ; do \
3370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3372 echo "Doing mostlyclean in automake" ; \
3373 (cd $(HOST_SUBDIR)/automake && \
3374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3376 "RANLIB=$${RANLIB}" \
3377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3383 .PHONY: maybe-clean-automake clean-automake
3384 maybe-clean-automake:
3386 maybe-clean-automake: clean-automake
3389 @[ -f ./automake/Makefile ] || exit 0; \
3390 r=`${PWD_COMMAND}`; export r; \
3391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3393 for flag in $(EXTRA_HOST_FLAGS) ; do \
3394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3396 echo "Doing clean in automake" ; \
3397 (cd $(HOST_SUBDIR)/automake && \
3398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3400 "RANLIB=$${RANLIB}" \
3401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3407 .PHONY: maybe-distclean-automake distclean-automake
3408 maybe-distclean-automake:
3410 maybe-distclean-automake: distclean-automake
3413 @[ -f ./automake/Makefile ] || exit 0; \
3414 r=`${PWD_COMMAND}`; export r; \
3415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3417 for flag in $(EXTRA_HOST_FLAGS) ; do \
3418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3420 echo "Doing distclean in automake" ; \
3421 (cd $(HOST_SUBDIR)/automake && \
3422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3424 "RANLIB=$${RANLIB}" \
3425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3431 .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3432 maybe-maintainer-clean-automake:
3434 maybe-maintainer-clean-automake: maintainer-clean-automake
3436 maintainer-clean-automake:
3437 @[ -f ./automake/Makefile ] || exit 0; \
3438 r=`${PWD_COMMAND}`; export r; \
3439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3441 for flag in $(EXTRA_HOST_FLAGS) ; do \
3442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3444 echo "Doing maintainer-clean in automake" ; \
3445 (cd $(HOST_SUBDIR)/automake && \
3446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3448 "RANLIB=$${RANLIB}" \
3449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3457 .PHONY: configure-bash maybe-configure-bash
3458 maybe-configure-bash:
3460 maybe-configure-bash: configure-bash
3462 @test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \
3463 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \
3464 r=`${PWD_COMMAND}`; export r; \
3465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3467 echo Configuring in $(HOST_SUBDIR)/bash; \
3468 cd "$(HOST_SUBDIR)/bash" || exit 1; \
3470 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3471 *) topdir=`echo $(HOST_SUBDIR)/bash/ | \
3472 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3474 srcdiroption="--srcdir=$${topdir}/bash"; \
3475 libsrcdir="$$s/bash"; \
3476 $(SHELL) $${libsrcdir}/configure \
3477 $(HOST_CONFIGARGS) $${srcdiroption} \
3483 .PHONY: all-bash maybe-all-bash
3487 maybe-all-bash: all-bash
3488 all-bash: configure-bash
3489 @r=`${PWD_COMMAND}`; export r; \
3490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3492 (cd $(HOST_SUBDIR)/bash && \
3493 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bash))
3497 .PHONY: check-bash maybe-check-bash
3500 maybe-check-bash: check-bash
3503 @r=`${PWD_COMMAND}`; export r; \
3504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3506 (cd $(HOST_SUBDIR)/bash && \
3507 $(MAKE) $(FLAGS_TO_PASS) check)
3511 .PHONY: install-bash maybe-install-bash
3514 maybe-install-bash: install-bash
3516 install-bash: installdirs
3517 @r=`${PWD_COMMAND}`; export r; \
3518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3520 (cd $(HOST_SUBDIR)/bash && \
3521 $(MAKE) $(FLAGS_TO_PASS) install)
3525 # Other targets (info, dvi, etc.)
3527 .PHONY: maybe-info-bash info-bash
3530 maybe-info-bash: info-bash
3534 @[ -f ./bash/Makefile ] || exit 0; \
3535 r=`${PWD_COMMAND}`; export r; \
3536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3538 for flag in $(EXTRA_HOST_FLAGS) ; do \
3539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3541 echo "Doing info in bash" ; \
3542 (cd $(HOST_SUBDIR)/bash && \
3543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3545 "RANLIB=$${RANLIB}" \
3546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3552 .PHONY: maybe-dvi-bash dvi-bash
3555 maybe-dvi-bash: dvi-bash
3559 @[ -f ./bash/Makefile ] || exit 0; \
3560 r=`${PWD_COMMAND}`; export r; \
3561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3563 for flag in $(EXTRA_HOST_FLAGS) ; do \
3564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3566 echo "Doing dvi in bash" ; \
3567 (cd $(HOST_SUBDIR)/bash && \
3568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3570 "RANLIB=$${RANLIB}" \
3571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3577 .PHONY: maybe-html-bash html-bash
3580 maybe-html-bash: html-bash
3584 @[ -f ./bash/Makefile ] || exit 0; \
3585 r=`${PWD_COMMAND}`; export r; \
3586 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; \
3613 for flag in $(EXTRA_HOST_FLAGS) ; do \
3614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3616 echo "Doing TAGS in bash" ; \
3617 (cd $(HOST_SUBDIR)/bash && \
3618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3620 "RANLIB=$${RANLIB}" \
3621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3627 .PHONY: maybe-install-info-bash install-info-bash
3628 maybe-install-info-bash:
3630 maybe-install-info-bash: install-info-bash
3632 install-info-bash: \
3635 @[ -f ./bash/Makefile ] || exit 0; \
3636 r=`${PWD_COMMAND}`; export r; \
3637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3639 for flag in $(EXTRA_HOST_FLAGS) ; do \
3640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3642 echo "Doing install-info in bash" ; \
3643 (cd $(HOST_SUBDIR)/bash && \
3644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3646 "RANLIB=$${RANLIB}" \
3647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3653 .PHONY: maybe-installcheck-bash installcheck-bash
3654 maybe-installcheck-bash:
3656 maybe-installcheck-bash: installcheck-bash
3658 installcheck-bash: \
3660 @[ -f ./bash/Makefile ] || exit 0; \
3661 r=`${PWD_COMMAND}`; export r; \
3662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3664 for flag in $(EXTRA_HOST_FLAGS) ; do \
3665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3667 echo "Doing installcheck in bash" ; \
3668 (cd $(HOST_SUBDIR)/bash && \
3669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3671 "RANLIB=$${RANLIB}" \
3672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3678 .PHONY: maybe-mostlyclean-bash mostlyclean-bash
3679 maybe-mostlyclean-bash:
3681 maybe-mostlyclean-bash: mostlyclean-bash
3684 @[ -f ./bash/Makefile ] || exit 0; \
3685 r=`${PWD_COMMAND}`; export r; \
3686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3688 for flag in $(EXTRA_HOST_FLAGS) ; do \
3689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3691 echo "Doing mostlyclean in bash" ; \
3692 (cd $(HOST_SUBDIR)/bash && \
3693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3695 "RANLIB=$${RANLIB}" \
3696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3702 .PHONY: maybe-clean-bash clean-bash
3705 maybe-clean-bash: clean-bash
3708 @[ -f ./bash/Makefile ] || exit 0; \
3709 r=`${PWD_COMMAND}`; export r; \
3710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \