2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
4 # Makefile for directory with subdirs to build.
5 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6 # 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 # -------------------------------
24 # Standard Autoconf-set variables
25 # -------------------------------
28 build_alias=@build_alias@
30 host_alias=@host_alias@
32 target_alias=@target_alias@
35 program_transform_name = @program_transform_name@
38 exec_prefix = @exec_prefix@
44 libexecdir = @libexecdir@
46 sysconfdir = @sysconfdir@
47 sharedstatedir = @sharedstatedir@
48 localstatedir = @localstatedir@
50 includedir = @includedir@
51 oldincludedir = @oldincludedir@
54 man1dir = $(mandir)/man1
55 man2dir = $(mandir)/man2
56 man3dir = $(mandir)/man3
57 man4dir = $(mandir)/man4
58 man5dir = $(mandir)/man5
59 man6dir = $(mandir)/man6
60 man7dir = $(mandir)/man7
61 man8dir = $(mandir)/man8
62 man9dir = $(mandir)/man9
65 INSTALL_PROGRAM = @INSTALL_PROGRAM@
66 INSTALL_SCRIPT = @INSTALL_SCRIPT@
67 INSTALL_DATA = @INSTALL_DATA@
71 # -------------------------------------------------
72 # Miscellaneous non-standard autoconf-set variables
73 # -------------------------------------------------
75 # The gcc driver likes to know the arguments it was configured with.
76 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
79 build_tooldir = @build_tooldir@
83 # This is the name of the environment variable used for the path to
85 RPATH_ENVVAR = @RPATH_ENVVAR@
87 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
89 SET_LIB_PATH = @SET_LIB_PATH@
91 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
92 # Some platforms don't like blank entries, so we remove duplicate,
93 # leading and trailing colons.
94 REALLY_SET_LIB_PATH = \
96 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
98 # This is the list of directories to be built for the build system.
99 BUILD_CONFIGDIRS = libiberty
100 # Build programs are put under this directory.
101 BUILD_SUBDIR = @build_subdir@
102 # This is set by the configure script to the arguments to use when configuring
103 # directories built for the build system.
104 BUILD_CONFIGARGS = @build_configargs@
106 # This is the list of variables to export in the environment when
107 # configuring any subdirectory. It must also be exported whenever
108 # recursing into a build directory in case that directory's Makefile
111 FLEX="$(FLEX)"; export FLEX; \
112 LEX="$(LEX)"; export LEX; \
113 BISON="$(BISON)"; export BISON; \
114 YACC="$(YACC)"; export YACC; \
115 M4="$(M4)"; export M4; \
116 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
118 # This is the list of variables to export in the environment when
119 # configuring subdirectories for the build system.
122 AR="$(AR_FOR_BUILD)"; export AR; \
123 AS="$(AS_FOR_BUILD)"; export AS; \
124 CC="$(CC_FOR_BUILD)"; export CC; \
125 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
126 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
127 CXX="$(CXX_FOR_BUILD)"; export CXX; \
128 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
129 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
130 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
131 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
132 LD="$(LD_FOR_BUILD)"; export LD; \
133 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
134 NM="$(NM_FOR_BUILD)"; export NM; \
135 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
136 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
138 # This is the list of directories to built for the host system.
139 SUBDIRS = @configdirs@
140 # This is set by the configure script to the arguments to use when configuring
141 # directories built for the host system.
142 HOST_CONFIGARGS = @host_configargs@
143 # Host programs are put under this directory, which is . except if building
145 HOST_SUBDIR = @host_subdir@
146 # This is the list of variables to export in the environment when
147 # configuring subdirectories for the host system.
150 CC="$(CC)"; export CC; \
151 CFLAGS="$(CFLAGS)"; export CFLAGS; \
152 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
153 CXX="$(CXX)"; export CXX; \
154 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
155 AR="$(AR)"; export AR; \
156 AS="$(AS)"; export AS; \
157 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
158 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
159 LD="$(LD)"; export LD; \
160 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
161 NM="$(NM)"; export NM; \
162 RANLIB="$(RANLIB)"; export RANLIB; \
163 WINDRES="$(WINDRES)"; export WINDRES; \
164 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
165 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
166 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
167 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
168 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
169 SET_GCC_LIB_PATH_CMD="@SET_GCC_LIB_PATH@"; export SET_GCC_LIB_PATH_CMD; \
172 # Similar, for later GCC stages.
173 STAGE_HOST_EXPORTS = \
175 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
176 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
177 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) \
178 $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
179 -B$$r/$(HOST_SUBDIR)/prev-gcc/ \
180 -B$(build_tooldir)/bin/"; export CC_FOR_BUILD;
182 # This is set by the configure script to the list of directories which
183 # should be built using the target tools.
184 TARGET_CONFIGDIRS = @target_configdirs@
185 # Target libraries are put under this directory:
186 TARGET_SUBDIR = @target_subdir@
187 # This is set by the configure script to the arguments to use when configuring
188 # directories built for the target.
189 TARGET_CONFIGARGS = @target_configargs@
190 # This is the list of variables to export in the environment when
191 # configuring subdirectories for the host system.
192 BASE_TARGET_EXPORTS = \
194 AR="$(AR_FOR_TARGET)"; export AR; \
195 AS="$(AS_FOR_TARGET)"; export AS; \
196 CC="$(CC_FOR_TARGET)"; export CC; \
197 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
198 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
199 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
200 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
201 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
202 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
203 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
204 LD="$(LD_FOR_TARGET)"; export LD; \
205 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
206 NM="$(NM_FOR_TARGET)"; export NM; \
207 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
208 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
209 SET_GCC_LIB_PATH_CMD="@SET_GCC_LIB_PATH@"; export SET_GCC_LIB_PATH_CMD; \
212 RAW_CXX_TARGET_EXPORTS = \
213 $(BASE_TARGET_EXPORTS) \
214 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
215 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
217 NORMAL_TARGET_EXPORTS = \
218 $(BASE_TARGET_EXPORTS) \
219 CXX="$(CXX_FOR_TARGET)"; export CXX;
222 HOST_GMPLIBS = @gmplibs@
223 HOST_GMPINC = @gmpinc@
225 # ----------------------------------------------
226 # Programs producing files for the BUILD machine
227 # ----------------------------------------------
229 SHELL = @config_shell@
231 # pwd command to use. Allow user to override default by setting PWDCMD in
232 # the environment to account for automounters. The make variable must not
233 # be called PWDCMD, otherwise the value set here is passed to make
234 # subprocesses and overrides the setting from the user's environment.
235 # Don't use PWD since it is a common shell environment variable and we
236 # don't want to corrupt it.
237 PWD_COMMAND = $${PWDCMD-pwd}
239 # compilers to use to create programs which must be run in the build
241 CC_FOR_BUILD = @CC_FOR_BUILD@
242 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
244 CXX_FOR_BUILD = $(CXX)
246 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
247 # here so that they can be overridden by Makefile fragments.
248 BUILD_PREFIX = @BUILD_PREFIX@
249 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
251 # Flags to pass to stage2 and later makes. They are defined
252 # here so that they can be overridden by Makefile fragments.
255 CONFIGURED_BISON = @CONFIGURED_BISON@
256 BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
257 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \
259 echo ${CONFIGURED_BISON} ; \
262 CONFIGURED_YACC = @CONFIGURED_YACC@
263 YACC = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
264 echo $$r/$(BUILD_SUBDIR)/bison/tests/bison -y ; \
265 elif [ -f $$r/$(BUILD_SUBDIR)/byacc/byacc ] ; then \
266 echo $$r/$(BUILD_SUBDIR)/byacc/byacc ; \
268 echo ${CONFIGURED_YACC} ; \
271 CONFIGURED_FLEX = @CONFIGURED_FLEX@
272 FLEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
273 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
274 else echo ${CONFIGURED_FLEX} ; fi`
276 CONFIGURED_LEX = @CONFIGURED_LEX@
277 LEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
278 then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
279 else echo ${CONFIGURED_LEX} ; fi`
281 CONFIGURED_M4 = @CONFIGURED_M4@
282 M4 = `if [ -f $$r/$(BUILD_SUBDIR)/m4/m4 ] ; \
283 then echo $$r/$(BUILD_SUBDIR)/m4/m4 ; \
284 else echo ${CONFIGURED_M4} ; fi`
286 # For an installed makeinfo, we require it to be from texinfo 4.2 or
287 # higher, else we use the "missing" dummy. We also pass the subdirectory
288 # makeinfo even if only the Makefile is there, because Texinfo builds its
289 # manual when made, and it requires its own version.
290 CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@
291 MAKEINFO = `if [ -f $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/Makefile ] ; \
292 then echo $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo ; \
293 else if (${CONFIGURED_MAKEINFO} --version \
294 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
295 then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
297 # This just becomes part of the MAKEINFO definition passed down to
298 # sub-makes. It lets flags be given on the command line while still
299 # using the makeinfo from the object tree.
300 # (Default to avoid splitting info files by setting the threshold high.)
301 MAKEINFOFLAGS = --split-size=5000000
303 # FIXME: expect may become a build tool?
304 EXPECT = `if [ -f $$r/$(HOST_SUBDIR)/expect/expect ] ; \
305 then echo $$r/$(HOST_SUBDIR)/expect/expect ; \
306 else echo expect ; fi`
308 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
309 then echo $$s/dejagnu/runtest ; \
310 else echo runtest ; fi`
312 # ---------------------------------------------
313 # Programs producing files for the HOST machine
314 # ---------------------------------------------
316 # This is the list of directories that may be needed in RPATH_ENVVAR
317 # so that programs built for the host machine work.
318 HOST_LIB_PATH = $$r/$(HOST_SUBDIR)/bfd:$$r/$(HOST_SUBDIR)/opcodes
327 LIBCFLAGS = $(CFLAGS)
330 CXXFLAGS = @CXXFLAGS@
331 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
346 # -----------------------------------------------
347 # Programs producing files for the TARGET machine
348 # -----------------------------------------------
350 # This is the list of directories that may be needed in RPATH_ENVVAR
351 # so that prorgams built for the target machine work.
352 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libmudflap/.libs
354 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
356 AR_FOR_TARGET=@AR_FOR_TARGET@
357 CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
358 USUAL_AR_FOR_TARGET = ` \
359 if [ -f $$r/$(HOST_SUBDIR)/binutils/ar ] ; then \
360 echo $$r/$(HOST_SUBDIR)/binutils/ar ; \
362 if [ '$(host)' = '$(target)' ] ; then \
365 echo $(CONFIGURED_AR_FOR_TARGET) ; \
369 AS_FOR_TARGET=@AS_FOR_TARGET@
370 CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
371 USUAL_AS_FOR_TARGET = ` \
372 if [ -f $$r/$(HOST_SUBDIR)/gas/as-new ] ; then \
373 echo $$r/$(HOST_SUBDIR)/gas/as-new ; \
374 elif [ -f $$r/$(HOST_SUBDIR)/gcc/xgcc ]; then \
375 $(CC_FOR_TARGET) -print-prog-name=as ; \
377 if [ '$(host)' = '$(target)' ] ; then \
380 echo $(CONFIGURED_AS_FOR_TARGET) ; \
384 CC_FOR_TARGET = @CC_FOR_TARGET@
385 # During gcc bootstrap, if we use some random cc for stage1 then
386 # CFLAGS will be just -g. We want to ensure that TARGET libraries
387 # (which we know are built with gcc) are built with optimizations so
388 # prepend -O2 when setting CFLAGS_FOR_TARGET.
389 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
390 # If GCC_FOR_TARGET is not overriden on the command line, then this
391 # variable is passed down to the gcc Makefile, where it is used to
392 # build libgcc2.a. We define it here so that it can itself be
393 # overridden on the command line.
394 GCC_FOR_TARGET=@GCC_FOR_TARGET@
395 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) \
396 $$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/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/$(HOST_SUBDIR)/binutils/dlltool ] ; then \
410 echo $$r/$(HOST_SUBDIR)/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/$(HOST_SUBDIR)/ld/ld-new ] ; then \
426 echo $$r/$(HOST_SUBDIR)/ld/ld-new ; \
427 elif [ -f $$r/$(HOST_SUBDIR)/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/$(HOST_SUBDIR)/binutils/nm-new ] ; then \
443 echo $$r/$(HOST_SUBDIR)/binutils/nm-new ; \
444 elif [ -f $$r/$(HOST_SUBDIR)/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/$(HOST_SUBDIR)/binutils/ranlib ] ; then \
458 echo $$r/$(HOST_SUBDIR)/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/$(HOST_SUBDIR)/binutils/windres ] ; then \
475 echo $$r/$(HOST_SUBDIR)/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 "localstatedir=$(localstatedir)" \
516 "oldincludedir=$(oldincludedir)" \
518 "sbindir=$(sbindir)" \
519 "sharedstatedir=$(sharedstatedir)" \
520 "sysconfdir=$(sysconfdir)" \
521 "tooldir=$(tooldir)" \
522 "build_tooldir=$(build_tooldir)" \
523 "target_alias=$(target_alias)" \
525 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
526 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
529 "INSTALL=$(INSTALL)" \
530 "INSTALL_DATA=$(INSTALL_DATA)" \
531 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
532 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
536 "RUNTEST=$(RUNTEST)" \
537 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
540 "AR_FLAGS=$(AR_FLAGS)" \
542 "CXXFLAGS=$(CXXFLAGS)" \
543 "LDFLAGS=$(LDFLAGS)" \
544 "LIBCFLAGS=$(LIBCFLAGS)" \
545 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
546 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
547 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
548 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
549 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
550 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
551 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
552 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
553 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
554 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
555 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
556 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
557 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
558 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
559 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
560 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
561 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
562 "CONFIG_SHELL=$(SHELL)" \
563 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
565 # For any flags above that may contain shell code that varies from one
566 # target library to another. When doing recursive invocations of the
567 # top-level Makefile, we don't want the outer make to evaluate them,
568 # so we pass these variables down unchanged. They must not contain
569 # single nor double quotes.
571 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
572 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
574 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS)
576 # Flags to pass down to most sub-makes, in which we're building with
577 # the host environment.
583 'DLLTOOL=$(DLLTOOL)' \
589 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
591 # Flags that are concerned with the location of the X11 include files
594 # NOTE: until the top-level is getting the values via autoconf, it only
595 # causes problems to have this top-level Makefile overriding the autoconf-set
596 # values in child directories. Only variables that don't conflict with
597 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
599 X11_FLAGS_TO_PASS = \
600 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
601 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
603 # Flags to pass down to makes which are built with the target environment.
604 # The double $ decreases the length of the command line; the variables
605 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
606 EXTRA_TARGET_FLAGS = \
607 'AR=$$(AR_FOR_TARGET)' \
608 'AS=$$(AS_FOR_TARGET)' \
609 'CC=$$(CC_FOR_TARGET)' \
610 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
611 'CXX=$$(CXX_FOR_TARGET)' \
612 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
613 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
614 'LD=$$(LD_FOR_TARGET)' \
615 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
616 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
617 'NM=$$(NM_FOR_TARGET)' \
618 'RANLIB=$$(RANLIB_FOR_TARGET)' \
619 'WINDRES=$$(WINDRES_FOR_TARGET)'
621 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
623 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
624 # unfortunately needs the native compiler and the target ar and
626 # If any variables are added here, they must be added to do-*, below.
627 # The BUILD_* variables are a special case, which are used for the gcc
628 # cross-building scheme.
630 'BUILD_PREFIX=$(BUILD_PREFIX)' \
631 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
632 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
633 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
634 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
635 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
636 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
637 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
638 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
639 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
640 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
641 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
642 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
644 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
646 .PHONY: configure-host
648 maybe-configure-ash \
649 maybe-configure-autoconf \
650 maybe-configure-automake \
651 maybe-configure-bash \
652 maybe-configure-bfd \
653 maybe-configure-opcodes \
654 maybe-configure-binutils \
655 maybe-configure-bison \
656 maybe-configure-byacc \
657 maybe-configure-bzip2 \
658 maybe-configure-dejagnu \
659 maybe-configure-diff \
660 maybe-configure-dosutils \
661 maybe-configure-etc \
662 maybe-configure-fastjar \
663 maybe-configure-fileutils \
664 maybe-configure-findutils \
665 maybe-configure-find \
666 maybe-configure-fixincludes \
667 maybe-configure-flex \
668 maybe-configure-gas \
669 maybe-configure-gcc \
670 maybe-configure-gawk \
671 maybe-configure-gettext \
672 maybe-configure-gnuserv \
673 maybe-configure-gprof \
674 maybe-configure-gzip \
675 maybe-configure-hello \
676 maybe-configure-indent \
677 maybe-configure-intl \
678 maybe-configure-tcl \
679 maybe-configure-itcl \
681 maybe-configure-libcpp \
682 maybe-configure-libgui \
683 maybe-configure-libiberty \
684 maybe-configure-libtool \
686 maybe-configure-make \
687 maybe-configure-mmalloc \
688 maybe-configure-patch \
689 maybe-configure-perl \
690 maybe-configure-prms \
691 maybe-configure-rcs \
692 maybe-configure-readline \
693 maybe-configure-release \
694 maybe-configure-recode \
695 maybe-configure-sed \
696 maybe-configure-send-pr \
697 maybe-configure-shellutils \
698 maybe-configure-sid \
699 maybe-configure-sim \
700 maybe-configure-tar \
701 maybe-configure-texinfo \
702 maybe-configure-textutils \
703 maybe-configure-time \
704 maybe-configure-uudecode \
705 maybe-configure-wdiff \
706 maybe-configure-zip \
707 maybe-configure-zlib \
708 maybe-configure-gdb \
709 maybe-configure-expect \
710 maybe-configure-guile \
712 maybe-configure-libtermcap \
713 maybe-configure-utils \
714 maybe-configure-gnattools
715 .PHONY: configure-target
717 maybe-configure-target-libstdc++-v3 \
718 maybe-configure-target-libmudflap \
719 maybe-configure-target-newlib \
720 maybe-configure-target-libgfortran \
721 maybe-configure-target-libobjc \
722 maybe-configure-target-libtermcap \
723 maybe-configure-target-winsup \
724 maybe-configure-target-libgloss \
725 maybe-configure-target-libiberty \
726 maybe-configure-target-gperf \
727 maybe-configure-target-examples \
728 maybe-configure-target-libffi \
729 maybe-configure-target-libjava \
730 maybe-configure-target-zlib \
731 maybe-configure-target-boehm-gc \
732 maybe-configure-target-qthreads \
733 maybe-configure-target-rda \
734 maybe-configure-target-libada
736 # The target built for a native non-bootstrap build.
738 all: unstage all-host all-target stage
742 maybe-all-build-libiberty \
743 maybe-all-build-bison \
744 maybe-all-build-byacc \
745 maybe-all-build-flex \
747 maybe-all-build-texinfo \
748 maybe-all-build-fixincludes
766 maybe-all-fileutils \
767 maybe-all-findutils \
769 maybe-all-fixincludes \
786 maybe-all-libiberty \
800 maybe-all-shellutils \
805 maybe-all-textutils \
815 maybe-all-libtermcap \
820 maybe-all-target-libstdc++-v3 \
821 maybe-all-target-libmudflap \
822 maybe-all-target-newlib \
823 maybe-all-target-libgfortran \
824 maybe-all-target-libobjc \
825 maybe-all-target-libtermcap \
826 maybe-all-target-winsup \
827 maybe-all-target-libgloss \
828 maybe-all-target-libiberty \
829 maybe-all-target-gperf \
830 maybe-all-target-examples \
831 maybe-all-target-libffi \
832 maybe-all-target-libjava \
833 maybe-all-target-zlib \
834 maybe-all-target-boehm-gc \
835 maybe-all-target-qthreads \
836 maybe-all-target-rda \
837 maybe-all-target-libada
839 # Do a target for all the subdirectories. A ``make do-X'' will do a
840 # ``make X'' in all subdirectories (because, in general, there is a
841 # dependency (below) of X upon do-X, a ``make X'' will also do this,
842 # but it may do additional work as well).
845 do-info: unstage info-host info-target stage
850 maybe-info-autoconf \
851 maybe-info-automake \
855 maybe-info-binutils \
861 maybe-info-dosutils \
864 maybe-info-fileutils \
865 maybe-info-findutils \
867 maybe-info-fixincludes \
884 maybe-info-libiberty \
893 maybe-info-readline \
898 maybe-info-shellutils \
903 maybe-info-textutils \
905 maybe-info-uudecode \
913 maybe-info-libtermcap \
919 maybe-info-target-libstdc++-v3 \
920 maybe-info-target-libmudflap \
921 maybe-info-target-newlib \
922 maybe-info-target-libgfortran \
923 maybe-info-target-libobjc \
924 maybe-info-target-libtermcap \
925 maybe-info-target-winsup \
926 maybe-info-target-libgloss \
927 maybe-info-target-libiberty \
928 maybe-info-target-gperf \
929 maybe-info-target-examples \
930 maybe-info-target-libffi \
931 maybe-info-target-libjava \
932 maybe-info-target-zlib \
933 maybe-info-target-boehm-gc \
934 maybe-info-target-qthreads \
935 maybe-info-target-rda \
936 maybe-info-target-libada
939 do-dvi: unstage dvi-host dvi-target stage
958 maybe-dvi-fileutils \
959 maybe-dvi-findutils \
961 maybe-dvi-fixincludes \
978 maybe-dvi-libiberty \
992 maybe-dvi-shellutils \
997 maybe-dvi-textutils \
1007 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 \
1103 maybe-html-gnattools
1107 maybe-html-target-libstdc++-v3 \
1108 maybe-html-target-libmudflap \
1109 maybe-html-target-newlib \
1110 maybe-html-target-libgfortran \
1111 maybe-html-target-libobjc \
1112 maybe-html-target-libtermcap \
1113 maybe-html-target-winsup \
1114 maybe-html-target-libgloss \
1115 maybe-html-target-libiberty \
1116 maybe-html-target-gperf \
1117 maybe-html-target-examples \
1118 maybe-html-target-libffi \
1119 maybe-html-target-libjava \
1120 maybe-html-target-zlib \
1121 maybe-html-target-boehm-gc \
1122 maybe-html-target-qthreads \
1123 maybe-html-target-rda \
1124 maybe-html-target-libada
1127 do-TAGS: unstage TAGS-host TAGS-target stage
1132 maybe-TAGS-autoconf \
1133 maybe-TAGS-automake \
1136 maybe-TAGS-opcodes \
1137 maybe-TAGS-binutils \
1141 maybe-TAGS-dejagnu \
1143 maybe-TAGS-dosutils \
1145 maybe-TAGS-fastjar \
1146 maybe-TAGS-fileutils \
1147 maybe-TAGS-findutils \
1149 maybe-TAGS-fixincludes \
1154 maybe-TAGS-gettext \
1155 maybe-TAGS-gnuserv \
1166 maybe-TAGS-libiberty \
1167 maybe-TAGS-libtool \
1170 maybe-TAGS-mmalloc \
1175 maybe-TAGS-readline \
1176 maybe-TAGS-release \
1179 maybe-TAGS-send-pr \
1180 maybe-TAGS-shellutils \
1184 maybe-TAGS-texinfo \
1185 maybe-TAGS-textutils \
1187 maybe-TAGS-uudecode \
1195 maybe-TAGS-libtermcap \
1197 maybe-TAGS-gnattools
1201 maybe-TAGS-target-libstdc++-v3 \
1202 maybe-TAGS-target-libmudflap \
1203 maybe-TAGS-target-newlib \
1204 maybe-TAGS-target-libgfortran \
1205 maybe-TAGS-target-libobjc \
1206 maybe-TAGS-target-libtermcap \
1207 maybe-TAGS-target-winsup \
1208 maybe-TAGS-target-libgloss \
1209 maybe-TAGS-target-libiberty \
1210 maybe-TAGS-target-gperf \
1211 maybe-TAGS-target-examples \
1212 maybe-TAGS-target-libffi \
1213 maybe-TAGS-target-libjava \
1214 maybe-TAGS-target-zlib \
1215 maybe-TAGS-target-boehm-gc \
1216 maybe-TAGS-target-qthreads \
1217 maybe-TAGS-target-rda \
1218 maybe-TAGS-target-libada
1220 .PHONY: do-install-info
1221 do-install-info: unstage install-info-host install-info-target stage
1223 .PHONY: install-info-host
1224 install-info-host: \
1225 maybe-install-info-ash \
1226 maybe-install-info-autoconf \
1227 maybe-install-info-automake \
1228 maybe-install-info-bash \
1229 maybe-install-info-bfd \
1230 maybe-install-info-opcodes \
1231 maybe-install-info-binutils \
1232 maybe-install-info-bison \
1233 maybe-install-info-byacc \
1234 maybe-install-info-bzip2 \
1235 maybe-install-info-dejagnu \
1236 maybe-install-info-diff \
1237 maybe-install-info-dosutils \
1238 maybe-install-info-etc \
1239 maybe-install-info-fastjar \
1240 maybe-install-info-fileutils \
1241 maybe-install-info-findutils \
1242 maybe-install-info-find \
1243 maybe-install-info-fixincludes \
1244 maybe-install-info-flex \
1245 maybe-install-info-gas \
1246 maybe-install-info-gcc \
1247 maybe-install-info-gawk \
1248 maybe-install-info-gettext \
1249 maybe-install-info-gnuserv \
1250 maybe-install-info-gprof \
1251 maybe-install-info-gzip \
1252 maybe-install-info-hello \
1253 maybe-install-info-indent \
1254 maybe-install-info-intl \
1255 maybe-install-info-tcl \
1256 maybe-install-info-itcl \
1257 maybe-install-info-ld \
1258 maybe-install-info-libcpp \
1259 maybe-install-info-libgui \
1260 maybe-install-info-libiberty \
1261 maybe-install-info-libtool \
1262 maybe-install-info-m4 \
1263 maybe-install-info-make \
1264 maybe-install-info-mmalloc \
1265 maybe-install-info-patch \
1266 maybe-install-info-perl \
1267 maybe-install-info-prms \
1268 maybe-install-info-rcs \
1269 maybe-install-info-readline \
1270 maybe-install-info-release \
1271 maybe-install-info-recode \
1272 maybe-install-info-sed \
1273 maybe-install-info-send-pr \
1274 maybe-install-info-shellutils \
1275 maybe-install-info-sid \
1276 maybe-install-info-sim \
1277 maybe-install-info-tar \
1278 maybe-install-info-texinfo \
1279 maybe-install-info-textutils \
1280 maybe-install-info-time \
1281 maybe-install-info-uudecode \
1282 maybe-install-info-wdiff \
1283 maybe-install-info-zip \
1284 maybe-install-info-zlib \
1285 maybe-install-info-gdb \
1286 maybe-install-info-expect \
1287 maybe-install-info-guile \
1288 maybe-install-info-tk \
1289 maybe-install-info-libtermcap \
1290 maybe-install-info-utils \
1291 maybe-install-info-gnattools
1293 .PHONY: install-info-target
1294 install-info-target: \
1295 maybe-install-info-target-libstdc++-v3 \
1296 maybe-install-info-target-libmudflap \
1297 maybe-install-info-target-newlib \
1298 maybe-install-info-target-libgfortran \
1299 maybe-install-info-target-libobjc \
1300 maybe-install-info-target-libtermcap \
1301 maybe-install-info-target-winsup \
1302 maybe-install-info-target-libgloss \
1303 maybe-install-info-target-libiberty \
1304 maybe-install-info-target-gperf \
1305 maybe-install-info-target-examples \
1306 maybe-install-info-target-libffi \
1307 maybe-install-info-target-libjava \
1308 maybe-install-info-target-zlib \
1309 maybe-install-info-target-boehm-gc \
1310 maybe-install-info-target-qthreads \
1311 maybe-install-info-target-rda \
1312 maybe-install-info-target-libada
1314 .PHONY: do-installcheck
1315 do-installcheck: unstage installcheck-host installcheck-target stage
1317 .PHONY: installcheck-host
1318 installcheck-host: \
1319 maybe-installcheck-ash \
1320 maybe-installcheck-autoconf \
1321 maybe-installcheck-automake \
1322 maybe-installcheck-bash \
1323 maybe-installcheck-bfd \
1324 maybe-installcheck-opcodes \
1325 maybe-installcheck-binutils \
1326 maybe-installcheck-bison \
1327 maybe-installcheck-byacc \
1328 maybe-installcheck-bzip2 \
1329 maybe-installcheck-dejagnu \
1330 maybe-installcheck-diff \
1331 maybe-installcheck-dosutils \
1332 maybe-installcheck-etc \
1333 maybe-installcheck-fastjar \
1334 maybe-installcheck-fileutils \
1335 maybe-installcheck-findutils \
1336 maybe-installcheck-find \
1337 maybe-installcheck-fixincludes \
1338 maybe-installcheck-flex \
1339 maybe-installcheck-gas \
1340 maybe-installcheck-gcc \
1341 maybe-installcheck-gawk \
1342 maybe-installcheck-gettext \
1343 maybe-installcheck-gnuserv \
1344 maybe-installcheck-gprof \
1345 maybe-installcheck-gzip \
1346 maybe-installcheck-hello \
1347 maybe-installcheck-indent \
1348 maybe-installcheck-intl \
1349 maybe-installcheck-tcl \
1350 maybe-installcheck-itcl \
1351 maybe-installcheck-ld \
1352 maybe-installcheck-libcpp \
1353 maybe-installcheck-libgui \
1354 maybe-installcheck-libiberty \
1355 maybe-installcheck-libtool \
1356 maybe-installcheck-m4 \
1357 maybe-installcheck-make \
1358 maybe-installcheck-mmalloc \
1359 maybe-installcheck-patch \
1360 maybe-installcheck-perl \
1361 maybe-installcheck-prms \
1362 maybe-installcheck-rcs \
1363 maybe-installcheck-readline \
1364 maybe-installcheck-release \
1365 maybe-installcheck-recode \
1366 maybe-installcheck-sed \
1367 maybe-installcheck-send-pr \
1368 maybe-installcheck-shellutils \
1369 maybe-installcheck-sid \
1370 maybe-installcheck-sim \
1371 maybe-installcheck-tar \
1372 maybe-installcheck-texinfo \
1373 maybe-installcheck-textutils \
1374 maybe-installcheck-time \
1375 maybe-installcheck-uudecode \
1376 maybe-installcheck-wdiff \
1377 maybe-installcheck-zip \
1378 maybe-installcheck-zlib \
1379 maybe-installcheck-gdb \
1380 maybe-installcheck-expect \
1381 maybe-installcheck-guile \
1382 maybe-installcheck-tk \
1383 maybe-installcheck-libtermcap \
1384 maybe-installcheck-utils \
1385 maybe-installcheck-gnattools
1387 .PHONY: installcheck-target
1388 installcheck-target: \
1389 maybe-installcheck-target-libstdc++-v3 \
1390 maybe-installcheck-target-libmudflap \
1391 maybe-installcheck-target-newlib \
1392 maybe-installcheck-target-libgfortran \
1393 maybe-installcheck-target-libobjc \
1394 maybe-installcheck-target-libtermcap \
1395 maybe-installcheck-target-winsup \
1396 maybe-installcheck-target-libgloss \
1397 maybe-installcheck-target-libiberty \
1398 maybe-installcheck-target-gperf \
1399 maybe-installcheck-target-examples \
1400 maybe-installcheck-target-libffi \
1401 maybe-installcheck-target-libjava \
1402 maybe-installcheck-target-zlib \
1403 maybe-installcheck-target-boehm-gc \
1404 maybe-installcheck-target-qthreads \
1405 maybe-installcheck-target-rda \
1406 maybe-installcheck-target-libada
1408 .PHONY: do-mostlyclean
1409 do-mostlyclean: unstage mostlyclean-host mostlyclean-target stage
1411 .PHONY: mostlyclean-host
1413 maybe-mostlyclean-ash \
1414 maybe-mostlyclean-autoconf \
1415 maybe-mostlyclean-automake \
1416 maybe-mostlyclean-bash \
1417 maybe-mostlyclean-bfd \
1418 maybe-mostlyclean-opcodes \
1419 maybe-mostlyclean-binutils \
1420 maybe-mostlyclean-bison \
1421 maybe-mostlyclean-byacc \
1422 maybe-mostlyclean-bzip2 \
1423 maybe-mostlyclean-dejagnu \
1424 maybe-mostlyclean-diff \
1425 maybe-mostlyclean-dosutils \
1426 maybe-mostlyclean-etc \
1427 maybe-mostlyclean-fastjar \
1428 maybe-mostlyclean-fileutils \
1429 maybe-mostlyclean-findutils \
1430 maybe-mostlyclean-find \
1431 maybe-mostlyclean-fixincludes \
1432 maybe-mostlyclean-flex \
1433 maybe-mostlyclean-gas \
1434 maybe-mostlyclean-gcc \
1435 maybe-mostlyclean-gawk \
1436 maybe-mostlyclean-gettext \
1437 maybe-mostlyclean-gnuserv \
1438 maybe-mostlyclean-gprof \
1439 maybe-mostlyclean-gzip \
1440 maybe-mostlyclean-hello \
1441 maybe-mostlyclean-indent \
1442 maybe-mostlyclean-intl \
1443 maybe-mostlyclean-tcl \
1444 maybe-mostlyclean-itcl \
1445 maybe-mostlyclean-ld \
1446 maybe-mostlyclean-libcpp \
1447 maybe-mostlyclean-libgui \
1448 maybe-mostlyclean-libiberty \
1449 maybe-mostlyclean-libtool \
1450 maybe-mostlyclean-m4 \
1451 maybe-mostlyclean-make \
1452 maybe-mostlyclean-mmalloc \
1453 maybe-mostlyclean-patch \
1454 maybe-mostlyclean-perl \
1455 maybe-mostlyclean-prms \
1456 maybe-mostlyclean-rcs \
1457 maybe-mostlyclean-readline \
1458 maybe-mostlyclean-release \
1459 maybe-mostlyclean-recode \
1460 maybe-mostlyclean-sed \
1461 maybe-mostlyclean-send-pr \
1462 maybe-mostlyclean-shellutils \
1463 maybe-mostlyclean-sid \
1464 maybe-mostlyclean-sim \
1465 maybe-mostlyclean-tar \
1466 maybe-mostlyclean-texinfo \
1467 maybe-mostlyclean-textutils \
1468 maybe-mostlyclean-time \
1469 maybe-mostlyclean-uudecode \
1470 maybe-mostlyclean-wdiff \
1471 maybe-mostlyclean-zip \
1472 maybe-mostlyclean-zlib \
1473 maybe-mostlyclean-gdb \
1474 maybe-mostlyclean-expect \
1475 maybe-mostlyclean-guile \
1476 maybe-mostlyclean-tk \
1477 maybe-mostlyclean-libtermcap \
1478 maybe-mostlyclean-utils \
1479 maybe-mostlyclean-gnattools
1481 .PHONY: mostlyclean-target
1482 mostlyclean-target: \
1483 maybe-mostlyclean-target-libstdc++-v3 \
1484 maybe-mostlyclean-target-libmudflap \
1485 maybe-mostlyclean-target-newlib \
1486 maybe-mostlyclean-target-libgfortran \
1487 maybe-mostlyclean-target-libobjc \
1488 maybe-mostlyclean-target-libtermcap \
1489 maybe-mostlyclean-target-winsup \
1490 maybe-mostlyclean-target-libgloss \
1491 maybe-mostlyclean-target-libiberty \
1492 maybe-mostlyclean-target-gperf \
1493 maybe-mostlyclean-target-examples \
1494 maybe-mostlyclean-target-libffi \
1495 maybe-mostlyclean-target-libjava \
1496 maybe-mostlyclean-target-zlib \
1497 maybe-mostlyclean-target-boehm-gc \
1498 maybe-mostlyclean-target-qthreads \
1499 maybe-mostlyclean-target-rda \
1500 maybe-mostlyclean-target-libada
1503 do-clean: unstage clean-host clean-target stage
1508 maybe-clean-autoconf \
1509 maybe-clean-automake \
1512 maybe-clean-opcodes \
1513 maybe-clean-binutils \
1517 maybe-clean-dejagnu \
1519 maybe-clean-dosutils \
1521 maybe-clean-fastjar \
1522 maybe-clean-fileutils \
1523 maybe-clean-findutils \
1525 maybe-clean-fixincludes \
1530 maybe-clean-gettext \
1531 maybe-clean-gnuserv \
1535 maybe-clean-indent \
1540 maybe-clean-libcpp \
1541 maybe-clean-libgui \
1542 maybe-clean-libiberty \
1543 maybe-clean-libtool \
1546 maybe-clean-mmalloc \
1551 maybe-clean-readline \
1552 maybe-clean-release \
1553 maybe-clean-recode \
1555 maybe-clean-send-pr \
1556 maybe-clean-shellutils \
1560 maybe-clean-texinfo \
1561 maybe-clean-textutils \
1563 maybe-clean-uudecode \
1568 maybe-clean-expect \
1571 maybe-clean-libtermcap \
1573 maybe-clean-gnattools
1575 .PHONY: clean-target
1577 maybe-clean-target-libstdc++-v3 \
1578 maybe-clean-target-libmudflap \
1579 maybe-clean-target-newlib \
1580 maybe-clean-target-libgfortran \
1581 maybe-clean-target-libobjc \
1582 maybe-clean-target-libtermcap \
1583 maybe-clean-target-winsup \
1584 maybe-clean-target-libgloss \
1585 maybe-clean-target-libiberty \
1586 maybe-clean-target-gperf \
1587 maybe-clean-target-examples \
1588 maybe-clean-target-libffi \
1589 maybe-clean-target-libjava \
1590 maybe-clean-target-zlib \
1591 maybe-clean-target-boehm-gc \
1592 maybe-clean-target-qthreads \
1593 maybe-clean-target-rda \
1594 maybe-clean-target-libada
1596 .PHONY: do-distclean
1597 do-distclean: unstage distclean-host distclean-target stage
1599 .PHONY: distclean-host
1601 maybe-distclean-ash \
1602 maybe-distclean-autoconf \
1603 maybe-distclean-automake \
1604 maybe-distclean-bash \
1605 maybe-distclean-bfd \
1606 maybe-distclean-opcodes \
1607 maybe-distclean-binutils \
1608 maybe-distclean-bison \
1609 maybe-distclean-byacc \
1610 maybe-distclean-bzip2 \
1611 maybe-distclean-dejagnu \
1612 maybe-distclean-diff \
1613 maybe-distclean-dosutils \
1614 maybe-distclean-etc \
1615 maybe-distclean-fastjar \
1616 maybe-distclean-fileutils \
1617 maybe-distclean-findutils \
1618 maybe-distclean-find \
1619 maybe-distclean-fixincludes \
1620 maybe-distclean-flex \
1621 maybe-distclean-gas \
1622 maybe-distclean-gcc \
1623 maybe-distclean-gawk \
1624 maybe-distclean-gettext \
1625 maybe-distclean-gnuserv \
1626 maybe-distclean-gprof \
1627 maybe-distclean-gzip \
1628 maybe-distclean-hello \
1629 maybe-distclean-indent \
1630 maybe-distclean-intl \
1631 maybe-distclean-tcl \
1632 maybe-distclean-itcl \
1633 maybe-distclean-ld \
1634 maybe-distclean-libcpp \
1635 maybe-distclean-libgui \
1636 maybe-distclean-libiberty \
1637 maybe-distclean-libtool \
1638 maybe-distclean-m4 \
1639 maybe-distclean-make \
1640 maybe-distclean-mmalloc \
1641 maybe-distclean-patch \
1642 maybe-distclean-perl \
1643 maybe-distclean-prms \
1644 maybe-distclean-rcs \
1645 maybe-distclean-readline \
1646 maybe-distclean-release \
1647 maybe-distclean-recode \
1648 maybe-distclean-sed \
1649 maybe-distclean-send-pr \
1650 maybe-distclean-shellutils \
1651 maybe-distclean-sid \
1652 maybe-distclean-sim \
1653 maybe-distclean-tar \
1654 maybe-distclean-texinfo \
1655 maybe-distclean-textutils \
1656 maybe-distclean-time \
1657 maybe-distclean-uudecode \
1658 maybe-distclean-wdiff \
1659 maybe-distclean-zip \
1660 maybe-distclean-zlib \
1661 maybe-distclean-gdb \
1662 maybe-distclean-expect \
1663 maybe-distclean-guile \
1664 maybe-distclean-tk \
1665 maybe-distclean-libtermcap \
1666 maybe-distclean-utils \
1667 maybe-distclean-gnattools
1669 .PHONY: distclean-target
1671 maybe-distclean-target-libstdc++-v3 \
1672 maybe-distclean-target-libmudflap \
1673 maybe-distclean-target-newlib \
1674 maybe-distclean-target-libgfortran \
1675 maybe-distclean-target-libobjc \
1676 maybe-distclean-target-libtermcap \
1677 maybe-distclean-target-winsup \
1678 maybe-distclean-target-libgloss \
1679 maybe-distclean-target-libiberty \
1680 maybe-distclean-target-gperf \
1681 maybe-distclean-target-examples \
1682 maybe-distclean-target-libffi \
1683 maybe-distclean-target-libjava \
1684 maybe-distclean-target-zlib \
1685 maybe-distclean-target-boehm-gc \
1686 maybe-distclean-target-qthreads \
1687 maybe-distclean-target-rda \
1688 maybe-distclean-target-libada
1690 .PHONY: do-maintainer-clean
1691 do-maintainer-clean: unstage maintainer-clean-host maintainer-clean-target stage
1693 .PHONY: maintainer-clean-host
1694 maintainer-clean-host: \
1695 maybe-maintainer-clean-ash \
1696 maybe-maintainer-clean-autoconf \
1697 maybe-maintainer-clean-automake \
1698 maybe-maintainer-clean-bash \
1699 maybe-maintainer-clean-bfd \
1700 maybe-maintainer-clean-opcodes \
1701 maybe-maintainer-clean-binutils \
1702 maybe-maintainer-clean-bison \
1703 maybe-maintainer-clean-byacc \
1704 maybe-maintainer-clean-bzip2 \
1705 maybe-maintainer-clean-dejagnu \
1706 maybe-maintainer-clean-diff \
1707 maybe-maintainer-clean-dosutils \
1708 maybe-maintainer-clean-etc \
1709 maybe-maintainer-clean-fastjar \
1710 maybe-maintainer-clean-fileutils \
1711 maybe-maintainer-clean-findutils \
1712 maybe-maintainer-clean-find \
1713 maybe-maintainer-clean-fixincludes \
1714 maybe-maintainer-clean-flex \
1715 maybe-maintainer-clean-gas \
1716 maybe-maintainer-clean-gcc \
1717 maybe-maintainer-clean-gawk \
1718 maybe-maintainer-clean-gettext \
1719 maybe-maintainer-clean-gnuserv \
1720 maybe-maintainer-clean-gprof \
1721 maybe-maintainer-clean-gzip \
1722 maybe-maintainer-clean-hello \
1723 maybe-maintainer-clean-indent \
1724 maybe-maintainer-clean-intl \
1725 maybe-maintainer-clean-tcl \
1726 maybe-maintainer-clean-itcl \
1727 maybe-maintainer-clean-ld \
1728 maybe-maintainer-clean-libcpp \
1729 maybe-maintainer-clean-libgui \
1730 maybe-maintainer-clean-libiberty \
1731 maybe-maintainer-clean-libtool \
1732 maybe-maintainer-clean-m4 \
1733 maybe-maintainer-clean-make \
1734 maybe-maintainer-clean-mmalloc \
1735 maybe-maintainer-clean-patch \
1736 maybe-maintainer-clean-perl \
1737 maybe-maintainer-clean-prms \
1738 maybe-maintainer-clean-rcs \
1739 maybe-maintainer-clean-readline \
1740 maybe-maintainer-clean-release \
1741 maybe-maintainer-clean-recode \
1742 maybe-maintainer-clean-sed \
1743 maybe-maintainer-clean-send-pr \
1744 maybe-maintainer-clean-shellutils \
1745 maybe-maintainer-clean-sid \
1746 maybe-maintainer-clean-sim \
1747 maybe-maintainer-clean-tar \
1748 maybe-maintainer-clean-texinfo \
1749 maybe-maintainer-clean-textutils \
1750 maybe-maintainer-clean-time \
1751 maybe-maintainer-clean-uudecode \
1752 maybe-maintainer-clean-wdiff \
1753 maybe-maintainer-clean-zip \
1754 maybe-maintainer-clean-zlib \
1755 maybe-maintainer-clean-gdb \
1756 maybe-maintainer-clean-expect \
1757 maybe-maintainer-clean-guile \
1758 maybe-maintainer-clean-tk \
1759 maybe-maintainer-clean-libtermcap \
1760 maybe-maintainer-clean-utils \
1761 maybe-maintainer-clean-gnattools
1763 .PHONY: maintainer-clean-target
1764 maintainer-clean-target: \
1765 maybe-maintainer-clean-target-libstdc++-v3 \
1766 maybe-maintainer-clean-target-libmudflap \
1767 maybe-maintainer-clean-target-newlib \
1768 maybe-maintainer-clean-target-libgfortran \
1769 maybe-maintainer-clean-target-libobjc \
1770 maybe-maintainer-clean-target-libtermcap \
1771 maybe-maintainer-clean-target-winsup \
1772 maybe-maintainer-clean-target-libgloss \
1773 maybe-maintainer-clean-target-libiberty \
1774 maybe-maintainer-clean-target-gperf \
1775 maybe-maintainer-clean-target-examples \
1776 maybe-maintainer-clean-target-libffi \
1777 maybe-maintainer-clean-target-libjava \
1778 maybe-maintainer-clean-target-zlib \
1779 maybe-maintainer-clean-target-boehm-gc \
1780 maybe-maintainer-clean-target-qthreads \
1781 maybe-maintainer-clean-target-rda \
1782 maybe-maintainer-clean-target-libada
1785 # Here are the targets which correspond to the do-X targets.
1787 .PHONY: info installcheck dvi html install-info
1788 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1789 .PHONY: local-clean local-distclean local-maintainer-clean
1791 installcheck: do-installcheck
1795 # Make sure makeinfo is built before we do a `make info', if we're
1796 # in fact building texinfo.
1797 do-info: maybe-all-texinfo
1799 install-info: do-install-info dir.info
1800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1801 if [ -f dir.info ] ; then \
1802 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1806 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1809 -rm -f Makefile config.status config.cache mh-frag mt-frag
1810 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1811 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1812 rm -rf $(TARGET_SUBDIR); \
1814 -rm -rf $(BUILD_SUBDIR)
1815 -if [ "$(HOST_SUBDIR)" != "." ]; then \
1816 rm -rf $(HOST_SUBDIR); \
1818 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1819 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1820 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1821 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1822 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1824 local-maintainer-clean:
1825 @echo "This command is intended for maintainers to use;"
1826 @echo "it deletes files that may require special tools to rebuild."
1828 clean: do-clean local-clean
1829 mostlyclean: do-mostlyclean local-clean
1830 distclean: do-distclean local-clean local-distclean
1831 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1832 maintainer-clean: local-distclean
1833 realclean: maintainer-clean
1835 # Extra dependency for clean-target, owing to the mixed nature of gcc
1836 clean-target: clean-target-libgcc
1837 clean-target-libgcc:
1838 test ! -d gcc/libgcc || \
1839 (cd gcc/libgcc && find . -type d -print) | \
1840 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1842 -rm -f gcc/stmp-dirs
1846 .PHONY: check do-check
1849 # Only include modules actually being configured and built.
1852 maybe-check-autoconf \
1853 maybe-check-automake \
1856 maybe-check-opcodes \
1857 maybe-check-binutils \
1861 maybe-check-dejagnu \
1863 maybe-check-dosutils \
1865 maybe-check-fastjar \
1866 maybe-check-fileutils \
1867 maybe-check-findutils \
1869 maybe-check-fixincludes \
1874 maybe-check-gettext \
1875 maybe-check-gnuserv \
1879 maybe-check-indent \
1884 maybe-check-libcpp \
1885 maybe-check-libgui \
1886 maybe-check-libiberty \
1887 maybe-check-libtool \
1890 maybe-check-mmalloc \
1895 maybe-check-readline \
1896 maybe-check-release \
1897 maybe-check-recode \
1899 maybe-check-send-pr \
1900 maybe-check-shellutils \
1904 maybe-check-texinfo \
1905 maybe-check-textutils \
1907 maybe-check-uudecode \
1912 maybe-check-expect \
1915 maybe-check-libtermcap \
1917 maybe-check-gnattools \
1918 maybe-check-target-libstdc++-v3 \
1919 maybe-check-target-libmudflap \
1920 maybe-check-target-newlib \
1921 maybe-check-target-libgfortran \
1922 maybe-check-target-libobjc \
1923 maybe-check-target-libtermcap \
1924 maybe-check-target-winsup \
1925 maybe-check-target-libgloss \
1926 maybe-check-target-libiberty \
1927 maybe-check-target-gperf \
1928 maybe-check-target-examples \
1929 maybe-check-target-libffi \
1930 maybe-check-target-libjava \
1931 maybe-check-target-zlib \
1932 maybe-check-target-boehm-gc \
1933 maybe-check-target-qthreads \
1934 maybe-check-target-rda \
1935 maybe-check-target-libada stage
1937 # Automated reporting of test results.
1939 warning.log: build.log
1940 $(srcdir)/contrib/warn_summary build.log > $@
1943 if test x'$(BOOT_CFLAGS)' != x''; then \
1944 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1946 $(srcdir)/contrib/test_summary -t >$@
1948 echo If you really want to send e-mail, run ./$@ now
1950 mail-report-with-warnings.log: warning.log
1951 if test x'$(BOOT_CFLAGS)' != x''; then \
1952 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1954 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1956 echo If you really want to send e-mail, run ./$@ now
1958 # Installation targets.
1960 .PHONY: install uninstall
1961 install: installdirs install-host install-target
1963 .PHONY: install-host-nogcc
1964 install-host-nogcc: \
1966 maybe-install-autoconf \
1967 maybe-install-automake \
1968 maybe-install-bash \
1970 maybe-install-opcodes \
1971 maybe-install-binutils \
1972 maybe-install-bison \
1973 maybe-install-byacc \
1974 maybe-install-bzip2 \
1975 maybe-install-dejagnu \
1976 maybe-install-diff \
1977 maybe-install-dosutils \
1979 maybe-install-fastjar \
1980 maybe-install-fileutils \
1981 maybe-install-findutils \
1982 maybe-install-find \
1983 maybe-install-fixincludes \
1984 maybe-install-flex \
1986 maybe-install-gawk \
1987 maybe-install-gettext \
1988 maybe-install-gnuserv \
1989 maybe-install-gprof \
1990 maybe-install-gzip \
1991 maybe-install-hello \
1992 maybe-install-indent \
1993 maybe-install-intl \
1995 maybe-install-itcl \
1997 maybe-install-libcpp \
1998 maybe-install-libgui \
1999 maybe-install-libiberty \
2000 maybe-install-libtool \
2002 maybe-install-make \
2003 maybe-install-mmalloc \
2004 maybe-install-patch \
2005 maybe-install-perl \
2006 maybe-install-prms \
2008 maybe-install-readline \
2009 maybe-install-release \
2010 maybe-install-recode \
2012 maybe-install-send-pr \
2013 maybe-install-shellutils \
2017 maybe-install-texinfo \
2018 maybe-install-textutils \
2019 maybe-install-time \
2020 maybe-install-uudecode \
2021 maybe-install-wdiff \
2023 maybe-install-zlib \
2025 maybe-install-expect \
2026 maybe-install-guile \
2028 maybe-install-libtermcap \
2029 maybe-install-utils \
2030 maybe-install-gnattools
2032 .PHONY: install-host
2035 maybe-install-autoconf \
2036 maybe-install-automake \
2037 maybe-install-bash \
2039 maybe-install-opcodes \
2040 maybe-install-binutils \
2041 maybe-install-bison \
2042 maybe-install-byacc \
2043 maybe-install-bzip2 \
2044 maybe-install-dejagnu \
2045 maybe-install-diff \
2046 maybe-install-dosutils \
2048 maybe-install-fastjar \
2049 maybe-install-fileutils \
2050 maybe-install-findutils \
2051 maybe-install-find \
2052 maybe-install-fixincludes \
2053 maybe-install-flex \
2056 maybe-install-gawk \
2057 maybe-install-gettext \
2058 maybe-install-gnuserv \
2059 maybe-install-gprof \
2060 maybe-install-gzip \
2061 maybe-install-hello \
2062 maybe-install-indent \
2063 maybe-install-intl \
2065 maybe-install-itcl \
2067 maybe-install-libcpp \
2068 maybe-install-libgui \
2069 maybe-install-libiberty \
2070 maybe-install-libtool \
2072 maybe-install-make \
2073 maybe-install-mmalloc \
2074 maybe-install-patch \
2075 maybe-install-perl \
2076 maybe-install-prms \
2078 maybe-install-readline \
2079 maybe-install-release \
2080 maybe-install-recode \
2082 maybe-install-send-pr \
2083 maybe-install-shellutils \
2087 maybe-install-texinfo \
2088 maybe-install-textutils \
2089 maybe-install-time \
2090 maybe-install-uudecode \
2091 maybe-install-wdiff \
2093 maybe-install-zlib \
2095 maybe-install-expect \
2096 maybe-install-guile \
2098 maybe-install-libtermcap \
2099 maybe-install-utils \
2100 maybe-install-gnattools
2102 .PHONY: install-target
2104 maybe-install-target-libstdc++-v3 \
2105 maybe-install-target-libmudflap \
2106 maybe-install-target-newlib \
2107 maybe-install-target-libgfortran \
2108 maybe-install-target-libobjc \
2109 maybe-install-target-libtermcap \
2110 maybe-install-target-winsup \
2111 maybe-install-target-libgloss \
2112 maybe-install-target-libiberty \
2113 maybe-install-target-gperf \
2114 maybe-install-target-examples \
2115 maybe-install-target-libffi \
2116 maybe-install-target-libjava \
2117 maybe-install-target-zlib \
2118 maybe-install-target-boehm-gc \
2119 maybe-install-target-qthreads \
2120 maybe-install-target-rda \
2121 maybe-install-target-libada
2124 @echo "the uninstall target is not supported in this tree"
2127 install.all: install-no-fixedincludes
2128 @if [ -f ./gcc/Makefile ] ; then \
2129 r=`${PWD_COMMAND}` ; export r ; \
2133 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2138 # install-no-fixedincludes is used because Cygnus can not distribute
2139 # the fixed header files.
2140 .PHONY: install-no-fixedincludes
2141 install-no-fixedincludes: installdirs install-host-nogcc \
2142 install-target gcc-no-fixedincludes
2144 ### other supporting targets
2147 $(DESTDIR)$(prefix) \
2148 $(DESTDIR)$(exec_prefix)
2150 installdirs: mkinstalldirs
2151 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2153 dir.info: do-install-info
2154 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2155 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2156 mv -f dir.info.new dir.info ; \
2161 @echo "Building a full distribution of this tree isn't done"
2162 @echo "via 'make dist'. Check out the etc/ subdirectory"
2166 # Right now this just builds TAGS in each subdirectory. emacs19 has the
2167 # ability to use several tags files at once, so there is probably no need
2168 # to combine them into one big TAGS file (like CVS 1.3 does). We could
2169 # (if we felt like it) have this Makefile write a piece of elisp which
2170 # the user could load to tell emacs19 where all the TAGS files we just
2174 # --------------------------------------
2175 # Modules which run on the build machine
2176 # --------------------------------------
2178 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
2179 maybe-configure-build-libiberty:
2181 maybe-configure-build-libiberty: configure-build-libiberty
2182 configure-build-libiberty:
2183 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2184 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
2185 r=`${PWD_COMMAND}`; export r; \
2186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2188 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2189 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2191 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2192 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2193 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2195 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2196 libsrcdir="$$s/libiberty"; \
2197 rm -f no-such-file || : ; \
2198 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2199 $(BUILD_CONFIGARGS) $${srcdiroption} \
2200 --with-build-subdir="$(BUILD_SUBDIR)" \
2202 @endif build-libiberty
2204 .PHONY: all-build-libiberty maybe-all-build-libiberty
2205 maybe-all-build-libiberty:
2207 TARGET-build-libiberty=all
2208 maybe-all-build-libiberty: all-build-libiberty
2209 all-build-libiberty: configure-build-libiberty
2210 @r=`${PWD_COMMAND}`; export r; \
2211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2213 (cd $(BUILD_SUBDIR)/libiberty && \
2214 $(MAKE) $(TARGET-build-libiberty))
2215 @endif build-libiberty
2217 .PHONY: configure-build-bison maybe-configure-build-bison
2218 maybe-configure-build-bison:
2220 maybe-configure-build-bison: configure-build-bison
2221 configure-build-bison:
2222 @test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2223 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2224 r=`${PWD_COMMAND}`; export r; \
2225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2227 echo Configuring in $(BUILD_SUBDIR)/bison; \
2228 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2230 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2231 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2232 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2234 srcdiroption="--srcdir=$${topdir}/bison"; \
2235 libsrcdir="$$s/bison"; \
2236 rm -f no-such-file || : ; \
2237 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2238 $(BUILD_CONFIGARGS) $${srcdiroption} \
2239 --with-build-subdir="$(BUILD_SUBDIR)" \
2243 .PHONY: all-build-bison maybe-all-build-bison
2244 maybe-all-build-bison:
2246 TARGET-build-bison=all
2247 maybe-all-build-bison: all-build-bison
2248 all-build-bison: configure-build-bison
2249 @r=`${PWD_COMMAND}`; export r; \
2250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2252 (cd $(BUILD_SUBDIR)/bison && \
2253 $(MAKE) $(TARGET-build-bison))
2256 .PHONY: configure-build-byacc maybe-configure-build-byacc
2257 maybe-configure-build-byacc:
2259 maybe-configure-build-byacc: configure-build-byacc
2260 configure-build-byacc:
2261 @test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2262 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
2263 r=`${PWD_COMMAND}`; export r; \
2264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2266 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2267 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2269 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2270 *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \
2271 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2273 srcdiroption="--srcdir=$${topdir}/byacc"; \
2274 libsrcdir="$$s/byacc"; \
2275 rm -f no-such-file || : ; \
2276 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2277 $(BUILD_CONFIGARGS) $${srcdiroption} \
2278 --with-build-subdir="$(BUILD_SUBDIR)" \
2282 .PHONY: all-build-byacc maybe-all-build-byacc
2283 maybe-all-build-byacc:
2285 TARGET-build-byacc=all
2286 maybe-all-build-byacc: all-build-byacc
2287 all-build-byacc: configure-build-byacc
2288 @r=`${PWD_COMMAND}`; export r; \
2289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2291 (cd $(BUILD_SUBDIR)/byacc && \
2292 $(MAKE) $(TARGET-build-byacc))
2295 .PHONY: configure-build-flex maybe-configure-build-flex
2296 maybe-configure-build-flex:
2298 maybe-configure-build-flex: configure-build-flex
2299 configure-build-flex:
2300 @test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2301 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2302 r=`${PWD_COMMAND}`; export r; \
2303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2305 echo Configuring in $(BUILD_SUBDIR)/flex; \
2306 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2308 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2309 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2310 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2312 srcdiroption="--srcdir=$${topdir}/flex"; \
2313 libsrcdir="$$s/flex"; \
2314 rm -f no-such-file || : ; \
2315 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2316 $(BUILD_CONFIGARGS) $${srcdiroption} \
2317 --with-build-subdir="$(BUILD_SUBDIR)" \
2321 .PHONY: all-build-flex maybe-all-build-flex
2322 maybe-all-build-flex:
2324 TARGET-build-flex=all
2325 maybe-all-build-flex: all-build-flex
2326 all-build-flex: configure-build-flex
2327 @r=`${PWD_COMMAND}`; export r; \
2328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2330 (cd $(BUILD_SUBDIR)/flex && \
2331 $(MAKE) $(TARGET-build-flex))
2334 .PHONY: configure-build-m4 maybe-configure-build-m4
2335 maybe-configure-build-m4:
2337 maybe-configure-build-m4: configure-build-m4
2339 @test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2340 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2341 r=`${PWD_COMMAND}`; export r; \
2342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2344 echo Configuring in $(BUILD_SUBDIR)/m4; \
2345 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2347 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2348 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2349 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2351 srcdiroption="--srcdir=$${topdir}/m4"; \
2352 libsrcdir="$$s/m4"; \
2353 rm -f no-such-file || : ; \
2354 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2355 $(BUILD_CONFIGARGS) $${srcdiroption} \
2356 --with-build-subdir="$(BUILD_SUBDIR)" \
2360 .PHONY: all-build-m4 maybe-all-build-m4
2364 maybe-all-build-m4: all-build-m4
2365 all-build-m4: configure-build-m4
2366 @r=`${PWD_COMMAND}`; export r; \
2367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2369 (cd $(BUILD_SUBDIR)/m4 && \
2370 $(MAKE) $(TARGET-build-m4))
2373 .PHONY: configure-build-texinfo maybe-configure-build-texinfo
2374 maybe-configure-build-texinfo:
2376 maybe-configure-build-texinfo: configure-build-texinfo
2377 configure-build-texinfo:
2378 @test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2379 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2380 r=`${PWD_COMMAND}`; export r; \
2381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2383 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2384 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2386 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2387 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2388 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2390 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2391 libsrcdir="$$s/texinfo"; \
2392 rm -f no-such-file || : ; \
2393 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2394 $(BUILD_CONFIGARGS) $${srcdiroption} \
2395 --with-build-subdir="$(BUILD_SUBDIR)" \
2397 @endif build-texinfo
2399 .PHONY: all-build-texinfo maybe-all-build-texinfo
2400 maybe-all-build-texinfo:
2402 TARGET-build-texinfo=all
2403 maybe-all-build-texinfo: all-build-texinfo
2404 all-build-texinfo: configure-build-texinfo
2405 @r=`${PWD_COMMAND}`; export r; \
2406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2408 (cd $(BUILD_SUBDIR)/texinfo && \
2409 $(MAKE) $(TARGET-build-texinfo))
2410 @endif build-texinfo
2412 .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2413 maybe-configure-build-fixincludes:
2414 @if build-fixincludes
2415 maybe-configure-build-fixincludes: configure-build-fixincludes
2416 configure-build-fixincludes:
2417 @test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2418 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2419 r=`${PWD_COMMAND}`; export r; \
2420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2422 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2423 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2425 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2426 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2427 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2429 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2430 libsrcdir="$$s/fixincludes"; \
2431 rm -f no-such-file || : ; \
2432 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2433 $(BUILD_CONFIGARGS) $${srcdiroption} \
2434 --with-build-subdir="$(BUILD_SUBDIR)" \
2436 @endif build-fixincludes
2438 .PHONY: all-build-fixincludes maybe-all-build-fixincludes
2439 maybe-all-build-fixincludes:
2440 @if build-fixincludes
2441 TARGET-build-fixincludes=all
2442 maybe-all-build-fixincludes: all-build-fixincludes
2443 all-build-fixincludes: configure-build-fixincludes
2444 @r=`${PWD_COMMAND}`; export r; \
2445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2447 (cd $(BUILD_SUBDIR)/fixincludes && \
2448 $(MAKE) $(TARGET-build-fixincludes))
2449 @endif build-fixincludes
2452 # --------------------------------------
2453 # Modules which run on the host machine
2454 # --------------------------------------
2456 .PHONY: configure-ash maybe-configure-ash
2457 maybe-configure-ash:
2459 maybe-configure-ash: configure-ash
2461 @test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \
2462 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \
2463 r=`${PWD_COMMAND}`; export r; \
2464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2466 echo Configuring in ash; \
2467 cd $(HOST_SUBDIR)/ash || exit 1; \
2469 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2470 *) topdir=`echo $(HOST_SUBDIR)/ash/ | \
2471 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2473 srcdiroption="--srcdir=$${topdir}/ash"; \
2474 libsrcdir="$$s/ash"; \
2475 $(SHELL) $${libsrcdir}/configure \
2476 $(HOST_CONFIGARGS) $${srcdiroption} \
2480 .PHONY: all-ash maybe-all-ash
2484 maybe-all-ash: all-ash
2485 all-ash: configure-ash
2486 @r=`${PWD_COMMAND}`; export r; \
2487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2490 (cd $(HOST_SUBDIR)/ash && \
2491 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ash))
2494 .PHONY: check-ash maybe-check-ash
2497 maybe-check-ash: check-ash
2500 @r=`${PWD_COMMAND}`; export r; \
2501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2504 (cd $(HOST_SUBDIR)/ash && \
2505 $(MAKE) $(FLAGS_TO_PASS) check)
2509 .PHONY: install-ash maybe-install-ash
2512 maybe-install-ash: install-ash
2514 install-ash: installdirs
2515 @r=`${PWD_COMMAND}`; export r; \
2516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2519 (cd $(HOST_SUBDIR)/ash && \
2520 $(MAKE) $(FLAGS_TO_PASS) install)
2524 # Other targets (info, dvi, etc.)
2526 .PHONY: maybe-info-ash info-ash
2529 maybe-info-ash: info-ash
2533 @[ -f ./ash/Makefile ] || exit 0; \
2534 r=`${PWD_COMMAND}`; export r; \
2535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2538 for flag in $(EXTRA_HOST_FLAGS) ; do \
2539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2541 echo "Doing info in ash" ; \
2542 (cd $(HOST_SUBDIR)/ash && \
2543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2545 "RANLIB=$${RANLIB}" \
2546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2552 .PHONY: maybe-dvi-ash dvi-ash
2555 maybe-dvi-ash: dvi-ash
2559 @[ -f ./ash/Makefile ] || exit 0; \
2560 r=`${PWD_COMMAND}`; export r; \
2561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2564 for flag in $(EXTRA_HOST_FLAGS) ; do \
2565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2567 echo "Doing dvi in ash" ; \
2568 (cd $(HOST_SUBDIR)/ash && \
2569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2571 "RANLIB=$${RANLIB}" \
2572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2578 .PHONY: maybe-html-ash html-ash
2581 maybe-html-ash: html-ash
2585 @[ -f ./ash/Makefile ] || exit 0; \
2586 r=`${PWD_COMMAND}`; export r; \
2587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2590 for flag in $(EXTRA_HOST_FLAGS) ; do \
2591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2593 echo "Doing html in ash" ; \
2594 (cd $(HOST_SUBDIR)/ash && \
2595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2597 "RANLIB=$${RANLIB}" \
2598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2604 .PHONY: maybe-TAGS-ash TAGS-ash
2607 maybe-TAGS-ash: TAGS-ash
2611 @[ -f ./ash/Makefile ] || exit 0; \
2612 r=`${PWD_COMMAND}`; export r; \
2613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2616 for flag in $(EXTRA_HOST_FLAGS) ; do \
2617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2619 echo "Doing TAGS in ash" ; \
2620 (cd $(HOST_SUBDIR)/ash && \
2621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2623 "RANLIB=$${RANLIB}" \
2624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2630 .PHONY: maybe-install-info-ash install-info-ash
2631 maybe-install-info-ash:
2633 maybe-install-info-ash: install-info-ash
2638 @[ -f ./ash/Makefile ] || exit 0; \
2639 r=`${PWD_COMMAND}`; export r; \
2640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2643 for flag in $(EXTRA_HOST_FLAGS) ; do \
2644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2646 echo "Doing install-info in ash" ; \
2647 (cd $(HOST_SUBDIR)/ash && \
2648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2650 "RANLIB=$${RANLIB}" \
2651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2657 .PHONY: maybe-installcheck-ash installcheck-ash
2658 maybe-installcheck-ash:
2660 maybe-installcheck-ash: installcheck-ash
2664 @[ -f ./ash/Makefile ] || exit 0; \
2665 r=`${PWD_COMMAND}`; export r; \
2666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2669 for flag in $(EXTRA_HOST_FLAGS) ; do \
2670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2672 echo "Doing installcheck in ash" ; \
2673 (cd $(HOST_SUBDIR)/ash && \
2674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2676 "RANLIB=$${RANLIB}" \
2677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2683 .PHONY: maybe-mostlyclean-ash mostlyclean-ash
2684 maybe-mostlyclean-ash:
2686 maybe-mostlyclean-ash: mostlyclean-ash
2689 @[ -f ./ash/Makefile ] || exit 0; \
2690 r=`${PWD_COMMAND}`; export r; \
2691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2694 for flag in $(EXTRA_HOST_FLAGS) ; do \
2695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2697 echo "Doing mostlyclean in ash" ; \
2698 (cd $(HOST_SUBDIR)/ash && \
2699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2701 "RANLIB=$${RANLIB}" \
2702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2708 .PHONY: maybe-clean-ash clean-ash
2711 maybe-clean-ash: clean-ash
2714 @[ -f ./ash/Makefile ] || exit 0; \
2715 r=`${PWD_COMMAND}`; export r; \
2716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2719 for flag in $(EXTRA_HOST_FLAGS) ; do \
2720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2722 echo "Doing clean in ash" ; \
2723 (cd $(HOST_SUBDIR)/ash && \
2724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2726 "RANLIB=$${RANLIB}" \
2727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2733 .PHONY: maybe-distclean-ash distclean-ash
2734 maybe-distclean-ash:
2736 maybe-distclean-ash: distclean-ash
2739 @[ -f ./ash/Makefile ] || exit 0; \
2740 r=`${PWD_COMMAND}`; export r; \
2741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2744 for flag in $(EXTRA_HOST_FLAGS) ; do \
2745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2747 echo "Doing distclean in ash" ; \
2748 (cd $(HOST_SUBDIR)/ash && \
2749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2751 "RANLIB=$${RANLIB}" \
2752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2758 .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2759 maybe-maintainer-clean-ash:
2761 maybe-maintainer-clean-ash: maintainer-clean-ash
2763 maintainer-clean-ash:
2764 @[ -f ./ash/Makefile ] || exit 0; \
2765 r=`${PWD_COMMAND}`; export r; \
2766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2769 for flag in $(EXTRA_HOST_FLAGS) ; do \
2770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2772 echo "Doing maintainer-clean in ash" ; \
2773 (cd $(HOST_SUBDIR)/ash && \
2774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2776 "RANLIB=$${RANLIB}" \
2777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2784 .PHONY: configure-autoconf maybe-configure-autoconf
2785 maybe-configure-autoconf:
2787 maybe-configure-autoconf: configure-autoconf
2789 @test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \
2790 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \
2791 r=`${PWD_COMMAND}`; export r; \
2792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2794 echo Configuring in autoconf; \
2795 cd $(HOST_SUBDIR)/autoconf || exit 1; \
2797 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2798 *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \
2799 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2801 srcdiroption="--srcdir=$${topdir}/autoconf"; \
2802 libsrcdir="$$s/autoconf"; \
2803 $(SHELL) $${libsrcdir}/configure \
2804 $(HOST_CONFIGARGS) $${srcdiroption} \
2808 .PHONY: all-autoconf maybe-all-autoconf
2812 maybe-all-autoconf: all-autoconf
2813 all-autoconf: configure-autoconf
2814 @r=`${PWD_COMMAND}`; export r; \
2815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2818 (cd $(HOST_SUBDIR)/autoconf && \
2819 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-autoconf))
2822 .PHONY: check-autoconf maybe-check-autoconf
2823 maybe-check-autoconf:
2825 maybe-check-autoconf: check-autoconf
2828 @r=`${PWD_COMMAND}`; export r; \
2829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2832 (cd $(HOST_SUBDIR)/autoconf && \
2833 $(MAKE) $(FLAGS_TO_PASS) check)
2837 .PHONY: install-autoconf maybe-install-autoconf
2838 maybe-install-autoconf:
2840 maybe-install-autoconf: install-autoconf
2842 install-autoconf: installdirs
2843 @r=`${PWD_COMMAND}`; export r; \
2844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2847 (cd $(HOST_SUBDIR)/autoconf && \
2848 $(MAKE) $(FLAGS_TO_PASS) install)
2852 # Other targets (info, dvi, etc.)
2854 .PHONY: maybe-info-autoconf info-autoconf
2855 maybe-info-autoconf:
2857 maybe-info-autoconf: info-autoconf
2861 @[ -f ./autoconf/Makefile ] || exit 0; \
2862 r=`${PWD_COMMAND}`; export r; \
2863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2866 for flag in $(EXTRA_HOST_FLAGS) ; do \
2867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2869 echo "Doing info in autoconf" ; \
2870 (cd $(HOST_SUBDIR)/autoconf && \
2871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2873 "RANLIB=$${RANLIB}" \
2874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2880 .PHONY: maybe-dvi-autoconf dvi-autoconf
2883 maybe-dvi-autoconf: dvi-autoconf
2887 @[ -f ./autoconf/Makefile ] || exit 0; \
2888 r=`${PWD_COMMAND}`; export r; \
2889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2892 for flag in $(EXTRA_HOST_FLAGS) ; do \
2893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2895 echo "Doing dvi in autoconf" ; \
2896 (cd $(HOST_SUBDIR)/autoconf && \
2897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2899 "RANLIB=$${RANLIB}" \
2900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2906 .PHONY: maybe-html-autoconf html-autoconf
2907 maybe-html-autoconf:
2909 maybe-html-autoconf: html-autoconf
2913 @[ -f ./autoconf/Makefile ] || exit 0; \
2914 r=`${PWD_COMMAND}`; export r; \
2915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2918 for flag in $(EXTRA_HOST_FLAGS) ; do \
2919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2921 echo "Doing html in autoconf" ; \
2922 (cd $(HOST_SUBDIR)/autoconf && \
2923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2925 "RANLIB=$${RANLIB}" \
2926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2932 .PHONY: maybe-TAGS-autoconf TAGS-autoconf
2933 maybe-TAGS-autoconf:
2935 maybe-TAGS-autoconf: TAGS-autoconf
2939 @[ -f ./autoconf/Makefile ] || exit 0; \
2940 r=`${PWD_COMMAND}`; export r; \
2941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2944 for flag in $(EXTRA_HOST_FLAGS) ; do \
2945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2947 echo "Doing TAGS in autoconf" ; \
2948 (cd $(HOST_SUBDIR)/autoconf && \
2949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2951 "RANLIB=$${RANLIB}" \
2952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2958 .PHONY: maybe-install-info-autoconf install-info-autoconf
2959 maybe-install-info-autoconf:
2961 maybe-install-info-autoconf: install-info-autoconf
2963 install-info-autoconf: \
2964 configure-autoconf \
2966 @[ -f ./autoconf/Makefile ] || exit 0; \
2967 r=`${PWD_COMMAND}`; export r; \
2968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2971 for flag in $(EXTRA_HOST_FLAGS) ; do \
2972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2974 echo "Doing install-info in autoconf" ; \
2975 (cd $(HOST_SUBDIR)/autoconf && \
2976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2978 "RANLIB=$${RANLIB}" \
2979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2985 .PHONY: maybe-installcheck-autoconf installcheck-autoconf
2986 maybe-installcheck-autoconf:
2988 maybe-installcheck-autoconf: installcheck-autoconf
2990 installcheck-autoconf: \
2992 @[ -f ./autoconf/Makefile ] || exit 0; \
2993 r=`${PWD_COMMAND}`; export r; \
2994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2997 for flag in $(EXTRA_HOST_FLAGS) ; do \
2998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3000 echo "Doing installcheck in autoconf" ; \
3001 (cd $(HOST_SUBDIR)/autoconf && \
3002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3004 "RANLIB=$${RANLIB}" \
3005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3011 .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3012 maybe-mostlyclean-autoconf:
3014 maybe-mostlyclean-autoconf: mostlyclean-autoconf
3016 mostlyclean-autoconf:
3017 @[ -f ./autoconf/Makefile ] || exit 0; \
3018 r=`${PWD_COMMAND}`; export r; \
3019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3022 for flag in $(EXTRA_HOST_FLAGS) ; do \
3023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3025 echo "Doing mostlyclean in autoconf" ; \
3026 (cd $(HOST_SUBDIR)/autoconf && \
3027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3029 "RANLIB=$${RANLIB}" \
3030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3036 .PHONY: maybe-clean-autoconf clean-autoconf
3037 maybe-clean-autoconf:
3039 maybe-clean-autoconf: clean-autoconf
3042 @[ -f ./autoconf/Makefile ] || exit 0; \
3043 r=`${PWD_COMMAND}`; export r; \
3044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3047 for flag in $(EXTRA_HOST_FLAGS) ; do \
3048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3050 echo "Doing clean in autoconf" ; \
3051 (cd $(HOST_SUBDIR)/autoconf && \
3052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3054 "RANLIB=$${RANLIB}" \
3055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3061 .PHONY: maybe-distclean-autoconf distclean-autoconf
3062 maybe-distclean-autoconf:
3064 maybe-distclean-autoconf: distclean-autoconf
3067 @[ -f ./autoconf/Makefile ] || exit 0; \
3068 r=`${PWD_COMMAND}`; export r; \
3069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3072 for flag in $(EXTRA_HOST_FLAGS) ; do \
3073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3075 echo "Doing distclean in autoconf" ; \
3076 (cd $(HOST_SUBDIR)/autoconf && \
3077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3079 "RANLIB=$${RANLIB}" \
3080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3086 .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3087 maybe-maintainer-clean-autoconf:
3089 maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
3091 maintainer-clean-autoconf:
3092 @[ -f ./autoconf/Makefile ] || exit 0; \
3093 r=`${PWD_COMMAND}`; export r; \
3094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3097 for flag in $(EXTRA_HOST_FLAGS) ; do \
3098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3100 echo "Doing maintainer-clean in autoconf" ; \
3101 (cd $(HOST_SUBDIR)/autoconf && \
3102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3104 "RANLIB=$${RANLIB}" \
3105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3112 .PHONY: configure-automake maybe-configure-automake
3113 maybe-configure-automake:
3115 maybe-configure-automake: configure-automake
3117 @test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \
3118 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \
3119 r=`${PWD_COMMAND}`; export r; \
3120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3122 echo Configuring in automake; \
3123 cd $(HOST_SUBDIR)/automake || exit 1; \
3125 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3126 *) topdir=`echo $(HOST_SUBDIR)/automake/ | \
3127 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3129 srcdiroption="--srcdir=$${topdir}/automake"; \
3130 libsrcdir="$$s/automake"; \
3131 $(SHELL) $${libsrcdir}/configure \
3132 $(HOST_CONFIGARGS) $${srcdiroption} \
3136 .PHONY: all-automake maybe-all-automake
3140 maybe-all-automake: all-automake
3141 all-automake: configure-automake
3142 @r=`${PWD_COMMAND}`; export r; \
3143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3146 (cd $(HOST_SUBDIR)/automake && \
3147 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-automake))
3150 .PHONY: check-automake maybe-check-automake
3151 maybe-check-automake:
3153 maybe-check-automake: check-automake
3156 @r=`${PWD_COMMAND}`; export r; \
3157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3160 (cd $(HOST_SUBDIR)/automake && \
3161 $(MAKE) $(FLAGS_TO_PASS) check)
3165 .PHONY: install-automake maybe-install-automake
3166 maybe-install-automake:
3168 maybe-install-automake: install-automake
3170 install-automake: installdirs
3171 @r=`${PWD_COMMAND}`; export r; \
3172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3175 (cd $(HOST_SUBDIR)/automake && \
3176 $(MAKE) $(FLAGS_TO_PASS) install)
3180 # Other targets (info, dvi, etc.)
3182 .PHONY: maybe-info-automake info-automake
3183 maybe-info-automake:
3185 maybe-info-automake: info-automake
3189 @[ -f ./automake/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 info in automake" ; \
3198 (cd $(HOST_SUBDIR)/automake && \
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-dvi-automake dvi-automake
3211 maybe-dvi-automake: dvi-automake
3215 @[ -f ./automake/Makefile ] || exit 0; \
3216 r=`${PWD_COMMAND}`; export r; \
3217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3220 for flag in $(EXTRA_HOST_FLAGS) ; do \
3221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3223 echo "Doing dvi in automake" ; \
3224 (cd $(HOST_SUBDIR)/automake && \
3225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3227 "RANLIB=$${RANLIB}" \
3228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3234 .PHONY: maybe-html-automake html-automake
3235 maybe-html-automake:
3237 maybe-html-automake: html-automake
3241 @[ -f ./automake/Makefile ] || exit 0; \
3242 r=`${PWD_COMMAND}`; export r; \
3243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3246 for flag in $(EXTRA_HOST_FLAGS) ; do \
3247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3249 echo "Doing html in automake" ; \
3250 (cd $(HOST_SUBDIR)/automake && \
3251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3253 "RANLIB=$${RANLIB}" \
3254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3260 .PHONY: maybe-TAGS-automake TAGS-automake
3261 maybe-TAGS-automake:
3263 maybe-TAGS-automake: TAGS-automake
3267 @[ -f ./automake/Makefile ] || exit 0; \
3268 r=`${PWD_COMMAND}`; export r; \
3269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3272 for flag in $(EXTRA_HOST_FLAGS) ; do \
3273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3275 echo "Doing TAGS in automake" ; \
3276 (cd $(HOST_SUBDIR)/automake && \
3277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3279 "RANLIB=$${RANLIB}" \
3280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3286 .PHONY: maybe-install-info-automake install-info-automake
3287 maybe-install-info-automake:
3289 maybe-install-info-automake: install-info-automake
3291 install-info-automake: \
3292 configure-automake \
3294 @[ -f ./automake/Makefile ] || exit 0; \
3295 r=`${PWD_COMMAND}`; export r; \
3296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3299 for flag in $(EXTRA_HOST_FLAGS) ; do \
3300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3302 echo "Doing install-info in automake" ; \
3303 (cd $(HOST_SUBDIR)/automake && \
3304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3306 "RANLIB=$${RANLIB}" \
3307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3313 .PHONY: maybe-installcheck-automake installcheck-automake
3314 maybe-installcheck-automake:
3316 maybe-installcheck-automake: installcheck-automake
3318 installcheck-automake: \
3320 @[ -f ./automake/Makefile ] || exit 0; \
3321 r=`${PWD_COMMAND}`; export r; \
3322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3325 for flag in $(EXTRA_HOST_FLAGS) ; do \
3326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3328 echo "Doing installcheck in automake" ; \
3329 (cd $(HOST_SUBDIR)/automake && \
3330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3332 "RANLIB=$${RANLIB}" \
3333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3339 .PHONY: maybe-mostlyclean-automake mostlyclean-automake
3340 maybe-mostlyclean-automake:
3342 maybe-mostlyclean-automake: mostlyclean-automake
3344 mostlyclean-automake:
3345 @[ -f ./automake/Makefile ] || exit 0; \
3346 r=`${PWD_COMMAND}`; export r; \
3347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3350 for flag in $(EXTRA_HOST_FLAGS) ; do \
3351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3353 echo "Doing mostlyclean in automake" ; \
3354 (cd $(HOST_SUBDIR)/automake && \
3355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3357 "RANLIB=$${RANLIB}" \
3358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3364 .PHONY: maybe-clean-automake clean-automake
3365 maybe-clean-automake:
3367 maybe-clean-automake: clean-automake
3370 @[ -f ./automake/Makefile ] || exit 0; \
3371 r=`${PWD_COMMAND}`; export r; \
3372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3375 for flag in $(EXTRA_HOST_FLAGS) ; do \
3376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3378 echo "Doing clean in automake" ; \
3379 (cd $(HOST_SUBDIR)/automake && \
3380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3382 "RANLIB=$${RANLIB}" \
3383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3389 .PHONY: maybe-distclean-automake distclean-automake
3390 maybe-distclean-automake:
3392 maybe-distclean-automake: distclean-automake
3395 @[ -f ./automake/Makefile ] || exit 0; \
3396 r=`${PWD_COMMAND}`; export r; \
3397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3400 for flag in $(EXTRA_HOST_FLAGS) ; do \
3401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3403 echo "Doing distclean in automake" ; \
3404 (cd $(HOST_SUBDIR)/automake && \
3405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3407 "RANLIB=$${RANLIB}" \
3408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3414 .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3415 maybe-maintainer-clean-automake:
3417 maybe-maintainer-clean-automake: maintainer-clean-automake
3419 maintainer-clean-automake:
3420 @[ -f ./automake/Makefile ] || exit 0; \
3421 r=`${PWD_COMMAND}`; export r; \
3422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3425 for flag in $(EXTRA_HOST_FLAGS) ; do \
3426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3428 echo "Doing maintainer-clean in automake" ; \
3429 (cd $(HOST_SUBDIR)/automake && \
3430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3432 "RANLIB=$${RANLIB}" \
3433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3440 .PHONY: configure-bash maybe-configure-bash
3441 maybe-configure-bash:
3443 maybe-configure-bash: configure-bash
3445 @test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \
3446 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \
3447 r=`${PWD_COMMAND}`; export r; \
3448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3450 echo Configuring in bash; \
3451 cd $(HOST_SUBDIR)/bash || exit 1; \
3453 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3454 *) topdir=`echo $(HOST_SUBDIR)/bash/ | \
3455 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3457 srcdiroption="--srcdir=$${topdir}/bash"; \
3458 libsrcdir="$$s/bash"; \
3459 $(SHELL) $${libsrcdir}/configure \
3460 $(HOST_CONFIGARGS) $${srcdiroption} \
3464 .PHONY: all-bash maybe-all-bash
3468 maybe-all-bash: all-bash
3469 all-bash: configure-bash
3470 @r=`${PWD_COMMAND}`; export r; \
3471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3474 (cd $(HOST_SUBDIR)/bash && \
3475 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bash))
3478 .PHONY: check-bash maybe-check-bash
3481 maybe-check-bash: check-bash
3484 @r=`${PWD_COMMAND}`; export r; \
3485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3488 (cd $(HOST_SUBDIR)/bash && \
3489 $(MAKE) $(FLAGS_TO_PASS) check)
3493 .PHONY: install-bash maybe-install-bash
3496 maybe-install-bash: install-bash
3498 install-bash: installdirs
3499 @r=`${PWD_COMMAND}`; export r; \
3500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3503 (cd $(HOST_SUBDIR)/bash && \
3504 $(MAKE) $(FLAGS_TO_PASS) install)
3508 # Other targets (info, dvi, etc.)
3510 .PHONY: maybe-info-bash info-bash
3513 maybe-info-bash: info-bash
3517 @[ -f ./bash/Makefile ] || exit 0; \
3518 r=`${PWD_COMMAND}`; export r; \
3519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3522 for flag in $(EXTRA_HOST_FLAGS) ; do \
3523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3525 echo "Doing info in bash" ; \
3526 (cd $(HOST_SUBDIR)/bash && \
3527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3529 "RANLIB=$${RANLIB}" \
3530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3536 .PHONY: maybe-dvi-bash dvi-bash
3539 maybe-dvi-bash: dvi-bash
3543 @[ -f ./bash/Makefile ] || exit 0; \
3544 r=`${PWD_COMMAND}`; export r; \
3545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3548 for flag in $(EXTRA_HOST_FLAGS) ; do \
3549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3551 echo "Doing dvi in bash" ; \
3552 (cd $(HOST_SUBDIR)/bash && \
3553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3555 "RANLIB=$${RANLIB}" \
3556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3562 .PHONY: maybe-html-bash html-bash
3565 maybe-html-bash: html-bash
3569 @[ -f ./bash/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 html in bash" ; \
3578 (cd $(HOST_SUBDIR)/bash && \
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-TAGS-bash TAGS-bash
3591 maybe-TAGS-bash: TAGS-bash
3595 @[ -f ./bash/Makefile ] || exit 0; \
3596 r=`${PWD_COMMAND}`; export r; \
3597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3600 for flag in $(EXTRA_HOST_FLAGS) ; do \
3601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3603 echo "Doing TAGS in bash" ; \
3604 (cd $(HOST_SUBDIR)/bash && \
3605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3607 "RANLIB=$${RANLIB}" \
3608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3614 .PHONY: maybe-install-info-bash install-info-bash
3615 maybe-install-info-bash:
3617 maybe-install-info-bash: install-info-bash
3619 install-info-bash: \
3622 @[ -f ./bash/Makefile ] || exit 0; \
3623 r=`${PWD_COMMAND}`; export r; \
3624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3627 for flag in $(EXTRA_HOST_FLAGS) ; do \
3628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3630 echo "Doing install-info in bash" ; \
3631 (cd $(HOST_SUBDIR)/bash && \
3632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3634 "RANLIB=$${RANLIB}" \
3635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3641 .PHONY: maybe-installcheck-bash installcheck-bash
3642 maybe-installcheck-bash:
3644 maybe-installcheck-bash: installcheck-bash
3646 installcheck-bash: \
3648 @[ -f ./bash/Makefile ] || exit 0; \
3649 r=`${PWD_COMMAND}`; export r; \
3650 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 installcheck 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-mostlyclean-bash mostlyclean-bash
3668 maybe-mostlyclean-bash:
3670 maybe-mostlyclean-bash: mostlyclean-bash
3673 @[ -f ./bash/Makefile ] || exit 0; \
3674 r=`${PWD_COMMAND}`; export r; \
3675 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 mostlyclean 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-clean-bash clean-bash
3695 maybe-clean-bash: clean-bash