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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
366 # During gcc bootstrap, if we use some random cc for stage1 then
367 # CFLAGS will be just -g. We want to ensure that TARGET libraries
368 # (which we know are built with gcc) are built with optimizations so
369 # prepend -O2 when setting CFLAGS_FOR_TARGET.
370 CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
371 # If GCC_FOR_TARGET is not overriden on the command line, then this
372 # variable is passed down to the gcc Makefile, where it is used to
373 # build libgcc2.a. We define it here so that it can itself be
374 # overridden on the command line.
375 GCC_FOR_TARGET=@GCC_FOR_TARGET@
376 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) \
377 $$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/ $(FLAGS_FOR_TARGET)
378 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
380 CXX_FOR_TARGET = @CXX_FOR_TARGET@
381 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
382 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
383 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
384 CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
385 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
387 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
388 CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
389 USUAL_DLLTOOL_FOR_TARGET = ` \
390 if [ -f $$r/$(HOST_SUBDIR)/binutils/dlltool ] ; then \
391 echo $$r/$(HOST_SUBDIR)/binutils/dlltool ; \
393 if [ '$(host)' = '$(target)' ] ; then \
396 echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
400 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
401 GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
403 LD_FOR_TARGET=@LD_FOR_TARGET@
404 CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
405 USUAL_LD_FOR_TARGET = ` \
406 if [ -f $$r/$(HOST_SUBDIR)/ld/ld-new ] ; then \
407 echo $$r/$(HOST_SUBDIR)/ld/ld-new ; \
408 elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \
409 $(CC_FOR_TARGET) -print-prog-name=ld ; \
411 if [ '$(host)' = '$(target)' ] ; then \
414 echo $(CONFIGURED_LD_FOR_TARGET) ; \
420 NM_FOR_TARGET=@NM_FOR_TARGET@
421 CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
422 USUAL_NM_FOR_TARGET = ` \
423 if [ -f $$r/$(HOST_SUBDIR)/binutils/nm-new ] ; then \
424 echo $$r/$(HOST_SUBDIR)/binutils/nm-new ; \
425 elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \
426 $(CC_FOR_TARGET) -print-prog-name=nm ; \
428 if [ '$(host)' = '$(target)' ] ; then \
431 echo $(CONFIGURED_NM_FOR_TARGET) ; \
435 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
436 CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
437 USUAL_RANLIB_FOR_TARGET = ` \
438 if [ -f $$r/$(HOST_SUBDIR)/binutils/ranlib ] ; then \
439 echo $$r/$(HOST_SUBDIR)/binutils/ranlib ; \
441 if [ '$(host)' = '$(target)' ] ; then \
442 if [ x'$(RANLIB)' != x ]; then \
448 echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
452 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
453 CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
454 USUAL_WINDRES_FOR_TARGET = ` \
455 if [ -f $$r/$(HOST_SUBDIR)/binutils/windres ] ; then \
456 echo $$r/$(HOST_SUBDIR)/binutils/windres ; \
458 if [ '$(host)' = '$(target)' ] ; then \
461 echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
467 # ------------------------------------
468 # Miscellaneous targets and flag lists
469 # ------------------------------------
471 # The first rule in the file had better be this one. Don't put any above it.
472 # This lives here to allow makefile fragments to contain dependencies.
475 #### host and target specific makefile fragments come in here.
476 @target_makefile_frag@
482 # This is the list of directories that may be needed in RPATH_ENVVAR
483 # so that prorgams built for the target machine work.
484 TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libmudflap)$(TARGET_LIB_PATH_libssp)$(HOST_LIB_PATH_gcc)
486 @if target-libstdc++-v3
487 TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/.libs:
488 @endif target-libstdc++-v3
490 @if target-libmudflap
491 TARGET_LIB_PATH_libmudflap = $$r/$(TARGET_SUBDIR)/libmudflap/.libs:
492 @endif target-libmudflap
495 TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
500 # This is the list of directories that may be needed in RPATH_ENVVAR
501 # so that programs built for the host machine work.
502 HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)
504 # Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
506 HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc:$$r/$(HOST_SUBDIR)/prev-gcc:
511 HOST_LIB_PATH_bfd = \
512 $$r/$(HOST_SUBDIR)/bfd/.:$$r/$(HOST_SUBDIR)/prev-bfd/.:
516 HOST_LIB_PATH_opcodes = \
517 $$r/$(HOST_SUBDIR)/opcodes/.:$$r/$(HOST_SUBDIR)/prev-opcodes/.:
521 # Flags to pass down to all sub-makes.
522 BASE_FLAGS_TO_PASS = \
523 "DESTDIR=$(DESTDIR)" \
524 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
525 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
527 "datadir=$(datadir)" \
528 "exec_prefix=$(exec_prefix)" \
529 "includedir=$(includedir)" \
530 "infodir=$(infodir)" \
532 "libexecdir=$(libexecdir)" \
533 "lispdir=$(lispdir)" \
534 "localstatedir=$(localstatedir)" \
536 "oldincludedir=$(oldincludedir)" \
538 "sbindir=$(sbindir)" \
539 "sharedstatedir=$(sharedstatedir)" \
540 "sysconfdir=$(sysconfdir)" \
541 "tooldir=$(tooldir)" \
542 "build_tooldir=$(build_tooldir)" \
543 "target_alias=$(target_alias)" \
545 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
546 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
547 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
550 "INSTALL=$(INSTALL)" \
551 "INSTALL_DATA=$(INSTALL_DATA)" \
552 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
553 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
557 "RUNTEST=$(RUNTEST)" \
558 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
561 "AR_FLAGS=$(AR_FLAGS)" \
563 "CXXFLAGS=$(CXXFLAGS)" \
564 "LDFLAGS=$(LDFLAGS)" \
565 "LIBCFLAGS=$(LIBCFLAGS)" \
566 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
567 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
568 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
569 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
570 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
571 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
572 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
573 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
574 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
575 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
576 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
577 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
578 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
579 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
580 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
581 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
582 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
583 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
584 "CONFIG_SHELL=$(SHELL)" \
585 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
587 # For any flags above that may contain shell code that varies from one
588 # target library to another. When doing recursive invocations of the
589 # top-level Makefile, we don't want the outer make to evaluate them,
590 # so we pass these variables down unchanged. They must not contain
591 # single nor double quotes.
593 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
594 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
596 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS)
598 # Flags to pass down to most sub-makes, in which we're building with
599 # the host environment.
605 'DLLTOOL=$(DLLTOOL)' \
611 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
613 # Flags that are concerned with the location of the X11 include files
616 # NOTE: until the top-level is getting the values via autoconf, it only
617 # causes problems to have this top-level Makefile overriding the autoconf-set
618 # values in child directories. Only variables that don't conflict with
619 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
621 X11_FLAGS_TO_PASS = \
622 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
623 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
625 # Flags to pass down to makes which are built with the target environment.
626 # The double $ decreases the length of the command line; the variables
627 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
628 EXTRA_TARGET_FLAGS = \
629 'AR=$$(AR_FOR_TARGET)' \
630 'AS=$$(AS_FOR_TARGET)' \
631 'CC=$$(CC_FOR_TARGET)' \
632 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
633 'CXX=$$(CXX_FOR_TARGET)' \
634 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
635 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
636 'LD=$$(LD_FOR_TARGET)' \
637 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
638 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
639 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
640 'NM=$$(NM_FOR_TARGET)' \
641 'RANLIB=$$(RANLIB_FOR_TARGET)' \
642 'WINDRES=$$(WINDRES_FOR_TARGET)'
644 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
646 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
647 # unfortunately needs the native compiler and the target ar and
649 # If any variables are added here, they must be added to do-*, below.
650 # The BUILD_* variables are a special case, which are used for the gcc
651 # cross-building scheme.
653 'BUILD_PREFIX=$(BUILD_PREFIX)' \
654 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
655 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
656 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
657 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
658 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
659 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
660 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
661 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
662 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
663 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
664 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
666 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
668 .PHONY: configure-host
670 maybe-configure-ash \
671 maybe-configure-autoconf \
672 maybe-configure-automake \
673 maybe-configure-bash \
674 maybe-configure-bfd \
675 maybe-configure-opcodes \
676 maybe-configure-binutils \
677 maybe-configure-bison \
678 maybe-configure-byacc \
679 maybe-configure-bzip2 \
680 maybe-configure-dejagnu \
681 maybe-configure-diff \
682 maybe-configure-dosutils \
683 maybe-configure-etc \
684 maybe-configure-fastjar \
685 maybe-configure-fileutils \
686 maybe-configure-findutils \
687 maybe-configure-find \
688 maybe-configure-fixincludes \
689 maybe-configure-flex \
690 maybe-configure-gas \
691 maybe-configure-gcc \
692 maybe-configure-gawk \
693 maybe-configure-gettext \
694 maybe-configure-gnuserv \
695 maybe-configure-gprof \
696 maybe-configure-gzip \
697 maybe-configure-hello \
698 maybe-configure-indent \
699 maybe-configure-intl \
700 maybe-configure-tcl \
701 maybe-configure-itcl \
703 maybe-configure-libcpp \
704 maybe-configure-libgui \
705 maybe-configure-libiberty \
706 maybe-configure-libtool \
708 maybe-configure-make \
709 maybe-configure-mmalloc \
710 maybe-configure-patch \
711 maybe-configure-perl \
712 maybe-configure-prms \
713 maybe-configure-rcs \
714 maybe-configure-readline \
715 maybe-configure-release \
716 maybe-configure-recode \
717 maybe-configure-sed \
718 maybe-configure-send-pr \
719 maybe-configure-shellutils \
720 maybe-configure-sid \
721 maybe-configure-sim \
722 maybe-configure-tar \
723 maybe-configure-texinfo \
724 maybe-configure-textutils \
725 maybe-configure-time \
726 maybe-configure-uudecode \
727 maybe-configure-wdiff \
728 maybe-configure-zip \
729 maybe-configure-zlib \
730 maybe-configure-gdb \
731 maybe-configure-expect \
732 maybe-configure-guile \
734 maybe-configure-libtermcap \
735 maybe-configure-utils \
736 maybe-configure-gnattools
737 .PHONY: configure-target
739 maybe-configure-target-libstdc++-v3 \
740 maybe-configure-target-libmudflap \
741 maybe-configure-target-libssp \
742 maybe-configure-target-newlib \
743 maybe-configure-target-libgfortran \
744 maybe-configure-target-libobjc \
745 maybe-configure-target-libtermcap \
746 maybe-configure-target-winsup \
747 maybe-configure-target-libgloss \
748 maybe-configure-target-libiberty \
749 maybe-configure-target-gperf \
750 maybe-configure-target-examples \
751 maybe-configure-target-libffi \
752 maybe-configure-target-libjava \
753 maybe-configure-target-zlib \
754 maybe-configure-target-boehm-gc \
755 maybe-configure-target-qthreads \
756 maybe-configure-target-rda \
757 maybe-configure-target-libada
759 # The target built for a native non-bootstrap build.
761 all: unstage all-host all-target stage
765 maybe-all-build-libiberty \
766 maybe-all-build-bison \
767 maybe-all-build-byacc \
768 maybe-all-build-flex \
770 maybe-all-build-texinfo \
771 maybe-all-build-fixincludes
789 maybe-all-fileutils \
790 maybe-all-findutils \
792 maybe-all-fixincludes \
809 maybe-all-libiberty \
823 maybe-all-shellutils \
828 maybe-all-textutils \
838 maybe-all-libtermcap \
843 maybe-all-target-libstdc++-v3 \
844 maybe-all-target-libmudflap \
845 maybe-all-target-libssp \
846 maybe-all-target-newlib \
847 maybe-all-target-libgfortran \
848 maybe-all-target-libobjc \
849 maybe-all-target-libtermcap \
850 maybe-all-target-winsup \
851 maybe-all-target-libgloss \
852 maybe-all-target-libiberty \
853 maybe-all-target-gperf \
854 maybe-all-target-examples \
855 maybe-all-target-libffi \
856 maybe-all-target-libjava \
857 maybe-all-target-zlib \
858 maybe-all-target-boehm-gc \
859 maybe-all-target-qthreads \
860 maybe-all-target-rda \
861 maybe-all-target-libada
863 # Do a target for all the subdirectories. A ``make do-X'' will do a
864 # ``make X'' in all subdirectories (because, in general, there is a
865 # dependency (below) of X upon do-X, a ``make X'' will also do this,
866 # but it may do additional work as well).
869 do-info: unstage info-host info-target stage
874 maybe-info-autoconf \
875 maybe-info-automake \
879 maybe-info-binutils \
885 maybe-info-dosutils \
888 maybe-info-fileutils \
889 maybe-info-findutils \
891 maybe-info-fixincludes \
908 maybe-info-libiberty \
917 maybe-info-readline \
922 maybe-info-shellutils \
927 maybe-info-textutils \
929 maybe-info-uudecode \
937 maybe-info-libtermcap \
943 maybe-info-target-libstdc++-v3 \
944 maybe-info-target-libmudflap \
945 maybe-info-target-libssp \
946 maybe-info-target-newlib \
947 maybe-info-target-libgfortran \
948 maybe-info-target-libobjc \
949 maybe-info-target-libtermcap \
950 maybe-info-target-winsup \
951 maybe-info-target-libgloss \
952 maybe-info-target-libiberty \
953 maybe-info-target-gperf \
954 maybe-info-target-examples \
955 maybe-info-target-libffi \
956 maybe-info-target-libjava \
957 maybe-info-target-zlib \
958 maybe-info-target-boehm-gc \
959 maybe-info-target-qthreads \
960 maybe-info-target-rda \
961 maybe-info-target-libada
964 do-dvi: unstage dvi-host dvi-target stage
983 maybe-dvi-fileutils \
984 maybe-dvi-findutils \
986 maybe-dvi-fixincludes \
1003 maybe-dvi-libiberty \
1012 maybe-dvi-readline \
1017 maybe-dvi-shellutils \
1022 maybe-dvi-textutils \
1024 maybe-dvi-uudecode \
1032 maybe-dvi-libtermcap \
1038 maybe-dvi-target-libstdc++-v3 \
1039 maybe-dvi-target-libmudflap \
1040 maybe-dvi-target-libssp \
1041 maybe-dvi-target-newlib \
1042 maybe-dvi-target-libgfortran \
1043 maybe-dvi-target-libobjc \
1044 maybe-dvi-target-libtermcap \
1045 maybe-dvi-target-winsup \
1046 maybe-dvi-target-libgloss \
1047 maybe-dvi-target-libiberty \
1048 maybe-dvi-target-gperf \
1049 maybe-dvi-target-examples \
1050 maybe-dvi-target-libffi \
1051 maybe-dvi-target-libjava \
1052 maybe-dvi-target-zlib \
1053 maybe-dvi-target-boehm-gc \
1054 maybe-dvi-target-qthreads \
1055 maybe-dvi-target-rda \
1056 maybe-dvi-target-libada
1059 do-html: unstage html-host html-target stage
1064 maybe-html-autoconf \
1065 maybe-html-automake \
1068 maybe-html-opcodes \
1069 maybe-html-binutils \
1073 maybe-html-dejagnu \
1075 maybe-html-dosutils \
1077 maybe-html-fastjar \
1078 maybe-html-fileutils \
1079 maybe-html-findutils \
1081 maybe-html-fixincludes \
1086 maybe-html-gettext \
1087 maybe-html-gnuserv \
1098 maybe-html-libiberty \
1099 maybe-html-libtool \
1102 maybe-html-mmalloc \
1107 maybe-html-readline \
1108 maybe-html-release \
1111 maybe-html-send-pr \
1112 maybe-html-shellutils \
1116 maybe-html-texinfo \
1117 maybe-html-textutils \
1119 maybe-html-uudecode \
1127 maybe-html-libtermcap \
1129 maybe-html-gnattools
1133 maybe-html-target-libstdc++-v3 \
1134 maybe-html-target-libmudflap \
1135 maybe-html-target-libssp \
1136 maybe-html-target-newlib \
1137 maybe-html-target-libgfortran \
1138 maybe-html-target-libobjc \
1139 maybe-html-target-libtermcap \
1140 maybe-html-target-winsup \
1141 maybe-html-target-libgloss \
1142 maybe-html-target-libiberty \
1143 maybe-html-target-gperf \
1144 maybe-html-target-examples \
1145 maybe-html-target-libffi \
1146 maybe-html-target-libjava \
1147 maybe-html-target-zlib \
1148 maybe-html-target-boehm-gc \
1149 maybe-html-target-qthreads \
1150 maybe-html-target-rda \
1151 maybe-html-target-libada
1154 do-TAGS: unstage TAGS-host TAGS-target stage
1159 maybe-TAGS-autoconf \
1160 maybe-TAGS-automake \
1163 maybe-TAGS-opcodes \
1164 maybe-TAGS-binutils \
1168 maybe-TAGS-dejagnu \
1170 maybe-TAGS-dosutils \
1172 maybe-TAGS-fastjar \
1173 maybe-TAGS-fileutils \
1174 maybe-TAGS-findutils \
1176 maybe-TAGS-fixincludes \
1181 maybe-TAGS-gettext \
1182 maybe-TAGS-gnuserv \
1193 maybe-TAGS-libiberty \
1194 maybe-TAGS-libtool \
1197 maybe-TAGS-mmalloc \
1202 maybe-TAGS-readline \
1203 maybe-TAGS-release \
1206 maybe-TAGS-send-pr \
1207 maybe-TAGS-shellutils \
1211 maybe-TAGS-texinfo \
1212 maybe-TAGS-textutils \
1214 maybe-TAGS-uudecode \
1222 maybe-TAGS-libtermcap \
1224 maybe-TAGS-gnattools
1228 maybe-TAGS-target-libstdc++-v3 \
1229 maybe-TAGS-target-libmudflap \
1230 maybe-TAGS-target-libssp \
1231 maybe-TAGS-target-newlib \
1232 maybe-TAGS-target-libgfortran \
1233 maybe-TAGS-target-libobjc \
1234 maybe-TAGS-target-libtermcap \
1235 maybe-TAGS-target-winsup \
1236 maybe-TAGS-target-libgloss \
1237 maybe-TAGS-target-libiberty \
1238 maybe-TAGS-target-gperf \
1239 maybe-TAGS-target-examples \
1240 maybe-TAGS-target-libffi \
1241 maybe-TAGS-target-libjava \
1242 maybe-TAGS-target-zlib \
1243 maybe-TAGS-target-boehm-gc \
1244 maybe-TAGS-target-qthreads \
1245 maybe-TAGS-target-rda \
1246 maybe-TAGS-target-libada
1248 .PHONY: do-install-info
1249 do-install-info: unstage install-info-host install-info-target stage
1251 .PHONY: install-info-host
1252 install-info-host: \
1253 maybe-install-info-ash \
1254 maybe-install-info-autoconf \
1255 maybe-install-info-automake \
1256 maybe-install-info-bash \
1257 maybe-install-info-bfd \
1258 maybe-install-info-opcodes \
1259 maybe-install-info-binutils \
1260 maybe-install-info-bison \
1261 maybe-install-info-byacc \
1262 maybe-install-info-bzip2 \
1263 maybe-install-info-dejagnu \
1264 maybe-install-info-diff \
1265 maybe-install-info-dosutils \
1266 maybe-install-info-etc \
1267 maybe-install-info-fastjar \
1268 maybe-install-info-fileutils \
1269 maybe-install-info-findutils \
1270 maybe-install-info-find \
1271 maybe-install-info-fixincludes \
1272 maybe-install-info-flex \
1273 maybe-install-info-gas \
1274 maybe-install-info-gcc \
1275 maybe-install-info-gawk \
1276 maybe-install-info-gettext \
1277 maybe-install-info-gnuserv \
1278 maybe-install-info-gprof \
1279 maybe-install-info-gzip \
1280 maybe-install-info-hello \
1281 maybe-install-info-indent \
1282 maybe-install-info-intl \
1283 maybe-install-info-tcl \
1284 maybe-install-info-itcl \
1285 maybe-install-info-ld \
1286 maybe-install-info-libcpp \
1287 maybe-install-info-libgui \
1288 maybe-install-info-libiberty \
1289 maybe-install-info-libtool \
1290 maybe-install-info-m4 \
1291 maybe-install-info-make \
1292 maybe-install-info-mmalloc \
1293 maybe-install-info-patch \
1294 maybe-install-info-perl \
1295 maybe-install-info-prms \
1296 maybe-install-info-rcs \
1297 maybe-install-info-readline \
1298 maybe-install-info-release \
1299 maybe-install-info-recode \
1300 maybe-install-info-sed \
1301 maybe-install-info-send-pr \
1302 maybe-install-info-shellutils \
1303 maybe-install-info-sid \
1304 maybe-install-info-sim \
1305 maybe-install-info-tar \
1306 maybe-install-info-texinfo \
1307 maybe-install-info-textutils \
1308 maybe-install-info-time \
1309 maybe-install-info-uudecode \
1310 maybe-install-info-wdiff \
1311 maybe-install-info-zip \
1312 maybe-install-info-zlib \
1313 maybe-install-info-gdb \
1314 maybe-install-info-expect \
1315 maybe-install-info-guile \
1316 maybe-install-info-tk \
1317 maybe-install-info-libtermcap \
1318 maybe-install-info-utils \
1319 maybe-install-info-gnattools
1321 .PHONY: install-info-target
1322 install-info-target: \
1323 maybe-install-info-target-libstdc++-v3 \
1324 maybe-install-info-target-libmudflap \
1325 maybe-install-info-target-libssp \
1326 maybe-install-info-target-newlib \
1327 maybe-install-info-target-libgfortran \
1328 maybe-install-info-target-libobjc \
1329 maybe-install-info-target-libtermcap \
1330 maybe-install-info-target-winsup \
1331 maybe-install-info-target-libgloss \
1332 maybe-install-info-target-libiberty \
1333 maybe-install-info-target-gperf \
1334 maybe-install-info-target-examples \
1335 maybe-install-info-target-libffi \
1336 maybe-install-info-target-libjava \
1337 maybe-install-info-target-zlib \
1338 maybe-install-info-target-boehm-gc \
1339 maybe-install-info-target-qthreads \
1340 maybe-install-info-target-rda \
1341 maybe-install-info-target-libada
1343 .PHONY: do-installcheck
1344 do-installcheck: unstage installcheck-host installcheck-target stage
1346 .PHONY: installcheck-host
1347 installcheck-host: \
1348 maybe-installcheck-ash \
1349 maybe-installcheck-autoconf \
1350 maybe-installcheck-automake \
1351 maybe-installcheck-bash \
1352 maybe-installcheck-bfd \
1353 maybe-installcheck-opcodes \
1354 maybe-installcheck-binutils \
1355 maybe-installcheck-bison \
1356 maybe-installcheck-byacc \
1357 maybe-installcheck-bzip2 \
1358 maybe-installcheck-dejagnu \
1359 maybe-installcheck-diff \
1360 maybe-installcheck-dosutils \
1361 maybe-installcheck-etc \
1362 maybe-installcheck-fastjar \
1363 maybe-installcheck-fileutils \
1364 maybe-installcheck-findutils \
1365 maybe-installcheck-find \
1366 maybe-installcheck-fixincludes \
1367 maybe-installcheck-flex \
1368 maybe-installcheck-gas \
1369 maybe-installcheck-gcc \
1370 maybe-installcheck-gawk \
1371 maybe-installcheck-gettext \
1372 maybe-installcheck-gnuserv \
1373 maybe-installcheck-gprof \
1374 maybe-installcheck-gzip \
1375 maybe-installcheck-hello \
1376 maybe-installcheck-indent \
1377 maybe-installcheck-intl \
1378 maybe-installcheck-tcl \
1379 maybe-installcheck-itcl \
1380 maybe-installcheck-ld \
1381 maybe-installcheck-libcpp \
1382 maybe-installcheck-libgui \
1383 maybe-installcheck-libiberty \
1384 maybe-installcheck-libtool \
1385 maybe-installcheck-m4 \
1386 maybe-installcheck-make \
1387 maybe-installcheck-mmalloc \
1388 maybe-installcheck-patch \
1389 maybe-installcheck-perl \
1390 maybe-installcheck-prms \
1391 maybe-installcheck-rcs \
1392 maybe-installcheck-readline \
1393 maybe-installcheck-release \
1394 maybe-installcheck-recode \
1395 maybe-installcheck-sed \
1396 maybe-installcheck-send-pr \
1397 maybe-installcheck-shellutils \
1398 maybe-installcheck-sid \
1399 maybe-installcheck-sim \
1400 maybe-installcheck-tar \
1401 maybe-installcheck-texinfo \
1402 maybe-installcheck-textutils \
1403 maybe-installcheck-time \
1404 maybe-installcheck-uudecode \
1405 maybe-installcheck-wdiff \
1406 maybe-installcheck-zip \
1407 maybe-installcheck-zlib \
1408 maybe-installcheck-gdb \
1409 maybe-installcheck-expect \
1410 maybe-installcheck-guile \
1411 maybe-installcheck-tk \
1412 maybe-installcheck-libtermcap \
1413 maybe-installcheck-utils \
1414 maybe-installcheck-gnattools
1416 .PHONY: installcheck-target
1417 installcheck-target: \
1418 maybe-installcheck-target-libstdc++-v3 \
1419 maybe-installcheck-target-libmudflap \
1420 maybe-installcheck-target-libssp \
1421 maybe-installcheck-target-newlib \
1422 maybe-installcheck-target-libgfortran \
1423 maybe-installcheck-target-libobjc \
1424 maybe-installcheck-target-libtermcap \
1425 maybe-installcheck-target-winsup \
1426 maybe-installcheck-target-libgloss \
1427 maybe-installcheck-target-libiberty \
1428 maybe-installcheck-target-gperf \
1429 maybe-installcheck-target-examples \
1430 maybe-installcheck-target-libffi \
1431 maybe-installcheck-target-libjava \
1432 maybe-installcheck-target-zlib \
1433 maybe-installcheck-target-boehm-gc \
1434 maybe-installcheck-target-qthreads \
1435 maybe-installcheck-target-rda \
1436 maybe-installcheck-target-libada
1438 .PHONY: do-mostlyclean
1439 do-mostlyclean: unstage mostlyclean-host mostlyclean-target stage
1441 .PHONY: mostlyclean-host
1443 maybe-mostlyclean-ash \
1444 maybe-mostlyclean-autoconf \
1445 maybe-mostlyclean-automake \
1446 maybe-mostlyclean-bash \
1447 maybe-mostlyclean-bfd \
1448 maybe-mostlyclean-opcodes \
1449 maybe-mostlyclean-binutils \
1450 maybe-mostlyclean-bison \
1451 maybe-mostlyclean-byacc \
1452 maybe-mostlyclean-bzip2 \
1453 maybe-mostlyclean-dejagnu \
1454 maybe-mostlyclean-diff \
1455 maybe-mostlyclean-dosutils \
1456 maybe-mostlyclean-etc \
1457 maybe-mostlyclean-fastjar \
1458 maybe-mostlyclean-fileutils \
1459 maybe-mostlyclean-findutils \
1460 maybe-mostlyclean-find \
1461 maybe-mostlyclean-fixincludes \
1462 maybe-mostlyclean-flex \
1463 maybe-mostlyclean-gas \
1464 maybe-mostlyclean-gcc \
1465 maybe-mostlyclean-gawk \
1466 maybe-mostlyclean-gettext \
1467 maybe-mostlyclean-gnuserv \
1468 maybe-mostlyclean-gprof \
1469 maybe-mostlyclean-gzip \
1470 maybe-mostlyclean-hello \
1471 maybe-mostlyclean-indent \
1472 maybe-mostlyclean-intl \
1473 maybe-mostlyclean-tcl \
1474 maybe-mostlyclean-itcl \
1475 maybe-mostlyclean-ld \
1476 maybe-mostlyclean-libcpp \
1477 maybe-mostlyclean-libgui \
1478 maybe-mostlyclean-libiberty \
1479 maybe-mostlyclean-libtool \
1480 maybe-mostlyclean-m4 \
1481 maybe-mostlyclean-make \
1482 maybe-mostlyclean-mmalloc \
1483 maybe-mostlyclean-patch \
1484 maybe-mostlyclean-perl \
1485 maybe-mostlyclean-prms \
1486 maybe-mostlyclean-rcs \
1487 maybe-mostlyclean-readline \
1488 maybe-mostlyclean-release \
1489 maybe-mostlyclean-recode \
1490 maybe-mostlyclean-sed \
1491 maybe-mostlyclean-send-pr \
1492 maybe-mostlyclean-shellutils \
1493 maybe-mostlyclean-sid \
1494 maybe-mostlyclean-sim \
1495 maybe-mostlyclean-tar \
1496 maybe-mostlyclean-texinfo \
1497 maybe-mostlyclean-textutils \
1498 maybe-mostlyclean-time \
1499 maybe-mostlyclean-uudecode \
1500 maybe-mostlyclean-wdiff \
1501 maybe-mostlyclean-zip \
1502 maybe-mostlyclean-zlib \
1503 maybe-mostlyclean-gdb \
1504 maybe-mostlyclean-expect \
1505 maybe-mostlyclean-guile \
1506 maybe-mostlyclean-tk \
1507 maybe-mostlyclean-libtermcap \
1508 maybe-mostlyclean-utils \
1509 maybe-mostlyclean-gnattools
1511 .PHONY: mostlyclean-target
1512 mostlyclean-target: \
1513 maybe-mostlyclean-target-libstdc++-v3 \
1514 maybe-mostlyclean-target-libmudflap \
1515 maybe-mostlyclean-target-libssp \
1516 maybe-mostlyclean-target-newlib \
1517 maybe-mostlyclean-target-libgfortran \
1518 maybe-mostlyclean-target-libobjc \
1519 maybe-mostlyclean-target-libtermcap \
1520 maybe-mostlyclean-target-winsup \
1521 maybe-mostlyclean-target-libgloss \
1522 maybe-mostlyclean-target-libiberty \
1523 maybe-mostlyclean-target-gperf \
1524 maybe-mostlyclean-target-examples \
1525 maybe-mostlyclean-target-libffi \
1526 maybe-mostlyclean-target-libjava \
1527 maybe-mostlyclean-target-zlib \
1528 maybe-mostlyclean-target-boehm-gc \
1529 maybe-mostlyclean-target-qthreads \
1530 maybe-mostlyclean-target-rda \
1531 maybe-mostlyclean-target-libada
1534 do-clean: unstage clean-host clean-target stage
1539 maybe-clean-autoconf \
1540 maybe-clean-automake \
1543 maybe-clean-opcodes \
1544 maybe-clean-binutils \
1548 maybe-clean-dejagnu \
1550 maybe-clean-dosutils \
1552 maybe-clean-fastjar \
1553 maybe-clean-fileutils \
1554 maybe-clean-findutils \
1556 maybe-clean-fixincludes \
1561 maybe-clean-gettext \
1562 maybe-clean-gnuserv \
1566 maybe-clean-indent \
1571 maybe-clean-libcpp \
1572 maybe-clean-libgui \
1573 maybe-clean-libiberty \
1574 maybe-clean-libtool \
1577 maybe-clean-mmalloc \
1582 maybe-clean-readline \
1583 maybe-clean-release \
1584 maybe-clean-recode \
1586 maybe-clean-send-pr \
1587 maybe-clean-shellutils \
1591 maybe-clean-texinfo \
1592 maybe-clean-textutils \
1594 maybe-clean-uudecode \
1599 maybe-clean-expect \
1602 maybe-clean-libtermcap \
1604 maybe-clean-gnattools
1606 .PHONY: clean-target
1608 maybe-clean-target-libstdc++-v3 \
1609 maybe-clean-target-libmudflap \
1610 maybe-clean-target-libssp \
1611 maybe-clean-target-newlib \
1612 maybe-clean-target-libgfortran \
1613 maybe-clean-target-libobjc \
1614 maybe-clean-target-libtermcap \
1615 maybe-clean-target-winsup \
1616 maybe-clean-target-libgloss \
1617 maybe-clean-target-libiberty \
1618 maybe-clean-target-gperf \
1619 maybe-clean-target-examples \
1620 maybe-clean-target-libffi \
1621 maybe-clean-target-libjava \
1622 maybe-clean-target-zlib \
1623 maybe-clean-target-boehm-gc \
1624 maybe-clean-target-qthreads \
1625 maybe-clean-target-rda \
1626 maybe-clean-target-libada
1628 .PHONY: do-distclean
1629 do-distclean: unstage distclean-host distclean-target stage
1631 .PHONY: distclean-host
1633 maybe-distclean-ash \
1634 maybe-distclean-autoconf \
1635 maybe-distclean-automake \
1636 maybe-distclean-bash \
1637 maybe-distclean-bfd \
1638 maybe-distclean-opcodes \
1639 maybe-distclean-binutils \
1640 maybe-distclean-bison \
1641 maybe-distclean-byacc \
1642 maybe-distclean-bzip2 \
1643 maybe-distclean-dejagnu \
1644 maybe-distclean-diff \
1645 maybe-distclean-dosutils \
1646 maybe-distclean-etc \
1647 maybe-distclean-fastjar \
1648 maybe-distclean-fileutils \
1649 maybe-distclean-findutils \
1650 maybe-distclean-find \
1651 maybe-distclean-fixincludes \
1652 maybe-distclean-flex \
1653 maybe-distclean-gas \
1654 maybe-distclean-gcc \
1655 maybe-distclean-gawk \
1656 maybe-distclean-gettext \
1657 maybe-distclean-gnuserv \
1658 maybe-distclean-gprof \
1659 maybe-distclean-gzip \
1660 maybe-distclean-hello \
1661 maybe-distclean-indent \
1662 maybe-distclean-intl \
1663 maybe-distclean-tcl \
1664 maybe-distclean-itcl \
1665 maybe-distclean-ld \
1666 maybe-distclean-libcpp \
1667 maybe-distclean-libgui \
1668 maybe-distclean-libiberty \
1669 maybe-distclean-libtool \
1670 maybe-distclean-m4 \
1671 maybe-distclean-make \
1672 maybe-distclean-mmalloc \
1673 maybe-distclean-patch \
1674 maybe-distclean-perl \
1675 maybe-distclean-prms \
1676 maybe-distclean-rcs \
1677 maybe-distclean-readline \
1678 maybe-distclean-release \
1679 maybe-distclean-recode \
1680 maybe-distclean-sed \
1681 maybe-distclean-send-pr \
1682 maybe-distclean-shellutils \
1683 maybe-distclean-sid \
1684 maybe-distclean-sim \
1685 maybe-distclean-tar \
1686 maybe-distclean-texinfo \
1687 maybe-distclean-textutils \
1688 maybe-distclean-time \
1689 maybe-distclean-uudecode \
1690 maybe-distclean-wdiff \
1691 maybe-distclean-zip \
1692 maybe-distclean-zlib \
1693 maybe-distclean-gdb \
1694 maybe-distclean-expect \
1695 maybe-distclean-guile \
1696 maybe-distclean-tk \
1697 maybe-distclean-libtermcap \
1698 maybe-distclean-utils \
1699 maybe-distclean-gnattools
1701 .PHONY: distclean-target
1703 maybe-distclean-target-libstdc++-v3 \
1704 maybe-distclean-target-libmudflap \
1705 maybe-distclean-target-libssp \
1706 maybe-distclean-target-newlib \
1707 maybe-distclean-target-libgfortran \
1708 maybe-distclean-target-libobjc \
1709 maybe-distclean-target-libtermcap \
1710 maybe-distclean-target-winsup \
1711 maybe-distclean-target-libgloss \
1712 maybe-distclean-target-libiberty \
1713 maybe-distclean-target-gperf \
1714 maybe-distclean-target-examples \
1715 maybe-distclean-target-libffi \
1716 maybe-distclean-target-libjava \
1717 maybe-distclean-target-zlib \
1718 maybe-distclean-target-boehm-gc \
1719 maybe-distclean-target-qthreads \
1720 maybe-distclean-target-rda \
1721 maybe-distclean-target-libada
1723 .PHONY: do-maintainer-clean
1724 do-maintainer-clean: unstage maintainer-clean-host maintainer-clean-target stage
1726 .PHONY: maintainer-clean-host
1727 maintainer-clean-host: \
1728 maybe-maintainer-clean-ash \
1729 maybe-maintainer-clean-autoconf \
1730 maybe-maintainer-clean-automake \
1731 maybe-maintainer-clean-bash \
1732 maybe-maintainer-clean-bfd \
1733 maybe-maintainer-clean-opcodes \
1734 maybe-maintainer-clean-binutils \
1735 maybe-maintainer-clean-bison \
1736 maybe-maintainer-clean-byacc \
1737 maybe-maintainer-clean-bzip2 \
1738 maybe-maintainer-clean-dejagnu \
1739 maybe-maintainer-clean-diff \
1740 maybe-maintainer-clean-dosutils \
1741 maybe-maintainer-clean-etc \
1742 maybe-maintainer-clean-fastjar \
1743 maybe-maintainer-clean-fileutils \
1744 maybe-maintainer-clean-findutils \
1745 maybe-maintainer-clean-find \
1746 maybe-maintainer-clean-fixincludes \
1747 maybe-maintainer-clean-flex \
1748 maybe-maintainer-clean-gas \
1749 maybe-maintainer-clean-gcc \
1750 maybe-maintainer-clean-gawk \
1751 maybe-maintainer-clean-gettext \
1752 maybe-maintainer-clean-gnuserv \
1753 maybe-maintainer-clean-gprof \
1754 maybe-maintainer-clean-gzip \
1755 maybe-maintainer-clean-hello \
1756 maybe-maintainer-clean-indent \
1757 maybe-maintainer-clean-intl \
1758 maybe-maintainer-clean-tcl \
1759 maybe-maintainer-clean-itcl \
1760 maybe-maintainer-clean-ld \
1761 maybe-maintainer-clean-libcpp \
1762 maybe-maintainer-clean-libgui \
1763 maybe-maintainer-clean-libiberty \
1764 maybe-maintainer-clean-libtool \
1765 maybe-maintainer-clean-m4 \
1766 maybe-maintainer-clean-make \
1767 maybe-maintainer-clean-mmalloc \
1768 maybe-maintainer-clean-patch \
1769 maybe-maintainer-clean-perl \
1770 maybe-maintainer-clean-prms \
1771 maybe-maintainer-clean-rcs \
1772 maybe-maintainer-clean-readline \
1773 maybe-maintainer-clean-release \
1774 maybe-maintainer-clean-recode \
1775 maybe-maintainer-clean-sed \
1776 maybe-maintainer-clean-send-pr \
1777 maybe-maintainer-clean-shellutils \
1778 maybe-maintainer-clean-sid \
1779 maybe-maintainer-clean-sim \
1780 maybe-maintainer-clean-tar \
1781 maybe-maintainer-clean-texinfo \
1782 maybe-maintainer-clean-textutils \
1783 maybe-maintainer-clean-time \
1784 maybe-maintainer-clean-uudecode \
1785 maybe-maintainer-clean-wdiff \
1786 maybe-maintainer-clean-zip \
1787 maybe-maintainer-clean-zlib \
1788 maybe-maintainer-clean-gdb \
1789 maybe-maintainer-clean-expect \
1790 maybe-maintainer-clean-guile \
1791 maybe-maintainer-clean-tk \
1792 maybe-maintainer-clean-libtermcap \
1793 maybe-maintainer-clean-utils \
1794 maybe-maintainer-clean-gnattools
1796 .PHONY: maintainer-clean-target
1797 maintainer-clean-target: \
1798 maybe-maintainer-clean-target-libstdc++-v3 \
1799 maybe-maintainer-clean-target-libmudflap \
1800 maybe-maintainer-clean-target-libssp \
1801 maybe-maintainer-clean-target-newlib \
1802 maybe-maintainer-clean-target-libgfortran \
1803 maybe-maintainer-clean-target-libobjc \
1804 maybe-maintainer-clean-target-libtermcap \
1805 maybe-maintainer-clean-target-winsup \
1806 maybe-maintainer-clean-target-libgloss \
1807 maybe-maintainer-clean-target-libiberty \
1808 maybe-maintainer-clean-target-gperf \
1809 maybe-maintainer-clean-target-examples \
1810 maybe-maintainer-clean-target-libffi \
1811 maybe-maintainer-clean-target-libjava \
1812 maybe-maintainer-clean-target-zlib \
1813 maybe-maintainer-clean-target-boehm-gc \
1814 maybe-maintainer-clean-target-qthreads \
1815 maybe-maintainer-clean-target-rda \
1816 maybe-maintainer-clean-target-libada
1819 # Here are the targets which correspond to the do-X targets.
1821 .PHONY: info installcheck dvi html install-info
1822 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1823 .PHONY: local-clean local-distclean local-maintainer-clean
1825 installcheck: do-installcheck
1829 # Make sure makeinfo is built before we do a `make info', if we're
1830 # in fact building texinfo.
1831 do-info: maybe-all-texinfo
1833 install-info: do-install-info dir.info
1834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1835 if [ -f dir.info ] ; then \
1836 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1840 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1843 -rm -f Makefile config.status config.cache mh-frag mt-frag
1844 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1845 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1846 rm -rf $(TARGET_SUBDIR); \
1848 -rm -rf $(BUILD_SUBDIR)
1849 -if [ "$(HOST_SUBDIR)" != "." ]; then \
1850 rm -rf $(HOST_SUBDIR); \
1852 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1853 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1854 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1855 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1856 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1858 local-maintainer-clean:
1859 @echo "This command is intended for maintainers to use;"
1860 @echo "it deletes files that may require special tools to rebuild."
1862 clean: do-clean local-clean
1863 mostlyclean: do-mostlyclean local-clean
1864 distclean: do-distclean local-clean local-distclean
1865 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1866 maintainer-clean: local-distclean
1867 realclean: maintainer-clean
1869 # Extra dependency for clean-target, owing to the mixed nature of gcc
1870 clean-target: clean-target-libgcc
1871 clean-target-libgcc:
1872 test ! -d gcc/libgcc || \
1873 (cd gcc/libgcc && find . -type d -print) | \
1874 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1876 -rm -f gcc/stmp-dirs
1880 .PHONY: check do-check
1883 # Only include modules actually being configured and built.
1886 maybe-check-autoconf \
1887 maybe-check-automake \
1890 maybe-check-opcodes \
1891 maybe-check-binutils \
1895 maybe-check-dejagnu \
1897 maybe-check-dosutils \
1899 maybe-check-fastjar \
1900 maybe-check-fileutils \
1901 maybe-check-findutils \
1903 maybe-check-fixincludes \
1908 maybe-check-gettext \
1909 maybe-check-gnuserv \
1913 maybe-check-indent \
1918 maybe-check-libcpp \
1919 maybe-check-libgui \
1920 maybe-check-libiberty \
1921 maybe-check-libtool \
1924 maybe-check-mmalloc \
1929 maybe-check-readline \
1930 maybe-check-release \
1931 maybe-check-recode \
1933 maybe-check-send-pr \
1934 maybe-check-shellutils \
1938 maybe-check-texinfo \
1939 maybe-check-textutils \
1941 maybe-check-uudecode \
1946 maybe-check-expect \
1949 maybe-check-libtermcap \
1951 maybe-check-gnattools \
1952 maybe-check-target-libstdc++-v3 \
1953 maybe-check-target-libmudflap \
1954 maybe-check-target-libssp \
1955 maybe-check-target-newlib \
1956 maybe-check-target-libgfortran \
1957 maybe-check-target-libobjc \
1958 maybe-check-target-libtermcap \
1959 maybe-check-target-winsup \
1960 maybe-check-target-libgloss \
1961 maybe-check-target-libiberty \
1962 maybe-check-target-gperf \
1963 maybe-check-target-examples \
1964 maybe-check-target-libffi \
1965 maybe-check-target-libjava \
1966 maybe-check-target-zlib \
1967 maybe-check-target-boehm-gc \
1968 maybe-check-target-qthreads \
1969 maybe-check-target-rda \
1970 maybe-check-target-libada stage
1972 # Automated reporting of test results.
1974 warning.log: build.log
1975 $(srcdir)/contrib/warn_summary build.log > $@
1978 if test x'$(BOOT_CFLAGS)' != x''; then \
1979 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1981 $(srcdir)/contrib/test_summary -t >$@
1983 echo If you really want to send e-mail, run ./$@ now
1985 mail-report-with-warnings.log: warning.log
1986 if test x'$(BOOT_CFLAGS)' != x''; then \
1987 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1989 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1991 echo If you really want to send e-mail, run ./$@ now
1993 # Installation targets.
1995 .PHONY: install uninstall
1996 install: unstage installdirs install-host install-target stage
1998 .PHONY: install-host-nogcc
1999 install-host-nogcc: \
2001 maybe-install-autoconf \
2002 maybe-install-automake \
2003 maybe-install-bash \
2005 maybe-install-opcodes \
2006 maybe-install-binutils \
2007 maybe-install-bison \
2008 maybe-install-byacc \
2009 maybe-install-bzip2 \
2010 maybe-install-dejagnu \
2011 maybe-install-diff \
2012 maybe-install-dosutils \
2014 maybe-install-fastjar \
2015 maybe-install-fileutils \
2016 maybe-install-findutils \
2017 maybe-install-find \
2018 maybe-install-fixincludes \
2019 maybe-install-flex \
2021 maybe-install-gawk \
2022 maybe-install-gettext \
2023 maybe-install-gnuserv \
2024 maybe-install-gprof \
2025 maybe-install-gzip \
2026 maybe-install-hello \
2027 maybe-install-indent \
2028 maybe-install-intl \
2030 maybe-install-itcl \
2032 maybe-install-libcpp \
2033 maybe-install-libgui \
2034 maybe-install-libiberty \
2035 maybe-install-libtool \
2037 maybe-install-make \
2038 maybe-install-mmalloc \
2039 maybe-install-patch \
2040 maybe-install-perl \
2041 maybe-install-prms \
2043 maybe-install-readline \
2044 maybe-install-release \
2045 maybe-install-recode \
2047 maybe-install-send-pr \
2048 maybe-install-shellutils \
2052 maybe-install-texinfo \
2053 maybe-install-textutils \
2054 maybe-install-time \
2055 maybe-install-uudecode \
2056 maybe-install-wdiff \
2058 maybe-install-zlib \
2060 maybe-install-expect \
2061 maybe-install-guile \
2063 maybe-install-libtermcap \
2064 maybe-install-utils \
2065 maybe-install-gnattools
2067 .PHONY: install-host
2070 maybe-install-autoconf \
2071 maybe-install-automake \
2072 maybe-install-bash \
2074 maybe-install-opcodes \
2075 maybe-install-binutils \
2076 maybe-install-bison \
2077 maybe-install-byacc \
2078 maybe-install-bzip2 \
2079 maybe-install-dejagnu \
2080 maybe-install-diff \
2081 maybe-install-dosutils \
2083 maybe-install-fastjar \
2084 maybe-install-fileutils \
2085 maybe-install-findutils \
2086 maybe-install-find \
2087 maybe-install-fixincludes \
2088 maybe-install-flex \
2091 maybe-install-gawk \
2092 maybe-install-gettext \
2093 maybe-install-gnuserv \
2094 maybe-install-gprof \
2095 maybe-install-gzip \
2096 maybe-install-hello \
2097 maybe-install-indent \
2098 maybe-install-intl \
2100 maybe-install-itcl \
2102 maybe-install-libcpp \
2103 maybe-install-libgui \
2104 maybe-install-libiberty \
2105 maybe-install-libtool \
2107 maybe-install-make \
2108 maybe-install-mmalloc \
2109 maybe-install-patch \
2110 maybe-install-perl \
2111 maybe-install-prms \
2113 maybe-install-readline \
2114 maybe-install-release \
2115 maybe-install-recode \
2117 maybe-install-send-pr \
2118 maybe-install-shellutils \
2122 maybe-install-texinfo \
2123 maybe-install-textutils \
2124 maybe-install-time \
2125 maybe-install-uudecode \
2126 maybe-install-wdiff \
2128 maybe-install-zlib \
2130 maybe-install-expect \
2131 maybe-install-guile \
2133 maybe-install-libtermcap \
2134 maybe-install-utils \
2135 maybe-install-gnattools
2137 .PHONY: install-target
2139 maybe-install-target-libstdc++-v3 \
2140 maybe-install-target-libmudflap \
2141 maybe-install-target-libssp \
2142 maybe-install-target-newlib \
2143 maybe-install-target-libgfortran \
2144 maybe-install-target-libobjc \
2145 maybe-install-target-libtermcap \
2146 maybe-install-target-winsup \
2147 maybe-install-target-libgloss \
2148 maybe-install-target-libiberty \
2149 maybe-install-target-gperf \
2150 maybe-install-target-examples \
2151 maybe-install-target-libffi \
2152 maybe-install-target-libjava \
2153 maybe-install-target-zlib \
2154 maybe-install-target-boehm-gc \
2155 maybe-install-target-qthreads \
2156 maybe-install-target-rda \
2157 maybe-install-target-libada
2160 @echo "the uninstall target is not supported in this tree"
2163 install.all: install-no-fixedincludes
2164 @if [ -f ./gcc/Makefile ] ; then \
2165 r=`${PWD_COMMAND}` ; export r ; \
2168 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2173 # install-no-fixedincludes is used because Cygnus can not distribute
2174 # the fixed header files.
2175 .PHONY: install-no-fixedincludes
2176 install-no-fixedincludes: installdirs install-host-nogcc \
2177 install-target gcc-no-fixedincludes
2179 ### other supporting targets
2182 $(DESTDIR)$(prefix) \
2183 $(DESTDIR)$(exec_prefix)
2185 installdirs: mkinstalldirs
2186 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2188 dir.info: do-install-info
2189 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2190 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2191 mv -f dir.info.new dir.info ; \
2196 @echo "Building a full distribution of this tree isn't done"
2197 @echo "via 'make dist'. Check out the etc/ subdirectory"
2201 # Right now this just builds TAGS in each subdirectory. emacs19 has the
2202 # ability to use several tags files at once, so there is probably no need
2203 # to combine them into one big TAGS file (like CVS 1.3 does). We could
2204 # (if we felt like it) have this Makefile write a piece of elisp which
2205 # the user could load to tell emacs19 where all the TAGS files we just
2209 # ------------------------------------
2210 # Macros for configure and all targets
2211 # ------------------------------------
2217 # --------------------------------------
2218 # Modules which run on the build machine
2219 # --------------------------------------
2222 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
2223 maybe-configure-build-libiberty:
2225 maybe-configure-build-libiberty: configure-build-libiberty
2226 configure-build-libiberty:
2227 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2228 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
2229 r=`${PWD_COMMAND}`; export r; \
2230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2232 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2233 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2235 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2236 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2237 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2239 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2240 libsrcdir="$$s/libiberty"; \
2241 rm -f no-such-file || : ; \
2242 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2243 $(BUILD_CONFIGARGS) $${srcdiroption} \
2245 @endif build-libiberty
2251 .PHONY: all-build-libiberty maybe-all-build-libiberty
2252 maybe-all-build-libiberty:
2254 TARGET-build-libiberty=all
2255 maybe-all-build-libiberty: all-build-libiberty
2256 all-build-libiberty: configure-build-libiberty
2257 @r=`${PWD_COMMAND}`; export r; \
2258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2260 (cd $(BUILD_SUBDIR)/libiberty && \
2261 $(MAKE) $(TARGET-build-libiberty))
2262 @endif build-libiberty
2268 .PHONY: configure-build-bison maybe-configure-build-bison
2269 maybe-configure-build-bison:
2271 maybe-configure-build-bison: configure-build-bison
2272 configure-build-bison:
2273 @test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2274 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2275 r=`${PWD_COMMAND}`; export r; \
2276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2278 echo Configuring in $(BUILD_SUBDIR)/bison; \
2279 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2281 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2282 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2283 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2285 srcdiroption="--srcdir=$${topdir}/bison"; \
2286 libsrcdir="$$s/bison"; \
2287 rm -f no-such-file || : ; \
2288 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2289 $(BUILD_CONFIGARGS) $${srcdiroption} \
2297 .PHONY: all-build-bison maybe-all-build-bison
2298 maybe-all-build-bison:
2300 TARGET-build-bison=all
2301 maybe-all-build-bison: all-build-bison
2302 all-build-bison: configure-build-bison
2303 @r=`${PWD_COMMAND}`; export r; \
2304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2306 (cd $(BUILD_SUBDIR)/bison && \
2307 $(MAKE) $(TARGET-build-bison))
2314 .PHONY: configure-build-byacc maybe-configure-build-byacc
2315 maybe-configure-build-byacc:
2317 maybe-configure-build-byacc: configure-build-byacc
2318 configure-build-byacc:
2319 @test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2320 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
2321 r=`${PWD_COMMAND}`; export r; \
2322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2324 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2325 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2327 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2328 *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \
2329 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2331 srcdiroption="--srcdir=$${topdir}/byacc"; \
2332 libsrcdir="$$s/byacc"; \
2333 rm -f no-such-file || : ; \
2334 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2335 $(BUILD_CONFIGARGS) $${srcdiroption} \
2343 .PHONY: all-build-byacc maybe-all-build-byacc
2344 maybe-all-build-byacc:
2346 TARGET-build-byacc=all
2347 maybe-all-build-byacc: all-build-byacc
2348 all-build-byacc: configure-build-byacc
2349 @r=`${PWD_COMMAND}`; export r; \
2350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2352 (cd $(BUILD_SUBDIR)/byacc && \
2353 $(MAKE) $(TARGET-build-byacc))
2360 .PHONY: configure-build-flex maybe-configure-build-flex
2361 maybe-configure-build-flex:
2363 maybe-configure-build-flex: configure-build-flex
2364 configure-build-flex:
2365 @test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2366 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2367 r=`${PWD_COMMAND}`; export r; \
2368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2370 echo Configuring in $(BUILD_SUBDIR)/flex; \
2371 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2373 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2374 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2375 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2377 srcdiroption="--srcdir=$${topdir}/flex"; \
2378 libsrcdir="$$s/flex"; \
2379 rm -f no-such-file || : ; \
2380 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2381 $(BUILD_CONFIGARGS) $${srcdiroption} \
2389 .PHONY: all-build-flex maybe-all-build-flex
2390 maybe-all-build-flex:
2392 TARGET-build-flex=all
2393 maybe-all-build-flex: all-build-flex
2394 all-build-flex: configure-build-flex
2395 @r=`${PWD_COMMAND}`; export r; \
2396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2398 (cd $(BUILD_SUBDIR)/flex && \
2399 $(MAKE) $(TARGET-build-flex))
2406 .PHONY: configure-build-m4 maybe-configure-build-m4
2407 maybe-configure-build-m4:
2409 maybe-configure-build-m4: configure-build-m4
2411 @test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2412 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2413 r=`${PWD_COMMAND}`; export r; \
2414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2416 echo Configuring in $(BUILD_SUBDIR)/m4; \
2417 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2419 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2420 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2421 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2423 srcdiroption="--srcdir=$${topdir}/m4"; \
2424 libsrcdir="$$s/m4"; \
2425 rm -f no-such-file || : ; \
2426 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2427 $(BUILD_CONFIGARGS) $${srcdiroption} \
2435 .PHONY: all-build-m4 maybe-all-build-m4
2439 maybe-all-build-m4: all-build-m4
2440 all-build-m4: configure-build-m4
2441 @r=`${PWD_COMMAND}`; export r; \
2442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2444 (cd $(BUILD_SUBDIR)/m4 && \
2445 $(MAKE) $(TARGET-build-m4))
2452 .PHONY: configure-build-texinfo maybe-configure-build-texinfo
2453 maybe-configure-build-texinfo:
2455 maybe-configure-build-texinfo: configure-build-texinfo
2456 configure-build-texinfo:
2457 @test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2458 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2459 r=`${PWD_COMMAND}`; export r; \
2460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2462 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2463 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2465 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2466 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2467 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2469 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2470 libsrcdir="$$s/texinfo"; \
2471 rm -f no-such-file || : ; \
2472 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2473 $(BUILD_CONFIGARGS) $${srcdiroption} \
2475 @endif build-texinfo
2481 .PHONY: all-build-texinfo maybe-all-build-texinfo
2482 maybe-all-build-texinfo:
2484 TARGET-build-texinfo=all
2485 maybe-all-build-texinfo: all-build-texinfo
2486 all-build-texinfo: configure-build-texinfo
2487 @r=`${PWD_COMMAND}`; export r; \
2488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2490 (cd $(BUILD_SUBDIR)/texinfo && \
2491 $(MAKE) $(TARGET-build-texinfo))
2492 @endif build-texinfo
2498 .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2499 maybe-configure-build-fixincludes:
2500 @if build-fixincludes
2501 maybe-configure-build-fixincludes: configure-build-fixincludes
2502 configure-build-fixincludes:
2503 @test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2504 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2505 r=`${PWD_COMMAND}`; export r; \
2506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2508 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2509 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2511 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2512 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2513 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2515 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2516 libsrcdir="$$s/fixincludes"; \
2517 rm -f no-such-file || : ; \
2518 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2519 $(BUILD_CONFIGARGS) $${srcdiroption} \
2521 @endif build-fixincludes
2527 .PHONY: all-build-fixincludes maybe-all-build-fixincludes
2528 maybe-all-build-fixincludes:
2529 @if build-fixincludes
2530 TARGET-build-fixincludes=all
2531 maybe-all-build-fixincludes: all-build-fixincludes
2532 all-build-fixincludes: configure-build-fixincludes
2533 @r=`${PWD_COMMAND}`; export r; \
2534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2536 (cd $(BUILD_SUBDIR)/fixincludes && \
2537 $(MAKE) $(TARGET-build-fixincludes))
2538 @endif build-fixincludes
2544 # --------------------------------------
2545 # Modules which run on the host machine
2546 # --------------------------------------
2549 .PHONY: configure-ash maybe-configure-ash
2550 maybe-configure-ash:
2552 maybe-configure-ash: configure-ash
2554 @test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \
2555 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \
2556 r=`${PWD_COMMAND}`; export r; \
2557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2559 echo Configuring in $(HOST_SUBDIR)/ash; \
2560 cd "$(HOST_SUBDIR)/ash" || exit 1; \
2562 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2563 *) topdir=`echo $(HOST_SUBDIR)/ash/ | \
2564 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2566 srcdiroption="--srcdir=$${topdir}/ash"; \
2567 libsrcdir="$$s/ash"; \
2568 $(SHELL) $${libsrcdir}/configure \
2569 $(HOST_CONFIGARGS) $${srcdiroption} \
2577 .PHONY: all-ash maybe-all-ash
2581 maybe-all-ash: all-ash
2582 all-ash: configure-ash
2583 @r=`${PWD_COMMAND}`; export r; \
2584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2586 (cd $(HOST_SUBDIR)/ash && \
2587 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ash))
2593 .PHONY: check-ash maybe-check-ash
2596 maybe-check-ash: check-ash
2599 @r=`${PWD_COMMAND}`; export r; \
2600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2602 (cd $(HOST_SUBDIR)/ash && \
2603 $(MAKE) $(FLAGS_TO_PASS) check)
2607 .PHONY: install-ash maybe-install-ash
2610 maybe-install-ash: install-ash
2612 install-ash: installdirs
2613 @r=`${PWD_COMMAND}`; export r; \
2614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2616 (cd $(HOST_SUBDIR)/ash && \
2617 $(MAKE) $(FLAGS_TO_PASS) install)
2621 # Other targets (info, dvi, etc.)
2623 .PHONY: maybe-info-ash info-ash
2626 maybe-info-ash: info-ash
2630 @[ -f ./ash/Makefile ] || exit 0; \
2631 r=`${PWD_COMMAND}`; export r; \
2632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2634 for flag in $(EXTRA_HOST_FLAGS) ; do \
2635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2637 echo "Doing info in ash" ; \
2638 (cd $(HOST_SUBDIR)/ash && \
2639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2641 "RANLIB=$${RANLIB}" \
2642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2648 .PHONY: maybe-dvi-ash dvi-ash
2651 maybe-dvi-ash: dvi-ash
2655 @[ -f ./ash/Makefile ] || exit 0; \
2656 r=`${PWD_COMMAND}`; export r; \
2657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2659 for flag in $(EXTRA_HOST_FLAGS) ; do \
2660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2662 echo "Doing dvi in ash" ; \
2663 (cd $(HOST_SUBDIR)/ash && \
2664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2666 "RANLIB=$${RANLIB}" \
2667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2673 .PHONY: maybe-html-ash html-ash
2676 maybe-html-ash: html-ash
2680 @[ -f ./ash/Makefile ] || exit 0; \
2681 r=`${PWD_COMMAND}`; export r; \
2682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2684 for flag in $(EXTRA_HOST_FLAGS) ; do \
2685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2687 echo "Doing html in ash" ; \
2688 (cd $(HOST_SUBDIR)/ash && \
2689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2691 "RANLIB=$${RANLIB}" \
2692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2698 .PHONY: maybe-TAGS-ash TAGS-ash
2701 maybe-TAGS-ash: TAGS-ash
2705 @[ -f ./ash/Makefile ] || exit 0; \
2706 r=`${PWD_COMMAND}`; export r; \
2707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2709 for flag in $(EXTRA_HOST_FLAGS) ; do \
2710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2712 echo "Doing TAGS in ash" ; \
2713 (cd $(HOST_SUBDIR)/ash && \
2714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2716 "RANLIB=$${RANLIB}" \
2717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2723 .PHONY: maybe-install-info-ash install-info-ash
2724 maybe-install-info-ash:
2726 maybe-install-info-ash: install-info-ash
2731 @[ -f ./ash/Makefile ] || exit 0; \
2732 r=`${PWD_COMMAND}`; export r; \
2733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2735 for flag in $(EXTRA_HOST_FLAGS) ; do \
2736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2738 echo "Doing install-info in ash" ; \
2739 (cd $(HOST_SUBDIR)/ash && \
2740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2742 "RANLIB=$${RANLIB}" \
2743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2749 .PHONY: maybe-installcheck-ash installcheck-ash
2750 maybe-installcheck-ash:
2752 maybe-installcheck-ash: installcheck-ash
2756 @[ -f ./ash/Makefile ] || exit 0; \
2757 r=`${PWD_COMMAND}`; export r; \
2758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2760 for flag in $(EXTRA_HOST_FLAGS) ; do \
2761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2763 echo "Doing installcheck in ash" ; \
2764 (cd $(HOST_SUBDIR)/ash && \
2765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2767 "RANLIB=$${RANLIB}" \
2768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2774 .PHONY: maybe-mostlyclean-ash mostlyclean-ash
2775 maybe-mostlyclean-ash:
2777 maybe-mostlyclean-ash: mostlyclean-ash
2780 @[ -f ./ash/Makefile ] || exit 0; \
2781 r=`${PWD_COMMAND}`; export r; \
2782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2784 for flag in $(EXTRA_HOST_FLAGS) ; do \
2785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2787 echo "Doing mostlyclean in ash" ; \
2788 (cd $(HOST_SUBDIR)/ash && \
2789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2791 "RANLIB=$${RANLIB}" \
2792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2798 .PHONY: maybe-clean-ash clean-ash
2801 maybe-clean-ash: clean-ash
2804 @[ -f ./ash/Makefile ] || exit 0; \
2805 r=`${PWD_COMMAND}`; export r; \
2806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2808 for flag in $(EXTRA_HOST_FLAGS) ; do \
2809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2811 echo "Doing clean in ash" ; \
2812 (cd $(HOST_SUBDIR)/ash && \
2813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2815 "RANLIB=$${RANLIB}" \
2816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2822 .PHONY: maybe-distclean-ash distclean-ash
2823 maybe-distclean-ash:
2825 maybe-distclean-ash: distclean-ash
2828 @[ -f ./ash/Makefile ] || exit 0; \
2829 r=`${PWD_COMMAND}`; export r; \
2830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2832 for flag in $(EXTRA_HOST_FLAGS) ; do \
2833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2835 echo "Doing distclean in ash" ; \
2836 (cd $(HOST_SUBDIR)/ash && \
2837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2839 "RANLIB=$${RANLIB}" \
2840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2846 .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2847 maybe-maintainer-clean-ash:
2849 maybe-maintainer-clean-ash: maintainer-clean-ash
2851 maintainer-clean-ash:
2852 @[ -f ./ash/Makefile ] || exit 0; \
2853 r=`${PWD_COMMAND}`; export r; \
2854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2856 for flag in $(EXTRA_HOST_FLAGS) ; do \
2857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2859 echo "Doing maintainer-clean in ash" ; \
2860 (cd $(HOST_SUBDIR)/ash && \
2861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2863 "RANLIB=$${RANLIB}" \
2864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2872 .PHONY: configure-autoconf maybe-configure-autoconf
2873 maybe-configure-autoconf:
2875 maybe-configure-autoconf: configure-autoconf
2877 @test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \
2878 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \
2879 r=`${PWD_COMMAND}`; export r; \
2880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2882 echo Configuring in $(HOST_SUBDIR)/autoconf; \
2883 cd "$(HOST_SUBDIR)/autoconf" || exit 1; \
2885 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2886 *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \
2887 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2889 srcdiroption="--srcdir=$${topdir}/autoconf"; \
2890 libsrcdir="$$s/autoconf"; \
2891 $(SHELL) $${libsrcdir}/configure \
2892 $(HOST_CONFIGARGS) $${srcdiroption} \
2900 .PHONY: all-autoconf maybe-all-autoconf
2904 maybe-all-autoconf: all-autoconf
2905 all-autoconf: configure-autoconf
2906 @r=`${PWD_COMMAND}`; export r; \
2907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2909 (cd $(HOST_SUBDIR)/autoconf && \
2910 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-autoconf))
2916 .PHONY: check-autoconf maybe-check-autoconf
2917 maybe-check-autoconf:
2919 maybe-check-autoconf: check-autoconf
2922 @r=`${PWD_COMMAND}`; export r; \
2923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2925 (cd $(HOST_SUBDIR)/autoconf && \
2926 $(MAKE) $(FLAGS_TO_PASS) check)
2930 .PHONY: install-autoconf maybe-install-autoconf
2931 maybe-install-autoconf:
2933 maybe-install-autoconf: install-autoconf
2935 install-autoconf: installdirs
2936 @r=`${PWD_COMMAND}`; export r; \
2937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2939 (cd $(HOST_SUBDIR)/autoconf && \
2940 $(MAKE) $(FLAGS_TO_PASS) install)
2944 # Other targets (info, dvi, etc.)
2946 .PHONY: maybe-info-autoconf info-autoconf
2947 maybe-info-autoconf:
2949 maybe-info-autoconf: info-autoconf
2953 @[ -f ./autoconf/Makefile ] || exit 0; \
2954 r=`${PWD_COMMAND}`; export r; \
2955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2957 for flag in $(EXTRA_HOST_FLAGS) ; do \
2958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2960 echo "Doing info in autoconf" ; \
2961 (cd $(HOST_SUBDIR)/autoconf && \
2962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2964 "RANLIB=$${RANLIB}" \
2965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2971 .PHONY: maybe-dvi-autoconf dvi-autoconf
2974 maybe-dvi-autoconf: dvi-autoconf
2978 @[ -f ./autoconf/Makefile ] || exit 0; \
2979 r=`${PWD_COMMAND}`; export r; \
2980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2982 for flag in $(EXTRA_HOST_FLAGS) ; do \
2983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2985 echo "Doing dvi in autoconf" ; \
2986 (cd $(HOST_SUBDIR)/autoconf && \
2987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2989 "RANLIB=$${RANLIB}" \
2990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2996 .PHONY: maybe-html-autoconf html-autoconf
2997 maybe-html-autoconf:
2999 maybe-html-autoconf: html-autoconf
3003 @[ -f ./autoconf/Makefile ] || exit 0; \
3004 r=`${PWD_COMMAND}`; export r; \
3005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3007 for flag in $(EXTRA_HOST_FLAGS) ; do \
3008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3010 echo "Doing html in autoconf" ; \
3011 (cd $(HOST_SUBDIR)/autoconf && \
3012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3014 "RANLIB=$${RANLIB}" \
3015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3021 .PHONY: maybe-TAGS-autoconf TAGS-autoconf
3022 maybe-TAGS-autoconf:
3024 maybe-TAGS-autoconf: TAGS-autoconf
3028 @[ -f ./autoconf/Makefile ] || exit 0; \
3029 r=`${PWD_COMMAND}`; export r; \
3030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3032 for flag in $(EXTRA_HOST_FLAGS) ; do \
3033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3035 echo "Doing TAGS in autoconf" ; \
3036 (cd $(HOST_SUBDIR)/autoconf && \
3037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3039 "RANLIB=$${RANLIB}" \
3040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3046 .PHONY: maybe-install-info-autoconf install-info-autoconf
3047 maybe-install-info-autoconf:
3049 maybe-install-info-autoconf: install-info-autoconf
3051 install-info-autoconf: \
3052 configure-autoconf \
3054 @[ -f ./autoconf/Makefile ] || exit 0; \
3055 r=`${PWD_COMMAND}`; export r; \
3056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3058 for flag in $(EXTRA_HOST_FLAGS) ; do \
3059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3061 echo "Doing install-info in autoconf" ; \
3062 (cd $(HOST_SUBDIR)/autoconf && \
3063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3065 "RANLIB=$${RANLIB}" \
3066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3072 .PHONY: maybe-installcheck-autoconf installcheck-autoconf
3073 maybe-installcheck-autoconf:
3075 maybe-installcheck-autoconf: installcheck-autoconf
3077 installcheck-autoconf: \
3079 @[ -f ./autoconf/Makefile ] || exit 0; \
3080 r=`${PWD_COMMAND}`; export r; \
3081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3083 for flag in $(EXTRA_HOST_FLAGS) ; do \
3084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3086 echo "Doing installcheck in autoconf" ; \
3087 (cd $(HOST_SUBDIR)/autoconf && \
3088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3090 "RANLIB=$${RANLIB}" \
3091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3097 .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3098 maybe-mostlyclean-autoconf:
3100 maybe-mostlyclean-autoconf: mostlyclean-autoconf
3102 mostlyclean-autoconf:
3103 @[ -f ./autoconf/Makefile ] || exit 0; \
3104 r=`${PWD_COMMAND}`; export r; \
3105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3107 for flag in $(EXTRA_HOST_FLAGS) ; do \
3108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3110 echo "Doing mostlyclean in autoconf" ; \
3111 (cd $(HOST_SUBDIR)/autoconf && \
3112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3114 "RANLIB=$${RANLIB}" \
3115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3121 .PHONY: maybe-clean-autoconf clean-autoconf
3122 maybe-clean-autoconf:
3124 maybe-clean-autoconf: clean-autoconf
3127 @[ -f ./autoconf/Makefile ] || exit 0; \
3128 r=`${PWD_COMMAND}`; export r; \
3129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3131 for flag in $(EXTRA_HOST_FLAGS) ; do \
3132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3134 echo "Doing clean in autoconf" ; \
3135 (cd $(HOST_SUBDIR)/autoconf && \
3136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3138 "RANLIB=$${RANLIB}" \
3139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3145 .PHONY: maybe-distclean-autoconf distclean-autoconf
3146 maybe-distclean-autoconf:
3148 maybe-distclean-autoconf: distclean-autoconf
3151 @[ -f ./autoconf/Makefile ] || exit 0; \
3152 r=`${PWD_COMMAND}`; export r; \
3153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3155 for flag in $(EXTRA_HOST_FLAGS) ; do \
3156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3158 echo "Doing distclean in autoconf" ; \
3159 (cd $(HOST_SUBDIR)/autoconf && \
3160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3162 "RANLIB=$${RANLIB}" \
3163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3169 .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3170 maybe-maintainer-clean-autoconf:
3172 maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
3174 maintainer-clean-autoconf:
3175 @[ -f ./autoconf/Makefile ] || exit 0; \
3176 r=`${PWD_COMMAND}`; export r; \
3177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3179 for flag in $(EXTRA_HOST_FLAGS) ; do \
3180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3182 echo "Doing maintainer-clean in autoconf" ; \
3183 (cd $(HOST_SUBDIR)/autoconf && \
3184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3186 "RANLIB=$${RANLIB}" \
3187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3195 .PHONY: configure-automake maybe-configure-automake
3196 maybe-configure-automake:
3198 maybe-configure-automake: configure-automake
3200 @test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \
3201 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \
3202 r=`${PWD_COMMAND}`; export r; \
3203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3205 echo Configuring in $(HOST_SUBDIR)/automake; \
3206 cd "$(HOST_SUBDIR)/automake" || exit 1; \
3208 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3209 *) topdir=`echo $(HOST_SUBDIR)/automake/ | \
3210 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3212 srcdiroption="--srcdir=$${topdir}/automake"; \
3213 libsrcdir="$$s/automake"; \
3214 $(SHELL) $${libsrcdir}/configure \
3215 $(HOST_CONFIGARGS) $${srcdiroption} \
3223 .PHONY: all-automake maybe-all-automake
3227 maybe-all-automake: all-automake
3228 all-automake: configure-automake
3229 @r=`${PWD_COMMAND}`; export r; \
3230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3232 (cd $(HOST_SUBDIR)/automake && \
3233 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-automake))
3239 .PHONY: check-automake maybe-check-automake
3240 maybe-check-automake:
3242 maybe-check-automake: check-automake
3245 @r=`${PWD_COMMAND}`; export r; \
3246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3248 (cd $(HOST_SUBDIR)/automake && \
3249 $(MAKE) $(FLAGS_TO_PASS) check)
3253 .PHONY: install-automake maybe-install-automake
3254 maybe-install-automake:
3256 maybe-install-automake: install-automake
3258 install-automake: installdirs
3259 @r=`${PWD_COMMAND}`; export r; \
3260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3262 (cd $(HOST_SUBDIR)/automake && \
3263 $(MAKE) $(FLAGS_TO_PASS) install)
3267 # Other targets (info, dvi, etc.)
3269 .PHONY: maybe-info-automake info-automake
3270 maybe-info-automake:
3272 maybe-info-automake: info-automake
3276 @[ -f ./automake/Makefile ] || exit 0; \
3277 r=`${PWD_COMMAND}`; export r; \
3278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3280 for flag in $(EXTRA_HOST_FLAGS) ; do \
3281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3283 echo "Doing info in automake" ; \
3284 (cd $(HOST_SUBDIR)/automake && \
3285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3287 "RANLIB=$${RANLIB}" \
3288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3294 .PHONY: maybe-dvi-automake dvi-automake
3297 maybe-dvi-automake: dvi-automake
3301 @[ -f ./automake/Makefile ] || exit 0; \
3302 r=`${PWD_COMMAND}`; export r; \
3303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3305 for flag in $(EXTRA_HOST_FLAGS) ; do \
3306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3308 echo "Doing dvi in automake" ; \
3309 (cd $(HOST_SUBDIR)/automake && \
3310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3312 "RANLIB=$${RANLIB}" \
3313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3319 .PHONY: maybe-html-automake html-automake
3320 maybe-html-automake:
3322 maybe-html-automake: html-automake
3326 @[ -f ./automake/Makefile ] || exit 0; \
3327 r=`${PWD_COMMAND}`; export r; \
3328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3330 for flag in $(EXTRA_HOST_FLAGS) ; do \
3331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3333 echo "Doing html in automake" ; \
3334 (cd $(HOST_SUBDIR)/automake && \
3335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3337 "RANLIB=$${RANLIB}" \
3338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3344 .PHONY: maybe-TAGS-automake TAGS-automake
3345 maybe-TAGS-automake:
3347 maybe-TAGS-automake: TAGS-automake
3351 @[ -f ./automake/Makefile ] || exit 0; \
3352 r=`${PWD_COMMAND}`; export r; \
3353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3355 for flag in $(EXTRA_HOST_FLAGS) ; do \
3356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3358 echo "Doing TAGS in automake" ; \
3359 (cd $(HOST_SUBDIR)/automake && \
3360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3362 "RANLIB=$${RANLIB}" \
3363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3369 .PHONY: maybe-install-info-automake install-info-automake
3370 maybe-install-info-automake:
3372 maybe-install-info-automake: install-info-automake
3374 install-info-automake: \
3375 configure-automake \
3377 @[ -f ./automake/Makefile ] || exit 0; \
3378 r=`${PWD_COMMAND}`; export r; \
3379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3381 for flag in $(EXTRA_HOST_FLAGS) ; do \
3382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3384 echo "Doing install-info in automake" ; \
3385 (cd $(HOST_SUBDIR)/automake && \
3386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3388 "RANLIB=$${RANLIB}" \
3389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3395 .PHONY: maybe-installcheck-automake installcheck-automake
3396 maybe-installcheck-automake:
3398 maybe-installcheck-automake: installcheck-automake
3400 installcheck-automake: \
3402 @[ -f ./automake/Makefile ] || exit 0; \
3403 r=`${PWD_COMMAND}`; export r; \
3404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3406 for flag in $(EXTRA_HOST_FLAGS) ; do \
3407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3409 echo "Doing installcheck in automake" ; \
3410 (cd $(HOST_SUBDIR)/automake && \
3411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3413 "RANLIB=$${RANLIB}" \
3414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3420 .PHONY: maybe-mostlyclean-automake mostlyclean-automake
3421 maybe-mostlyclean-automake:
3423 maybe-mostlyclean-automake: mostlyclean-automake
3425 mostlyclean-automake:
3426 @[ -f ./automake/Makefile ] || exit 0; \
3427 r=`${PWD_COMMAND}`; export r; \
3428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3430 for flag in $(EXTRA_HOST_FLAGS) ; do \
3431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3433 echo "Doing mostlyclean in automake" ; \
3434 (cd $(HOST_SUBDIR)/automake && \
3435 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3436 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3437 "RANLIB=$${RANLIB}" \
3438 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3444 .PHONY: maybe-clean-automake clean-automake
3445 maybe-clean-automake:
3447 maybe-clean-automake: clean-automake
3450 @[ -f ./automake/Makefile ] || exit 0; \
3451 r=`${PWD_COMMAND}`; export r; \
3452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3454 for flag in $(EXTRA_HOST_FLAGS) ; do \
3455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3457 echo "Doing clean in automake" ; \
3458 (cd $(HOST_SUBDIR)/automake && \
3459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3461 "RANLIB=$${RANLIB}" \
3462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3468 .PHONY: maybe-distclean-automake distclean-automake
3469 maybe-distclean-automake:
3471 maybe-distclean-automake: distclean-automake
3474 @[ -f ./automake/Makefile ] || exit 0; \
3475 r=`${PWD_COMMAND}`; export r; \
3476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3478 for flag in $(EXTRA_HOST_FLAGS) ; do \
3479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3481 echo "Doing distclean in automake" ; \
3482 (cd $(HOST_SUBDIR)/automake && \
3483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3485 "RANLIB=$${RANLIB}" \
3486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3492 .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3493 maybe-maintainer-clean-automake:
3495 maybe-maintainer-clean-automake: maintainer-clean-automake
3497 maintainer-clean-automake:
3498 @[ -f ./automake/Makefile ] || exit 0; \
3499 r=`${PWD_COMMAND}`; export r; \
3500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3502 for flag in $(EXTRA_HOST_FLAGS) ; do \
3503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3505 echo "Doing maintainer-clean in automake" ; \
3506 (cd $(HOST_SUBDIR)/automake && \
3507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3509 "RANLIB=$${RANLIB}" \
3510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3518 .PHONY: configure-bash maybe-configure-bash
3519 maybe-configure-bash:
3521 maybe-configure-bash: configure-bash
3523 @test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \
3524 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \
3525 r=`${PWD_COMMAND}`; export r; \
3526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3528 echo Configuring in $(HOST_SUBDIR)/bash; \
3529 cd "$(HOST_SUBDIR)/bash" || exit 1; \
3531 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3532 *) topdir=`echo $(HOST_SUBDIR)/bash/ | \
3533 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3535 srcdiroption="--srcdir=$${topdir}/bash"; \
3536 libsrcdir="$$s/bash"; \
3537 $(SHELL) $${libsrcdir}/configure \
3538 $(HOST_CONFIGARGS) $${srcdiroption} \
3546 .PHONY: all-bash maybe-all-bash
3550 maybe-all-bash: all-bash
3551 all-bash: configure-bash
3552 @r=`${PWD_COMMAND}`; export r; \
3553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3555 (cd $(HOST_SUBDIR)/bash && \
3556 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bash))
3562 .PHONY: check-bash maybe-check-bash
3565 maybe-check-bash: check-bash
3568 @r=`${PWD_COMMAND}`; export r; \
3569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3571 (cd $(HOST_SUBDIR)/bash && \
3572 $(MAKE) $(FLAGS_TO_PASS) check)
3576 .PHONY: install-bash maybe-install-bash
3579 maybe-install-bash: install-bash
3581 install-bash: installdirs
3582 @r=`${PWD_COMMAND}`; export r; \
3583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3585 (cd $(HOST_SUBDIR)/bash && \
3586 $(MAKE) $(FLAGS_TO_PASS) install)
3590 # Other targets (info, dvi, etc.)
3592 .PHONY: maybe-info-bash info-bash
3595 maybe-info-bash: info-bash
3599 @[ -f ./bash/Makefile ] || exit 0; \
3600 r=`${PWD_COMMAND}`; export r; \
3601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3603 for flag in $(EXTRA_HOST_FLAGS) ; do \
3604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3606 echo "Doing info in bash" ; \
3607 (cd $(HOST_SUBDIR)/bash && \
3608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3610 "RANLIB=$${RANLIB}" \
3611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3617 .PHONY: maybe-dvi-bash dvi-bash
3620 maybe-dvi-bash: dvi-bash
3624 @[ -f ./bash/Makefile ] || exit 0; \
3625 r=`${PWD_COMMAND}`; export r; \
3626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3628 for flag in $(EXTRA_HOST_FLAGS) ; do \
3629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3631 echo "Doing dvi in bash" ; \
3632 (cd $(HOST_SUBDIR)/bash && \
3633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3635 "RANLIB=$${RANLIB}" \
3636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3642 .PHONY: maybe-html-bash html-bash
3645 maybe-html-bash: html-bash
3649 @[ -f ./bash/Makefile ] || exit 0; \
3650 r=`${PWD_COMMAND}`; export r; \
3651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3653 for flag in $(EXTRA_HOST_FLAGS) ; do \
3654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3656 echo "Doing html in bash" ; \
3657 (cd $(HOST_SUBDIR)/bash && \
3658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3660 "RANLIB=$${RANLIB}" \
3661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3667 .PHONY: maybe-TAGS-bash TAGS-bash
3670 maybe-TAGS-bash: TAGS-bash
3674 @[ -f ./bash/Makefile ] || exit 0; \
3675 r=`${PWD_COMMAND}`; export r; \
3676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3678 for flag in $(EXTRA_HOST_FLAGS) ; do \
3679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3681 echo "Doing TAGS in bash" ; \
3682 (cd $(HOST_SUBDIR)/bash && \
3683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3685 "RANLIB=$${RANLIB}" \
3686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3692 .PHONY: maybe-install-info-bash install-info-bash
3693 maybe-install-info-bash:
3695 maybe-install-info-bash: install-info-bash
3697 install-info-bash: \
3700 @[ -f ./bash/Makefile ] || exit 0; \
3701 r=`${PWD_COMMAND}`; export r; \
3702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3704 for flag in $(EXTRA_HOST_FLAGS) ; do \
3705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3707 echo "Doing install-info in bash" ; \
3708 (cd $(HOST_SUBDIR)/bash && \
3709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3711 "RANLIB=$${RANLIB}" \
3712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3718 .PHONY: maybe-installcheck-bash installcheck-bash
3719 maybe-installcheck-bash:
3721 maybe-installcheck-bash: installcheck-bash
3723 installcheck-bash: \
3725 @[ -f ./bash/Makefile ] || exit 0; \
3726 r=`${PWD_COMMAND}`; export r; \
3727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3729 for flag in $(EXTRA_HOST_FLAGS) ; do \
3730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3732 echo "Doing installcheck in bash" ; \
3733 (cd $(HOST_SUBDIR)/bash && \
3734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3736 "RANLIB=$${RANLIB}" \
3737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3743 .PHONY: maybe-mostlyclean-bash mostlyclean-bash
3744 maybe-mostlyclean-bash:
3746 maybe-mostlyclean-bash: mostlyclean-bash
3749 @[ -f ./bash/Makefile ] || exit 0; \
3750 r=`${PWD_COMMAND}`; export r; \
3751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3753 for flag in $(EXTRA_HOST_FLAGS) ; do \
3754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3756 echo "Doing mostlyclean in bash" ; \
3757 (cd $(HOST_SUBDIR)/bash && \
3758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3760 "RANLIB=$${RANLIB}" \
3761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3767 .PHONY: maybe-clean-bash clean-bash
3770 maybe-clean-bash: clean-bash
3773 @[ -f ./bash/Makefile ] || exit 0; \
3774 r=`${PWD_COMMAND}`; export r; \
3775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3777 for flag in $(EXTRA_HOST_FLAGS) ; do \
3778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3780 echo "Doing clean in bash" ; \
3781 (cd $(HOST_SUBDIR)/bash && \
3782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3784 "RANLIB=$${RANLIB}" \
3785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3791 .PHONY: maybe-distclean-bash distclean-bash
3792 maybe-distclean-bash:
3794 maybe-distclean-bash: distclean-bash
3797 @[ -f ./bash/Makefile ] || exit 0; \
3798 r=`${PWD_COMMAND}`; export r; \
3799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3801 for flag in $(EXTRA_HOST_FLAGS) ; do \
3802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3804 echo "Doing distclean in bash" ; \
3805 (cd $(HOST_SUBDIR)/bash && \
3806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3808 "RANLIB=$${RANLIB}" \
3809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3815 .PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
3816 maybe-maintainer-clean-bash:
3818 maybe-maintainer-clean-bash: maintainer-clean-bash
3820 maintainer-clean-bash:
3821 @[ -f ./bash/Makefile ] || exit 0; \
3822 r=`${PWD_COMMAND}`; export r; \
3823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3825 for flag in $(EXTRA_HOST_FLAGS) ; do \
3826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3828 echo "Doing maintainer-clean in bash" ; \
3829 (cd $(HOST_SUBDIR)/bash && \
3830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3832 "RANLIB=$${RANLIB}" \
3833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3841 .PHONY: configure-bfd maybe-configure-bfd
3842 maybe-configure-bfd:
3844 maybe-configure-bfd: configure-bfd
3846 @test -f stage_last && exit 0; \
3847 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3848 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3849 r=`${PWD_COMMAND}`; export r; \
3850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3852 echo Configuring in $(HOST_SUBDIR)/bfd; \
3853 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
3855 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3856 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3857 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3859 srcdiroption="--srcdir=$${topdir}/bfd"; \
3860 libsrcdir="$$s/bfd"; \
3861 $(SHELL) $${libsrcdir}/configure \
3862 $(HOST_CONFIGARGS) $${srcdiroption} \
3868 .PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3869 maybe-configure-stage1-bfd:
3871 maybe-configure-stage1-bfd: configure-stage1-bfd
3872 configure-stage1-bfd:
3873 @$(MAKE) stage1-start
3874 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] && exit 0 || : ; \
3875 r=`${PWD_COMMAND}`; export r; \
3876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3878 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \
3879 cd $(HOST_SUBDIR)/bfd || exit 1; \
3881 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3882 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3883 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3885 srcdiroption="--srcdir=$${topdir}/bfd"; \
3886 libsrcdir="$$s/bfd"; \
3887 $(SHELL) $${libsrcdir}/configure \
3888 $(HOST_CONFIGARGS) $${srcdiroption} \
3889 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
3890 @endif bfd-bootstrap
3892 .PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3893 maybe-configure-stage2-bfd:
3895 maybe-configure-stage2-bfd: configure-stage2-bfd
3896 configure-stage2-bfd:
3897 @$(MAKE) stage2-start
3898 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] && exit 0 || : ; \
3899 r=`${PWD_COMMAND}`; export r; \
3900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3902 $(POSTSTAGE1_HOST_EXPORTS) \
3903 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \
3904 cd $(HOST_SUBDIR)/bfd || exit 1; \
3906 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3907 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3908 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3910 srcdiroption="--srcdir=$${topdir}/bfd"; \
3911 libsrcdir="$$s/bfd"; \
3912 $(SHELL) $${libsrcdir}/configure \
3913 $(HOST_CONFIGARGS) $${srcdiroption} \
3914 @stage2_werror_flag@
3915 @endif bfd-bootstrap
3917 .PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3918 maybe-configure-stage3-bfd:
3920 maybe-configure-stage3-bfd: configure-stage3-bfd
3921 configure-stage3-bfd:
3922 @$(MAKE) stage3-start
3923 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] && exit 0 || : ; \
3924 r=`${PWD_COMMAND}`; export r; \
3925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3927 $(POSTSTAGE1_HOST_EXPORTS) \
3928 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \
3929 cd $(HOST_SUBDIR)/bfd || exit 1; \
3931 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3932 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3933 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3935 srcdiroption="--srcdir=$${topdir}/bfd"; \
3936 libsrcdir="$$s/bfd"; \
3937 $(SHELL) $${libsrcdir}/configure \
3938 $(HOST_CONFIGARGS) $${srcdiroption} \
3939 @stage2_werror_flag@
3940 @endif bfd-bootstrap
3942 .PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3943 maybe-configure-stage4-bfd:
3945 maybe-configure-stage4-bfd: configure-stage4-bfd
3946 configure-stage4-bfd:
3947 @$(MAKE) stage4-start
3948 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] && exit 0 || : ; \
3949 r=`${PWD_COMMAND}`; export r; \
3950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3952 $(POSTSTAGE1_HOST_EXPORTS) \
3953 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \
3954 cd $(HOST_SUBDIR)/bfd || exit 1; \
3956 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3957 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3958 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3960 srcdiroption="--srcdir=$${topdir}/bfd"; \
3961 libsrcdir="$$s/bfd"; \
3962 $(SHELL) $${libsrcdir}/configure \
3963 $(HOST_CONFIGARGS) $${srcdiroption} \
3964 @stage2_werror_flag@
3965 @endif bfd-bootstrap
3967 .PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3968 maybe-configure-stageprofile-bfd:
3970 maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3971 configure-stageprofile-bfd:
3972 @$(MAKE) stageprofile-start
3973 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] && exit 0 || : ; \
3974 r=`${PWD_COMMAND}`; export r; \
3975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3977 $(POSTSTAGE1_HOST_EXPORTS) \
3978 echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \
3979 cd $(HOST_SUBDIR)/bfd || exit 1; \
3981 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3982 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3983 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3985 srcdiroption="--srcdir=$${topdir}/bfd"; \
3986 libsrcdir="$$s/bfd"; \
3987 $(SHELL) $${libsrcdir}/configure \
3988 $(HOST_CONFIGARGS) $${srcdiroption} \
3989 @stage2_werror_flag@
3990 @endif bfd-bootstrap
3992 .PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3993 maybe-configure-stagefeedback-bfd:
3995 maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3996 configure-stagefeedback-bfd:
3997 @$(MAKE) stagefeedback-start
3998 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] && exit 0 || : ; \
3999 r=`${PWD_COMMAND}`; export r; \
4000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4002 $(POSTSTAGE1_HOST_EXPORTS) \
4003 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \
4004 cd $(HOST_SUBDIR)/bfd || exit 1; \
4006 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4007 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4008 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4010 srcdiroption="--srcdir=$${topdir}/bfd"; \
4011 libsrcdir="$$s/bfd"; \
4012 $(SHELL) $${libsrcdir}/configure \
4013 $(HOST_CONFIGARGS) $${srcdiroption} \
4014 @stage2_werror_flag@
4015 @endif bfd-bootstrap
4021 .PHONY: all-bfd maybe-all-bfd
4025 maybe-all-bfd: all-bfd
4026 all-bfd: configure-bfd
4027 @test -f stage_last && exit 0; \
4028 r=`${PWD_COMMAND}`; export r; \
4029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4031 (cd $(HOST_SUBDIR)/bfd && \
4032 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bfd))
4037 .PHONY: all-stage1-bfd maybe-all-stage1-bfd
4038 .PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
4039 maybe-all-stage1-bfd:
4040 maybe-clean-stage1-bfd:
4042 maybe-all-stage1-bfd: all-stage1-bfd
4043 all-stage1: all-stage1-bfd
4044 all-stage1-bfd: configure-stage1-bfd
4045 @$(MAKE) stage1-start
4046 @r=`${PWD_COMMAND}`; export r; \
4047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4049 cd $(HOST_SUBDIR)/bfd && \
4050 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)"
4052 maybe-clean-stage1-bfd: clean-stage1-bfd
4053 clean-stage1: clean-stage1-bfd
4055 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] \
4057 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || $(MAKE) stage1-start ; \
4058 cd $(HOST_SUBDIR)/bfd && \
4059 $(MAKE) $(FLAGS_TO_PASS) \
4060 CFLAGS="$(STAGE1_CFLAGS)" clean
4061 @endif bfd-bootstrap
4064 .PHONY: all-stage2-bfd maybe-all-stage2-bfd
4065 .PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
4066 maybe-all-stage2-bfd:
4067 maybe-clean-stage2-bfd:
4069 maybe-all-stage2-bfd: all-stage2-bfd
4070 all-stage2: all-stage2-bfd
4071 all-stage2-bfd: configure-stage2-bfd
4072 @$(MAKE) stage2-start
4073 @r=`${PWD_COMMAND}`; export r; \
4074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4076 $(POSTSTAGE1_HOST_EXPORTS) \
4077 cd $(HOST_SUBDIR)/bfd && \
4078 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS)
4080 maybe-clean-stage2-bfd: clean-stage2-bfd
4081 clean-stage2: clean-stage2-bfd
4083 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] \
4085 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || $(MAKE) stage2-start ; \
4086 cd $(HOST_SUBDIR)/bfd && \
4087 $(MAKE) $(FLAGS_TO_PASS) \
4088 $(POSTSTAGE1_FLAGS_TO_PASS) \
4090 @endif bfd-bootstrap
4093 .PHONY: all-stage3-bfd maybe-all-stage3-bfd
4094 .PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
4095 maybe-all-stage3-bfd:
4096 maybe-clean-stage3-bfd:
4098 maybe-all-stage3-bfd: all-stage3-bfd
4099 all-stage3: all-stage3-bfd
4100 all-stage3-bfd: configure-stage3-bfd
4101 @$(MAKE) stage3-start
4102 @r=`${PWD_COMMAND}`; export r; \
4103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4105 $(POSTSTAGE1_HOST_EXPORTS) \
4106 cd $(HOST_SUBDIR)/bfd && \
4107 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS)
4109 maybe-clean-stage3-bfd: clean-stage3-bfd
4110 clean-stage3: clean-stage3-bfd
4112 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] \
4114 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || $(MAKE) stage3-start ; \
4115 cd $(HOST_SUBDIR)/bfd && \
4116 $(MAKE) $(FLAGS_TO_PASS) \
4117 $(POSTSTAGE1_FLAGS_TO_PASS) \
4119 @endif bfd-bootstrap
4122 .PHONY: all-stage4-bfd maybe-all-stage4-bfd
4123 .PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
4124 maybe-all-stage4-bfd:
4125 maybe-clean-stage4-bfd:
4127 maybe-all-stage4-bfd: all-stage4-bfd
4128 all-stage4: all-stage4-bfd
4129 all-stage4-bfd: configure-stage4-bfd
4130 @$(MAKE) stage4-start
4131 @r=`${PWD_COMMAND}`; export r; \
4132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4134 $(POSTSTAGE1_HOST_EXPORTS) \
4135 cd $(HOST_SUBDIR)/bfd && \
4136 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS)
4138 maybe-clean-stage4-bfd: clean-stage4-bfd
4139 clean-stage4: clean-stage4-bfd
4141 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] \
4143 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || $(MAKE) stage4-start ; \
4144 cd $(HOST_SUBDIR)/bfd && \
4145 $(MAKE) $(FLAGS_TO_PASS) \
4146 $(POSTSTAGE1_FLAGS_TO_PASS) \
4148 @endif bfd-bootstrap
4151 .PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
4152 .PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
4153 maybe-all-stageprofile-bfd:
4154 maybe-clean-stageprofile-bfd:
4156 maybe-all-stageprofile-bfd: all-stageprofile-bfd
4157 all-stageprofile: all-stageprofile-bfd
4158 all-stageprofile-bfd: configure-stageprofile-bfd
4159 @$(MAKE) stageprofile-start
4160 @r=`${PWD_COMMAND}`; export r; \
4161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4163 $(POSTSTAGE1_HOST_EXPORTS) \
4164 cd $(HOST_SUBDIR)/bfd && \
4165 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
4167 maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
4168 clean-stageprofile: clean-stageprofile-bfd
4169 clean-stageprofile-bfd:
4170 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] \
4172 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || $(MAKE) stageprofile-start ; \
4173 cd $(HOST_SUBDIR)/bfd && \
4174 $(MAKE) $(FLAGS_TO_PASS) \
4175 $(POSTSTAGE1_FLAGS_TO_PASS) \
4176 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
4177 @endif bfd-bootstrap
4180 .PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
4181 .PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
4182 maybe-all-stagefeedback-bfd:
4183 maybe-clean-stagefeedback-bfd:
4185 maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
4186 all-stagefeedback: all-stagefeedback-bfd
4187 all-stagefeedback-bfd: configure-stagefeedback-bfd
4188 @$(MAKE) stagefeedback-start
4189 @r=`${PWD_COMMAND}`; export r; \
4190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4192 $(POSTSTAGE1_HOST_EXPORTS) \
4193 cd $(HOST_SUBDIR)/bfd && \
4194 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
4196 maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
4197 clean-stagefeedback: clean-stagefeedback-bfd
4198 clean-stagefeedback-bfd:
4199 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] \
4201 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || $(MAKE) stagefeedback-start ; \
4202 cd $(HOST_SUBDIR)/bfd && \
4203 $(MAKE) $(FLAGS_TO_PASS) \
4204 $(POSTSTAGE1_FLAGS_TO_PASS) \
4205 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
4206 @endif bfd-bootstrap
4212 .PHONY: check-bfd maybe-check-bfd
4215 maybe-check-bfd: check-bfd
4218 @r=`${PWD_COMMAND}`; export r; \
4219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4221 (cd $(HOST_SUBDIR)/bfd && \
4222 $(MAKE) $(FLAGS_TO_PASS) check)
4226 .PHONY: install-bfd maybe-install-bfd
4229 maybe-install-bfd: install-bfd
4231 install-bfd: installdirs
4232 @r=`${PWD_COMMAND}`; export r; \
4233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4235 (cd $(HOST_SUBDIR)/bfd && \
4236 $(MAKE) $(FLAGS_TO_PASS) install)
4240 # Other targets (info, dvi, etc.)
4242 .PHONY: maybe-info-bfd info-bfd
4245 maybe-info-bfd: info-bfd
4249 @[ -f ./bfd/Makefile ] || exit 0; \
4250 r=`${PWD_COMMAND}`; export r; \
4251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4253 for flag in $(EXTRA_HOST_FLAGS) ; do \
4254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4256 echo "Doing info in bfd" ; \
4257 (cd $(HOST_SUBDIR)/bfd && \
4258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4260 "RANLIB=$${RANLIB}" \
4261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4267 .PHONY: maybe-dvi-bfd dvi-bfd
4270 maybe-dvi-bfd: dvi-bfd
4274 @[ -f ./bfd/Makefile ] || exit 0; \
4275 r=`${PWD_COMMAND}`; export r; \
4276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4278 for flag in $(EXTRA_HOST_FLAGS) ; do \
4279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4281 echo "Doing dvi in bfd" ; \
4282 (cd $(HOST_SUBDIR)/bfd && \
4283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4285 "RANLIB=$${RANLIB}" \
4286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4292 .PHONY: maybe-html-bfd html-bfd
4295 maybe-html-bfd: html-bfd
4299 @[ -f ./bfd/Makefile ] || exit 0; \
4300 r=`${PWD_COMMAND}`; export r; \
4301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4303 for flag in $(EXTRA_HOST_FLAGS) ; do \
4304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4306 echo "Doing html in bfd" ; \
4307 (cd $(HOST_SUBDIR)/bfd && \
4308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4310 "RANLIB=$${RANLIB}" \
4311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4317 .PHONY: maybe-TAGS-bfd TAGS-bfd
4320 maybe-TAGS-bfd: TAGS-bfd
4324 @[ -f ./bfd/Makefile ] || exit 0; \
4325 r=`${PWD_COMMAND}`; export r; \
4326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4328 for flag in $(EXTRA_HOST_FLAGS) ; do \
4329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4331 echo "Doing TAGS in bfd" ; \
4332 (cd $(HOST_SUBDIR)/bfd && \
4333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4335 "RANLIB=$${RANLIB}" \
4336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4342 .PHONY: maybe-install-info-bfd install-info-bfd
4343 maybe-install-info-bfd:
4345 maybe-install-info-bfd: install-info-bfd
4350 @[ -f ./bfd/Makefile ] || exit 0; \
4351 r=`${PWD_COMMAND}`; export r; \
4352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4354 for flag in $(EXTRA_HOST_FLAGS) ; do \
4355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4357 echo "Doing install-info in bfd" ; \
4358 (cd $(HOST_SUBDIR)/bfd && \
4359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4361 "RANLIB=$${RANLIB}" \
4362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4368 .PHONY: maybe-installcheck-bfd installcheck-bfd
4369 maybe-installcheck-bfd:
4371 maybe-installcheck-bfd: installcheck-bfd
4375 @[ -f ./bfd/Makefile ] || exit 0; \
4376 r=`${PWD_COMMAND}`; export r; \
4377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4379 for flag in $(EXTRA_HOST_FLAGS) ; do \
4380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4382 echo "Doing installcheck in bfd" ; \
4383 (cd $(HOST_SUBDIR)/bfd && \
4384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \