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 POSTSTAGE1_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
2230 .PHONY: all-build-libiberty maybe-all-build-libiberty
2231 maybe-all-build-libiberty:
2233 TARGET-build-libiberty=all
2234 maybe-all-build-libiberty: all-build-libiberty
2235 all-build-libiberty: configure-build-libiberty
2236 @r=`${PWD_COMMAND}`; export r; \
2237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2239 (cd $(BUILD_SUBDIR)/libiberty && \
2240 $(MAKE) $(TARGET-build-libiberty))
2241 @endif build-libiberty
2247 .PHONY: configure-build-bison maybe-configure-build-bison
2248 maybe-configure-build-bison:
2250 maybe-configure-build-bison: configure-build-bison
2251 configure-build-bison:
2252 @test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2253 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2254 r=`${PWD_COMMAND}`; export r; \
2255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2257 echo Configuring in $(BUILD_SUBDIR)/bison; \
2258 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2260 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2261 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2262 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2264 srcdiroption="--srcdir=$${topdir}/bison"; \
2265 libsrcdir="$$s/bison"; \
2266 rm -f no-such-file || : ; \
2267 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2268 $(BUILD_CONFIGARGS) $${srcdiroption} \
2276 .PHONY: all-build-bison maybe-all-build-bison
2277 maybe-all-build-bison:
2279 TARGET-build-bison=all
2280 maybe-all-build-bison: all-build-bison
2281 all-build-bison: configure-build-bison
2282 @r=`${PWD_COMMAND}`; export r; \
2283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2285 (cd $(BUILD_SUBDIR)/bison && \
2286 $(MAKE) $(TARGET-build-bison))
2293 .PHONY: configure-build-byacc maybe-configure-build-byacc
2294 maybe-configure-build-byacc:
2296 maybe-configure-build-byacc: configure-build-byacc
2297 configure-build-byacc:
2298 @test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2299 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
2300 r=`${PWD_COMMAND}`; export r; \
2301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2303 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2304 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2306 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2307 *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \
2308 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2310 srcdiroption="--srcdir=$${topdir}/byacc"; \
2311 libsrcdir="$$s/byacc"; \
2312 rm -f no-such-file || : ; \
2313 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2314 $(BUILD_CONFIGARGS) $${srcdiroption} \
2322 .PHONY: all-build-byacc maybe-all-build-byacc
2323 maybe-all-build-byacc:
2325 TARGET-build-byacc=all
2326 maybe-all-build-byacc: all-build-byacc
2327 all-build-byacc: configure-build-byacc
2328 @r=`${PWD_COMMAND}`; export r; \
2329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2331 (cd $(BUILD_SUBDIR)/byacc && \
2332 $(MAKE) $(TARGET-build-byacc))
2339 .PHONY: configure-build-flex maybe-configure-build-flex
2340 maybe-configure-build-flex:
2342 maybe-configure-build-flex: configure-build-flex
2343 configure-build-flex:
2344 @test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2345 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2346 r=`${PWD_COMMAND}`; export r; \
2347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2349 echo Configuring in $(BUILD_SUBDIR)/flex; \
2350 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2352 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2353 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2354 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2356 srcdiroption="--srcdir=$${topdir}/flex"; \
2357 libsrcdir="$$s/flex"; \
2358 rm -f no-such-file || : ; \
2359 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2360 $(BUILD_CONFIGARGS) $${srcdiroption} \
2368 .PHONY: all-build-flex maybe-all-build-flex
2369 maybe-all-build-flex:
2371 TARGET-build-flex=all
2372 maybe-all-build-flex: all-build-flex
2373 all-build-flex: configure-build-flex
2374 @r=`${PWD_COMMAND}`; export r; \
2375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2377 (cd $(BUILD_SUBDIR)/flex && \
2378 $(MAKE) $(TARGET-build-flex))
2385 .PHONY: configure-build-m4 maybe-configure-build-m4
2386 maybe-configure-build-m4:
2388 maybe-configure-build-m4: configure-build-m4
2390 @test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2391 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2392 r=`${PWD_COMMAND}`; export r; \
2393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2395 echo Configuring in $(BUILD_SUBDIR)/m4; \
2396 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2398 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2399 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2400 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2402 srcdiroption="--srcdir=$${topdir}/m4"; \
2403 libsrcdir="$$s/m4"; \
2404 rm -f no-such-file || : ; \
2405 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2406 $(BUILD_CONFIGARGS) $${srcdiroption} \
2414 .PHONY: all-build-m4 maybe-all-build-m4
2418 maybe-all-build-m4: all-build-m4
2419 all-build-m4: configure-build-m4
2420 @r=`${PWD_COMMAND}`; export r; \
2421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2423 (cd $(BUILD_SUBDIR)/m4 && \
2424 $(MAKE) $(TARGET-build-m4))
2431 .PHONY: configure-build-texinfo maybe-configure-build-texinfo
2432 maybe-configure-build-texinfo:
2434 maybe-configure-build-texinfo: configure-build-texinfo
2435 configure-build-texinfo:
2436 @test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2437 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2438 r=`${PWD_COMMAND}`; export r; \
2439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2441 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2442 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2444 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2445 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2446 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2448 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2449 libsrcdir="$$s/texinfo"; \
2450 rm -f no-such-file || : ; \
2451 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2452 $(BUILD_CONFIGARGS) $${srcdiroption} \
2454 @endif build-texinfo
2460 .PHONY: all-build-texinfo maybe-all-build-texinfo
2461 maybe-all-build-texinfo:
2463 TARGET-build-texinfo=all
2464 maybe-all-build-texinfo: all-build-texinfo
2465 all-build-texinfo: configure-build-texinfo
2466 @r=`${PWD_COMMAND}`; export r; \
2467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2469 (cd $(BUILD_SUBDIR)/texinfo && \
2470 $(MAKE) $(TARGET-build-texinfo))
2471 @endif build-texinfo
2477 .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2478 maybe-configure-build-fixincludes:
2479 @if build-fixincludes
2480 maybe-configure-build-fixincludes: configure-build-fixincludes
2481 configure-build-fixincludes:
2482 @test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2483 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2484 r=`${PWD_COMMAND}`; export r; \
2485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2487 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2488 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2490 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2491 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2492 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2494 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2495 libsrcdir="$$s/fixincludes"; \
2496 rm -f no-such-file || : ; \
2497 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2498 $(BUILD_CONFIGARGS) $${srcdiroption} \
2500 @endif build-fixincludes
2506 .PHONY: all-build-fixincludes maybe-all-build-fixincludes
2507 maybe-all-build-fixincludes:
2508 @if build-fixincludes
2509 TARGET-build-fixincludes=all
2510 maybe-all-build-fixincludes: all-build-fixincludes
2511 all-build-fixincludes: configure-build-fixincludes
2512 @r=`${PWD_COMMAND}`; export r; \
2513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2515 (cd $(BUILD_SUBDIR)/fixincludes && \
2516 $(MAKE) $(TARGET-build-fixincludes))
2517 @endif build-fixincludes
2523 # --------------------------------------
2524 # Modules which run on the host machine
2525 # --------------------------------------
2528 .PHONY: configure-ash maybe-configure-ash
2529 maybe-configure-ash:
2531 maybe-configure-ash: configure-ash
2533 @test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \
2534 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \
2535 r=`${PWD_COMMAND}`; export r; \
2536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2538 echo Configuring in $(HOST_SUBDIR)/ash; \
2539 cd "$(HOST_SUBDIR)/ash" || exit 1; \
2541 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2542 *) topdir=`echo $(HOST_SUBDIR)/ash/ | \
2543 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2545 srcdiroption="--srcdir=$${topdir}/ash"; \
2546 libsrcdir="$$s/ash"; \
2547 $(SHELL) $${libsrcdir}/configure \
2548 $(HOST_CONFIGARGS) $${srcdiroption} \
2556 .PHONY: all-ash maybe-all-ash
2560 maybe-all-ash: all-ash
2561 all-ash: configure-ash
2562 @r=`${PWD_COMMAND}`; export r; \
2563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2565 (cd $(HOST_SUBDIR)/ash && \
2566 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ash))
2572 .PHONY: check-ash maybe-check-ash
2575 maybe-check-ash: check-ash
2578 @r=`${PWD_COMMAND}`; export r; \
2579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2581 (cd $(HOST_SUBDIR)/ash && \
2582 $(MAKE) $(FLAGS_TO_PASS) check)
2586 .PHONY: install-ash maybe-install-ash
2589 maybe-install-ash: install-ash
2591 install-ash: installdirs
2592 @r=`${PWD_COMMAND}`; export r; \
2593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2595 (cd $(HOST_SUBDIR)/ash && \
2596 $(MAKE) $(FLAGS_TO_PASS) install)
2600 # Other targets (info, dvi, etc.)
2602 .PHONY: maybe-info-ash info-ash
2605 maybe-info-ash: info-ash
2609 @[ -f ./ash/Makefile ] || exit 0; \
2610 r=`${PWD_COMMAND}`; export r; \
2611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2613 for flag in $(EXTRA_HOST_FLAGS) ; do \
2614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2616 echo "Doing info in ash" ; \
2617 (cd $(HOST_SUBDIR)/ash && \
2618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2620 "RANLIB=$${RANLIB}" \
2621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2627 .PHONY: maybe-dvi-ash dvi-ash
2630 maybe-dvi-ash: dvi-ash
2634 @[ -f ./ash/Makefile ] || exit 0; \
2635 r=`${PWD_COMMAND}`; export r; \
2636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2638 for flag in $(EXTRA_HOST_FLAGS) ; do \
2639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2641 echo "Doing dvi in ash" ; \
2642 (cd $(HOST_SUBDIR)/ash && \
2643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2645 "RANLIB=$${RANLIB}" \
2646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2652 .PHONY: maybe-html-ash html-ash
2655 maybe-html-ash: html-ash
2659 @[ -f ./ash/Makefile ] || exit 0; \
2660 r=`${PWD_COMMAND}`; export r; \
2661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2663 for flag in $(EXTRA_HOST_FLAGS) ; do \
2664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2666 echo "Doing html in ash" ; \
2667 (cd $(HOST_SUBDIR)/ash && \
2668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2670 "RANLIB=$${RANLIB}" \
2671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2677 .PHONY: maybe-TAGS-ash TAGS-ash
2680 maybe-TAGS-ash: TAGS-ash
2684 @[ -f ./ash/Makefile ] || exit 0; \
2685 r=`${PWD_COMMAND}`; export r; \
2686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2688 for flag in $(EXTRA_HOST_FLAGS) ; do \
2689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2691 echo "Doing TAGS in ash" ; \
2692 (cd $(HOST_SUBDIR)/ash && \
2693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2695 "RANLIB=$${RANLIB}" \
2696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2702 .PHONY: maybe-install-info-ash install-info-ash
2703 maybe-install-info-ash:
2705 maybe-install-info-ash: install-info-ash
2710 @[ -f ./ash/Makefile ] || exit 0; \
2711 r=`${PWD_COMMAND}`; export r; \
2712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2714 for flag in $(EXTRA_HOST_FLAGS) ; do \
2715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2717 echo "Doing install-info in ash" ; \
2718 (cd $(HOST_SUBDIR)/ash && \
2719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2721 "RANLIB=$${RANLIB}" \
2722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2728 .PHONY: maybe-installcheck-ash installcheck-ash
2729 maybe-installcheck-ash:
2731 maybe-installcheck-ash: installcheck-ash
2735 @[ -f ./ash/Makefile ] || exit 0; \
2736 r=`${PWD_COMMAND}`; export r; \
2737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2739 for flag in $(EXTRA_HOST_FLAGS) ; do \
2740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2742 echo "Doing installcheck in ash" ; \
2743 (cd $(HOST_SUBDIR)/ash && \
2744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2746 "RANLIB=$${RANLIB}" \
2747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2753 .PHONY: maybe-mostlyclean-ash mostlyclean-ash
2754 maybe-mostlyclean-ash:
2756 maybe-mostlyclean-ash: mostlyclean-ash
2759 @[ -f ./ash/Makefile ] || exit 0; \
2760 r=`${PWD_COMMAND}`; export r; \
2761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2763 for flag in $(EXTRA_HOST_FLAGS) ; do \
2764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2766 echo "Doing mostlyclean in ash" ; \
2767 (cd $(HOST_SUBDIR)/ash && \
2768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2770 "RANLIB=$${RANLIB}" \
2771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2777 .PHONY: maybe-clean-ash clean-ash
2780 maybe-clean-ash: clean-ash
2783 @[ -f ./ash/Makefile ] || exit 0; \
2784 r=`${PWD_COMMAND}`; export r; \
2785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2787 for flag in $(EXTRA_HOST_FLAGS) ; do \
2788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2790 echo "Doing clean in ash" ; \
2791 (cd $(HOST_SUBDIR)/ash && \
2792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2794 "RANLIB=$${RANLIB}" \
2795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2801 .PHONY: maybe-distclean-ash distclean-ash
2802 maybe-distclean-ash:
2804 maybe-distclean-ash: distclean-ash
2807 @[ -f ./ash/Makefile ] || exit 0; \
2808 r=`${PWD_COMMAND}`; export r; \
2809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2811 for flag in $(EXTRA_HOST_FLAGS) ; do \
2812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2814 echo "Doing distclean in ash" ; \
2815 (cd $(HOST_SUBDIR)/ash && \
2816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2818 "RANLIB=$${RANLIB}" \
2819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2825 .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2826 maybe-maintainer-clean-ash:
2828 maybe-maintainer-clean-ash: maintainer-clean-ash
2830 maintainer-clean-ash:
2831 @[ -f ./ash/Makefile ] || exit 0; \
2832 r=`${PWD_COMMAND}`; export r; \
2833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2835 for flag in $(EXTRA_HOST_FLAGS) ; do \
2836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2838 echo "Doing maintainer-clean in ash" ; \
2839 (cd $(HOST_SUBDIR)/ash && \
2840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2842 "RANLIB=$${RANLIB}" \
2843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2851 .PHONY: configure-autoconf maybe-configure-autoconf
2852 maybe-configure-autoconf:
2854 maybe-configure-autoconf: configure-autoconf
2856 @test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \
2857 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \
2858 r=`${PWD_COMMAND}`; export r; \
2859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2861 echo Configuring in $(HOST_SUBDIR)/autoconf; \
2862 cd "$(HOST_SUBDIR)/autoconf" || exit 1; \
2864 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2865 *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \
2866 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2868 srcdiroption="--srcdir=$${topdir}/autoconf"; \
2869 libsrcdir="$$s/autoconf"; \
2870 $(SHELL) $${libsrcdir}/configure \
2871 $(HOST_CONFIGARGS) $${srcdiroption} \
2879 .PHONY: all-autoconf maybe-all-autoconf
2883 maybe-all-autoconf: all-autoconf
2884 all-autoconf: configure-autoconf
2885 @r=`${PWD_COMMAND}`; export r; \
2886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2888 (cd $(HOST_SUBDIR)/autoconf && \
2889 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-autoconf))
2895 .PHONY: check-autoconf maybe-check-autoconf
2896 maybe-check-autoconf:
2898 maybe-check-autoconf: check-autoconf
2901 @r=`${PWD_COMMAND}`; export r; \
2902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2904 (cd $(HOST_SUBDIR)/autoconf && \
2905 $(MAKE) $(FLAGS_TO_PASS) check)
2909 .PHONY: install-autoconf maybe-install-autoconf
2910 maybe-install-autoconf:
2912 maybe-install-autoconf: install-autoconf
2914 install-autoconf: installdirs
2915 @r=`${PWD_COMMAND}`; export r; \
2916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2918 (cd $(HOST_SUBDIR)/autoconf && \
2919 $(MAKE) $(FLAGS_TO_PASS) install)
2923 # Other targets (info, dvi, etc.)
2925 .PHONY: maybe-info-autoconf info-autoconf
2926 maybe-info-autoconf:
2928 maybe-info-autoconf: info-autoconf
2932 @[ -f ./autoconf/Makefile ] || exit 0; \
2933 r=`${PWD_COMMAND}`; export r; \
2934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2936 for flag in $(EXTRA_HOST_FLAGS) ; do \
2937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2939 echo "Doing info in autoconf" ; \
2940 (cd $(HOST_SUBDIR)/autoconf && \
2941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2943 "RANLIB=$${RANLIB}" \
2944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2950 .PHONY: maybe-dvi-autoconf dvi-autoconf
2953 maybe-dvi-autoconf: dvi-autoconf
2957 @[ -f ./autoconf/Makefile ] || exit 0; \
2958 r=`${PWD_COMMAND}`; export r; \
2959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2961 for flag in $(EXTRA_HOST_FLAGS) ; do \
2962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2964 echo "Doing dvi in autoconf" ; \
2965 (cd $(HOST_SUBDIR)/autoconf && \
2966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2968 "RANLIB=$${RANLIB}" \
2969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2975 .PHONY: maybe-html-autoconf html-autoconf
2976 maybe-html-autoconf:
2978 maybe-html-autoconf: html-autoconf
2982 @[ -f ./autoconf/Makefile ] || exit 0; \
2983 r=`${PWD_COMMAND}`; export r; \
2984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2986 for flag in $(EXTRA_HOST_FLAGS) ; do \
2987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2989 echo "Doing html in autoconf" ; \
2990 (cd $(HOST_SUBDIR)/autoconf && \
2991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2993 "RANLIB=$${RANLIB}" \
2994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3000 .PHONY: maybe-TAGS-autoconf TAGS-autoconf
3001 maybe-TAGS-autoconf:
3003 maybe-TAGS-autoconf: TAGS-autoconf
3007 @[ -f ./autoconf/Makefile ] || exit 0; \
3008 r=`${PWD_COMMAND}`; export r; \
3009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3011 for flag in $(EXTRA_HOST_FLAGS) ; do \
3012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3014 echo "Doing TAGS in autoconf" ; \
3015 (cd $(HOST_SUBDIR)/autoconf && \
3016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3018 "RANLIB=$${RANLIB}" \
3019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3025 .PHONY: maybe-install-info-autoconf install-info-autoconf
3026 maybe-install-info-autoconf:
3028 maybe-install-info-autoconf: install-info-autoconf
3030 install-info-autoconf: \
3031 configure-autoconf \
3033 @[ -f ./autoconf/Makefile ] || exit 0; \
3034 r=`${PWD_COMMAND}`; export r; \
3035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3037 for flag in $(EXTRA_HOST_FLAGS) ; do \
3038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3040 echo "Doing install-info in autoconf" ; \
3041 (cd $(HOST_SUBDIR)/autoconf && \
3042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3044 "RANLIB=$${RANLIB}" \
3045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3051 .PHONY: maybe-installcheck-autoconf installcheck-autoconf
3052 maybe-installcheck-autoconf:
3054 maybe-installcheck-autoconf: installcheck-autoconf
3056 installcheck-autoconf: \
3058 @[ -f ./autoconf/Makefile ] || exit 0; \
3059 r=`${PWD_COMMAND}`; export r; \
3060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3062 for flag in $(EXTRA_HOST_FLAGS) ; do \
3063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3065 echo "Doing installcheck in autoconf" ; \
3066 (cd $(HOST_SUBDIR)/autoconf && \
3067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3069 "RANLIB=$${RANLIB}" \
3070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3076 .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3077 maybe-mostlyclean-autoconf:
3079 maybe-mostlyclean-autoconf: mostlyclean-autoconf
3081 mostlyclean-autoconf:
3082 @[ -f ./autoconf/Makefile ] || exit 0; \
3083 r=`${PWD_COMMAND}`; export r; \
3084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3086 for flag in $(EXTRA_HOST_FLAGS) ; do \
3087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3089 echo "Doing mostlyclean in autoconf" ; \
3090 (cd $(HOST_SUBDIR)/autoconf && \
3091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3093 "RANLIB=$${RANLIB}" \
3094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3100 .PHONY: maybe-clean-autoconf clean-autoconf
3101 maybe-clean-autoconf:
3103 maybe-clean-autoconf: clean-autoconf
3106 @[ -f ./autoconf/Makefile ] || exit 0; \
3107 r=`${PWD_COMMAND}`; export r; \
3108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3110 for flag in $(EXTRA_HOST_FLAGS) ; do \
3111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3113 echo "Doing clean in autoconf" ; \
3114 (cd $(HOST_SUBDIR)/autoconf && \
3115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3117 "RANLIB=$${RANLIB}" \
3118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3124 .PHONY: maybe-distclean-autoconf distclean-autoconf
3125 maybe-distclean-autoconf:
3127 maybe-distclean-autoconf: distclean-autoconf
3130 @[ -f ./autoconf/Makefile ] || exit 0; \
3131 r=`${PWD_COMMAND}`; export r; \
3132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3134 for flag in $(EXTRA_HOST_FLAGS) ; do \
3135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3137 echo "Doing distclean in autoconf" ; \
3138 (cd $(HOST_SUBDIR)/autoconf && \
3139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3141 "RANLIB=$${RANLIB}" \
3142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3148 .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3149 maybe-maintainer-clean-autoconf:
3151 maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
3153 maintainer-clean-autoconf:
3154 @[ -f ./autoconf/Makefile ] || exit 0; \
3155 r=`${PWD_COMMAND}`; export r; \
3156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3158 for flag in $(EXTRA_HOST_FLAGS) ; do \
3159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3161 echo "Doing maintainer-clean in autoconf" ; \
3162 (cd $(HOST_SUBDIR)/autoconf && \
3163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3165 "RANLIB=$${RANLIB}" \
3166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3174 .PHONY: configure-automake maybe-configure-automake
3175 maybe-configure-automake:
3177 maybe-configure-automake: configure-automake
3179 @test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \
3180 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \
3181 r=`${PWD_COMMAND}`; export r; \
3182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3184 echo Configuring in $(HOST_SUBDIR)/automake; \
3185 cd "$(HOST_SUBDIR)/automake" || exit 1; \
3187 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3188 *) topdir=`echo $(HOST_SUBDIR)/automake/ | \
3189 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3191 srcdiroption="--srcdir=$${topdir}/automake"; \
3192 libsrcdir="$$s/automake"; \
3193 $(SHELL) $${libsrcdir}/configure \
3194 $(HOST_CONFIGARGS) $${srcdiroption} \
3202 .PHONY: all-automake maybe-all-automake
3206 maybe-all-automake: all-automake
3207 all-automake: configure-automake
3208 @r=`${PWD_COMMAND}`; export r; \
3209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3211 (cd $(HOST_SUBDIR)/automake && \
3212 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-automake))
3218 .PHONY: check-automake maybe-check-automake
3219 maybe-check-automake:
3221 maybe-check-automake: check-automake
3224 @r=`${PWD_COMMAND}`; export r; \
3225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3227 (cd $(HOST_SUBDIR)/automake && \
3228 $(MAKE) $(FLAGS_TO_PASS) check)
3232 .PHONY: install-automake maybe-install-automake
3233 maybe-install-automake:
3235 maybe-install-automake: install-automake
3237 install-automake: installdirs
3238 @r=`${PWD_COMMAND}`; export r; \
3239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3241 (cd $(HOST_SUBDIR)/automake && \
3242 $(MAKE) $(FLAGS_TO_PASS) install)
3246 # Other targets (info, dvi, etc.)
3248 .PHONY: maybe-info-automake info-automake
3249 maybe-info-automake:
3251 maybe-info-automake: info-automake
3255 @[ -f ./automake/Makefile ] || exit 0; \
3256 r=`${PWD_COMMAND}`; export r; \
3257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3259 for flag in $(EXTRA_HOST_FLAGS) ; do \
3260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3262 echo "Doing info in automake" ; \
3263 (cd $(HOST_SUBDIR)/automake && \
3264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3266 "RANLIB=$${RANLIB}" \
3267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3273 .PHONY: maybe-dvi-automake dvi-automake
3276 maybe-dvi-automake: dvi-automake
3280 @[ -f ./automake/Makefile ] || exit 0; \
3281 r=`${PWD_COMMAND}`; export r; \
3282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3284 for flag in $(EXTRA_HOST_FLAGS) ; do \
3285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3287 echo "Doing dvi in automake" ; \
3288 (cd $(HOST_SUBDIR)/automake && \
3289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3291 "RANLIB=$${RANLIB}" \
3292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3298 .PHONY: maybe-html-automake html-automake
3299 maybe-html-automake:
3301 maybe-html-automake: html-automake
3305 @[ -f ./automake/Makefile ] || exit 0; \
3306 r=`${PWD_COMMAND}`; export r; \
3307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3309 for flag in $(EXTRA_HOST_FLAGS) ; do \
3310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3312 echo "Doing html in automake" ; \
3313 (cd $(HOST_SUBDIR)/automake && \
3314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3316 "RANLIB=$${RANLIB}" \
3317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3323 .PHONY: maybe-TAGS-automake TAGS-automake
3324 maybe-TAGS-automake:
3326 maybe-TAGS-automake: TAGS-automake
3330 @[ -f ./automake/Makefile ] || exit 0; \
3331 r=`${PWD_COMMAND}`; export r; \
3332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3334 for flag in $(EXTRA_HOST_FLAGS) ; do \
3335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3337 echo "Doing TAGS in automake" ; \
3338 (cd $(HOST_SUBDIR)/automake && \
3339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3341 "RANLIB=$${RANLIB}" \
3342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3348 .PHONY: maybe-install-info-automake install-info-automake
3349 maybe-install-info-automake:
3351 maybe-install-info-automake: install-info-automake
3353 install-info-automake: \
3354 configure-automake \
3356 @[ -f ./automake/Makefile ] || exit 0; \
3357 r=`${PWD_COMMAND}`; export r; \
3358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3360 for flag in $(EXTRA_HOST_FLAGS) ; do \
3361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3363 echo "Doing install-info in automake" ; \
3364 (cd $(HOST_SUBDIR)/automake && \
3365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3367 "RANLIB=$${RANLIB}" \
3368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3374 .PHONY: maybe-installcheck-automake installcheck-automake
3375 maybe-installcheck-automake:
3377 maybe-installcheck-automake: installcheck-automake
3379 installcheck-automake: \
3381 @[ -f ./automake/Makefile ] || exit 0; \
3382 r=`${PWD_COMMAND}`; export r; \
3383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3385 for flag in $(EXTRA_HOST_FLAGS) ; do \
3386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3388 echo "Doing installcheck in automake" ; \
3389 (cd $(HOST_SUBDIR)/automake && \
3390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3392 "RANLIB=$${RANLIB}" \
3393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3399 .PHONY: maybe-mostlyclean-automake mostlyclean-automake
3400 maybe-mostlyclean-automake:
3402 maybe-mostlyclean-automake: mostlyclean-automake
3404 mostlyclean-automake:
3405 @[ -f ./automake/Makefile ] || exit 0; \
3406 r=`${PWD_COMMAND}`; export r; \
3407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3409 for flag in $(EXTRA_HOST_FLAGS) ; do \
3410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3412 echo "Doing mostlyclean in automake" ; \
3413 (cd $(HOST_SUBDIR)/automake && \
3414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3416 "RANLIB=$${RANLIB}" \
3417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3423 .PHONY: maybe-clean-automake clean-automake
3424 maybe-clean-automake:
3426 maybe-clean-automake: clean-automake
3429 @[ -f ./automake/Makefile ] || exit 0; \
3430 r=`${PWD_COMMAND}`; export r; \
3431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3433 for flag in $(EXTRA_HOST_FLAGS) ; do \
3434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3436 echo "Doing clean in automake" ; \
3437 (cd $(HOST_SUBDIR)/automake && \
3438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3440 "RANLIB=$${RANLIB}" \
3441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3447 .PHONY: maybe-distclean-automake distclean-automake
3448 maybe-distclean-automake:
3450 maybe-distclean-automake: distclean-automake
3453 @[ -f ./automake/Makefile ] || exit 0; \
3454 r=`${PWD_COMMAND}`; export r; \
3455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3457 for flag in $(EXTRA_HOST_FLAGS) ; do \
3458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3460 echo "Doing distclean in automake" ; \
3461 (cd $(HOST_SUBDIR)/automake && \
3462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3464 "RANLIB=$${RANLIB}" \
3465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3471 .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3472 maybe-maintainer-clean-automake:
3474 maybe-maintainer-clean-automake: maintainer-clean-automake
3476 maintainer-clean-automake:
3477 @[ -f ./automake/Makefile ] || exit 0; \
3478 r=`${PWD_COMMAND}`; export r; \
3479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3481 for flag in $(EXTRA_HOST_FLAGS) ; do \
3482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3484 echo "Doing maintainer-clean in automake" ; \
3485 (cd $(HOST_SUBDIR)/automake && \
3486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3488 "RANLIB=$${RANLIB}" \
3489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3497 .PHONY: configure-bash maybe-configure-bash
3498 maybe-configure-bash:
3500 maybe-configure-bash: configure-bash
3502 @test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \
3503 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \
3504 r=`${PWD_COMMAND}`; export r; \
3505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3507 echo Configuring in $(HOST_SUBDIR)/bash; \
3508 cd "$(HOST_SUBDIR)/bash" || exit 1; \
3510 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3511 *) topdir=`echo $(HOST_SUBDIR)/bash/ | \
3512 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3514 srcdiroption="--srcdir=$${topdir}/bash"; \
3515 libsrcdir="$$s/bash"; \
3516 $(SHELL) $${libsrcdir}/configure \
3517 $(HOST_CONFIGARGS) $${srcdiroption} \
3525 .PHONY: all-bash maybe-all-bash
3529 maybe-all-bash: all-bash
3530 all-bash: configure-bash
3531 @r=`${PWD_COMMAND}`; export r; \
3532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3534 (cd $(HOST_SUBDIR)/bash && \
3535 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bash))
3541 .PHONY: check-bash maybe-check-bash
3544 maybe-check-bash: check-bash
3547 @r=`${PWD_COMMAND}`; export r; \
3548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3550 (cd $(HOST_SUBDIR)/bash && \
3551 $(MAKE) $(FLAGS_TO_PASS) check)
3555 .PHONY: install-bash maybe-install-bash
3558 maybe-install-bash: install-bash
3560 install-bash: installdirs
3561 @r=`${PWD_COMMAND}`; export r; \
3562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3564 (cd $(HOST_SUBDIR)/bash && \
3565 $(MAKE) $(FLAGS_TO_PASS) install)
3569 # Other targets (info, dvi, etc.)
3571 .PHONY: maybe-info-bash info-bash
3574 maybe-info-bash: info-bash
3578 @[ -f ./bash/Makefile ] || exit 0; \
3579 r=`${PWD_COMMAND}`; export r; \
3580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3582 for flag in $(EXTRA_HOST_FLAGS) ; do \
3583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3585 echo "Doing info in bash" ; \
3586 (cd $(HOST_SUBDIR)/bash && \
3587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3589 "RANLIB=$${RANLIB}" \
3590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3596 .PHONY: maybe-dvi-bash dvi-bash
3599 maybe-dvi-bash: dvi-bash
3603 @[ -f ./bash/Makefile ] || exit 0; \
3604 r=`${PWD_COMMAND}`; export r; \
3605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3607 for flag in $(EXTRA_HOST_FLAGS) ; do \
3608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3610 echo "Doing dvi in bash" ; \
3611 (cd $(HOST_SUBDIR)/bash && \
3612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3614 "RANLIB=$${RANLIB}" \
3615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3621 .PHONY: maybe-html-bash html-bash
3624 maybe-html-bash: html-bash
3628 @[ -f ./bash/Makefile ] || exit 0; \
3629 r=`${PWD_COMMAND}`; export r; \
3630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3632 for flag in $(EXTRA_HOST_FLAGS) ; do \
3633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3635 echo "Doing html in bash" ; \
3636 (cd $(HOST_SUBDIR)/bash && \
3637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3639 "RANLIB=$${RANLIB}" \
3640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3646 .PHONY: maybe-TAGS-bash TAGS-bash
3649 maybe-TAGS-bash: TAGS-bash
3653 @[ -f ./bash/Makefile ] || exit 0; \
3654 r=`${PWD_COMMAND}`; export r; \
3655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3657 for flag in $(EXTRA_HOST_FLAGS) ; do \
3658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3660 echo "Doing TAGS in bash" ; \
3661 (cd $(HOST_SUBDIR)/bash && \
3662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3664 "RANLIB=$${RANLIB}" \
3665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3671 .PHONY: maybe-install-info-bash install-info-bash
3672 maybe-install-info-bash:
3674 maybe-install-info-bash: install-info-bash
3676 install-info-bash: \
3679 @[ -f ./bash/Makefile ] || exit 0; \
3680 r=`${PWD_COMMAND}`; export r; \
3681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3683 for flag in $(EXTRA_HOST_FLAGS) ; do \
3684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3686 echo "Doing install-info in bash" ; \
3687 (cd $(HOST_SUBDIR)/bash && \
3688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3690 "RANLIB=$${RANLIB}" \
3691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3697 .PHONY: maybe-installcheck-bash installcheck-bash
3698 maybe-installcheck-bash:
3700 maybe-installcheck-bash: installcheck-bash
3702 installcheck-bash: \
3704 @[ -f ./bash/Makefile ] || exit 0; \
3705 r=`${PWD_COMMAND}`; export r; \
3706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3708 for flag in $(EXTRA_HOST_FLAGS) ; do \
3709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3711 echo "Doing installcheck in bash" ; \
3712 (cd $(HOST_SUBDIR)/bash && \
3713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3715 "RANLIB=$${RANLIB}" \
3716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3722 .PHONY: maybe-mostlyclean-bash mostlyclean-ba