2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
4 # Makefile for directory with subdirs to build.
5 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6 # 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 # -------------------------------
24 # Standard Autoconf-set variables
25 # -------------------------------
28 build_alias=@build_alias@
30 host_alias=@host_alias@
32 target_alias=@target_alias@
35 program_transform_name = @program_transform_name@
38 exec_prefix = @exec_prefix@
44 libexecdir = @libexecdir@
46 sysconfdir = @sysconfdir@
47 sharedstatedir = @sharedstatedir@
48 localstatedir = @localstatedir@
50 includedir = @includedir@
51 oldincludedir = @oldincludedir@
54 man1dir = $(mandir)/man1
55 man2dir = $(mandir)/man2
56 man3dir = $(mandir)/man3
57 man4dir = $(mandir)/man4
58 man5dir = $(mandir)/man5
59 man6dir = $(mandir)/man6
60 man7dir = $(mandir)/man7
61 man8dir = $(mandir)/man8
62 man9dir = $(mandir)/man9
65 INSTALL_PROGRAM = @INSTALL_PROGRAM@
66 INSTALL_SCRIPT = @INSTALL_SCRIPT@
67 INSTALL_DATA = @INSTALL_DATA@
71 # -------------------------------------------------
72 # Miscellaneous non-standard autoconf-set variables
73 # -------------------------------------------------
75 # The file containing GCC's version number.
76 gcc_version_trigger = @gcc_version_trigger@
77 gcc_version = @gcc_version@
79 # The gcc driver likes to know the arguments it was configured with.
80 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
82 gxx_include_dir = @gxx_include_dir@
83 libstdcxx_incdir = @libstdcxx_incdir@
86 build_tooldir = @build_tooldir@
88 # Directory in which the compiler finds executables, libraries, etc.
89 libsubdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)
92 # This is the name of the environment variable used for the path to
94 RPATH_ENVVAR = @RPATH_ENVVAR@
96 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
98 SET_LIB_PATH = @SET_LIB_PATH@
100 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
101 # Some platforms don't like blank entries, so we remove duplicate,
102 # leading and trailing colons.
103 REALLY_SET_LIB_PATH = \
105 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
107 # This is the list of directories to be built for the build system.
108 BUILD_CONFIGDIRS = libiberty
109 # Build programs are put under this directory.
110 BUILD_SUBDIR = @build_subdir@
111 # This is set by the configure script to the arguments to use when configuring
112 # directories built for the build system.
113 BUILD_CONFIGARGS = @build_configargs@
115 # This is the list of variables to export in the environment when
116 # configuring any subdirectory. It must also be exported whenever
117 # recursing into a build directory in case that directory's Makefile
120 FLEX="$(FLEX)"; export FLEX; \
121 LEX="$(LEX)"; export LEX; \
122 BISON="$(BISON)"; export BISON; \
123 YACC="$(YACC)"; export YACC; \
124 M4="$(M4)"; export M4; \
125 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
127 # This is the list of variables to export in the environment when
128 # configuring subdirectories for the build system.
131 AR="$(AR_FOR_BUILD)"; export AR; \
132 AS="$(AS_FOR_BUILD)"; export AS; \
133 CC="$(CC_FOR_BUILD)"; export CC; \
134 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
135 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
136 CXX="$(CXX_FOR_BUILD)"; export CXX; \
137 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
138 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
139 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
140 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
141 LD="$(LD_FOR_BUILD)"; export LD; \
142 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
143 NM="$(NM_FOR_BUILD)"; export NM; \
144 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
145 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
147 # This is the list of directories to built for the host system.
148 SUBDIRS = @configdirs@
149 # This is set by the configure script to the arguments to use when configuring
150 # directories built for the host system.
151 HOST_CONFIGARGS = @host_configargs@
152 # This is the list of variables to export in the environment when
153 # configuring subdirectories for the host system.
156 CC="$(CC)"; export CC; \
157 CFLAGS="$(CFLAGS)"; export CFLAGS; \
158 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
159 CXX="$(CXX)"; export CXX; \
160 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
161 AR="$(AR)"; export AR; \
162 AS="$(AS)"; export AS; \
163 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
164 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
165 LD="$(LD)"; export LD; \
166 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
167 NM="$(NM)"; export NM; \
168 RANLIB="$(RANLIB)"; export RANLIB; \
169 WINDRES="$(WINDRES)"; export WINDRES; \
170 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
171 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
172 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
173 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
174 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
175 SET_GCC_LIB_PATH_CMD="@SET_GCC_LIB_PATH@"; export SET_GCC_LIB_PATH_CMD; \
178 # Similar, for later GCC stages.
179 STAGE_HOST_EXPORTS = \
181 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
182 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC_FOR_BUILD;
184 # This is set by the configure script to the list of directories which
185 # should be built using the target tools.
186 TARGET_CONFIGDIRS = @target_configdirs@
187 # Target libraries are put under this directory:
188 TARGET_SUBDIR = @target_subdir@
189 # This is set by the configure script to the arguments to use when configuring
190 # directories built for the target.
191 TARGET_CONFIGARGS = @target_configargs@
192 # This is the list of variables to export in the environment when
193 # configuring subdirectories for the host system.
194 BASE_TARGET_EXPORTS = \
196 AR="$(AR_FOR_TARGET)"; export AR; \
197 AS="$(AS_FOR_TARGET)"; export AS; \
198 CC="$(CC_FOR_TARGET)"; export CC; \
199 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
200 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
201 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
202 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
203 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
204 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
205 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
206 LD="$(LD_FOR_TARGET)"; export LD; \
207 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
208 NM="$(NM_FOR_TARGET)"; export NM; \
209 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
210 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
211 SET_GCC_LIB_PATH_CMD="@SET_GCC_LIB_PATH@"; export SET_GCC_LIB_PATH_CMD; \
214 RAW_CXX_TARGET_EXPORTS = \
215 $(BASE_TARGET_EXPORTS) \
216 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
217 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
219 NORMAL_TARGET_EXPORTS = \
220 $(BASE_TARGET_EXPORTS) \
221 CXX="$(CXX_FOR_TARGET)"; export CXX;
224 HOST_GMPLIBS = @gmplibs@
225 HOST_GMPINC = @gmpinc@
227 # ----------------------------------------------
228 # Programs producing files for the BUILD machine
229 # ----------------------------------------------
231 SHELL = @config_shell@
233 # pwd command to use. Allow user to override default by setting PWDCMD in
234 # the environment to account for automounters. The make variable must not
235 # be called PWDCMD, otherwise the value set here is passed to make
236 # subprocesses and overrides the setting from the user's environment.
237 # Don't use PWD since it is a common shell environment variable and we
238 # don't want to corrupt it.
239 PWD_COMMAND = $${PWDCMD-pwd}
241 # compilers to use to create programs which must be run in the build
243 CC_FOR_BUILD = @CC_FOR_BUILD@
244 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
246 CXX_FOR_BUILD = $(CXX)
248 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
249 # here so that they can be overridden by Makefile fragments.
250 BUILD_PREFIX = @BUILD_PREFIX@
251 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
253 # Flags to pass to stage2 and later makes. They are defined
254 # here so that they can be overridden by Makefile fragments.
257 CONFIGURED_BISON = @CONFIGURED_BISON@
258 BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
259 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \
261 echo ${CONFIGURED_BISON} ; \
264 CONFIGURED_YACC = @CONFIGURED_YACC@
265 YACC = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
266 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison -y ; \
267 elif [ -f $$r/$(BUILD_SUBDIR)/byacc/byacc ] ; then \
268 echo $$r/$(BUILD_SUBDIR)/byacc/byacc ; \
270 echo ${CONFIGURED_YACC} ; \
273 CONFIGURED_FLEX = @CONFIGURED_FLEX@
274 FLEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
275 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
276 else echo ${CONFIGURED_FLEX} ; fi`
278 CONFIGURED_LEX = @CONFIGURED_LEX@
279 LEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
280 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
281 else echo ${CONFIGURED_LEX} ; fi`
283 CONFIGURED_M4 = @CONFIGURED_M4@
284 M4 = `if [ -f $$r/$(BUILD_SUBDIR)/m4/m4 ] ; \
285 then echo $$r/$(BUILD_SUBDIR)/m4/m4 ; \
286 else echo ${CONFIGURED_M4} ; fi`
288 # For an installed makeinfo, we require it to be from texinfo 4.2 or
289 # higher, else we use the "missing" dummy. We also pass the subdirectory
290 # makeinfo even if only the Makefile is there, because Texinfo builds its
291 # manual when made, and it requires its own version.
292 CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@
293 MAKEINFO = `if [ -f $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/Makefile ] ; \
294 then echo $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo ; \
295 else if (${CONFIGURED_MAKEINFO} --version \
296 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
297 then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
299 # This just becomes part of the MAKEINFO definition passed down to
300 # sub-makes. It lets flags be given on the command line while still
301 # using the makeinfo from the object tree.
302 # (Default to avoid splitting info files by setting the threshold high.)
303 MAKEINFOFLAGS = --split-size=5000000
305 EXPECT = `if [ -f $$r/expect/expect ] ; \
306 then echo $$r/expect/expect ; \
307 else echo expect ; fi`
309 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
310 then echo $$s/dejagnu/runtest ; \
311 else echo runtest ; fi`
313 # ---------------------------------------------
314 # Programs producing files for the HOST machine
315 # ---------------------------------------------
317 # This is the list of directories that may be needed in RPATH_ENVVAR
318 # so that programs built for the host machine work.
319 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
328 LIBCFLAGS = $(CFLAGS)
331 CXXFLAGS = @CXXFLAGS@
332 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
347 # -----------------------------------------------
348 # Programs producing files for the TARGET machine
349 # -----------------------------------------------
351 # This is the list of directories that may be needed in RPATH_ENVVAR
352 # so that prorgams built for the target machine work.
353 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libmudflap/.libs
355 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
357 AR_FOR_TARGET=@AR_FOR_TARGET@
358 CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
359 USUAL_AR_FOR_TARGET = ` \
360 if [ -f $$r/binutils/ar ] ; then \
361 echo $$r/binutils/ar ; \
363 if [ '$(host)' = '$(target)' ] ; then \
366 echo $(CONFIGURED_AR_FOR_TARGET) ; \
370 AS_FOR_TARGET=@AS_FOR_TARGET@
371 CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
372 USUAL_AS_FOR_TARGET = ` \
373 if [ -f $$r/gas/as-new ] ; then \
374 echo $$r/gas/as-new ; \
375 elif [ -f $$r/gcc/xgcc ]; then \
376 $(CC_FOR_TARGET) -print-prog-name=as ; \
378 if [ '$(host)' = '$(target)' ] ; then \
381 echo $(CONFIGURED_AS_FOR_TARGET) ; \
385 CC_FOR_TARGET = @CC_FOR_TARGET@
386 # During gcc bootstrap, if we use some random cc for stage1 then
387 # CFLAGS will be just -g. We want to ensure that TARGET libraries
388 # (which we know are built with gcc) are built with optimizations so
389 # prepend -O2 when setting CFLAGS_FOR_TARGET.
390 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
391 # If GCC_FOR_TARGET is not overriden on the command line, then this
392 # variable is passed down to the gcc Makefile, where it is used to
393 # build libgcc2.a. We define it here so that it can itself be
394 # overridden on the command line.
395 GCC_FOR_TARGET=@GCC_FOR_TARGET@
396 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
397 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
399 CXX_FOR_TARGET = @CXX_FOR_TARGET@
400 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
401 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
402 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
403 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
404 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
406 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
407 CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
408 USUAL_DLLTOOL_FOR_TARGET = ` \
409 if [ -f $$r/binutils/dlltool ] ; then \
410 echo $$r/binutils/dlltool ; \
412 if [ '$(host)' = '$(target)' ] ; then \
415 echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
419 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
420 GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
422 LD_FOR_TARGET=@LD_FOR_TARGET@
423 CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
424 USUAL_LD_FOR_TARGET = ` \
425 if [ -f $$r/ld/ld-new ] ; then \
426 echo $$r/ld/ld-new ; \
427 elif [ -f $$r/gcc/xgcc ]; then \
428 $(CC_FOR_TARGET) -print-prog-name=ld ; \
430 if [ '$(host)' = '$(target)' ] ; then \
433 echo $(CONFIGURED_LD_FOR_TARGET) ; \
439 NM_FOR_TARGET=@NM_FOR_TARGET@
440 CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
441 USUAL_NM_FOR_TARGET = ` \
442 if [ -f $$r/binutils/nm-new ] ; then \
443 echo $$r/binutils/nm-new ; \
444 elif [ -f $$r/gcc/xgcc ]; then \
445 $(CC_FOR_TARGET) -print-prog-name=nm ; \
447 if [ '$(host)' = '$(target)' ] ; then \
450 echo $(CONFIGURED_NM_FOR_TARGET) ; \
454 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
455 CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
456 USUAL_RANLIB_FOR_TARGET = ` \
457 if [ -f $$r/binutils/ranlib ] ; then \
458 echo $$r/binutils/ranlib ; \
460 if [ '$(host)' = '$(target)' ] ; then \
461 if [ x'$(RANLIB)' != x ]; then \
467 echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
471 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
472 CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
473 USUAL_WINDRES_FOR_TARGET = ` \
474 if [ -f $$r/binutils/windres ] ; then \
475 echo $$r/binutils/windres ; \
477 if [ '$(host)' = '$(target)' ] ; then \
480 echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
486 # ------------------------------------
487 # Miscellaneous targets and flag lists
488 # ------------------------------------
490 # The first rule in the file had better be this one. Don't put any above it.
491 # This lives here to allow makefile fragments to contain dependencies.
494 #### host and target specific makefile fragments come in here.
495 @target_makefile_frag@
501 # Flags to pass down to all sub-makes.
502 BASE_FLAGS_TO_PASS = \
503 "DESTDIR=$(DESTDIR)" \
504 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
505 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
507 "datadir=$(datadir)" \
508 "exec_prefix=$(exec_prefix)" \
509 "includedir=$(includedir)" \
510 "infodir=$(infodir)" \
512 "libexecdir=$(libexecdir)" \
513 "lispdir=$(lispdir)" \
514 "libstdcxx_incdir=$(libstdcxx_incdir)" \
515 "libsubdir=$(libsubdir)" \
516 "localstatedir=$(localstatedir)" \
518 "oldincludedir=$(oldincludedir)" \
520 "sbindir=$(sbindir)" \
521 "sharedstatedir=$(sharedstatedir)" \
522 "sysconfdir=$(sysconfdir)" \
523 "tooldir=$(tooldir)" \
524 "build_tooldir=$(build_tooldir)" \
525 "gxx_include_dir=$(gxx_include_dir)" \
526 "gcc_version=$(gcc_version)" \
527 "gcc_version_trigger=$(gcc_version_trigger)" \
528 "target_alias=$(target_alias)" \
530 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
531 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
534 "INSTALL=$(INSTALL)" \
535 "INSTALL_DATA=$(INSTALL_DATA)" \
536 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
537 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
541 "RUNTEST=$(RUNTEST)" \
542 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
545 "AR_FLAGS=$(AR_FLAGS)" \
547 "CXXFLAGS=$(CXXFLAGS)" \
548 "LDFLAGS=$(LDFLAGS)" \
549 "LIBCFLAGS=$(LIBCFLAGS)" \
550 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
551 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
552 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
553 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
554 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
555 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
556 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
557 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
558 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
559 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
560 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
561 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
562 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
563 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
564 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
565 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
566 "CONFIG_SHELL=$(SHELL)" \
567 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
569 # For any flags above that may contain shell code that varies from one
570 # target library to another. When doing recursive invocations of the
571 # top-level Makefile, we don't want the outer make to evaluate them,
572 # so we pass these variables down unchanged. They must not contain
573 # single nor double quotes.
575 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
576 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
578 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS)
580 # Flags to pass down to most sub-makes, in which we're building with
581 # the host environment.
587 'DLLTOOL=$(DLLTOOL)' \
593 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
595 # Flags that are concerned with the location of the X11 include files
598 # NOTE: until the top-level is getting the values via autoconf, it only
599 # causes problems to have this top-level Makefile overriding the autoconf-set
600 # values in child directories. Only variables that don't conflict with
601 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
603 X11_FLAGS_TO_PASS = \
604 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
605 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
607 # Flags to pass down to makes which are built with the target environment.
608 # The double $ decreases the length of the command line; the variables
609 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
610 EXTRA_TARGET_FLAGS = \
611 'AR=$$(AR_FOR_TARGET)' \
612 'AS=$$(AS_FOR_TARGET)' \
613 'CC=$$(CC_FOR_TARGET)' \
614 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
615 'CXX=$$(CXX_FOR_TARGET)' \
616 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
617 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
618 'LD=$$(LD_FOR_TARGET)' \
619 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
620 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
621 'NM=$$(NM_FOR_TARGET)' \
622 'RANLIB=$$(RANLIB_FOR_TARGET)' \
623 'WINDRES=$$(WINDRES_FOR_TARGET)'
625 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
627 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
628 # unfortunately needs the native compiler and the target ar and
630 # If any variables are added here, they must be added to do-*, below.
631 # The BUILD_* variables are a special case, which are used for the gcc
632 # cross-building scheme.
634 'BUILD_PREFIX=$(BUILD_PREFIX)' \
635 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
636 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
637 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
638 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
639 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
640 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
641 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
642 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
643 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
644 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
645 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
646 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
648 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
650 .PHONY: configure-host
652 maybe-configure-ash \
653 maybe-configure-autoconf \
654 maybe-configure-automake \
655 maybe-configure-bash \
656 maybe-configure-bfd \
657 maybe-configure-opcodes \
658 maybe-configure-binutils \
659 maybe-configure-bison \
660 maybe-configure-byacc \
661 maybe-configure-bzip2 \
662 maybe-configure-dejagnu \
663 maybe-configure-diff \
664 maybe-configure-dosutils \
665 maybe-configure-etc \
666 maybe-configure-fastjar \
667 maybe-configure-fileutils \
668 maybe-configure-findutils \
669 maybe-configure-find \
670 maybe-configure-fixincludes \
671 maybe-configure-flex \
672 maybe-configure-gas \
673 maybe-configure-gcc \
674 maybe-configure-gawk \
675 maybe-configure-gettext \
676 maybe-configure-gnuserv \
677 maybe-configure-gprof \
678 maybe-configure-gzip \
679 maybe-configure-hello \
680 maybe-configure-indent \
681 maybe-configure-intl \
682 maybe-configure-tcl \
683 maybe-configure-itcl \
685 maybe-configure-libcpp \
686 maybe-configure-libgui \
687 maybe-configure-libiberty \
688 maybe-configure-libtool \
690 maybe-configure-make \
691 maybe-configure-mmalloc \
692 maybe-configure-patch \
693 maybe-configure-perl \
694 maybe-configure-prms \
695 maybe-configure-rcs \
696 maybe-configure-readline \
697 maybe-configure-release \
698 maybe-configure-recode \
699 maybe-configure-sed \
700 maybe-configure-send-pr \
701 maybe-configure-shellutils \
702 maybe-configure-sid \
703 maybe-configure-sim \
704 maybe-configure-tar \
705 maybe-configure-texinfo \
706 maybe-configure-textutils \
707 maybe-configure-time \
708 maybe-configure-uudecode \
709 maybe-configure-wdiff \
710 maybe-configure-zip \
711 maybe-configure-zlib \
712 maybe-configure-gdb \
713 maybe-configure-expect \
714 maybe-configure-guile \
716 maybe-configure-libtermcap \
717 maybe-configure-utils
718 .PHONY: configure-target
720 maybe-configure-target-libstdc++-v3 \
721 maybe-configure-target-libmudflap \
722 maybe-configure-target-newlib \
723 maybe-configure-target-libgfortran \
724 maybe-configure-target-libobjc \
725 maybe-configure-target-libtermcap \
726 maybe-configure-target-winsup \
727 maybe-configure-target-libgloss \
728 maybe-configure-target-libiberty \
729 maybe-configure-target-gperf \
730 maybe-configure-target-examples \
731 maybe-configure-target-libffi \
732 maybe-configure-target-libjava \
733 maybe-configure-target-zlib \
734 maybe-configure-target-boehm-gc \
735 maybe-configure-target-qthreads \
736 maybe-configure-target-rda \
737 maybe-configure-target-libada
739 # The target built for a native non-bootstrap build.
741 all: unstage all-host all-target stage
745 maybe-all-build-libiberty \
746 maybe-all-build-bison \
747 maybe-all-build-byacc \
748 maybe-all-build-flex \
750 maybe-all-build-texinfo \
751 maybe-all-build-fixincludes
769 maybe-all-fileutils \
770 maybe-all-findutils \
772 maybe-all-fixincludes \
789 maybe-all-libiberty \
803 maybe-all-shellutils \
808 maybe-all-textutils \
818 maybe-all-libtermcap \
822 maybe-all-target-libstdc++-v3 \
823 maybe-all-target-libmudflap \
824 maybe-all-target-newlib \
825 maybe-all-target-libgfortran \
826 maybe-all-target-libobjc \
827 maybe-all-target-libtermcap \
828 maybe-all-target-winsup \
829 maybe-all-target-libgloss \
830 maybe-all-target-libiberty \
831 maybe-all-target-gperf \
832 maybe-all-target-examples \
833 maybe-all-target-libffi \
834 maybe-all-target-libjava \
835 maybe-all-target-zlib \
836 maybe-all-target-boehm-gc \
837 maybe-all-target-qthreads \
838 maybe-all-target-rda \
839 maybe-all-target-libada
841 # Do a target for all the subdirectories. A ``make do-X'' will do a
842 # ``make X'' in all subdirectories (because, in general, there is a
843 # dependency (below) of X upon do-X, a ``make X'' will also do this,
844 # but it may do additional work as well).
847 do-info: unstage info-host info-target stage
852 maybe-info-autoconf \
853 maybe-info-automake \
857 maybe-info-binutils \
863 maybe-info-dosutils \
866 maybe-info-fileutils \
867 maybe-info-findutils \
869 maybe-info-fixincludes \
886 maybe-info-libiberty \
895 maybe-info-readline \
900 maybe-info-shellutils \
905 maybe-info-textutils \
907 maybe-info-uudecode \
915 maybe-info-libtermcap \
920 maybe-info-target-libstdc++-v3 \
921 maybe-info-target-libmudflap \
922 maybe-info-target-newlib \
923 maybe-info-target-libgfortran \
924 maybe-info-target-libobjc \
925 maybe-info-target-libtermcap \
926 maybe-info-target-winsup \
927 maybe-info-target-libgloss \
928 maybe-info-target-libiberty \
929 maybe-info-target-gperf \
930 maybe-info-target-examples \
931 maybe-info-target-libffi \
932 maybe-info-target-libjava \
933 maybe-info-target-zlib \
934 maybe-info-target-boehm-gc \
935 maybe-info-target-qthreads \
936 maybe-info-target-rda \
937 maybe-info-target-libada
940 do-dvi: unstage dvi-host dvi-target stage
959 maybe-dvi-fileutils \
960 maybe-dvi-findutils \
962 maybe-dvi-fixincludes \
979 maybe-dvi-libiberty \
993 maybe-dvi-shellutils \
998 maybe-dvi-textutils \
1000 maybe-dvi-uudecode \
1008 maybe-dvi-libtermcap \
1013 maybe-dvi-target-libstdc++-v3 \
1014 maybe-dvi-target-libmudflap \
1015 maybe-dvi-target-newlib \
1016 maybe-dvi-target-libgfortran \
1017 maybe-dvi-target-libobjc \
1018 maybe-dvi-target-libtermcap \
1019 maybe-dvi-target-winsup \
1020 maybe-dvi-target-libgloss \
1021 maybe-dvi-target-libiberty \
1022 maybe-dvi-target-gperf \
1023 maybe-dvi-target-examples \
1024 maybe-dvi-target-libffi \
1025 maybe-dvi-target-libjava \
1026 maybe-dvi-target-zlib \
1027 maybe-dvi-target-boehm-gc \
1028 maybe-dvi-target-qthreads \
1029 maybe-dvi-target-rda \
1030 maybe-dvi-target-libada
1033 do-html: unstage html-host html-target stage
1038 maybe-html-autoconf \
1039 maybe-html-automake \
1042 maybe-html-opcodes \
1043 maybe-html-binutils \
1047 maybe-html-dejagnu \
1049 maybe-html-dosutils \
1051 maybe-html-fastjar \
1052 maybe-html-fileutils \
1053 maybe-html-findutils \
1055 maybe-html-fixincludes \
1060 maybe-html-gettext \
1061 maybe-html-gnuserv \
1072 maybe-html-libiberty \
1073 maybe-html-libtool \
1076 maybe-html-mmalloc \
1081 maybe-html-readline \
1082 maybe-html-release \
1085 maybe-html-send-pr \
1086 maybe-html-shellutils \
1090 maybe-html-texinfo \
1091 maybe-html-textutils \
1093 maybe-html-uudecode \
1101 maybe-html-libtermcap \
1106 maybe-html-target-libstdc++-v3 \
1107 maybe-html-target-libmudflap \
1108 maybe-html-target-newlib \
1109 maybe-html-target-libgfortran \
1110 maybe-html-target-libobjc \
1111 maybe-html-target-libtermcap \
1112 maybe-html-target-winsup \
1113 maybe-html-target-libgloss \
1114 maybe-html-target-libiberty \
1115 maybe-html-target-gperf \
1116 maybe-html-target-examples \
1117 maybe-html-target-libffi \
1118 maybe-html-target-libjava \
1119 maybe-html-target-zlib \
1120 maybe-html-target-boehm-gc \
1121 maybe-html-target-qthreads \
1122 maybe-html-target-rda \
1123 maybe-html-target-libada
1126 do-TAGS: unstage TAGS-host TAGS-target stage
1131 maybe-TAGS-autoconf \
1132 maybe-TAGS-automake \
1135 maybe-TAGS-opcodes \
1136 maybe-TAGS-binutils \
1140 maybe-TAGS-dejagnu \
1142 maybe-TAGS-dosutils \
1144 maybe-TAGS-fastjar \
1145 maybe-TAGS-fileutils \
1146 maybe-TAGS-findutils \
1148 maybe-TAGS-fixincludes \
1153 maybe-TAGS-gettext \
1154 maybe-TAGS-gnuserv \
1165 maybe-TAGS-libiberty \
1166 maybe-TAGS-libtool \
1169 maybe-TAGS-mmalloc \
1174 maybe-TAGS-readline \
1175 maybe-TAGS-release \
1178 maybe-TAGS-send-pr \
1179 maybe-TAGS-shellutils \
1183 maybe-TAGS-texinfo \
1184 maybe-TAGS-textutils \
1186 maybe-TAGS-uudecode \
1194 maybe-TAGS-libtermcap \
1199 maybe-TAGS-target-libstdc++-v3 \
1200 maybe-TAGS-target-libmudflap \
1201 maybe-TAGS-target-newlib \
1202 maybe-TAGS-target-libgfortran \
1203 maybe-TAGS-target-libobjc \
1204 maybe-TAGS-target-libtermcap \
1205 maybe-TAGS-target-winsup \
1206 maybe-TAGS-target-libgloss \
1207 maybe-TAGS-target-libiberty \
1208 maybe-TAGS-target-gperf \
1209 maybe-TAGS-target-examples \
1210 maybe-TAGS-target-libffi \
1211 maybe-TAGS-target-libjava \
1212 maybe-TAGS-target-zlib \
1213 maybe-TAGS-target-boehm-gc \
1214 maybe-TAGS-target-qthreads \
1215 maybe-TAGS-target-rda \
1216 maybe-TAGS-target-libada
1218 .PHONY: do-install-info
1219 do-install-info: unstage install-info-host install-info-target stage
1221 .PHONY: install-info-host
1222 install-info-host: \
1223 maybe-install-info-ash \
1224 maybe-install-info-autoconf \
1225 maybe-install-info-automake \
1226 maybe-install-info-bash \
1227 maybe-install-info-bfd \
1228 maybe-install-info-opcodes \
1229 maybe-install-info-binutils \
1230 maybe-install-info-bison \
1231 maybe-install-info-byacc \
1232 maybe-install-info-bzip2 \
1233 maybe-install-info-dejagnu \
1234 maybe-install-info-diff \
1235 maybe-install-info-dosutils \
1236 maybe-install-info-etc \
1237 maybe-install-info-fastjar \
1238 maybe-install-info-fileutils \
1239 maybe-install-info-findutils \
1240 maybe-install-info-find \
1241 maybe-install-info-fixincludes \
1242 maybe-install-info-flex \
1243 maybe-install-info-gas \
1244 maybe-install-info-gcc \
1245 maybe-install-info-gawk \
1246 maybe-install-info-gettext \
1247 maybe-install-info-gnuserv \
1248 maybe-install-info-gprof \
1249 maybe-install-info-gzip \
1250 maybe-install-info-hello \
1251 maybe-install-info-indent \
1252 maybe-install-info-intl \
1253 maybe-install-info-tcl \
1254 maybe-install-info-itcl \
1255 maybe-install-info-ld \
1256 maybe-install-info-libcpp \
1257 maybe-install-info-libgui \
1258 maybe-install-info-libiberty \
1259 maybe-install-info-libtool \
1260 maybe-install-info-m4 \
1261 maybe-install-info-make \
1262 maybe-install-info-mmalloc \
1263 maybe-install-info-patch \
1264 maybe-install-info-perl \
1265 maybe-install-info-prms \
1266 maybe-install-info-rcs \
1267 maybe-install-info-readline \
1268 maybe-install-info-release \
1269 maybe-install-info-recode \
1270 maybe-install-info-sed \
1271 maybe-install-info-send-pr \
1272 maybe-install-info-shellutils \
1273 maybe-install-info-sid \
1274 maybe-install-info-sim \
1275 maybe-install-info-tar \
1276 maybe-install-info-texinfo \
1277 maybe-install-info-textutils \
1278 maybe-install-info-time \
1279 maybe-install-info-uudecode \
1280 maybe-install-info-wdiff \
1281 maybe-install-info-zip \
1282 maybe-install-info-zlib \
1283 maybe-install-info-gdb \
1284 maybe-install-info-expect \
1285 maybe-install-info-guile \
1286 maybe-install-info-tk \
1287 maybe-install-info-libtermcap \
1288 maybe-install-info-utils
1290 .PHONY: install-info-target
1291 install-info-target: \
1292 maybe-install-info-target-libstdc++-v3 \
1293 maybe-install-info-target-libmudflap \
1294 maybe-install-info-target-newlib \
1295 maybe-install-info-target-libgfortran \
1296 maybe-install-info-target-libobjc \
1297 maybe-install-info-target-libtermcap \
1298 maybe-install-info-target-winsup \
1299 maybe-install-info-target-libgloss \
1300 maybe-install-info-target-libiberty \
1301 maybe-install-info-target-gperf \
1302 maybe-install-info-target-examples \
1303 maybe-install-info-target-libffi \
1304 maybe-install-info-target-libjava \
1305 maybe-install-info-target-zlib \
1306 maybe-install-info-target-boehm-gc \
1307 maybe-install-info-target-qthreads \
1308 maybe-install-info-target-rda \
1309 maybe-install-info-target-libada
1311 .PHONY: do-installcheck
1312 do-installcheck: unstage installcheck-host installcheck-target stage
1314 .PHONY: installcheck-host
1315 installcheck-host: \
1316 maybe-installcheck-ash \
1317 maybe-installcheck-autoconf \
1318 maybe-installcheck-automake \
1319 maybe-installcheck-bash \
1320 maybe-installcheck-bfd \
1321 maybe-installcheck-opcodes \
1322 maybe-installcheck-binutils \
1323 maybe-installcheck-bison \
1324 maybe-installcheck-byacc \
1325 maybe-installcheck-bzip2 \
1326 maybe-installcheck-dejagnu \
1327 maybe-installcheck-diff \
1328 maybe-installcheck-dosutils \
1329 maybe-installcheck-etc \
1330 maybe-installcheck-fastjar \
1331 maybe-installcheck-fileutils \
1332 maybe-installcheck-findutils \
1333 maybe-installcheck-find \
1334 maybe-installcheck-fixincludes \
1335 maybe-installcheck-flex \
1336 maybe-installcheck-gas \
1337 maybe-installcheck-gcc \
1338 maybe-installcheck-gawk \
1339 maybe-installcheck-gettext \
1340 maybe-installcheck-gnuserv \
1341 maybe-installcheck-gprof \
1342 maybe-installcheck-gzip \
1343 maybe-installcheck-hello \
1344 maybe-installcheck-indent \
1345 maybe-installcheck-intl \
1346 maybe-installcheck-tcl \
1347 maybe-installcheck-itcl \
1348 maybe-installcheck-ld \
1349 maybe-installcheck-libcpp \
1350 maybe-installcheck-libgui \
1351 maybe-installcheck-libiberty \
1352 maybe-installcheck-libtool \
1353 maybe-installcheck-m4 \
1354 maybe-installcheck-make \
1355 maybe-installcheck-mmalloc \
1356 maybe-installcheck-patch \
1357 maybe-installcheck-perl \
1358 maybe-installcheck-prms \
1359 maybe-installcheck-rcs \
1360 maybe-installcheck-readline \
1361 maybe-installcheck-release \
1362 maybe-installcheck-recode \
1363 maybe-installcheck-sed \
1364 maybe-installcheck-send-pr \
1365 maybe-installcheck-shellutils \
1366 maybe-installcheck-sid \
1367 maybe-installcheck-sim \
1368 maybe-installcheck-tar \
1369 maybe-installcheck-texinfo \
1370 maybe-installcheck-textutils \
1371 maybe-installcheck-time \
1372 maybe-installcheck-uudecode \
1373 maybe-installcheck-wdiff \
1374 maybe-installcheck-zip \
1375 maybe-installcheck-zlib \
1376 maybe-installcheck-gdb \
1377 maybe-installcheck-expect \
1378 maybe-installcheck-guile \
1379 maybe-installcheck-tk \
1380 maybe-installcheck-libtermcap \
1381 maybe-installcheck-utils
1383 .PHONY: installcheck-target
1384 installcheck-target: \
1385 maybe-installcheck-target-libstdc++-v3 \
1386 maybe-installcheck-target-libmudflap \
1387 maybe-installcheck-target-newlib \
1388 maybe-installcheck-target-libgfortran \
1389 maybe-installcheck-target-libobjc \
1390 maybe-installcheck-target-libtermcap \
1391 maybe-installcheck-target-winsup \
1392 maybe-installcheck-target-libgloss \
1393 maybe-installcheck-target-libiberty \
1394 maybe-installcheck-target-gperf \
1395 maybe-installcheck-target-examples \
1396 maybe-installcheck-target-libffi \
1397 maybe-installcheck-target-libjava \
1398 maybe-installcheck-target-zlib \
1399 maybe-installcheck-target-boehm-gc \
1400 maybe-installcheck-target-qthreads \
1401 maybe-installcheck-target-rda \
1402 maybe-installcheck-target-libada
1404 .PHONY: do-mostlyclean
1405 do-mostlyclean: unstage mostlyclean-host mostlyclean-target stage
1407 .PHONY: mostlyclean-host
1409 maybe-mostlyclean-ash \
1410 maybe-mostlyclean-autoconf \
1411 maybe-mostlyclean-automake \
1412 maybe-mostlyclean-bash \
1413 maybe-mostlyclean-bfd \
1414 maybe-mostlyclean-opcodes \
1415 maybe-mostlyclean-binutils \
1416 maybe-mostlyclean-bison \
1417 maybe-mostlyclean-byacc \
1418 maybe-mostlyclean-bzip2 \
1419 maybe-mostlyclean-dejagnu \
1420 maybe-mostlyclean-diff \
1421 maybe-mostlyclean-dosutils \
1422 maybe-mostlyclean-etc \
1423 maybe-mostlyclean-fastjar \
1424 maybe-mostlyclean-fileutils \
1425 maybe-mostlyclean-findutils \
1426 maybe-mostlyclean-find \
1427 maybe-mostlyclean-fixincludes \
1428 maybe-mostlyclean-flex \
1429 maybe-mostlyclean-gas \
1430 maybe-mostlyclean-gcc \
1431 maybe-mostlyclean-gawk \
1432 maybe-mostlyclean-gettext \
1433 maybe-mostlyclean-gnuserv \
1434 maybe-mostlyclean-gprof \
1435 maybe-mostlyclean-gzip \
1436 maybe-mostlyclean-hello \
1437 maybe-mostlyclean-indent \
1438 maybe-mostlyclean-intl \
1439 maybe-mostlyclean-tcl \
1440 maybe-mostlyclean-itcl \
1441 maybe-mostlyclean-ld \
1442 maybe-mostlyclean-libcpp \
1443 maybe-mostlyclean-libgui \
1444 maybe-mostlyclean-libiberty \
1445 maybe-mostlyclean-libtool \
1446 maybe-mostlyclean-m4 \
1447 maybe-mostlyclean-make \
1448 maybe-mostlyclean-mmalloc \
1449 maybe-mostlyclean-patch \
1450 maybe-mostlyclean-perl \
1451 maybe-mostlyclean-prms \
1452 maybe-mostlyclean-rcs \
1453 maybe-mostlyclean-readline \
1454 maybe-mostlyclean-release \
1455 maybe-mostlyclean-recode \
1456 maybe-mostlyclean-sed \
1457 maybe-mostlyclean-send-pr \
1458 maybe-mostlyclean-shellutils \
1459 maybe-mostlyclean-sid \
1460 maybe-mostlyclean-sim \
1461 maybe-mostlyclean-tar \
1462 maybe-mostlyclean-texinfo \
1463 maybe-mostlyclean-textutils \
1464 maybe-mostlyclean-time \
1465 maybe-mostlyclean-uudecode \
1466 maybe-mostlyclean-wdiff \
1467 maybe-mostlyclean-zip \
1468 maybe-mostlyclean-zlib \
1469 maybe-mostlyclean-gdb \
1470 maybe-mostlyclean-expect \
1471 maybe-mostlyclean-guile \
1472 maybe-mostlyclean-tk \
1473 maybe-mostlyclean-libtermcap \
1474 maybe-mostlyclean-utils
1476 .PHONY: mostlyclean-target
1477 mostlyclean-target: \
1478 maybe-mostlyclean-target-libstdc++-v3 \
1479 maybe-mostlyclean-target-libmudflap \
1480 maybe-mostlyclean-target-newlib \
1481 maybe-mostlyclean-target-libgfortran \
1482 maybe-mostlyclean-target-libobjc \
1483 maybe-mostlyclean-target-libtermcap \
1484 maybe-mostlyclean-target-winsup \
1485 maybe-mostlyclean-target-libgloss \
1486 maybe-mostlyclean-target-libiberty \
1487 maybe-mostlyclean-target-gperf \
1488 maybe-mostlyclean-target-examples \
1489 maybe-mostlyclean-target-libffi \
1490 maybe-mostlyclean-target-libjava \
1491 maybe-mostlyclean-target-zlib \
1492 maybe-mostlyclean-target-boehm-gc \
1493 maybe-mostlyclean-target-qthreads \
1494 maybe-mostlyclean-target-rda \
1495 maybe-mostlyclean-target-libada
1498 do-clean: unstage clean-host clean-target stage
1503 maybe-clean-autoconf \
1504 maybe-clean-automake \
1507 maybe-clean-opcodes \
1508 maybe-clean-binutils \
1512 maybe-clean-dejagnu \
1514 maybe-clean-dosutils \
1516 maybe-clean-fastjar \
1517 maybe-clean-fileutils \
1518 maybe-clean-findutils \
1520 maybe-clean-fixincludes \
1525 maybe-clean-gettext \
1526 maybe-clean-gnuserv \
1530 maybe-clean-indent \
1535 maybe-clean-libcpp \
1536 maybe-clean-libgui \
1537 maybe-clean-libiberty \
1538 maybe-clean-libtool \
1541 maybe-clean-mmalloc \
1546 maybe-clean-readline \
1547 maybe-clean-release \
1548 maybe-clean-recode \
1550 maybe-clean-send-pr \
1551 maybe-clean-shellutils \
1555 maybe-clean-texinfo \
1556 maybe-clean-textutils \
1558 maybe-clean-uudecode \
1563 maybe-clean-expect \
1566 maybe-clean-libtermcap \
1569 .PHONY: clean-target
1571 maybe-clean-target-libstdc++-v3 \
1572 maybe-clean-target-libmudflap \
1573 maybe-clean-target-newlib \
1574 maybe-clean-target-libgfortran \
1575 maybe-clean-target-libobjc \
1576 maybe-clean-target-libtermcap \
1577 maybe-clean-target-winsup \
1578 maybe-clean-target-libgloss \
1579 maybe-clean-target-libiberty \
1580 maybe-clean-target-gperf \
1581 maybe-clean-target-examples \
1582 maybe-clean-target-libffi \
1583 maybe-clean-target-libjava \
1584 maybe-clean-target-zlib \
1585 maybe-clean-target-boehm-gc \
1586 maybe-clean-target-qthreads \
1587 maybe-clean-target-rda \
1588 maybe-clean-target-libada
1590 .PHONY: do-distclean
1591 do-distclean: unstage distclean-host distclean-target stage
1593 .PHONY: distclean-host
1595 maybe-distclean-ash \
1596 maybe-distclean-autoconf \
1597 maybe-distclean-automake \
1598 maybe-distclean-bash \
1599 maybe-distclean-bfd \
1600 maybe-distclean-opcodes \
1601 maybe-distclean-binutils \
1602 maybe-distclean-bison \
1603 maybe-distclean-byacc \
1604 maybe-distclean-bzip2 \
1605 maybe-distclean-dejagnu \
1606 maybe-distclean-diff \
1607 maybe-distclean-dosutils \
1608 maybe-distclean-etc \
1609 maybe-distclean-fastjar \
1610 maybe-distclean-fileutils \
1611 maybe-distclean-findutils \
1612 maybe-distclean-find \
1613 maybe-distclean-fixincludes \
1614 maybe-distclean-flex \
1615 maybe-distclean-gas \
1616 maybe-distclean-gcc \
1617 maybe-distclean-gawk \
1618 maybe-distclean-gettext \
1619 maybe-distclean-gnuserv \
1620 maybe-distclean-gprof \
1621 maybe-distclean-gzip \
1622 maybe-distclean-hello \
1623 maybe-distclean-indent \
1624 maybe-distclean-intl \
1625 maybe-distclean-tcl \
1626 maybe-distclean-itcl \
1627 maybe-distclean-ld \
1628 maybe-distclean-libcpp \
1629 maybe-distclean-libgui \
1630 maybe-distclean-libiberty \
1631 maybe-distclean-libtool \
1632 maybe-distclean-m4 \
1633 maybe-distclean-make \
1634 maybe-distclean-mmalloc \
1635 maybe-distclean-patch \
1636 maybe-distclean-perl \
1637 maybe-distclean-prms \
1638 maybe-distclean-rcs \
1639 maybe-distclean-readline \
1640 maybe-distclean-release \
1641 maybe-distclean-recode \
1642 maybe-distclean-sed \
1643 maybe-distclean-send-pr \
1644 maybe-distclean-shellutils \
1645 maybe-distclean-sid \
1646 maybe-distclean-sim \
1647 maybe-distclean-tar \
1648 maybe-distclean-texinfo \
1649 maybe-distclean-textutils \
1650 maybe-distclean-time \
1651 maybe-distclean-uudecode \
1652 maybe-distclean-wdiff \
1653 maybe-distclean-zip \
1654 maybe-distclean-zlib \
1655 maybe-distclean-gdb \
1656 maybe-distclean-expect \
1657 maybe-distclean-guile \
1658 maybe-distclean-tk \
1659 maybe-distclean-libtermcap \
1660 maybe-distclean-utils
1662 .PHONY: distclean-target
1664 maybe-distclean-target-libstdc++-v3 \
1665 maybe-distclean-target-libmudflap \
1666 maybe-distclean-target-newlib \
1667 maybe-distclean-target-libgfortran \
1668 maybe-distclean-target-libobjc \
1669 maybe-distclean-target-libtermcap \
1670 maybe-distclean-target-winsup \
1671 maybe-distclean-target-libgloss \
1672 maybe-distclean-target-libiberty \
1673 maybe-distclean-target-gperf \
1674 maybe-distclean-target-examples \
1675 maybe-distclean-target-libffi \
1676 maybe-distclean-target-libjava \
1677 maybe-distclean-target-zlib \
1678 maybe-distclean-target-boehm-gc \
1679 maybe-distclean-target-qthreads \
1680 maybe-distclean-target-rda \
1681 maybe-distclean-target-libada
1683 .PHONY: do-maintainer-clean
1684 do-maintainer-clean: unstage maintainer-clean-host maintainer-clean-target stage
1686 .PHONY: maintainer-clean-host
1687 maintainer-clean-host: \
1688 maybe-maintainer-clean-ash \
1689 maybe-maintainer-clean-autoconf \
1690 maybe-maintainer-clean-automake \
1691 maybe-maintainer-clean-bash \
1692 maybe-maintainer-clean-bfd \
1693 maybe-maintainer-clean-opcodes \
1694 maybe-maintainer-clean-binutils \
1695 maybe-maintainer-clean-bison \
1696 maybe-maintainer-clean-byacc \
1697 maybe-maintainer-clean-bzip2 \
1698 maybe-maintainer-clean-dejagnu \
1699 maybe-maintainer-clean-diff \
1700 maybe-maintainer-clean-dosutils \
1701 maybe-maintainer-clean-etc \
1702 maybe-maintainer-clean-fastjar \
1703 maybe-maintainer-clean-fileutils \
1704 maybe-maintainer-clean-findutils \
1705 maybe-maintainer-clean-find \
1706 maybe-maintainer-clean-fixincludes \
1707 maybe-maintainer-clean-flex \
1708 maybe-maintainer-clean-gas \
1709 maybe-maintainer-clean-gcc \
1710 maybe-maintainer-clean-gawk \
1711 maybe-maintainer-clean-gettext \
1712 maybe-maintainer-clean-gnuserv \
1713 maybe-maintainer-clean-gprof \
1714 maybe-maintainer-clean-gzip \
1715 maybe-maintainer-clean-hello \
1716 maybe-maintainer-clean-indent \
1717 maybe-maintainer-clean-intl \
1718 maybe-maintainer-clean-tcl \
1719 maybe-maintainer-clean-itcl \
1720 maybe-maintainer-clean-ld \
1721 maybe-maintainer-clean-libcpp \
1722 maybe-maintainer-clean-libgui \
1723 maybe-maintainer-clean-libiberty \
1724 maybe-maintainer-clean-libtool \
1725 maybe-maintainer-clean-m4 \
1726 maybe-maintainer-clean-make \
1727 maybe-maintainer-clean-mmalloc \
1728 maybe-maintainer-clean-patch \
1729 maybe-maintainer-clean-perl \
1730 maybe-maintainer-clean-prms \
1731 maybe-maintainer-clean-rcs \
1732 maybe-maintainer-clean-readline \
1733 maybe-maintainer-clean-release \
1734 maybe-maintainer-clean-recode \
1735 maybe-maintainer-clean-sed \
1736 maybe-maintainer-clean-send-pr \
1737 maybe-maintainer-clean-shellutils \
1738 maybe-maintainer-clean-sid \
1739 maybe-maintainer-clean-sim \
1740 maybe-maintainer-clean-tar \
1741 maybe-maintainer-clean-texinfo \
1742 maybe-maintainer-clean-textutils \
1743 maybe-maintainer-clean-time \
1744 maybe-maintainer-clean-uudecode \
1745 maybe-maintainer-clean-wdiff \
1746 maybe-maintainer-clean-zip \
1747 maybe-maintainer-clean-zlib \
1748 maybe-maintainer-clean-gdb \
1749 maybe-maintainer-clean-expect \
1750 maybe-maintainer-clean-guile \
1751 maybe-maintainer-clean-tk \
1752 maybe-maintainer-clean-libtermcap \
1753 maybe-maintainer-clean-utils
1755 .PHONY: maintainer-clean-target
1756 maintainer-clean-target: \
1757 maybe-maintainer-clean-target-libstdc++-v3 \
1758 maybe-maintainer-clean-target-libmudflap \
1759 maybe-maintainer-clean-target-newlib \
1760 maybe-maintainer-clean-target-libgfortran \
1761 maybe-maintainer-clean-target-libobjc \
1762 maybe-maintainer-clean-target-libtermcap \
1763 maybe-maintainer-clean-target-winsup \
1764 maybe-maintainer-clean-target-libgloss \
1765 maybe-maintainer-clean-target-libiberty \
1766 maybe-maintainer-clean-target-gperf \
1767 maybe-maintainer-clean-target-examples \
1768 maybe-maintainer-clean-target-libffi \
1769 maybe-maintainer-clean-target-libjava \
1770 maybe-maintainer-clean-target-zlib \
1771 maybe-maintainer-clean-target-boehm-gc \
1772 maybe-maintainer-clean-target-qthreads \
1773 maybe-maintainer-clean-target-rda \
1774 maybe-maintainer-clean-target-libada
1777 # Here are the targets which correspond to the do-X targets.
1779 .PHONY: info installcheck dvi html install-info
1780 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1781 .PHONY: local-clean local-distclean local-maintainer-clean
1783 installcheck: do-installcheck
1787 # Make sure makeinfo is built before we do a `make info', if we're
1788 # in fact building texinfo.
1789 do-info: maybe-all-texinfo
1791 install-info: do-install-info dir.info
1792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1793 if [ -f dir.info ] ; then \
1794 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1798 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1801 -rm -f Makefile config.status config.cache mh-frag mt-frag
1802 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1803 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1804 rm -rf $(TARGET_SUBDIR); \
1806 -rm -rf $(BUILD_SUBDIR)
1807 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1808 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1809 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1810 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1811 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1813 local-maintainer-clean:
1814 @echo "This command is intended for maintainers to use;"
1815 @echo "it deletes files that may require special tools to rebuild."
1817 clean: do-clean local-clean
1818 mostlyclean: do-mostlyclean local-clean
1819 distclean: do-distclean local-clean local-distclean
1820 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1821 maintainer-clean: local-distclean
1822 realclean: maintainer-clean
1824 # Extra dependency for clean-target, owing to the mixed nature of gcc
1825 clean-target: clean-target-libgcc
1826 clean-target-libgcc:
1827 test ! -d gcc/libgcc || \
1828 (cd gcc/libgcc && find . -type d -print) | \
1829 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1831 -rm -f gcc/stmp-dirs
1835 .PHONY: check do-check
1838 # Only include modules actually being configured and built.
1841 maybe-check-autoconf \
1842 maybe-check-automake \
1845 maybe-check-opcodes \
1846 maybe-check-binutils \
1850 maybe-check-dejagnu \
1852 maybe-check-dosutils \
1854 maybe-check-fastjar \
1855 maybe-check-fileutils \
1856 maybe-check-findutils \
1858 maybe-check-fixincludes \
1863 maybe-check-gettext \
1864 maybe-check-gnuserv \
1868 maybe-check-indent \
1873 maybe-check-libcpp \
1874 maybe-check-libgui \
1875 maybe-check-libiberty \
1876 maybe-check-libtool \
1879 maybe-check-mmalloc \
1884 maybe-check-readline \
1885 maybe-check-release \
1886 maybe-check-recode \
1888 maybe-check-send-pr \
1889 maybe-check-shellutils \
1893 maybe-check-texinfo \
1894 maybe-check-textutils \
1896 maybe-check-uudecode \
1901 maybe-check-expect \
1904 maybe-check-libtermcap \
1906 maybe-check-target-libstdc++-v3 \
1907 maybe-check-target-libmudflap \
1908 maybe-check-target-newlib \
1909 maybe-check-target-libgfortran \
1910 maybe-check-target-libobjc \
1911 maybe-check-target-libtermcap \
1912 maybe-check-target-winsup \
1913 maybe-check-target-libgloss \
1914 maybe-check-target-libiberty \
1915 maybe-check-target-gperf \
1916 maybe-check-target-examples \
1917 maybe-check-target-libffi \
1918 maybe-check-target-libjava \
1919 maybe-check-target-zlib \
1920 maybe-check-target-boehm-gc \
1921 maybe-check-target-qthreads \
1922 maybe-check-target-rda \
1923 maybe-check-target-libada stage
1925 # Automated reporting of test results.
1927 warning.log: build.log
1928 $(srcdir)/contrib/warn_summary build.log > $@
1931 if test x'$(BOOT_CFLAGS)' != x''; then \
1932 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1934 $(srcdir)/contrib/test_summary -t >$@
1936 echo If you really want to send e-mail, run ./$@ now
1938 mail-report-with-warnings.log: warning.log
1939 if test x'$(BOOT_CFLAGS)' != x''; then \
1940 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1942 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1944 echo If you really want to send e-mail, run ./$@ now
1946 # Installation targets.
1948 .PHONY: install uninstall
1949 install: installdirs install-host install-target
1951 .PHONY: install-host-nogcc
1952 install-host-nogcc: \
1954 maybe-install-autoconf \
1955 maybe-install-automake \
1956 maybe-install-bash \
1958 maybe-install-opcodes \
1959 maybe-install-binutils \
1960 maybe-install-bison \
1961 maybe-install-byacc \
1962 maybe-install-bzip2 \
1963 maybe-install-dejagnu \
1964 maybe-install-diff \
1965 maybe-install-dosutils \
1967 maybe-install-fastjar \
1968 maybe-install-fileutils \
1969 maybe-install-findutils \
1970 maybe-install-find \
1971 maybe-install-fixincludes \
1972 maybe-install-flex \
1974 maybe-install-gawk \
1975 maybe-install-gettext \
1976 maybe-install-gnuserv \
1977 maybe-install-gprof \
1978 maybe-install-gzip \
1979 maybe-install-hello \
1980 maybe-install-indent \
1981 maybe-install-intl \
1983 maybe-install-itcl \
1985 maybe-install-libcpp \
1986 maybe-install-libgui \
1987 maybe-install-libiberty \
1988 maybe-install-libtool \
1990 maybe-install-make \
1991 maybe-install-mmalloc \
1992 maybe-install-patch \
1993 maybe-install-perl \
1994 maybe-install-prms \
1996 maybe-install-readline \
1997 maybe-install-release \
1998 maybe-install-recode \
2000 maybe-install-send-pr \
2001 maybe-install-shellutils \
2005 maybe-install-texinfo \
2006 maybe-install-textutils \
2007 maybe-install-time \
2008 maybe-install-uudecode \
2009 maybe-install-wdiff \
2011 maybe-install-zlib \
2013 maybe-install-expect \
2014 maybe-install-guile \
2016 maybe-install-libtermcap \
2019 .PHONY: install-host
2022 maybe-install-autoconf \
2023 maybe-install-automake \
2024 maybe-install-bash \
2026 maybe-install-opcodes \
2027 maybe-install-binutils \
2028 maybe-install-bison \
2029 maybe-install-byacc \
2030 maybe-install-bzip2 \
2031 maybe-install-dejagnu \
2032 maybe-install-diff \
2033 maybe-install-dosutils \
2035 maybe-install-fastjar \
2036 maybe-install-fileutils \
2037 maybe-install-findutils \
2038 maybe-install-find \
2039 maybe-install-fixincludes \
2040 maybe-install-flex \
2043 maybe-install-gawk \
2044 maybe-install-gettext \
2045 maybe-install-gnuserv \
2046 maybe-install-gprof \
2047 maybe-install-gzip \
2048 maybe-install-hello \
2049 maybe-install-indent \
2050 maybe-install-intl \
2052 maybe-install-itcl \
2054 maybe-install-libcpp \
2055 maybe-install-libgui \
2056 maybe-install-libiberty \
2057 maybe-install-libtool \
2059 maybe-install-make \
2060 maybe-install-mmalloc \
2061 maybe-install-patch \
2062 maybe-install-perl \
2063 maybe-install-prms \
2065 maybe-install-readline \
2066 maybe-install-release \
2067 maybe-install-recode \
2069 maybe-install-send-pr \
2070 maybe-install-shellutils \
2074 maybe-install-texinfo \
2075 maybe-install-textutils \
2076 maybe-install-time \
2077 maybe-install-uudecode \
2078 maybe-install-wdiff \
2080 maybe-install-zlib \
2082 maybe-install-expect \
2083 maybe-install-guile \
2085 maybe-install-libtermcap \
2088 .PHONY: install-target
2090 maybe-install-target-libstdc++-v3 \
2091 maybe-install-target-libmudflap \
2092 maybe-install-target-newlib \
2093 maybe-install-target-libgfortran \
2094 maybe-install-target-libobjc \
2095 maybe-install-target-libtermcap \
2096 maybe-install-target-winsup \
2097 maybe-install-target-libgloss \
2098 maybe-install-target-libiberty \
2099 maybe-install-target-gperf \
2100 maybe-install-target-examples \
2101 maybe-install-target-libffi \
2102 maybe-install-target-libjava \
2103 maybe-install-target-zlib \
2104 maybe-install-target-boehm-gc \
2105 maybe-install-target-qthreads \
2106 maybe-install-target-rda \
2107 maybe-install-target-libada
2110 @echo "the uninstall target is not supported in this tree"
2113 install.all: install-no-fixedincludes
2114 @if [ -f ./gcc/Makefile ] ; then \
2115 r=`${PWD_COMMAND}` ; export r ; \
2119 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2124 # install-no-fixedincludes is used because Cygnus can not distribute
2125 # the fixed header files.
2126 .PHONY: install-no-fixedincludes
2127 install-no-fixedincludes: installdirs install-host-nogcc \
2128 install-target gcc-no-fixedincludes
2130 ### other supporting targets
2133 $(DESTDIR)$(prefix) \
2134 $(DESTDIR)$(exec_prefix)
2136 installdirs: mkinstalldirs
2137 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2139 dir.info: do-install-info
2140 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2141 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2142 mv -f dir.info.new dir.info ; \
2147 @echo "Building a full distribution of this tree isn't done"
2148 @echo "via 'make dist'. Check out the etc/ subdirectory"
2152 # Right now this just builds TAGS in each subdirectory. emacs19 has the
2153 # ability to use several tags files at once, so there is probably no need
2154 # to combine them into one big TAGS file (like CVS 1.3 does). We could
2155 # (if we felt like it) have this Makefile write a piece of elisp which
2156 # the user could load to tell emacs19 where all the TAGS files we just
2160 # --------------------------------------
2161 # Modules which run on the build machine
2162 # --------------------------------------
2164 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
2165 maybe-configure-build-libiberty:
2167 maybe-configure-build-libiberty: configure-build-libiberty
2168 configure-build-libiberty:
2169 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2170 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
2171 r=`${PWD_COMMAND}`; export r; \
2172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2174 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2175 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2177 /* | [A-Za-z]:[\\/]*) \
2178 topdir=$(srcdir) ;; \
2180 case "$(BUILD_SUBDIR)" in \
2181 .) topdir="../$(srcdir)" ;; \
2182 *) topdir="../../$(srcdir)" ;; \
2185 if [ "$(srcdir)" = "." ] ; then \
2186 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2187 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
2188 if [ -f Makefile ]; then \
2189 if $(MAKE) distclean; then \
2203 srcdiroption="--srcdir=."; \
2206 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2207 libsrcdir="$$s/libiberty"; \
2209 rm -f no-such-file || : ; \
2210 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2211 $(BUILD_CONFIGARGS) $${srcdiroption} \
2212 --with-build-subdir="$(BUILD_SUBDIR)" \
2214 @endif build-libiberty
2216 .PHONY: all-build-libiberty maybe-all-build-libiberty
2217 maybe-all-build-libiberty:
2219 TARGET-build-libiberty=all
2220 maybe-all-build-libiberty: all-build-libiberty
2221 all-build-libiberty: configure-build-libiberty
2222 @r=`${PWD_COMMAND}`; export r; \
2223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2225 (cd $(BUILD_SUBDIR)/libiberty && \
2226 $(MAKE) $(TARGET-build-libiberty))
2227 @endif build-libiberty
2229 .PHONY: configure-build-bison maybe-configure-build-bison
2230 maybe-configure-build-bison:
2232 maybe-configure-build-bison: configure-build-bison
2233 configure-build-bison:
2234 @test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2235 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2236 r=`${PWD_COMMAND}`; export r; \
2237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2239 echo Configuring in $(BUILD_SUBDIR)/bison; \
2240 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2242 /* | [A-Za-z]:[\\/]*) \
2243 topdir=$(srcdir) ;; \
2245 case "$(BUILD_SUBDIR)" in \
2246 .) topdir="../$(srcdir)" ;; \
2247 *) topdir="../../$(srcdir)" ;; \
2250 if [ "$(srcdir)" = "." ] ; then \
2251 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2252 if $(SHELL) $$s/symlink-tree $${topdir}/bison "no-such-file" ; then \
2253 if [ -f Makefile ]; then \
2254 if $(MAKE) distclean; then \
2268 srcdiroption="--srcdir=."; \
2271 srcdiroption="--srcdir=$${topdir}/bison"; \
2272 libsrcdir="$$s/bison"; \
2274 rm -f no-such-file || : ; \
2275 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2276 $(BUILD_CONFIGARGS) $${srcdiroption} \
2277 --with-build-subdir="$(BUILD_SUBDIR)" \
2281 .PHONY: all-build-bison maybe-all-build-bison
2282 maybe-all-build-bison:
2284 TARGET-build-bison=all
2285 maybe-all-build-bison: all-build-bison
2286 all-build-bison: configure-build-bison
2287 @r=`${PWD_COMMAND}`; export r; \
2288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2290 (cd $(BUILD_SUBDIR)/bison && \
2291 $(MAKE) $(TARGET-build-bison))
2294 .PHONY: configure-build-byacc maybe-configure-build-byacc
2295 maybe-configure-build-byacc:
2297 maybe-configure-build-byacc: configure-build-byacc
2298 configure-build-byacc:
2299 @test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2300 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
2301 r=`${PWD_COMMAND}`; export r; \
2302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2304 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2305 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2307 /* | [A-Za-z]:[\\/]*) \
2308 topdir=$(srcdir) ;; \
2310 case "$(BUILD_SUBDIR)" in \
2311 .) topdir="../$(srcdir)" ;; \
2312 *) topdir="../../$(srcdir)" ;; \
2315 if [ "$(srcdir)" = "." ] ; then \
2316 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2317 if $(SHELL) $$s/symlink-tree $${topdir}/byacc "no-such-file" ; then \
2318 if [ -f Makefile ]; then \
2319 if $(MAKE) distclean; then \
2333 srcdiroption="--srcdir=."; \
2336 srcdiroption="--srcdir=$${topdir}/byacc"; \
2337 libsrcdir="$$s/byacc"; \
2339 rm -f no-such-file || : ; \
2340 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2341 $(BUILD_CONFIGARGS) $${srcdiroption} \
2342 --with-build-subdir="$(BUILD_SUBDIR)" \
2346 .PHONY: all-build-byacc maybe-all-build-byacc
2347 maybe-all-build-byacc:
2349 TARGET-build-byacc=all
2350 maybe-all-build-byacc: all-build-byacc
2351 all-build-byacc: configure-build-byacc
2352 @r=`${PWD_COMMAND}`; export r; \
2353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2355 (cd $(BUILD_SUBDIR)/byacc && \
2356 $(MAKE) $(TARGET-build-byacc))
2359 .PHONY: configure-build-flex maybe-configure-build-flex
2360 maybe-configure-build-flex:
2362 maybe-configure-build-flex: configure-build-flex
2363 configure-build-flex:
2364 @test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2365 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2366 r=`${PWD_COMMAND}`; export r; \
2367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2369 echo Configuring in $(BUILD_SUBDIR)/flex; \
2370 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2372 /* | [A-Za-z]:[\\/]*) \
2373 topdir=$(srcdir) ;; \
2375 case "$(BUILD_SUBDIR)" in \
2376 .) topdir="../$(srcdir)" ;; \
2377 *) topdir="../../$(srcdir)" ;; \
2380 if [ "$(srcdir)" = "." ] ; then \
2381 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2382 if $(SHELL) $$s/symlink-tree $${topdir}/flex "no-such-file" ; then \
2383 if [ -f Makefile ]; then \
2384 if $(MAKE) distclean; then \
2398 srcdiroption="--srcdir=."; \
2401 srcdiroption="--srcdir=$${topdir}/flex"; \
2402 libsrcdir="$$s/flex"; \
2404 rm -f no-such-file || : ; \
2405 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2406 $(BUILD_CONFIGARGS) $${srcdiroption} \
2407 --with-build-subdir="$(BUILD_SUBDIR)" \
2411 .PHONY: all-build-flex maybe-all-build-flex
2412 maybe-all-build-flex:
2414 TARGET-build-flex=all
2415 maybe-all-build-flex: all-build-flex
2416 all-build-flex: configure-build-flex
2417 @r=`${PWD_COMMAND}`; export r; \
2418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2420 (cd $(BUILD_SUBDIR)/flex && \
2421 $(MAKE) $(TARGET-build-flex))
2424 .PHONY: configure-build-m4 maybe-configure-build-m4
2425 maybe-configure-build-m4:
2427 maybe-configure-build-m4: configure-build-m4
2429 @test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2430 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2431 r=`${PWD_COMMAND}`; export r; \
2432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2434 echo Configuring in $(BUILD_SUBDIR)/m4; \
2435 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2437 /* | [A-Za-z]:[\\/]*) \
2438 topdir=$(srcdir) ;; \
2440 case "$(BUILD_SUBDIR)" in \
2441 .) topdir="../$(srcdir)" ;; \
2442 *) topdir="../../$(srcdir)" ;; \
2445 if [ "$(srcdir)" = "." ] ; then \
2446 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2447 if $(SHELL) $$s/symlink-tree $${topdir}/m4 "no-such-file" ; then \
2448 if [ -f Makefile ]; then \
2449 if $(MAKE) distclean; then \
2463 srcdiroption="--srcdir=."; \
2466 srcdiroption="--srcdir=$${topdir}/m4"; \
2467 libsrcdir="$$s/m4"; \
2469 rm -f no-such-file || : ; \
2470 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2471 $(BUILD_CONFIGARGS) $${srcdiroption} \
2472 --with-build-subdir="$(BUILD_SUBDIR)" \
2476 .PHONY: all-build-m4 maybe-all-build-m4
2480 maybe-all-build-m4: all-build-m4
2481 all-build-m4: configure-build-m4
2482 @r=`${PWD_COMMAND}`; export r; \
2483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2485 (cd $(BUILD_SUBDIR)/m4 && \
2486 $(MAKE) $(TARGET-build-m4))
2489 .PHONY: configure-build-texinfo maybe-configure-build-texinfo
2490 maybe-configure-build-texinfo:
2492 maybe-configure-build-texinfo: configure-build-texinfo
2493 configure-build-texinfo:
2494 @test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2495 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2496 r=`${PWD_COMMAND}`; export r; \
2497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2499 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2500 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2502 /* | [A-Za-z]:[\\/]*) \
2503 topdir=$(srcdir) ;; \
2505 case "$(BUILD_SUBDIR)" in \
2506 .) topdir="../$(srcdir)" ;; \
2507 *) topdir="../../$(srcdir)" ;; \
2510 if [ "$(srcdir)" = "." ] ; then \
2511 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2512 if $(SHELL) $$s/symlink-tree $${topdir}/texinfo "no-such-file" ; then \
2513 if [ -f Makefile ]; then \
2514 if $(MAKE) distclean; then \
2528 srcdiroption="--srcdir=."; \
2531 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2532 libsrcdir="$$s/texinfo"; \
2534 rm -f no-such-file || : ; \
2535 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2536 $(BUILD_CONFIGARGS) $${srcdiroption} \
2537 --with-build-subdir="$(BUILD_SUBDIR)" \
2539 @endif build-texinfo
2541 .PHONY: all-build-texinfo maybe-all-build-texinfo
2542 maybe-all-build-texinfo:
2544 TARGET-build-texinfo=all
2545 maybe-all-build-texinfo: all-build-texinfo
2546 all-build-texinfo: configure-build-texinfo
2547 @r=`${PWD_COMMAND}`; export r; \
2548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2550 (cd $(BUILD_SUBDIR)/texinfo && \
2551 $(MAKE) $(TARGET-build-texinfo))
2552 @endif build-texinfo
2554 .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2555 maybe-configure-build-fixincludes:
2556 @if build-fixincludes
2557 maybe-configure-build-fixincludes: configure-build-fixincludes
2558 configure-build-fixincludes:
2559 @test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2560 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2561 r=`${PWD_COMMAND}`; export r; \
2562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2564 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2565 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2567 /* | [A-Za-z]:[\\/]*) \
2568 topdir=$(srcdir) ;; \
2570 case "$(BUILD_SUBDIR)" in \
2571 .) topdir="../$(srcdir)" ;; \
2572 *) topdir="../../$(srcdir)" ;; \
2575 if [ "$(srcdir)" = "." ] ; then \
2576 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2577 if $(SHELL) $$s/symlink-tree $${topdir}/fixincludes "no-such-file" ; then \
2578 if [ -f Makefile ]; then \
2579 if $(MAKE) distclean; then \
2593 srcdiroption="--srcdir=."; \
2596 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2597 libsrcdir="$$s/fixincludes"; \
2599 rm -f no-such-file || : ; \
2600 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2601 $(BUILD_CONFIGARGS) $${srcdiroption} \
2602 --with-build-subdir="$(BUILD_SUBDIR)" \
2604 @endif build-fixincludes
2606 .PHONY: all-build-fixincludes maybe-all-build-fixincludes
2607 maybe-all-build-fixincludes:
2608 @if build-fixincludes
2609 TARGET-build-fixincludes=all
2610 maybe-all-build-fixincludes: all-build-fixincludes
2611 all-build-fixincludes: configure-build-fixincludes
2612 @r=`${PWD_COMMAND}`; export r; \
2613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2615 (cd $(BUILD_SUBDIR)/fixincludes && \
2616 $(MAKE) $(TARGET-build-fixincludes))
2617 @endif build-fixincludes
2620 # --------------------------------------
2621 # Modules which run on the host machine
2622 # --------------------------------------
2624 .PHONY: configure-ash maybe-configure-ash
2625 maybe-configure-ash:
2627 maybe-configure-ash: configure-ash
2629 @test ! -f ash/Makefile || exit 0; \
2630 [ -d ash ] || mkdir ash; \
2631 r=`${PWD_COMMAND}`; export r; \
2632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2634 echo Configuring in ash; \
2638 srcdiroption="--srcdir=."; \
2640 /* | [A-Za-z]:[\\/]*) \
2641 srcdiroption="--srcdir=$(srcdir)/ash"; \
2642 libsrcdir="$$s/ash";; \
2644 srcdiroption="--srcdir=../$(srcdir)/ash"; \
2645 libsrcdir="$$s/ash";; \
2647 $(SHELL) $${libsrcdir}/configure \
2648 $(HOST_CONFIGARGS) $${srcdiroption} \
2652 .PHONY: all-ash maybe-all-ash
2656 maybe-all-ash: all-ash
2657 all-ash: configure-ash
2658 @r=`${PWD_COMMAND}`; export r; \
2659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2662 (cd ash && $(MAKE) $(FLAGS_TO_PASS) \
2666 .PHONY: check-ash maybe-check-ash
2669 maybe-check-ash: check-ash
2672 @r=`${PWD_COMMAND}`; export r; \
2673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2676 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
2680 .PHONY: install-ash maybe-install-ash
2683 maybe-install-ash: install-ash
2685 install-ash: installdirs
2686 @r=`${PWD_COMMAND}`; export r; \
2687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2690 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
2694 # Other targets (info, dvi, etc.)
2696 .PHONY: maybe-info-ash info-ash
2699 maybe-info-ash: info-ash
2703 @[ -f ./ash/Makefile ] || exit 0; \
2704 r=`${PWD_COMMAND}`; export r; \
2705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2708 for flag in $(EXTRA_HOST_FLAGS) ; do \
2709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2711 echo "Doing info in ash" ; \
2713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2715 "RANLIB=$${RANLIB}" \
2716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2722 .PHONY: maybe-dvi-ash dvi-ash
2725 maybe-dvi-ash: dvi-ash
2729 @[ -f ./ash/Makefile ] || exit 0; \
2730 r=`${PWD_COMMAND}`; export r; \
2731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2734 for flag in $(EXTRA_HOST_FLAGS) ; do \
2735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2737 echo "Doing dvi in ash" ; \
2739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2741 "RANLIB=$${RANLIB}" \
2742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2748 .PHONY: maybe-html-ash html-ash
2751 maybe-html-ash: html-ash
2755 @[ -f ./ash/Makefile ] || exit 0; \
2756 r=`${PWD_COMMAND}`; export r; \
2757 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 html in 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-TAGS-ash TAGS-ash
2777 maybe-TAGS-ash: TAGS-ash
2781 @[ -f ./ash/Makefile ] || exit 0; \
2782 r=`${PWD_COMMAND}`; export r; \
2783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2786 for flag in $(EXTRA_HOST_FLAGS) ; do \
2787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2789 echo "Doing TAGS in ash" ; \
2791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2793 "RANLIB=$${RANLIB}" \
2794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2800 .PHONY: maybe-install-info-ash install-info-ash
2801 maybe-install-info-ash:
2803 maybe-install-info-ash: install-info-ash
2808 @[ -f ./ash/Makefile ] || exit 0; \
2809 r=`${PWD_COMMAND}`; export r; \
2810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2813 for flag in $(EXTRA_HOST_FLAGS) ; do \
2814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2816 echo "Doing install-info in ash" ; \
2818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2820 "RANLIB=$${RANLIB}" \
2821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2827 .PHONY: maybe-installcheck-ash installcheck-ash
2828 maybe-installcheck-ash:
2830 maybe-installcheck-ash: installcheck-ash
2834 @[ -f ./ash/Makefile ] || exit 0; \
2835 r=`${PWD_COMMAND}`; export r; \
2836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2839 for flag in $(EXTRA_HOST_FLAGS) ; do \
2840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2842 echo "Doing installcheck in ash" ; \
2844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2846 "RANLIB=$${RANLIB}" \
2847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2853 .PHONY: maybe-mostlyclean-ash mostlyclean-ash
2854 maybe-mostlyclean-ash:
2856 maybe-mostlyclean-ash: mostlyclean-ash
2859 @[ -f ./ash/Makefile ] || exit 0; \
2860 r=`${PWD_COMMAND}`; export r; \
2861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2864 for flag in $(EXTRA_HOST_FLAGS) ; do \
2865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2867 echo "Doing mostlyclean in ash" ; \
2869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2871 "RANLIB=$${RANLIB}" \
2872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2878 .PHONY: maybe-clean-ash clean-ash
2881 maybe-clean-ash: clean-ash
2884 @[ -f ./ash/Makefile ] || exit 0; \
2885 r=`${PWD_COMMAND}`; export r; \
2886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2889 for flag in $(EXTRA_HOST_FLAGS) ; do \
2890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2892 echo "Doing clean in ash" ; \
2894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2896 "RANLIB=$${RANLIB}" \
2897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2903 .PHONY: maybe-distclean-ash distclean-ash
2904 maybe-distclean-ash:
2906 maybe-distclean-ash: distclean-ash
2909 @[ -f ./ash/Makefile ] || exit 0; \
2910 r=`${PWD_COMMAND}`; export r; \
2911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2914 for flag in $(EXTRA_HOST_FLAGS) ; do \
2915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2917 echo "Doing distclean in ash" ; \
2919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2921 "RANLIB=$${RANLIB}" \
2922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2928 .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2929 maybe-maintainer-clean-ash:
2931 maybe-maintainer-clean-ash: maintainer-clean-ash
2933 maintainer-clean-ash:
2934 @[ -f ./ash/Makefile ] || exit 0; \
2935 r=`${PWD_COMMAND}`; export r; \
2936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2939 for flag in $(EXTRA_HOST_FLAGS) ; do \
2940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2942 echo "Doing maintainer-clean in ash" ; \
2944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2946 "RANLIB=$${RANLIB}" \
2947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2954 .PHONY: configure-autoconf maybe-configure-autoconf
2955 maybe-configure-autoconf:
2957 maybe-configure-autoconf: configure-autoconf
2959 @test ! -f autoconf/Makefile || exit 0; \
2960 [ -d autoconf ] || mkdir autoconf; \
2961 r=`${PWD_COMMAND}`; export r; \
2962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2964 echo Configuring in autoconf; \
2965 cd autoconf || exit 1; \
2968 srcdiroption="--srcdir=."; \
2970 /* | [A-Za-z]:[\\/]*) \
2971 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
2972 libsrcdir="$$s/autoconf";; \
2974 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
2975 libsrcdir="$$s/autoconf";; \
2977 $(SHELL) $${libsrcdir}/configure \
2978 $(HOST_CONFIGARGS) $${srcdiroption} \
2982 .PHONY: all-autoconf maybe-all-autoconf
2986 maybe-all-autoconf: all-autoconf
2987 all-autoconf: configure-autoconf
2988 @r=`${PWD_COMMAND}`; export r; \
2989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2992 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) \
2996 .PHONY: check-autoconf maybe-check-autoconf
2997 maybe-check-autoconf:
2999 maybe-check-autoconf: check-autoconf
3002 @r=`${PWD_COMMAND}`; export r; \
3003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3006 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
3010 .PHONY: install-autoconf maybe-install-autoconf
3011 maybe-install-autoconf:
3013 maybe-install-autoconf: install-autoconf
3015 install-autoconf: installdirs
3016 @r=`${PWD_COMMAND}`; export r; \
3017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3020 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
3024 # Other targets (info, dvi, etc.)
3026 .PHONY: maybe-info-autoconf info-autoconf
3027 maybe-info-autoconf:
3029 maybe-info-autoconf: info-autoconf
3033 @[ -f ./autoconf/Makefile ] || exit 0; \
3034 r=`${PWD_COMMAND}`; export r; \
3035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3038 for flag in $(EXTRA_HOST_FLAGS) ; do \
3039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3041 echo "Doing info in autoconf" ; \
3043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3045 "RANLIB=$${RANLIB}" \
3046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3052 .PHONY: maybe-dvi-autoconf dvi-autoconf
3055 maybe-dvi-autoconf: dvi-autoconf
3059 @[ -f ./autoconf/Makefile ] || exit 0; \
3060 r=`${PWD_COMMAND}`; export r; \
3061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3064 for flag in $(EXTRA_HOST_FLAGS) ; do \
3065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3067 echo "Doing dvi in autoconf" ; \
3069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3071 "RANLIB=$${RANLIB}" \
3072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3078 .PHONY: maybe-html-autoconf html-autoconf
3079 maybe-html-autoconf:
3081 maybe-html-autoconf: html-autoconf
3085 @[ -f ./autoconf/Makefile ] || exit 0; \
3086 r=`${PWD_COMMAND}`; export r; \
3087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3090 for flag in $(EXTRA_HOST_FLAGS) ; do \
3091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3093 echo "Doing html in autoconf" ; \
3095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3097 "RANLIB=$${RANLIB}" \
3098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3104 .PHONY: maybe-TAGS-autoconf TAGS-autoconf
3105 maybe-TAGS-autoconf:
3107 maybe-TAGS-autoconf: TAGS-autoconf
3111 @[ -f ./autoconf/Makefile ] || exit 0; \
3112 r=`${PWD_COMMAND}`; export r; \
3113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3116 for flag in $(EXTRA_HOST_FLAGS) ; do \
3117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3119 echo "Doing TAGS in autoconf" ; \
3121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3123 "RANLIB=$${RANLIB}" \
3124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3130 .PHONY: maybe-install-info-autoconf install-info-autoconf
3131 maybe-install-info-autoconf:
3133 maybe-install-info-autoconf: install-info-autoconf
3135 install-info-autoconf: \
3136 configure-autoconf \
3138 @[ -f ./autoconf/Makefile ] || exit 0; \
3139 r=`${PWD_COMMAND}`; export r; \
3140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3143 for flag in $(EXTRA_HOST_FLAGS) ; do \
3144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3146 echo "Doing install-info in autoconf" ; \
3148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3150 "RANLIB=$${RANLIB}" \
3151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3157 .PHONY: maybe-installcheck-autoconf installcheck-autoconf
3158 maybe-installcheck-autoconf:
3160 maybe-installcheck-autoconf: installcheck-autoconf
3162 installcheck-autoconf: \
3164 @[ -f ./autoconf/Makefile ] || exit 0; \
3165 r=`${PWD_COMMAND}`; export r; \
3166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3169 for flag in $(EXTRA_HOST_FLAGS) ; do \
3170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3172 echo "Doing installcheck in autoconf" ; \
3174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3176 "RANLIB=$${RANLIB}" \
3177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3183 .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3184 maybe-mostlyclean-autoconf:
3186 maybe-mostlyclean-autoconf: mostlyclean-autoconf
3188 mostlyclean-autoconf:
3189 @[ -f ./autoconf/Makefile ] || exit 0; \
3190 r=`${PWD_COMMAND}`; export r; \
3191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3194 for flag in $(EXTRA_HOST_FLAGS) ; do \
3195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3197 echo "Doing mostlyclean in autoconf" ; \
3199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3201 "RANLIB=$${RANLIB}" \
3202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3208 .PHONY: maybe-clean-autoconf clean-autoconf
3209 maybe-clean-autoconf:
3211 maybe-clean-autoconf: clean-autoconf
3214 @[ -f ./autoconf/Makefile ] || exit 0; \
3215 r=`${PWD_COMMAND}`; export r; \
3216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3219 for flag in $(EXTRA_HOST_FLAGS) ; do \
3220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3222 echo "Doing clean in autoconf" ; \
3224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3226 "RANLIB=$${RANLIB}" \
3227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3233 .PHONY: maybe-distclean-autoconf distclean-autoconf
3234 maybe-distclean-autoconf:
3236 maybe-distclean-autoconf: distclean-autoconf
3239 @[ -f ./autoconf/Makefile ] || exit 0; \
3240 r=`${PWD_COMMAND}`; export r; \
3241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3244 for flag in $(EXTRA_HOST_FLAGS) ; do \
3245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3247 echo "Doing distclean in autoconf" ; \
3249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3251 "RANLIB=$${RANLIB}" \
3252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3258 .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3259 maybe-maintainer-clean-autoconf:
3261 maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
3263 maintainer-clean-autoconf:
3264 @[ -f ./autoconf/Makefile ] || exit 0; \
3265 r=`${PWD_COMMAND}`; export r; \
3266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3269 for flag in $(EXTRA_HOST_FLAGS) ; do \
3270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3272 echo "Doing maintainer-clean in autoconf" ; \
3274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3276 "RANLIB=$${RANLIB}" \
3277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3284 .PHONY: configure-automake maybe-configure-automake
3285 maybe-configure-automake:
3287 maybe-configure-automake: configure-automake
3289 @test ! -f automake/Makefile || exit 0; \
3290 [ -d automake ] || mkdir automake; \
3291 r=`${PWD_COMMAND}`; export r; \
3292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3294 echo Configuring in automake; \
3295 cd automake || exit 1; \
3298 srcdiroption="--srcdir=."; \
3300 /* | [A-Za-z]:[\\/]*) \
3301 srcdiroption="--srcdir=$(srcdir)/automake"; \
3302 libsrcdir="$$s/automake";; \
3304 srcdiroption="--srcdir=../$(srcdir)/automake"; \
3305 libsrcdir="$$s/automake";; \
3307 $(SHELL) $${libsrcdir}/configure \
3308 $(HOST_CONFIGARGS) $${srcdiroption} \
3312 .PHONY: all-automake maybe-all-automake
3316 maybe-all-automake: all-automake
3317 all-automake: configure-automake
3318 @r=`${PWD_COMMAND}`; export r; \
3319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3322 (cd automake && $(MAKE) $(FLAGS_TO_PASS) \
3326 .PHONY: check-automake maybe-check-automake
3327 maybe-check-automake:
3329 maybe-check-automake: check-automake
3332 @r=`${PWD_COMMAND}`; export r; \
3333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3336 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
3340 .PHONY: install-automake maybe-install-automake
3341 maybe-install-automake:
3343 maybe-install-automake: install-automake
3345 install-automake: installdirs
3346 @r=`${PWD_COMMAND}`; export r; \
3347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3350 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
3354 # Other targets (info, dvi, etc.)
3356 .PHONY: maybe-info-automake info-automake
3357 maybe-info-automake:
3359 maybe-info-automake: info-automake
3363 @[ -f ./automake/Makefile ] || exit 0; \
3364 r=`${PWD_COMMAND}`; export r; \
3365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3368 for flag in $(EXTRA_HOST_FLAGS) ; do \
3369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3371 echo "Doing info in automake" ; \
3373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3375 "RANLIB=$${RANLIB}" \
3376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3382 .PHONY: maybe-dvi-automake dvi-automake
3385 maybe-dvi-automake: dvi-automake
3389 @[ -f ./automake/Makefile ] || exit 0; \
3390 r=`${PWD_COMMAND}`; export r; \
3391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3394 for flag in $(EXTRA_HOST_FLAGS) ; do \
3395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3397 echo "Doing dvi in automake" ; \
3399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3401 "RANLIB=$${RANLIB}" \
3402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3408 .PHONY: maybe-html-automake html-automake
3409 maybe-html-automake:
3411 maybe-html-automake: html-automake
3415 @[ -f ./automake/Makefile ] || exit 0; \
3416 r=`${PWD_COMMAND}`; export r; \
3417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3420 for flag in $(EXTRA_HOST_FLAGS) ; do \
3421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3423 echo "Doing html in automake" ; \
3425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3427 "RANLIB=$${RANLIB}" \
3428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3434 .PHONY: maybe-TAGS-automake TAGS-automake
3435 maybe-TAGS-automake:
3437 maybe-TAGS-automake: TAGS-automake
3441 @[ -f ./automake/Makefile ] || exit 0; \
3442 r=`${PWD_COMMAND}`; export r; \
3443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3446 for flag in $(EXTRA_HOST_FLAGS) ; do \
3447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3449 echo "Doing TAGS in automake" ; \
3451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3453 "RANLIB=$${RANLIB}" \
3454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3460 .PHONY: maybe-install-info-automake install-info-automake
3461 maybe-install-info-automake:
3463 maybe-install-info-automake: install-info-automake
3465 install-info-automake: \
3466 configure-automake \
3468 @[ -f ./automake/Makefile ] || exit 0; \
3469 r=`${PWD_COMMAND}`; export r; \
3470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3473 for flag in $(EXTRA_HOST_FLAGS) ; do \
3474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3476 echo "Doing install-info in automake" ; \
3478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3480 "RANLIB=$${RANLIB}" \
3481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3487 .PHONY: maybe-installcheck-automake installcheck-automake
3488 maybe-installcheck-automake:
3490 maybe-installcheck-automake: installcheck-automake
3492 installcheck-automake: \
3494 @[ -f ./automake/Makefile ] || exit 0; \
3495 r=`${PWD_COMMAND}`; export r; \
3496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3499 for flag in $(EXTRA_HOST_FLAGS) ; do \
3500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3502 echo "Doing installcheck in automake" ; \
3504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3506 "RANLIB=$${RANLIB}" \
3507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3513 .PHONY: maybe-mostlyclean-automake mostlyclean-automake
3514 maybe-mostlyclean-automake:
3516 maybe-mostlyclean-automake: mostlyclean-automake
3518 mostlyclean-automake:
3519 @[ -f ./automake/Makefile ] || exit 0; \
3520 r=`${PWD_COMMAND}`; export r; \
3521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3524 for flag in $(EXTRA_HOST_FLAGS) ; do \
3525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3527 echo "Doing mostlyclean in automake" ; \
3529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3531 "RANLIB=$${RANLIB}" \
3532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3538 .PHONY: maybe-clean-automake clean-automake
3539 maybe-clean-automake:
3541 maybe-clean-automake: clean-automake
3544 @[ -f ./automake/Makefile ] || exit 0; \
3545 r=`${PWD_COMMAND}`; export r; \
3546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3549 for flag in $(EXTRA_HOST_FLAGS) ; do \
3550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3552 echo "Doing clean in automake" ; \
3554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3556 "RANLIB=$${RANLIB}" \
3557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3563 .PHONY: maybe-distclean-automake distclean-automake
3564 maybe-distclean-automake:
3566 maybe-distclean-automake: distclean-automake
3569 @[ -f ./automake/Makefile ] || exit 0; \
3570 r=`${PWD_COMMAND}`; export r; \
3571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3574 for flag in $(EXTRA_HOST_FLAGS) ; do \
3575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3577 echo "Doing distclean in automake" ; \
3579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3581 "RANLIB=$${RANLIB}" \
3582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3588 .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3589 maybe-maintainer-clean-automake:
3591 maybe-maintainer-clean-automake: maintainer-clean-automake
3593 maintainer-clean-automake:
3594 @[ -f ./automake/Makefile ] || exit 0; \
3595 r=`${PWD_COMMAND}`; export r; \
3596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3599 for flag in $(EXTRA_HOST_FLAGS) ; do \
3600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3602 echo "Doing maintainer-clean in automake" ; \
3604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3606 "RANLIB=$${RANLIB}" \
3607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3614 .PHONY: configure-bash maybe-configure-bash
3615 maybe-configure-bash:
3617 maybe-configure-bash: configure-bash
3619 @test ! -f bash/Makefile || exit 0; \
3620 [ -d bash ] || mkdir bash; \
3621 r=`${PWD_COMMAND}`; export r; \
3622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3624 echo Configuring in bash; \
3625 cd bash || exit 1; \
3628 srcdiroption="--srcdir=."; \
3630 /* | [A-Za-z]:[\\/]*) \
3631 srcdiroption="--srcdir=$(srcdir)/bash"; \
3632 libsrcdir="$$s/bash";; \
3634 srcdiroption="--srcdir=../$(srcdir)/bash"; \
3635 libsrcdir="$$s/bash";; \
3637 $(SHELL) $${libsrcdir}/configure \
3638 $(HOST_CONFIGARGS) $${srcdiroption} \
3642 .PHONY: all-bash maybe-all-bash
3646 maybe-all-bash: all-bash
3647 all-bash: configure-bash
3648 @r=`${PWD_COMMAND}`; export r; \
3649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3652 (cd bash && $(MAKE) $(FLAGS_TO_PASS) \
3656 .PHONY: check-bash maybe-check-bash
3659 maybe-check-bash: check-bash
3662 @r=`${PWD_COMMAND}`; export r; \
3663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3666 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
3670 .PHONY: install-bash maybe-install-bash
3673 maybe-install-bash: install-bash
3675 install-bash: installdirs
3676 @r=`${PWD_COMMAND}`; export r; \
3677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3680 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
3684 # Other targets (info, dvi, etc.)
3686 .PHONY: maybe-info-bash info-bash