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 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@
69 # -------------------------------------------------
70 # Miscellaneous non-standard autoconf-set variables
71 # -------------------------------------------------
73 # The file containing GCC's version number.
74 gcc_version_trigger = @gcc_version_trigger@
75 gcc_version = @gcc_version@
77 # The gcc driver likes to know the arguments it was configured with.
78 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
80 gxx_include_dir = @gxx_include_dir@
81 libstdcxx_incdir = @libstdcxx_incdir@
84 build_tooldir = @build_tooldir@
86 # Directory in which the compiler finds executables, libraries, etc.
87 libsubdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)
90 # This is the name of the environment variable used for the path to
92 RPATH_ENVVAR = @RPATH_ENVVAR@
94 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
96 SET_LIB_PATH = @SET_LIB_PATH@
98 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
99 # Some platforms don't like blank entries, so we remove duplicate,
100 # leading and trailing colons.
101 REALLY_SET_LIB_PATH = \
102 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
104 # This is the list of directories to be built for the build system.
105 BUILD_CONFIGDIRS = libiberty libbanshee
106 # Build programs are put under this directory.
107 BUILD_SUBDIR = @build_subdir@
108 # This is set by the configure script to the arguments to use when configuring
109 # directories built for the build system.
110 BUILD_CONFIGARGS = @build_configargs@
112 # This is the list of directories to built for the host system.
113 SUBDIRS = @configdirs@
114 # This is set by the configure script to the arguments to use when configuring
115 # directories built for the host system.
116 HOST_CONFIGARGS = @host_configargs@
118 # This is set by the configure script to the list of directories which
119 # should be built using the target tools.
120 TARGET_CONFIGDIRS = @target_configdirs@
121 # Target libraries are put under this directory:
122 TARGET_SUBDIR = @target_subdir@
123 # This is set by the configure script to the arguments to use when configuring
124 # directories built for the target.
125 TARGET_CONFIGARGS = @target_configargs@
128 HOST_GMPLIBS = @gmplibs@
129 HOST_GMPINC = @gmpinc@
131 # ----------------------------------------------
132 # Programs producing files for the BUILD machine
133 # ----------------------------------------------
135 SHELL = @config_shell@
137 # pwd command to use. Allow user to override default by setting PWDCMD in
138 # the environment to account for automounters. The make variable must not
139 # be called PWDCMD, otherwise the value set here is passed to make
140 # subprocesses and overrides the setting from the user's environment.
141 # Don't use PWD since it is a common shell environment variable and we
142 # don't want to corrupt it.
143 PWD_COMMAND = $${PWDCMD-pwd}
145 # compilers to use to create programs which must be run in the build
147 CC_FOR_BUILD = @CC_FOR_BUILD@
148 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
150 CXX_FOR_BUILD = $(CXX)
152 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
153 # here so that they can be overridden by Makefile fragments.
154 BUILD_PREFIX = @BUILD_PREFIX@
155 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
158 USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
159 echo $$r/bison/bison -L $$s/bison/ ; \
164 DEFAULT_YACC = @DEFAULT_YACC@
166 USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
167 echo $$r/bison/bison -y -L $$s/bison/ ; \
168 elif [ -f $$r/byacc/byacc ] ; then \
169 echo $$r/byacc/byacc ; \
171 echo ${DEFAULT_YACC} ; \
174 DEFAULT_LEX = @DEFAULT_LEX@
176 USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
177 then echo $$r/flex/flex ; \
178 else echo ${DEFAULT_LEX} ; fi`
180 DEFAULT_M4 = @DEFAULT_M4@
181 M4 = `if [ -f $$r/m4/m4 ] ; \
182 then echo $$r/m4/m4 ; \
183 else echo ${DEFAULT_M4} ; fi`
185 # For an installed makeinfo, we require it to be from texinfo 4.2 or
186 # higher, else we use the "missing" dummy.
188 USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
189 then echo $$r/texinfo/makeinfo/makeinfo ; \
190 else if (makeinfo --version \
191 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
192 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
194 # This just becomes part of the MAKEINFO definition passed down to
195 # sub-makes. It lets flags be given on the command line while still
196 # using the makeinfo from the object tree.
197 # (Default to avoid splitting info files by setting the threshold high.)
198 MAKEINFOFLAGS = --split-size=5000000
200 EXPECT = `if [ -f $$r/expect/expect ] ; \
201 then echo $$r/expect/expect ; \
202 else echo expect ; fi`
204 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
205 then echo $$s/dejagnu/runtest ; \
206 else echo runtest ; fi`
208 # ---------------------------------------------
209 # Programs producing files for the HOST machine
210 # ---------------------------------------------
212 # This is the list of directories that may be needed in RPATH_ENVVAR
213 # so that programs built for the host machine work.
214 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
223 LIBCFLAGS = $(CFLAGS)
226 CXXFLAGS = @CXXFLAGS@
227 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
242 # -----------------------------------------------
243 # Programs producing files for the TARGET machine
244 # -----------------------------------------------
246 # This is the list of directories that may be needed in RPATH_ENVVAR
247 # so that prorgams built for the target machine work.
248 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libmudflap/.libs
250 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
252 AR_FOR_TARGET=@AR_FOR_TARGET@
253 CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
254 USUAL_AR_FOR_TARGET = ` \
255 if [ -f $$r/binutils/ar ] ; then \
256 echo $$r/binutils/ar ; \
258 if [ '$(host)' = '$(target)' ] ; then \
261 echo $(CONFIGURED_AR_FOR_TARGET) ; \
265 AS_FOR_TARGET=@AS_FOR_TARGET@
266 CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
267 USUAL_AS_FOR_TARGET = ` \
268 if [ -f $$r/gas/as-new ] ; then \
269 echo $$r/gas/as-new ; \
270 elif [ -f $$r/gcc/xgcc ]; then \
271 $(CC_FOR_TARGET) -print-prog-name=as ; \
273 if [ '$(host)' = '$(target)' ] ; then \
276 echo $(CONFIGURED_AS_FOR_TARGET) ; \
280 CC_FOR_TARGET = @CC_FOR_TARGET@
281 # During gcc bootstrap, if we use some random cc for stage1 then
282 # CFLAGS will be just -g. We want to ensure that TARGET libraries
283 # (which we know are built with gcc) are built with optimizations so
284 # prepend -O2 when setting CFLAGS_FOR_TARGET.
285 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
286 # If GCC_FOR_TARGET is not overriden on the command line, then this
287 # variable is passed down to the gcc Makefile, where it is used to
288 # build libgcc2.a. We define it here so that it can itself be
289 # overridden on the command line.
290 GCC_FOR_TARGET=@GCC_FOR_TARGET@
291 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
292 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
294 CXX_FOR_TARGET = @CXX_FOR_TARGET@
295 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
296 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
297 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
298 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
299 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
301 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
302 CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
303 USUAL_DLLTOOL_FOR_TARGET = ` \
304 if [ -f $$r/binutils/dlltool ] ; then \
305 echo $$r/binutils/dlltool ; \
307 if [ '$(host)' = '$(target)' ] ; then \
310 echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
314 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
315 GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
317 LD_FOR_TARGET=@LD_FOR_TARGET@
318 CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
319 USUAL_LD_FOR_TARGET = ` \
320 if [ -f $$r/ld/ld-new ] ; then \
321 echo $$r/ld/ld-new ; \
322 elif [ -f $$r/gcc/xgcc ]; then \
323 $(CC_FOR_TARGET) -print-prog-name=ld ; \
325 if [ '$(host)' = '$(target)' ] ; then \
328 echo $(CONFIGURED_LD_FOR_TARGET) ; \
334 NM_FOR_TARGET=@NM_FOR_TARGET@
335 CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
336 USUAL_NM_FOR_TARGET = ` \
337 if [ -f $$r/binutils/nm-new ] ; then \
338 echo $$r/binutils/nm-new ; \
339 elif [ -f $$r/gcc/xgcc ]; then \
340 $(CC_FOR_TARGET) -print-prog-name=nm ; \
342 if [ '$(host)' = '$(target)' ] ; then \
345 echo $(CONFIGURED_NM_FOR_TARGET) ; \
349 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
350 CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
351 USUAL_RANLIB_FOR_TARGET = ` \
352 if [ -f $$r/binutils/ranlib ] ; then \
353 echo $$r/binutils/ranlib ; \
355 if [ '$(host)' = '$(target)' ] ; then \
356 if [ x'$(RANLIB)' != x ]; then \
362 echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
366 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
367 CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
368 USUAL_WINDRES_FOR_TARGET = ` \
369 if [ -f $$r/binutils/windres ] ; then \
370 echo $$r/binutils/windres ; \
372 if [ '$(host)' = '$(target)' ] ; then \
375 echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
381 # ------------------------------------
382 # Miscellaneous targets and flag lists
383 # ------------------------------------
385 # The first rule in the file had better be this one. Don't put any above it.
386 # This lives here to allow makefile fragments to contain dependencies.
390 #### host and target specific makefile fragments come in here.
391 @target_makefile_frag@
397 # Flags to pass down to all sub-makes.
398 BASE_FLAGS_TO_PASS = \
399 "DESTDIR=$(DESTDIR)" \
400 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
401 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
403 "datadir=$(datadir)" \
404 "exec_prefix=$(exec_prefix)" \
405 "includedir=$(includedir)" \
406 "infodir=$(infodir)" \
408 "libexecdir=$(libexecdir)" \
409 "lispdir=$(lispdir)" \
410 "libstdcxx_incdir=$(libstdcxx_incdir)" \
411 "libsubdir=$(libsubdir)" \
412 "localstatedir=$(localstatedir)" \
414 "oldincludedir=$(oldincludedir)" \
416 "sbindir=$(sbindir)" \
417 "sharedstatedir=$(sharedstatedir)" \
418 "sysconfdir=$(sysconfdir)" \
419 "tooldir=$(tooldir)" \
420 "build_tooldir=$(build_tooldir)" \
421 "gxx_include_dir=$(gxx_include_dir)" \
422 "gcc_version=$(gcc_version)" \
423 "gcc_version_trigger=$(gcc_version_trigger)" \
424 "target_alias=$(target_alias)" \
426 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
427 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
429 "INSTALL=$(INSTALL)" \
430 "INSTALL_DATA=$(INSTALL_DATA)" \
431 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
432 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
436 "RUNTEST=$(RUNTEST)" \
437 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
440 "AR_FLAGS=$(AR_FLAGS)" \
442 "CXXFLAGS=$(CXXFLAGS)" \
443 "LDFLAGS=$(LDFLAGS)" \
444 "LIBCFLAGS=$(LIBCFLAGS)" \
445 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
446 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
447 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
448 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
449 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
450 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
451 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
452 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
453 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
454 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
455 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
456 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
457 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
458 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
459 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
460 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
461 "CONFIG_SHELL=$(SHELL)" \
462 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
464 # For any flags above that may contain shell code that varies from one
465 # target library to another. When doing recursive invocations of the
466 # top-level Makefile, we don't want the outer make to evaluate them,
467 # so we pass these variables down unchanged. They must not contain
468 # single nor double quotes.
470 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
471 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
473 # Flags to pass down to most sub-makes, in which we're building with
474 # the host environment.
480 'DLLTOOL=$(DLLTOOL)' \
486 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
488 # Flags that are concerned with the location of the X11 include files
491 # NOTE: until the top-level is getting the values via autoconf, it only
492 # causes problems to have this top-level Makefile overriding the autoconf-set
493 # values in child directories. Only variables that don't conflict with
494 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
496 X11_FLAGS_TO_PASS = \
497 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
498 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
500 # Flags to pass down to makes which are built with the target environment.
501 # The double $ decreases the length of the command line; the variables
502 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
503 EXTRA_TARGET_FLAGS = \
504 'AR=$$(AR_FOR_TARGET)' \
505 'AS=$$(AS_FOR_TARGET)' \
506 'CC=$$(CC_FOR_TARGET)' \
507 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
508 'CXX=$$(CXX_FOR_TARGET)' \
509 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
510 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
511 'LD=$$(LD_FOR_TARGET)' \
512 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
513 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
514 'NM=$$(NM_FOR_TARGET)' \
515 'RANLIB=$$(RANLIB_FOR_TARGET)' \
516 'WINDRES=$$(WINDRES_FOR_TARGET)'
518 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
520 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
521 # unfortunately needs the native compiler and the target ar and
523 # If any variables are added here, they must be added to do-*, below.
524 # The BUILD_* variables are a special case, which are used for the gcc
525 # cross-building scheme.
527 'BUILD_PREFIX=$(BUILD_PREFIX)' \
528 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
529 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
530 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
531 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
532 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
533 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
534 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
535 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
536 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
537 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
538 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
539 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
541 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
543 .PHONY: configure-host
544 configure-host: maybe-configure-gcc \
545 maybe-configure-ash \
546 maybe-configure-autoconf \
547 maybe-configure-automake \
548 maybe-configure-bash \
549 maybe-configure-bfd \
550 maybe-configure-opcodes \
551 maybe-configure-binutils \
552 maybe-configure-bison \
553 maybe-configure-byacc \
554 maybe-configure-bzip2 \
555 maybe-configure-dejagnu \
556 maybe-configure-diff \
557 maybe-configure-dosutils \
558 maybe-configure-etc \
559 maybe-configure-fastjar \
560 maybe-configure-fileutils \
561 maybe-configure-findutils \
562 maybe-configure-find \
563 maybe-configure-flex \
564 maybe-configure-gas \
565 maybe-configure-gawk \
566 maybe-configure-gettext \
567 maybe-configure-gnuserv \
568 maybe-configure-gprof \
569 maybe-configure-gzip \
570 maybe-configure-hello \
571 maybe-configure-indent \
572 maybe-configure-intl \
573 maybe-configure-tcl \
574 maybe-configure-itcl \
576 maybe-configure-libgui \
577 maybe-configure-libbanshee \
578 maybe-configure-libiberty \
579 maybe-configure-libtool \
581 maybe-configure-make \
582 maybe-configure-mmalloc \
583 maybe-configure-patch \
584 maybe-configure-perl \
585 maybe-configure-prms \
586 maybe-configure-rcs \
587 maybe-configure-readline \
588 maybe-configure-release \
589 maybe-configure-recode \
590 maybe-configure-sed \
591 maybe-configure-send-pr \
592 maybe-configure-shellutils \
593 maybe-configure-sid \
594 maybe-configure-sim \
595 maybe-configure-tar \
596 maybe-configure-texinfo \
597 maybe-configure-textutils \
598 maybe-configure-time \
599 maybe-configure-uudecode \
600 maybe-configure-wdiff \
601 maybe-configure-zip \
602 maybe-configure-zlib \
603 maybe-configure-gdb \
604 maybe-configure-expect \
605 maybe-configure-guile \
607 maybe-configure-tix \
608 maybe-configure-libtermcap \
609 maybe-configure-utils
610 .PHONY: configure-target
612 maybe-configure-target-libstdc++-v3 \
613 maybe-configure-target-libmudflap \
614 maybe-configure-target-newlib \
615 maybe-configure-target-libgfortran \
616 maybe-configure-target-libobjc \
617 maybe-configure-target-libtermcap \
618 maybe-configure-target-winsup \
619 maybe-configure-target-libgloss \
620 maybe-configure-target-libiberty \
621 maybe-configure-target-gperf \
622 maybe-configure-target-examples \
623 maybe-configure-target-libffi \
624 maybe-configure-target-libjava \
625 maybe-configure-target-zlib \
626 maybe-configure-target-boehm-gc \
627 maybe-configure-target-qthreads \
628 maybe-configure-target-rda \
629 maybe-configure-target-libada
631 # The target built for a native build.
633 all.normal: @all_build_modules@ all-host all-target
636 all-host: maybe-all-gcc \
652 maybe-all-fileutils \
653 maybe-all-findutils \
669 maybe-all-libbanshee \
670 maybe-all-libiberty \
684 maybe-all-shellutils \
689 maybe-all-textutils \
700 maybe-all-libtermcap \
704 maybe-all-target-libstdc++-v3 \
705 maybe-all-target-libmudflap \
706 maybe-all-target-newlib \
707 maybe-all-target-libgfortran \
708 maybe-all-target-libobjc \
709 maybe-all-target-libtermcap \
710 maybe-all-target-winsup \
711 maybe-all-target-libgloss \
712 maybe-all-target-libiberty \
713 maybe-all-target-gperf \
714 maybe-all-target-examples \
715 maybe-all-target-libffi \
716 maybe-all-target-libjava \
717 maybe-all-target-zlib \
718 maybe-all-target-boehm-gc \
719 maybe-all-target-qthreads \
720 maybe-all-target-rda \
721 maybe-all-target-libada
723 # Do a target for all the subdirectories. A ``make do-X'' will do a
724 # ``make X'' in all subdirectories (because, in general, there is a
725 # dependency (below) of X upon do-X, a ``make X'' will also do this,
726 # but it may do additional work as well).
729 do-info: info-host info-target
732 info-host: maybe-info-gcc \
734 maybe-info-autoconf \
735 maybe-info-automake \
739 maybe-info-binutils \
745 maybe-info-dosutils \
748 maybe-info-fileutils \
749 maybe-info-findutils \
765 maybe-info-libbanshee \
766 maybe-info-libiberty \
775 maybe-info-readline \
780 maybe-info-shellutils \
785 maybe-info-textutils \
787 maybe-info-uudecode \
796 maybe-info-libtermcap \
801 maybe-info-target-libstdc++-v3 \
802 maybe-info-target-libmudflap \
803 maybe-info-target-newlib \
804 maybe-info-target-libgfortran \
805 maybe-info-target-libobjc \
806 maybe-info-target-libtermcap \
807 maybe-info-target-winsup \
808 maybe-info-target-libgloss \
809 maybe-info-target-libiberty \
810 maybe-info-target-gperf \
811 maybe-info-target-examples \
812 maybe-info-target-libffi \
813 maybe-info-target-libjava \
814 maybe-info-target-zlib \
815 maybe-info-target-boehm-gc \
816 maybe-info-target-qthreads \
817 maybe-info-target-rda \
818 maybe-info-target-libada
821 do-dvi: dvi-host dvi-target
824 dvi-host: maybe-dvi-gcc \
840 maybe-dvi-fileutils \
841 maybe-dvi-findutils \
857 maybe-dvi-libbanshee \
858 maybe-dvi-libiberty \
872 maybe-dvi-shellutils \
877 maybe-dvi-textutils \
888 maybe-dvi-libtermcap \
893 maybe-dvi-target-libstdc++-v3 \
894 maybe-dvi-target-libmudflap \
895 maybe-dvi-target-newlib \
896 maybe-dvi-target-libgfortran \
897 maybe-dvi-target-libobjc \
898 maybe-dvi-target-libtermcap \
899 maybe-dvi-target-winsup \
900 maybe-dvi-target-libgloss \
901 maybe-dvi-target-libiberty \
902 maybe-dvi-target-gperf \
903 maybe-dvi-target-examples \
904 maybe-dvi-target-libffi \
905 maybe-dvi-target-libjava \
906 maybe-dvi-target-zlib \
907 maybe-dvi-target-boehm-gc \
908 maybe-dvi-target-qthreads \
909 maybe-dvi-target-rda \
910 maybe-dvi-target-libada
913 do-TAGS: TAGS-host TAGS-target
916 TAGS-host: maybe-TAGS-gcc \
918 maybe-TAGS-autoconf \
919 maybe-TAGS-automake \
923 maybe-TAGS-binutils \
929 maybe-TAGS-dosutils \
932 maybe-TAGS-fileutils \
933 maybe-TAGS-findutils \
949 maybe-TAGS-libbanshee \
950 maybe-TAGS-libiberty \
959 maybe-TAGS-readline \
964 maybe-TAGS-shellutils \
969 maybe-TAGS-textutils \
971 maybe-TAGS-uudecode \
980 maybe-TAGS-libtermcap \
985 maybe-TAGS-target-libstdc++-v3 \
986 maybe-TAGS-target-libmudflap \
987 maybe-TAGS-target-newlib \
988 maybe-TAGS-target-libgfortran \
989 maybe-TAGS-target-libobjc \
990 maybe-TAGS-target-libtermcap \
991 maybe-TAGS-target-winsup \
992 maybe-TAGS-target-libgloss \
993 maybe-TAGS-target-libiberty \
994 maybe-TAGS-target-gperf \
995 maybe-TAGS-target-examples \
996 maybe-TAGS-target-libffi \
997 maybe-TAGS-target-libjava \
998 maybe-TAGS-target-zlib \
999 maybe-TAGS-target-boehm-gc \
1000 maybe-TAGS-target-qthreads \
1001 maybe-TAGS-target-rda \
1002 maybe-TAGS-target-libada
1004 .PHONY: do-install-info
1005 do-install-info: install-info-host install-info-target
1007 .PHONY: install-info-host
1008 install-info-host: maybe-install-info-gcc \
1009 maybe-install-info-ash \
1010 maybe-install-info-autoconf \
1011 maybe-install-info-automake \
1012 maybe-install-info-bash \
1013 maybe-install-info-bfd \
1014 maybe-install-info-opcodes \
1015 maybe-install-info-binutils \
1016 maybe-install-info-bison \
1017 maybe-install-info-byacc \
1018 maybe-install-info-bzip2 \
1019 maybe-install-info-dejagnu \
1020 maybe-install-info-diff \
1021 maybe-install-info-dosutils \
1022 maybe-install-info-etc \
1023 maybe-install-info-fastjar \
1024 maybe-install-info-fileutils \
1025 maybe-install-info-findutils \
1026 maybe-install-info-find \
1027 maybe-install-info-flex \
1028 maybe-install-info-gas \
1029 maybe-install-info-gawk \
1030 maybe-install-info-gettext \
1031 maybe-install-info-gnuserv \
1032 maybe-install-info-gprof \
1033 maybe-install-info-gzip \
1034 maybe-install-info-hello \
1035 maybe-install-info-indent \
1036 maybe-install-info-intl \
1037 maybe-install-info-tcl \
1038 maybe-install-info-itcl \
1039 maybe-install-info-ld \
1040 maybe-install-info-libgui \
1041 maybe-install-info-libbanshee \
1042 maybe-install-info-libiberty \
1043 maybe-install-info-libtool \
1044 maybe-install-info-m4 \
1045 maybe-install-info-make \
1046 maybe-install-info-mmalloc \
1047 maybe-install-info-patch \
1048 maybe-install-info-perl \
1049 maybe-install-info-prms \
1050 maybe-install-info-rcs \
1051 maybe-install-info-readline \
1052 maybe-install-info-release \
1053 maybe-install-info-recode \
1054 maybe-install-info-sed \
1055 maybe-install-info-send-pr \
1056 maybe-install-info-shellutils \
1057 maybe-install-info-sid \
1058 maybe-install-info-sim \
1059 maybe-install-info-tar \
1060 maybe-install-info-texinfo \
1061 maybe-install-info-textutils \
1062 maybe-install-info-time \
1063 maybe-install-info-uudecode \
1064 maybe-install-info-wdiff \
1065 maybe-install-info-zip \
1066 maybe-install-info-zlib \
1067 maybe-install-info-gdb \
1068 maybe-install-info-expect \
1069 maybe-install-info-guile \
1070 maybe-install-info-tk \
1071 maybe-install-info-tix \
1072 maybe-install-info-libtermcap \
1073 maybe-install-info-utils
1075 .PHONY: install-info-target
1076 install-info-target: \
1077 maybe-install-info-target-libstdc++-v3 \
1078 maybe-install-info-target-libmudflap \
1079 maybe-install-info-target-newlib \
1080 maybe-install-info-target-libgfortran \
1081 maybe-install-info-target-libobjc \
1082 maybe-install-info-target-libtermcap \
1083 maybe-install-info-target-winsup \
1084 maybe-install-info-target-libgloss \
1085 maybe-install-info-target-libiberty \
1086 maybe-install-info-target-gperf \
1087 maybe-install-info-target-examples \
1088 maybe-install-info-target-libffi \
1089 maybe-install-info-target-libjava \
1090 maybe-install-info-target-zlib \
1091 maybe-install-info-target-boehm-gc \
1092 maybe-install-info-target-qthreads \
1093 maybe-install-info-target-rda \
1094 maybe-install-info-target-libada
1096 .PHONY: do-installcheck
1097 do-installcheck: installcheck-host installcheck-target
1099 .PHONY: installcheck-host
1100 installcheck-host: maybe-installcheck-gcc \
1101 maybe-installcheck-ash \
1102 maybe-installcheck-autoconf \
1103 maybe-installcheck-automake \
1104 maybe-installcheck-bash \
1105 maybe-installcheck-bfd \
1106 maybe-installcheck-opcodes \
1107 maybe-installcheck-binutils \
1108 maybe-installcheck-bison \
1109 maybe-installcheck-byacc \
1110 maybe-installcheck-bzip2 \
1111 maybe-installcheck-dejagnu \
1112 maybe-installcheck-diff \
1113 maybe-installcheck-dosutils \
1114 maybe-installcheck-etc \
1115 maybe-installcheck-fastjar \
1116 maybe-installcheck-fileutils \
1117 maybe-installcheck-findutils \
1118 maybe-installcheck-find \
1119 maybe-installcheck-flex \
1120 maybe-installcheck-gas \
1121 maybe-installcheck-gawk \
1122 maybe-installcheck-gettext \
1123 maybe-installcheck-gnuserv \
1124 maybe-installcheck-gprof \
1125 maybe-installcheck-gzip \
1126 maybe-installcheck-hello \
1127 maybe-installcheck-indent \
1128 maybe-installcheck-intl \
1129 maybe-installcheck-tcl \
1130 maybe-installcheck-itcl \
1131 maybe-installcheck-ld \
1132 maybe-installcheck-libgui \
1133 maybe-installcheck-libbanshee \
1134 maybe-installcheck-libiberty \
1135 maybe-installcheck-libtool \
1136 maybe-installcheck-m4 \
1137 maybe-installcheck-make \
1138 maybe-installcheck-mmalloc \
1139 maybe-installcheck-patch \
1140 maybe-installcheck-perl \
1141 maybe-installcheck-prms \
1142 maybe-installcheck-rcs \
1143 maybe-installcheck-readline \
1144 maybe-installcheck-release \
1145 maybe-installcheck-recode \
1146 maybe-installcheck-sed \
1147 maybe-installcheck-send-pr \
1148 maybe-installcheck-shellutils \
1149 maybe-installcheck-sid \
1150 maybe-installcheck-sim \
1151 maybe-installcheck-tar \
1152 maybe-installcheck-texinfo \
1153 maybe-installcheck-textutils \
1154 maybe-installcheck-time \
1155 maybe-installcheck-uudecode \
1156 maybe-installcheck-wdiff \
1157 maybe-installcheck-zip \
1158 maybe-installcheck-zlib \
1159 maybe-installcheck-gdb \
1160 maybe-installcheck-expect \
1161 maybe-installcheck-guile \
1162 maybe-installcheck-tk \
1163 maybe-installcheck-tix \
1164 maybe-installcheck-libtermcap \
1165 maybe-installcheck-utils
1167 .PHONY: installcheck-target
1168 installcheck-target: \
1169 maybe-installcheck-target-libstdc++-v3 \
1170 maybe-installcheck-target-libmudflap \
1171 maybe-installcheck-target-newlib \
1172 maybe-installcheck-target-libgfortran \
1173 maybe-installcheck-target-libobjc \
1174 maybe-installcheck-target-libtermcap \
1175 maybe-installcheck-target-winsup \
1176 maybe-installcheck-target-libgloss \
1177 maybe-installcheck-target-libiberty \
1178 maybe-installcheck-target-gperf \
1179 maybe-installcheck-target-examples \
1180 maybe-installcheck-target-libffi \
1181 maybe-installcheck-target-libjava \
1182 maybe-installcheck-target-zlib \
1183 maybe-installcheck-target-boehm-gc \
1184 maybe-installcheck-target-qthreads \
1185 maybe-installcheck-target-rda \
1186 maybe-installcheck-target-libada
1188 .PHONY: do-mostlyclean
1189 do-mostlyclean: mostlyclean-host mostlyclean-target
1191 .PHONY: mostlyclean-host
1192 mostlyclean-host: maybe-mostlyclean-gcc \
1193 maybe-mostlyclean-ash \
1194 maybe-mostlyclean-autoconf \
1195 maybe-mostlyclean-automake \
1196 maybe-mostlyclean-bash \
1197 maybe-mostlyclean-bfd \
1198 maybe-mostlyclean-opcodes \
1199 maybe-mostlyclean-binutils \
1200 maybe-mostlyclean-bison \
1201 maybe-mostlyclean-byacc \
1202 maybe-mostlyclean-bzip2 \
1203 maybe-mostlyclean-dejagnu \
1204 maybe-mostlyclean-diff \
1205 maybe-mostlyclean-dosutils \
1206 maybe-mostlyclean-etc \
1207 maybe-mostlyclean-fastjar \
1208 maybe-mostlyclean-fileutils \
1209 maybe-mostlyclean-findutils \
1210 maybe-mostlyclean-find \
1211 maybe-mostlyclean-flex \
1212 maybe-mostlyclean-gas \
1213 maybe-mostlyclean-gawk \
1214 maybe-mostlyclean-gettext \
1215 maybe-mostlyclean-gnuserv \
1216 maybe-mostlyclean-gprof \
1217 maybe-mostlyclean-gzip \
1218 maybe-mostlyclean-hello \
1219 maybe-mostlyclean-indent \
1220 maybe-mostlyclean-intl \
1221 maybe-mostlyclean-tcl \
1222 maybe-mostlyclean-itcl \
1223 maybe-mostlyclean-ld \
1224 maybe-mostlyclean-libgui \
1225 maybe-mostlyclean-libbanshee \
1226 maybe-mostlyclean-libiberty \
1227 maybe-mostlyclean-libtool \
1228 maybe-mostlyclean-m4 \
1229 maybe-mostlyclean-make \
1230 maybe-mostlyclean-mmalloc \
1231 maybe-mostlyclean-patch \
1232 maybe-mostlyclean-perl \
1233 maybe-mostlyclean-prms \
1234 maybe-mostlyclean-rcs \
1235 maybe-mostlyclean-readline \
1236 maybe-mostlyclean-release \
1237 maybe-mostlyclean-recode \
1238 maybe-mostlyclean-sed \
1239 maybe-mostlyclean-send-pr \
1240 maybe-mostlyclean-shellutils \
1241 maybe-mostlyclean-sid \
1242 maybe-mostlyclean-sim \
1243 maybe-mostlyclean-tar \
1244 maybe-mostlyclean-texinfo \
1245 maybe-mostlyclean-textutils \
1246 maybe-mostlyclean-time \
1247 maybe-mostlyclean-uudecode \
1248 maybe-mostlyclean-wdiff \
1249 maybe-mostlyclean-zip \
1250 maybe-mostlyclean-zlib \
1251 maybe-mostlyclean-gdb \
1252 maybe-mostlyclean-expect \
1253 maybe-mostlyclean-guile \
1254 maybe-mostlyclean-tk \
1255 maybe-mostlyclean-tix \
1256 maybe-mostlyclean-libtermcap \
1257 maybe-mostlyclean-utils
1259 .PHONY: mostlyclean-target
1260 mostlyclean-target: \
1261 maybe-mostlyclean-target-libstdc++-v3 \
1262 maybe-mostlyclean-target-libmudflap \
1263 maybe-mostlyclean-target-newlib \
1264 maybe-mostlyclean-target-libgfortran \
1265 maybe-mostlyclean-target-libobjc \
1266 maybe-mostlyclean-target-libtermcap \
1267 maybe-mostlyclean-target-winsup \
1268 maybe-mostlyclean-target-libgloss \
1269 maybe-mostlyclean-target-libiberty \
1270 maybe-mostlyclean-target-gperf \
1271 maybe-mostlyclean-target-examples \
1272 maybe-mostlyclean-target-libffi \
1273 maybe-mostlyclean-target-libjava \
1274 maybe-mostlyclean-target-zlib \
1275 maybe-mostlyclean-target-boehm-gc \
1276 maybe-mostlyclean-target-qthreads \
1277 maybe-mostlyclean-target-rda \
1278 maybe-mostlyclean-target-libada
1281 do-clean: clean-host clean-target
1284 clean-host: maybe-clean-gcc \
1286 maybe-clean-autoconf \
1287 maybe-clean-automake \
1290 maybe-clean-opcodes \
1291 maybe-clean-binutils \
1295 maybe-clean-dejagnu \
1297 maybe-clean-dosutils \
1299 maybe-clean-fastjar \
1300 maybe-clean-fileutils \
1301 maybe-clean-findutils \
1306 maybe-clean-gettext \
1307 maybe-clean-gnuserv \
1311 maybe-clean-indent \
1316 maybe-clean-libgui \
1317 maybe-clean-libbanshee \
1318 maybe-clean-libiberty \
1319 maybe-clean-libtool \
1322 maybe-clean-mmalloc \
1327 maybe-clean-readline \
1328 maybe-clean-release \
1329 maybe-clean-recode \
1331 maybe-clean-send-pr \
1332 maybe-clean-shellutils \
1336 maybe-clean-texinfo \
1337 maybe-clean-textutils \
1339 maybe-clean-uudecode \
1344 maybe-clean-expect \
1348 maybe-clean-libtermcap \
1351 .PHONY: clean-target
1353 maybe-clean-target-libstdc++-v3 \
1354 maybe-clean-target-libmudflap \
1355 maybe-clean-target-newlib \
1356 maybe-clean-target-libgfortran \
1357 maybe-clean-target-libobjc \
1358 maybe-clean-target-libtermcap \
1359 maybe-clean-target-winsup \
1360 maybe-clean-target-libgloss \
1361 maybe-clean-target-libiberty \
1362 maybe-clean-target-gperf \
1363 maybe-clean-target-examples \
1364 maybe-clean-target-libffi \
1365 maybe-clean-target-libjava \
1366 maybe-clean-target-zlib \
1367 maybe-clean-target-boehm-gc \
1368 maybe-clean-target-qthreads \
1369 maybe-clean-target-rda \
1370 maybe-clean-target-libada
1372 .PHONY: do-distclean
1373 do-distclean: distclean-host distclean-target
1375 .PHONY: distclean-host
1376 distclean-host: maybe-distclean-gcc \
1377 maybe-distclean-ash \
1378 maybe-distclean-autoconf \
1379 maybe-distclean-automake \
1380 maybe-distclean-bash \
1381 maybe-distclean-bfd \
1382 maybe-distclean-opcodes \
1383 maybe-distclean-binutils \
1384 maybe-distclean-bison \
1385 maybe-distclean-byacc \
1386 maybe-distclean-bzip2 \
1387 maybe-distclean-dejagnu \
1388 maybe-distclean-diff \
1389 maybe-distclean-dosutils \
1390 maybe-distclean-etc \
1391 maybe-distclean-fastjar \
1392 maybe-distclean-fileutils \
1393 maybe-distclean-findutils \
1394 maybe-distclean-find \
1395 maybe-distclean-flex \
1396 maybe-distclean-gas \
1397 maybe-distclean-gawk \
1398 maybe-distclean-gettext \
1399 maybe-distclean-gnuserv \
1400 maybe-distclean-gprof \
1401 maybe-distclean-gzip \
1402 maybe-distclean-hello \
1403 maybe-distclean-indent \
1404 maybe-distclean-intl \
1405 maybe-distclean-tcl \
1406 maybe-distclean-itcl \
1407 maybe-distclean-ld \
1408 maybe-distclean-libgui \
1409 maybe-distclean-libbanshee \
1410 maybe-distclean-libiberty \
1411 maybe-distclean-libtool \
1412 maybe-distclean-m4 \
1413 maybe-distclean-make \
1414 maybe-distclean-mmalloc \
1415 maybe-distclean-patch \
1416 maybe-distclean-perl \
1417 maybe-distclean-prms \
1418 maybe-distclean-rcs \
1419 maybe-distclean-readline \
1420 maybe-distclean-release \
1421 maybe-distclean-recode \
1422 maybe-distclean-sed \
1423 maybe-distclean-send-pr \
1424 maybe-distclean-shellutils \
1425 maybe-distclean-sid \
1426 maybe-distclean-sim \
1427 maybe-distclean-tar \
1428 maybe-distclean-texinfo \
1429 maybe-distclean-textutils \
1430 maybe-distclean-time \
1431 maybe-distclean-uudecode \
1432 maybe-distclean-wdiff \
1433 maybe-distclean-zip \
1434 maybe-distclean-zlib \
1435 maybe-distclean-gdb \
1436 maybe-distclean-expect \
1437 maybe-distclean-guile \
1438 maybe-distclean-tk \
1439 maybe-distclean-tix \
1440 maybe-distclean-libtermcap \
1441 maybe-distclean-utils
1443 .PHONY: distclean-target
1445 maybe-distclean-target-libstdc++-v3 \
1446 maybe-distclean-target-libmudflap \
1447 maybe-distclean-target-newlib \
1448 maybe-distclean-target-libgfortran \
1449 maybe-distclean-target-libobjc \
1450 maybe-distclean-target-libtermcap \
1451 maybe-distclean-target-winsup \
1452 maybe-distclean-target-libgloss \
1453 maybe-distclean-target-libiberty \
1454 maybe-distclean-target-gperf \
1455 maybe-distclean-target-examples \
1456 maybe-distclean-target-libffi \
1457 maybe-distclean-target-libjava \
1458 maybe-distclean-target-zlib \
1459 maybe-distclean-target-boehm-gc \
1460 maybe-distclean-target-qthreads \
1461 maybe-distclean-target-rda \
1462 maybe-distclean-target-libada
1464 .PHONY: do-maintainer-clean
1465 do-maintainer-clean: maintainer-clean-host maintainer-clean-target
1467 .PHONY: maintainer-clean-host
1468 maintainer-clean-host: maybe-maintainer-clean-gcc \
1469 maybe-maintainer-clean-ash \
1470 maybe-maintainer-clean-autoconf \
1471 maybe-maintainer-clean-automake \
1472 maybe-maintainer-clean-bash \
1473 maybe-maintainer-clean-bfd \
1474 maybe-maintainer-clean-opcodes \
1475 maybe-maintainer-clean-binutils \
1476 maybe-maintainer-clean-bison \
1477 maybe-maintainer-clean-byacc \
1478 maybe-maintainer-clean-bzip2 \
1479 maybe-maintainer-clean-dejagnu \
1480 maybe-maintainer-clean-diff \
1481 maybe-maintainer-clean-dosutils \
1482 maybe-maintainer-clean-etc \
1483 maybe-maintainer-clean-fastjar \
1484 maybe-maintainer-clean-fileutils \
1485 maybe-maintainer-clean-findutils \
1486 maybe-maintainer-clean-find \
1487 maybe-maintainer-clean-flex \
1488 maybe-maintainer-clean-gas \
1489 maybe-maintainer-clean-gawk \
1490 maybe-maintainer-clean-gettext \
1491 maybe-maintainer-clean-gnuserv \
1492 maybe-maintainer-clean-gprof \
1493 maybe-maintainer-clean-gzip \
1494 maybe-maintainer-clean-hello \
1495 maybe-maintainer-clean-indent \
1496 maybe-maintainer-clean-intl \
1497 maybe-maintainer-clean-tcl \
1498 maybe-maintainer-clean-itcl \
1499 maybe-maintainer-clean-ld \
1500 maybe-maintainer-clean-libgui \
1501 maybe-maintainer-clean-libbanshee \
1502 maybe-maintainer-clean-libiberty \
1503 maybe-maintainer-clean-libtool \
1504 maybe-maintainer-clean-m4 \
1505 maybe-maintainer-clean-make \
1506 maybe-maintainer-clean-mmalloc \
1507 maybe-maintainer-clean-patch \
1508 maybe-maintainer-clean-perl \
1509 maybe-maintainer-clean-prms \
1510 maybe-maintainer-clean-rcs \
1511 maybe-maintainer-clean-readline \
1512 maybe-maintainer-clean-release \
1513 maybe-maintainer-clean-recode \
1514 maybe-maintainer-clean-sed \
1515 maybe-maintainer-clean-send-pr \
1516 maybe-maintainer-clean-shellutils \
1517 maybe-maintainer-clean-sid \
1518 maybe-maintainer-clean-sim \
1519 maybe-maintainer-clean-tar \
1520 maybe-maintainer-clean-texinfo \
1521 maybe-maintainer-clean-textutils \
1522 maybe-maintainer-clean-time \
1523 maybe-maintainer-clean-uudecode \
1524 maybe-maintainer-clean-wdiff \
1525 maybe-maintainer-clean-zip \
1526 maybe-maintainer-clean-zlib \
1527 maybe-maintainer-clean-gdb \
1528 maybe-maintainer-clean-expect \
1529 maybe-maintainer-clean-guile \
1530 maybe-maintainer-clean-tk \
1531 maybe-maintainer-clean-tix \
1532 maybe-maintainer-clean-libtermcap \
1533 maybe-maintainer-clean-utils
1535 .PHONY: maintainer-clean-target
1536 maintainer-clean-target: \
1537 maybe-maintainer-clean-target-libstdc++-v3 \
1538 maybe-maintainer-clean-target-libmudflap \
1539 maybe-maintainer-clean-target-newlib \
1540 maybe-maintainer-clean-target-libgfortran \
1541 maybe-maintainer-clean-target-libobjc \
1542 maybe-maintainer-clean-target-libtermcap \
1543 maybe-maintainer-clean-target-winsup \
1544 maybe-maintainer-clean-target-libgloss \
1545 maybe-maintainer-clean-target-libiberty \
1546 maybe-maintainer-clean-target-gperf \
1547 maybe-maintainer-clean-target-examples \
1548 maybe-maintainer-clean-target-libffi \
1549 maybe-maintainer-clean-target-libjava \
1550 maybe-maintainer-clean-target-zlib \
1551 maybe-maintainer-clean-target-boehm-gc \
1552 maybe-maintainer-clean-target-qthreads \
1553 maybe-maintainer-clean-target-rda \
1554 maybe-maintainer-clean-target-libada
1557 # Here are the targets which correspond to the do-X targets.
1559 .PHONY: info installcheck dvi install-info
1560 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1561 .PHONY: local-clean local-distclean local-maintainer-clean
1563 installcheck: do-installcheck
1566 # Make sure makeinfo is built before we do a `make info', if we're
1567 # in fact building texinfo.
1568 do-info: maybe-all-texinfo
1570 install-info: do-install-info dir.info
1571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1572 if [ -f dir.info ] ; then \
1573 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1577 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1580 -rm -f Makefile config.status config.cache mh-frag mt-frag
1581 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1582 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1583 rm -rf $(TARGET_SUBDIR); \
1585 -rm -rf $(BUILD_SUBDIR)
1586 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1587 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1588 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1589 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1590 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1592 local-maintainer-clean:
1593 @echo "This command is intended for maintainers to use;"
1594 @echo "it deletes files that may require special tools to rebuild."
1596 clean: do-clean local-clean
1597 mostlyclean: do-mostlyclean local-clean
1598 distclean: do-distclean local-clean local-distclean
1599 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1600 maintainer-clean: local-distclean
1601 realclean: maintainer-clean
1603 # Extra dependency for clean-target, owing to the mixed nature of gcc
1604 clean-target: clean-target-libgcc
1605 clean-target-libgcc:
1606 test ! -d gcc/libgcc || \
1607 (cd gcc/libgcc && find . -type d -print) | \
1608 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1613 .PHONY: check do-check
1616 # Only include modules actually being configured and built.
1617 do-check: maybe-check-gcc \
1619 maybe-check-autoconf \
1620 maybe-check-automake \
1623 maybe-check-opcodes \
1624 maybe-check-binutils \
1628 maybe-check-dejagnu \
1630 maybe-check-dosutils \
1632 maybe-check-fastjar \
1633 maybe-check-fileutils \
1634 maybe-check-findutils \
1639 maybe-check-gettext \
1640 maybe-check-gnuserv \
1644 maybe-check-indent \
1649 maybe-check-libgui \
1650 maybe-check-libbanshee \
1651 maybe-check-libiberty \
1652 maybe-check-libtool \
1655 maybe-check-mmalloc \
1660 maybe-check-readline \
1661 maybe-check-release \
1662 maybe-check-recode \
1664 maybe-check-send-pr \
1665 maybe-check-shellutils \
1669 maybe-check-texinfo \
1670 maybe-check-textutils \
1672 maybe-check-uudecode \
1677 maybe-check-expect \
1681 maybe-check-libtermcap \
1683 maybe-check-target-libstdc++-v3 \
1684 maybe-check-target-libmudflap \
1685 maybe-check-target-newlib \
1686 maybe-check-target-libgfortran \
1687 maybe-check-target-libobjc \
1688 maybe-check-target-libtermcap \
1689 maybe-check-target-winsup \
1690 maybe-check-target-libgloss \
1691 maybe-check-target-libiberty \
1692 maybe-check-target-gperf \
1693 maybe-check-target-examples \
1694 maybe-check-target-libffi \
1695 maybe-check-target-libjava \
1696 maybe-check-target-zlib \
1697 maybe-check-target-boehm-gc \
1698 maybe-check-target-qthreads \
1699 maybe-check-target-rda \
1700 maybe-check-target-libada
1702 # Automated reporting of test results.
1704 warning.log: build.log
1705 $(srcdir)/contrib/warn_summary build.log > $@
1708 if test x'$(BOOT_CFLAGS)' != x''; then \
1709 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1711 $(srcdir)/contrib/test_summary -t >$@
1713 echo If you really want to send e-mail, run ./$@ now
1715 mail-report-with-warnings.log: warning.log
1716 if test x'$(BOOT_CFLAGS)' != x''; then \
1717 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1719 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1721 echo If you really want to send e-mail, run ./$@ now
1723 # Installation targets.
1725 .PHONY: install uninstall
1726 install: installdirs install-host install-target
1728 .PHONY: install-host-nogcc
1729 install-host-nogcc: \
1731 maybe-install-autoconf \
1732 maybe-install-automake \
1733 maybe-install-bash \
1735 maybe-install-opcodes \
1736 maybe-install-binutils \
1737 maybe-install-bison \
1738 maybe-install-byacc \
1739 maybe-install-bzip2 \
1740 maybe-install-dejagnu \
1741 maybe-install-diff \
1742 maybe-install-dosutils \
1744 maybe-install-fastjar \
1745 maybe-install-fileutils \
1746 maybe-install-findutils \
1747 maybe-install-find \
1748 maybe-install-flex \
1750 maybe-install-gawk \
1751 maybe-install-gettext \
1752 maybe-install-gnuserv \
1753 maybe-install-gprof \
1754 maybe-install-gzip \
1755 maybe-install-hello \
1756 maybe-install-indent \
1757 maybe-install-intl \
1759 maybe-install-itcl \
1761 maybe-install-libgui \
1762 maybe-install-libbanshee \
1763 maybe-install-libiberty \
1764 maybe-install-libtool \
1766 maybe-install-make \
1767 maybe-install-mmalloc \
1768 maybe-install-patch \
1769 maybe-install-perl \
1770 maybe-install-prms \
1772 maybe-install-readline \
1773 maybe-install-release \
1774 maybe-install-recode \
1776 maybe-install-send-pr \
1777 maybe-install-shellutils \
1781 maybe-install-texinfo \
1782 maybe-install-textutils \
1783 maybe-install-time \
1784 maybe-install-uudecode \
1785 maybe-install-wdiff \
1787 maybe-install-zlib \
1789 maybe-install-expect \
1790 maybe-install-guile \
1793 maybe-install-libtermcap \
1796 .PHONY: install-host
1797 install-host: maybe-install-gcc \
1799 maybe-install-autoconf \
1800 maybe-install-automake \
1801 maybe-install-bash \
1803 maybe-install-opcodes \
1804 maybe-install-binutils \
1805 maybe-install-bison \
1806 maybe-install-byacc \
1807 maybe-install-bzip2 \
1808 maybe-install-dejagnu \
1809 maybe-install-diff \
1810 maybe-install-dosutils \
1812 maybe-install-fastjar \
1813 maybe-install-fileutils \
1814 maybe-install-findutils \
1815 maybe-install-find \
1816 maybe-install-flex \
1818 maybe-install-gawk \
1819 maybe-install-gettext \
1820 maybe-install-gnuserv \
1821 maybe-install-gprof \
1822 maybe-install-gzip \
1823 maybe-install-hello \
1824 maybe-install-indent \
1825 maybe-install-intl \
1827 maybe-install-itcl \
1829 maybe-install-libgui \
1830 maybe-install-libbanshee \
1831 maybe-install-libiberty \
1832 maybe-install-libtool \
1834 maybe-install-make \
1835 maybe-install-mmalloc \
1836 maybe-install-patch \
1837 maybe-install-perl \
1838 maybe-install-prms \
1840 maybe-install-readline \
1841 maybe-install-release \
1842 maybe-install-recode \
1844 maybe-install-send-pr \
1845 maybe-install-shellutils \
1849 maybe-install-texinfo \
1850 maybe-install-textutils \
1851 maybe-install-time \
1852 maybe-install-uudecode \
1853 maybe-install-wdiff \
1855 maybe-install-zlib \
1857 maybe-install-expect \
1858 maybe-install-guile \
1861 maybe-install-libtermcap \
1864 .PHONY: install-target
1866 maybe-install-target-libstdc++-v3 \
1867 maybe-install-target-libmudflap \
1868 maybe-install-target-newlib \
1869 maybe-install-target-libgfortran \
1870 maybe-install-target-libobjc \
1871 maybe-install-target-libtermcap \
1872 maybe-install-target-winsup \
1873 maybe-install-target-libgloss \
1874 maybe-install-target-libiberty \
1875 maybe-install-target-gperf \
1876 maybe-install-target-examples \
1877 maybe-install-target-libffi \
1878 maybe-install-target-libjava \
1879 maybe-install-target-zlib \
1880 maybe-install-target-boehm-gc \
1881 maybe-install-target-qthreads \
1882 maybe-install-target-rda \
1883 maybe-install-target-libada
1886 @echo "the uninstall target is not supported in this tree"
1889 install.all: install-no-fixedincludes
1890 @if [ -f ./gcc/Makefile ] ; then \
1891 r=`${PWD_COMMAND}` ; export r ; \
1894 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1899 # install-no-fixedincludes is used because Cygnus can not distribute
1900 # the fixed header files.
1901 .PHONY: install-no-fixedincludes
1902 install-no-fixedincludes: installdirs install-host-nogcc \
1903 install-target gcc-no-fixedincludes
1905 ### other supporting targets
1908 $(DESTDIR)$(prefix) \
1909 $(DESTDIR)$(exec_prefix)
1911 installdirs: mkinstalldirs
1912 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1914 dir.info: do-install-info
1915 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1916 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1917 mv -f dir.info.new dir.info ; \
1922 @echo "Building a full distribution of this tree isn't done"
1923 @echo "via 'make dist'. Check out the etc/ subdirectory"
1927 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1928 # ability to use several tags files at once, so there is probably no need
1929 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1930 # (if we felt like it) have this Makefile write a piece of elisp which
1931 # the user could load to tell emacs19 where all the TAGS files we just
1935 # --------------------------------------
1936 # Modules which run on the build machine
1937 # --------------------------------------
1939 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
1940 maybe-configure-build-libiberty:
1942 maybe-configure-build-libiberty: configure-build-libiberty
1943 configure-build-libiberty:
1944 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
1945 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
1946 r=`${PWD_COMMAND}`; export r; \
1947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1948 AR="$(AR_FOR_BUILD)"; export AR; \
1949 AS="$(AS_FOR_BUILD)"; export AS; \
1950 CC="$(CC_FOR_BUILD)"; export CC; \
1951 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1952 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
1953 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1954 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1955 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1956 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
1957 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1958 LD="$(LD_FOR_BUILD)"; export LD; \
1959 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1960 NM="$(NM_FOR_BUILD)"; export NM; \
1961 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1962 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1963 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1964 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1966 /* | [A-Za-z]:[\\/]*) \
1967 topdir=$(srcdir) ;; \
1969 case "$(BUILD_SUBDIR)" in \
1970 .) topdir="../$(srcdir)" ;; \
1971 *) topdir="../../$(srcdir)" ;; \
1974 if [ "$(srcdir)" = "." ] ; then \
1975 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1976 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1977 if [ -f Makefile ]; then \
1978 if $(MAKE) distclean; then \
1992 srcdiroption="--srcdir=."; \
1995 srcdiroption="--srcdir=$${topdir}/libiberty"; \
1996 libsrcdir="$$s/libiberty"; \
1998 rm -f no-such-file || : ; \
1999 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2000 $(BUILD_CONFIGARGS) $${srcdiroption} \
2001 --with-build-subdir="$(BUILD_SUBDIR)" \
2003 @endif build-libiberty
2005 .PHONY: all-build-libiberty maybe-all-build-libiberty
2006 maybe-all-build-libiberty:
2008 maybe-all-build-libiberty: all-build-libiberty
2009 all-build-libiberty: configure-build-libiberty
2010 @r=`${PWD_COMMAND}`; export r; \
2011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2012 (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all)
2013 @endif build-libiberty
2015 .PHONY: configure-build-libbanshee maybe-configure-build-libbanshee
2016 maybe-configure-build-libbanshee:
2017 @if build-libbanshee
2018 maybe-configure-build-libbanshee: configure-build-libbanshee
2019 configure-build-libbanshee:
2020 @test ! -f $(BUILD_SUBDIR)/libbanshee/Makefile || exit 0; \
2021 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libbanshee ; \
2022 r=`${PWD_COMMAND}`; export r; \
2023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2024 AR="$(AR_FOR_BUILD)"; export AR; \
2025 AS="$(AS_FOR_BUILD)"; export AS; \
2026 CC="$(CC_FOR_BUILD)"; export CC; \
2027 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
2028 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2029 CXX="$(CXX_FOR_BUILD)"; export CXX; \
2030 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
2031 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
2032 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
2033 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
2034 LD="$(LD_FOR_BUILD)"; export LD; \
2035 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
2036 NM="$(NM_FOR_BUILD)"; export NM; \
2037 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
2038 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
2039 echo Configuring in $(BUILD_SUBDIR)/libbanshee; \
2040 cd "$(BUILD_SUBDIR)/libbanshee" || exit 1; \
2042 /* | [A-Za-z]:[\\/]*) \
2043 topdir=$(srcdir) ;; \
2045 case "$(BUILD_SUBDIR)" in \
2046 .) topdir="../$(srcdir)" ;; \
2047 *) topdir="../../$(srcdir)" ;; \
2050 if [ "$(srcdir)" = "." ] ; then \
2051 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2052 if $(SHELL) $$s/symlink-tree $${topdir}/libbanshee "no-such-file" ; then \
2053 if [ -f Makefile ]; then \
2054 if $(MAKE) distclean; then \
2068 srcdiroption="--srcdir=."; \
2071 srcdiroption="--srcdir=$${topdir}/libbanshee"; \
2072 libsrcdir="$$s/libbanshee"; \
2074 rm -f no-such-file || : ; \
2075 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2076 $(BUILD_CONFIGARGS) $${srcdiroption} \
2077 --with-build-subdir="$(BUILD_SUBDIR)" \
2079 @endif build-libbanshee
2081 .PHONY: all-build-libbanshee maybe-all-build-libbanshee
2082 maybe-all-build-libbanshee:
2083 @if build-libbanshee
2084 maybe-all-build-libbanshee: all-build-libbanshee
2085 all-build-libbanshee: configure-build-libbanshee
2086 @r=`${PWD_COMMAND}`; export r; \
2087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2088 (cd $(BUILD_SUBDIR)/libbanshee && $(MAKE) all)
2089 @endif build-libbanshee
2092 # --------------------------------------
2093 # Modules which run on the host machine
2094 # --------------------------------------
2096 .PHONY: configure-ash maybe-configure-ash
2097 maybe-configure-ash:
2099 maybe-configure-ash: configure-ash
2101 @test ! -f ash/Makefile || exit 0; \
2102 [ -d ash ] || mkdir ash; \
2103 r=`${PWD_COMMAND}`; export r; \
2104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2105 CC="$(CC)"; export CC; \
2106 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2107 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2108 CXX="$(CXX)"; export CXX; \
2109 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2110 AR="$(AR)"; export AR; \
2111 AS="$(AS)"; export AS; \
2112 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2113 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2114 LD="$(LD)"; export LD; \
2115 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
2116 NM="$(NM)"; export NM; \
2117 RANLIB="$(RANLIB)"; export RANLIB; \
2118 WINDRES="$(WINDRES)"; export WINDRES; \
2119 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2120 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2121 echo Configuring in ash; \
2125 srcdiroption="--srcdir=."; \
2127 /* | [A-Za-z]:[\\/]*) \
2128 srcdiroption="--srcdir=$(srcdir)/ash"; \
2129 libsrcdir="$$s/ash";; \
2131 srcdiroption="--srcdir=../$(srcdir)/ash"; \
2132 libsrcdir="$$s/ash";; \
2134 $(SHELL) $${libsrcdir}/configure \
2135 $(HOST_CONFIGARGS) $${srcdiroption} \
2139 .PHONY: all-ash maybe-all-ash
2142 maybe-all-ash: all-ash
2143 all-ash: configure-ash
2144 @r=`${PWD_COMMAND}`; export r; \
2145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2147 (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
2150 .PHONY: check-ash maybe-check-ash
2153 maybe-check-ash: check-ash
2156 @r=`${PWD_COMMAND}`; export r; \
2157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2159 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
2163 .PHONY: install-ash maybe-install-ash
2166 maybe-install-ash: install-ash
2168 install-ash: installdirs
2169 @r=`${PWD_COMMAND}`; export r; \
2170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2172 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
2176 # Other targets (info, dvi, etc.)
2178 .PHONY: maybe-info-ash info-ash
2181 maybe-info-ash: info-ash
2185 @[ -f ./ash/Makefile ] || exit 0; \
2186 r=`${PWD_COMMAND}`; export r; \
2187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2189 for flag in $(EXTRA_HOST_FLAGS); do \
2190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2192 echo "Doing info in ash" ; \
2194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2196 "RANLIB=$${RANLIB}" \
2197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2203 .PHONY: maybe-dvi-ash dvi-ash
2206 maybe-dvi-ash: dvi-ash
2210 @[ -f ./ash/Makefile ] || exit 0; \
2211 r=`${PWD_COMMAND}`; export r; \
2212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2214 for flag in $(EXTRA_HOST_FLAGS); do \
2215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2217 echo "Doing dvi in ash" ; \
2219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2221 "RANLIB=$${RANLIB}" \
2222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2228 .PHONY: maybe-TAGS-ash TAGS-ash
2231 maybe-TAGS-ash: TAGS-ash
2235 @[ -f ./ash/Makefile ] || exit 0; \
2236 r=`${PWD_COMMAND}`; export r; \
2237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2239 for flag in $(EXTRA_HOST_FLAGS); do \
2240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2242 echo "Doing TAGS in ash" ; \
2244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2246 "RANLIB=$${RANLIB}" \
2247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2253 .PHONY: maybe-install-info-ash install-info-ash
2254 maybe-install-info-ash:
2256 maybe-install-info-ash: install-info-ash
2261 @[ -f ./ash/Makefile ] || exit 0; \
2262 r=`${PWD_COMMAND}`; export r; \
2263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2265 for flag in $(EXTRA_HOST_FLAGS); do \
2266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2268 echo "Doing install-info in ash" ; \
2270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2272 "RANLIB=$${RANLIB}" \
2273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2279 .PHONY: maybe-installcheck-ash installcheck-ash
2280 maybe-installcheck-ash:
2282 maybe-installcheck-ash: installcheck-ash
2286 @[ -f ./ash/Makefile ] || exit 0; \
2287 r=`${PWD_COMMAND}`; export r; \
2288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2290 for flag in $(EXTRA_HOST_FLAGS); do \
2291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2293 echo "Doing installcheck in ash" ; \
2295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2297 "RANLIB=$${RANLIB}" \
2298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2304 .PHONY: maybe-mostlyclean-ash mostlyclean-ash
2305 maybe-mostlyclean-ash:
2307 maybe-mostlyclean-ash: mostlyclean-ash
2310 @[ -f ./ash/Makefile ] || exit 0; \
2311 r=`${PWD_COMMAND}`; export r; \
2312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2314 for flag in $(EXTRA_HOST_FLAGS); do \
2315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2317 echo "Doing mostlyclean in ash" ; \
2319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2321 "RANLIB=$${RANLIB}" \
2322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2328 .PHONY: maybe-clean-ash clean-ash
2331 maybe-clean-ash: clean-ash
2334 @[ -f ./ash/Makefile ] || exit 0; \
2335 r=`${PWD_COMMAND}`; export r; \
2336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2338 for flag in $(EXTRA_HOST_FLAGS); do \
2339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2341 echo "Doing clean in ash" ; \
2343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2345 "RANLIB=$${RANLIB}" \
2346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2352 .PHONY: maybe-distclean-ash distclean-ash
2353 maybe-distclean-ash:
2355 maybe-distclean-ash: distclean-ash
2358 @[ -f ./ash/Makefile ] || exit 0; \
2359 r=`${PWD_COMMAND}`; export r; \
2360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2362 for flag in $(EXTRA_HOST_FLAGS); do \
2363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2365 echo "Doing distclean in ash" ; \
2367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2369 "RANLIB=$${RANLIB}" \
2370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2376 .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2377 maybe-maintainer-clean-ash:
2379 maybe-maintainer-clean-ash: maintainer-clean-ash
2381 maintainer-clean-ash:
2382 @[ -f ./ash/Makefile ] || exit 0; \
2383 r=`${PWD_COMMAND}`; export r; \
2384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2386 for flag in $(EXTRA_HOST_FLAGS); do \
2387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2389 echo "Doing maintainer-clean in ash" ; \
2391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2393 "RANLIB=$${RANLIB}" \
2394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2401 .PHONY: configure-autoconf maybe-configure-autoconf
2402 maybe-configure-autoconf:
2404 maybe-configure-autoconf: configure-autoconf
2406 @test ! -f autoconf/Makefile || exit 0; \
2407 [ -d autoconf ] || mkdir autoconf; \
2408 r=`${PWD_COMMAND}`; export r; \
2409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2410 CC="$(CC)"; export CC; \
2411 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2412 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2413 CXX="$(CXX)"; export CXX; \
2414 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2415 AR="$(AR)"; export AR; \
2416 AS="$(AS)"; export AS; \
2417 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2418 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2419 LD="$(LD)"; export LD; \
2420 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
2421 NM="$(NM)"; export NM; \
2422 RANLIB="$(RANLIB)"; export RANLIB; \
2423 WINDRES="$(WINDRES)"; export WINDRES; \
2424 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2425 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2426 echo Configuring in autoconf; \
2427 cd autoconf || exit 1; \
2430 srcdiroption="--srcdir=."; \
2432 /* | [A-Za-z]:[\\/]*) \
2433 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
2434 libsrcdir="$$s/autoconf";; \
2436 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
2437 libsrcdir="$$s/autoconf";; \
2439 $(SHELL) $${libsrcdir}/configure \
2440 $(HOST_CONFIGARGS) $${srcdiroption} \
2444 .PHONY: all-autoconf maybe-all-autoconf
2447 maybe-all-autoconf: all-autoconf
2448 all-autoconf: configure-autoconf
2449 @r=`${PWD_COMMAND}`; export r; \
2450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2452 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
2455 .PHONY: check-autoconf maybe-check-autoconf
2456 maybe-check-autoconf:
2458 maybe-check-autoconf: check-autoconf
2461 @r=`${PWD_COMMAND}`; export r; \
2462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2464 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
2468 .PHONY: install-autoconf maybe-install-autoconf
2469 maybe-install-autoconf:
2471 maybe-install-autoconf: install-autoconf
2473 install-autoconf: installdirs
2474 @r=`${PWD_COMMAND}`; export r; \
2475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2477 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
2481 # Other targets (info, dvi, etc.)
2483 .PHONY: maybe-info-autoconf info-autoconf
2484 maybe-info-autoconf:
2486 maybe-info-autoconf: info-autoconf
2490 @[ -f ./autoconf/Makefile ] || exit 0; \
2491 r=`${PWD_COMMAND}`; export r; \
2492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2494 for flag in $(EXTRA_HOST_FLAGS); do \
2495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2497 echo "Doing info in autoconf" ; \
2499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2501 "RANLIB=$${RANLIB}" \
2502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2508 .PHONY: maybe-dvi-autoconf dvi-autoconf
2511 maybe-dvi-autoconf: dvi-autoconf
2515 @[ -f ./autoconf/Makefile ] || exit 0; \
2516 r=`${PWD_COMMAND}`; export r; \
2517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2519 for flag in $(EXTRA_HOST_FLAGS); do \
2520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2522 echo "Doing dvi in autoconf" ; \
2524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2526 "RANLIB=$${RANLIB}" \
2527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2533 .PHONY: maybe-TAGS-autoconf TAGS-autoconf
2534 maybe-TAGS-autoconf:
2536 maybe-TAGS-autoconf: TAGS-autoconf
2540 @[ -f ./autoconf/Makefile ] || exit 0; \
2541 r=`${PWD_COMMAND}`; export r; \
2542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2544 for flag in $(EXTRA_HOST_FLAGS); do \
2545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2547 echo "Doing TAGS in autoconf" ; \
2549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2551 "RANLIB=$${RANLIB}" \
2552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2558 .PHONY: maybe-install-info-autoconf install-info-autoconf
2559 maybe-install-info-autoconf:
2561 maybe-install-info-autoconf: install-info-autoconf
2563 install-info-autoconf: \
2564 configure-autoconf \
2566 @[ -f ./autoconf/Makefile ] || exit 0; \
2567 r=`${PWD_COMMAND}`; export r; \
2568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2570 for flag in $(EXTRA_HOST_FLAGS); do \
2571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2573 echo "Doing install-info in autoconf" ; \
2575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2577 "RANLIB=$${RANLIB}" \
2578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2584 .PHONY: maybe-installcheck-autoconf installcheck-autoconf
2585 maybe-installcheck-autoconf:
2587 maybe-installcheck-autoconf: installcheck-autoconf
2589 installcheck-autoconf: \
2591 @[ -f ./autoconf/Makefile ] || exit 0; \
2592 r=`${PWD_COMMAND}`; export r; \
2593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2595 for flag in $(EXTRA_HOST_FLAGS); do \
2596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2598 echo "Doing installcheck in autoconf" ; \
2600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2602 "RANLIB=$${RANLIB}" \
2603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2609 .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
2610 maybe-mostlyclean-autoconf:
2612 maybe-mostlyclean-autoconf: mostlyclean-autoconf
2614 mostlyclean-autoconf:
2615 @[ -f ./autoconf/Makefile ] || exit 0; \
2616 r=`${PWD_COMMAND}`; export r; \
2617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2619 for flag in $(EXTRA_HOST_FLAGS); do \
2620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2622 echo "Doing mostlyclean in autoconf" ; \
2624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2626 "RANLIB=$${RANLIB}" \
2627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2633 .PHONY: maybe-clean-autoconf clean-autoconf
2634 maybe-clean-autoconf:
2636 maybe-clean-autoconf: clean-autoconf
2639 @[ -f ./autoconf/Makefile ] || exit 0; \
2640 r=`${PWD_COMMAND}`; export r; \
2641 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 clean in autoconf" ; \
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-distclean-autoconf distclean-autoconf
2658 maybe-distclean-autoconf:
2660 maybe-distclean-autoconf: distclean-autoconf
2663 @[ -f ./autoconf/Makefile ] || exit 0; \
2664 r=`${PWD_COMMAND}`; export r; \
2665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2667 for flag in $(EXTRA_HOST_FLAGS); do \
2668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2670 echo "Doing distclean in autoconf" ; \
2672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2674 "RANLIB=$${RANLIB}" \
2675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2681 .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
2682 maybe-maintainer-clean-autoconf:
2684 maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
2686 maintainer-clean-autoconf:
2687 @[ -f ./autoconf/Makefile ] || exit 0; \
2688 r=`${PWD_COMMAND}`; export r; \
2689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2691 for flag in $(EXTRA_HOST_FLAGS); do \
2692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2694 echo "Doing maintainer-clean in autoconf" ; \
2696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2698 "RANLIB=$${RANLIB}" \
2699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2706 .PHONY: configure-automake maybe-configure-automake
2707 maybe-configure-automake:
2709 maybe-configure-automake: configure-automake
2711 @test ! -f automake/Makefile || exit 0; \
2712 [ -d automake ] || mkdir automake; \
2713 r=`${PWD_COMMAND}`; export r; \
2714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2715 CC="$(CC)"; export CC; \
2716 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2717 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2718 CXX="$(CXX)"; export CXX; \
2719 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2720 AR="$(AR)"; export AR; \
2721 AS="$(AS)"; export AS; \
2722 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2723 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2724 LD="$(LD)"; export LD; \
2725 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
2726 NM="$(NM)"; export NM; \
2727 RANLIB="$(RANLIB)"; export RANLIB; \
2728 WINDRES="$(WINDRES)"; export WINDRES; \
2729 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2730 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2731 echo Configuring in automake; \
2732 cd automake || exit 1; \
2735 srcdiroption="--srcdir=."; \
2737 /* | [A-Za-z]:[\\/]*) \
2738 srcdiroption="--srcdir=$(srcdir)/automake"; \
2739 libsrcdir="$$s/automake";; \
2741 srcdiroption="--srcdir=../$(srcdir)/automake"; \
2742 libsrcdir="$$s/automake";; \
2744 $(SHELL) $${libsrcdir}/configure \
2745 $(HOST_CONFIGARGS) $${srcdiroption} \
2749 .PHONY: all-automake maybe-all-automake
2752 maybe-all-automake: all-automake
2753 all-automake: configure-automake
2754 @r=`${PWD_COMMAND}`; export r; \
2755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2757 (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
2760 .PHONY: check-automake maybe-check-automake
2761 maybe-check-automake:
2763 maybe-check-automake: check-automake
2766 @r=`${PWD_COMMAND}`; export r; \
2767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2769 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
2773 .PHONY: install-automake maybe-install-automake
2774 maybe-install-automake:
2776 maybe-install-automake: install-automake
2778 install-automake: installdirs
2779 @r=`${PWD_COMMAND}`; export r; \
2780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2782 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
2786 # Other targets (info, dvi, etc.)
2788 .PHONY: maybe-info-automake info-automake
2789 maybe-info-automake:
2791 maybe-info-automake: info-automake
2795 @[ -f ./automake/Makefile ] || exit 0; \
2796 r=`${PWD_COMMAND}`; export r; \
2797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2799 for flag in $(EXTRA_HOST_FLAGS); do \
2800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2802 echo "Doing info in automake" ; \
2804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2806 "RANLIB=$${RANLIB}" \
2807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2813 .PHONY: maybe-dvi-automake dvi-automake
2816 maybe-dvi-automake: dvi-automake
2820 @[ -f ./automake/Makefile ] || exit 0; \
2821 r=`${PWD_COMMAND}`; export r; \
2822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2824 for flag in $(EXTRA_HOST_FLAGS); do \
2825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2827 echo "Doing dvi in automake" ; \
2829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2831 "RANLIB=$${RANLIB}" \
2832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2838 .PHONY: maybe-TAGS-automake TAGS-automake
2839 maybe-TAGS-automake:
2841 maybe-TAGS-automake: TAGS-automake
2845 @[ -f ./automake/Makefile ] || exit 0; \
2846 r=`${PWD_COMMAND}`; export r; \
2847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2849 for flag in $(EXTRA_HOST_FLAGS); do \
2850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2852 echo "Doing TAGS in automake" ; \
2854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2856 "RANLIB=$${RANLIB}" \
2857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2863 .PHONY: maybe-install-info-automake install-info-automake
2864 maybe-install-info-automake:
2866 maybe-install-info-automake: install-info-automake
2868 install-info-automake: \
2869 configure-automake \
2871 @[ -f ./automake/Makefile ] || exit 0; \
2872 r=`${PWD_COMMAND}`; export r; \
2873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2875 for flag in $(EXTRA_HOST_FLAGS); do \
2876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2878 echo "Doing install-info in automake" ; \
2880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2882 "RANLIB=$${RANLIB}" \
2883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2889 .PHONY: maybe-installcheck-automake installcheck-automake
2890 maybe-installcheck-automake:
2892 maybe-installcheck-automake: installcheck-automake
2894 installcheck-automake: \
2896 @[ -f ./automake/Makefile ] || exit 0; \
2897 r=`${PWD_COMMAND}`; export r; \
2898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2900 for flag in $(EXTRA_HOST_FLAGS); do \
2901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2903 echo "Doing installcheck in automake" ; \
2905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2907 "RANLIB=$${RANLIB}" \
2908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2914 .PHONY: maybe-mostlyclean-automake mostlyclean-automake
2915 maybe-mostlyclean-automake:
2917 maybe-mostlyclean-automake: mostlyclean-automake
2919 mostlyclean-automake:
2920 @[ -f ./automake/Makefile ] || exit 0; \
2921 r=`${PWD_COMMAND}`; export r; \
2922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2924 for flag in $(EXTRA_HOST_FLAGS); do \
2925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2927 echo "Doing mostlyclean in automake" ; \
2929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2931 "RANLIB=$${RANLIB}" \
2932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2938 .PHONY: maybe-clean-automake clean-automake
2939 maybe-clean-automake:
2941 maybe-clean-automake: clean-automake
2944 @[ -f ./automake/Makefile ] || exit 0; \
2945 r=`${PWD_COMMAND}`; export r; \
2946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2948 for flag in $(EXTRA_HOST_FLAGS); do \
2949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2951 echo "Doing clean in automake" ; \
2953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2955 "RANLIB=$${RANLIB}" \
2956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2962 .PHONY: maybe-distclean-automake distclean-automake
2963 maybe-distclean-automake:
2965 maybe-distclean-automake: distclean-automake
2968 @[ -f ./automake/Makefile ] || exit 0; \
2969 r=`${PWD_COMMAND}`; export r; \
2970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2972 for flag in $(EXTRA_HOST_FLAGS); do \
2973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2975 echo "Doing distclean in automake" ; \
2977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2979 "RANLIB=$${RANLIB}" \
2980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2986 .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
2987 maybe-maintainer-clean-automake:
2989 maybe-maintainer-clean-automake: maintainer-clean-automake
2991 maintainer-clean-automake:
2992 @[ -f ./automake/Makefile ] || exit 0; \
2993 r=`${PWD_COMMAND}`; export r; \
2994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2996 for flag in $(EXTRA_HOST_FLAGS); do \
2997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2999 echo "Doing maintainer-clean in automake" ; \
3001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3003 "RANLIB=$${RANLIB}" \
3004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3011 .PHONY: configure-bash maybe-configure-bash
3012 maybe-configure-bash:
3014 maybe-configure-bash: configure-bash
3016 @test ! -f bash/Makefile || exit 0; \
3017 [ -d bash ] || mkdir bash; \
3018 r=`${PWD_COMMAND}`; export r; \
3019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3020 CC="$(CC)"; export CC; \
3021 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3022 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3023 CXX="$(CXX)"; export CXX; \
3024 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3025 AR="$(AR)"; export AR; \
3026 AS="$(AS)"; export AS; \
3027 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3028 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3029 LD="$(LD)"; export LD; \
3030 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
3031 NM="$(NM)"; export NM; \
3032 RANLIB="$(RANLIB)"; export RANLIB; \
3033 WINDRES="$(WINDRES)"; export WINDRES; \
3034 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3035 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3036 echo Configuring in bash; \
3037 cd bash || exit 1; \
3040 srcdiroption="--srcdir=."; \
3042 /* | [A-Za-z]:[\\/]*) \
3043 srcdiroption="--srcdir=$(srcdir)/bash"; \
3044 libsrcdir="$$s/bash";; \
3046 srcdiroption="--srcdir=../$(srcdir)/bash"; \
3047 libsrcdir="$$s/bash";; \
3049 $(SHELL) $${libsrcdir}/configure \
3050 $(HOST_CONFIGARGS) $${srcdiroption} \
3054 .PHONY: all-bash maybe-all-bash
3057 maybe-all-bash: all-bash
3058 all-bash: configure-bash
3059 @r=`${PWD_COMMAND}`; export r; \
3060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3062 (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
3065 .PHONY: check-bash maybe-check-bash
3068 maybe-check-bash: check-bash
3071 @r=`${PWD_COMMAND}`; export r; \
3072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3074 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
3078 .PHONY: install-bash maybe-install-bash
3081 maybe-install-bash: install-bash
3083 install-bash: installdirs
3084 @r=`${PWD_COMMAND}`; export r; \
3085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3087 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
3091 # Other targets (info, dvi, etc.)
3093 .PHONY: maybe-info-bash info-bash
3096 maybe-info-bash: info-bash
3100 @[ -f ./bash/Makefile ] || exit 0; \
3101 r=`${PWD_COMMAND}`; export r; \
3102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3104 for flag in $(EXTRA_HOST_FLAGS); do \
3105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3107 echo "Doing info in bash" ; \
3109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3111 "RANLIB=$${RANLIB}" \
3112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3118 .PHONY: maybe-dvi-bash dvi-bash
3121 maybe-dvi-bash: dvi-bash
3125 @[ -f ./bash/Makefile ] || exit 0; \
3126 r=`${PWD_COMMAND}`; export r; \
3127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3129 for flag in $(EXTRA_HOST_FLAGS); do \
3130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3132 echo "Doing dvi in bash" ; \
3134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3136 "RANLIB=$${RANLIB}" \
3137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3143 .PHONY: maybe-TAGS-bash TAGS-bash
3146 maybe-TAGS-bash: TAGS-bash
3150 @[ -f ./bash/Makefile ] || exit 0; \
3151 r=`${PWD_COMMAND}`; export r; \
3152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3154 for flag in $(EXTRA_HOST_FLAGS); do \
3155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3157 echo "Doing TAGS in bash" ; \
3159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3161 "RANLIB=$${RANLIB}" \
3162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3168 .PHONY: maybe-install-info-bash install-info-bash
3169 maybe-install-info-bash:
3171 maybe-install-info-bash: install-info-bash
3173 install-info-bash: \
3176 @[ -f ./bash/Makefile ] || exit 0; \
3177 r=`${PWD_COMMAND}`; export r; \
3178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3180 for flag in $(EXTRA_HOST_FLAGS); do \
3181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3183 echo "Doing install-info in bash" ; \
3185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3187 "RANLIB=$${RANLIB}" \
3188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3194 .PHONY: maybe-installcheck-bash installcheck-bash
3195 maybe-installcheck-bash:
3197 maybe-installcheck-bash: installcheck-bash
3199 installcheck-bash: \
3201 @[ -f ./bash/Makefile ] || exit 0; \
3202 r=`${PWD_COMMAND}`; export r; \
3203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3205 for flag in $(EXTRA_HOST_FLAGS); do \
3206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3208 echo "Doing installcheck in bash" ; \
3210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3212 "RANLIB=$${RANLIB}" \
3213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3219 .PHONY: maybe-mostlyclean-bash mostlyclean-bash
3220 maybe-mostlyclean-bash:
3222 maybe-mostlyclean-bash: mostlyclean-bash
3225 @[ -f ./bash/Makefile ] || exit 0; \
3226 r=`${PWD_COMMAND}`; export r; \
3227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3229 for flag in $(EXTRA_HOST_FLAGS); do \
3230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3232 echo "Doing mostlyclean in bash" ; \
3234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3236 "RANLIB=$${RANLIB}" \
3237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3243 .PHONY: maybe-clean-bash clean-bash
3246 maybe-clean-bash: clean-bash
3249 @[ -f ./bash/Makefile ] || exit 0; \
3250 r=`${PWD_COMMAND}`; export r; \
3251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3253 for flag in $(EXTRA_HOST_FLAGS); do \
3254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3256 echo "Doing clean in bash" ; \
3258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3260 "RANLIB=$${RANLIB}" \
3261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3267 .PHONY: maybe-distclean-bash distclean-bash
3268 maybe-distclean-bash:
3270 maybe-distclean-bash: distclean-bash
3273 @[ -f ./bash/Makefile ] || exit 0; \
3274 r=`${PWD_COMMAND}`; export r; \
3275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3277 for flag in $(EXTRA_HOST_FLAGS); do \
3278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3280 echo "Doing distclean in bash" ; \
3282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3284 "RANLIB=$${RANLIB}" \
3285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3291 .PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
3292 maybe-maintainer-clean-bash:
3294 maybe-maintainer-clean-bash: maintainer-clean-bash
3296 maintainer-clean-bash:
3297 @[ -f ./bash/Makefile ] || exit 0; \
3298 r=`${PWD_COMMAND}`; export r; \
3299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3301 for flag in $(EXTRA_HOST_FLAGS); do \
3302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3304 echo "Doing maintainer-clean in bash" ; \
3306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3308 "RANLIB=$${RANLIB}" \
3309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3316 .PHONY: configure-bfd maybe-configure-bfd
3317 maybe-configure-bfd:
3319 maybe-configure-bfd: configure-bfd
3321 @test ! -f bfd/Makefile || exit 0; \
3322 [ -d bfd ] || mkdir bfd; \
3323 r=`${PWD_COMMAND}`; export r; \
3324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3325 CC="$(CC)"; export CC; \
3326 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3327 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3328 CXX="$(CXX)"; export CXX; \
3329 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3330 AR="$(AR)"; export AR; \
3331 AS="$(AS)"; export AS; \
3332 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3333 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3334 LD="$(LD)"; export LD; \
3335 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
3336 NM="$(NM)"; export NM; \
3337 RANLIB="$(RANLIB)"; export RANLIB; \
3338 WINDRES="$(WINDRES)"; export WINDRES; \
3339 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3340 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3341 echo Configuring in bfd; \
3345 srcdiroption="--srcdir=."; \
3347 /* | [A-Za-z]:[\\/]*) \
3348 srcdiroption="--srcdir=$(srcdir)/bfd"; \
3349 libsrcdir="$$s/bfd";; \
3351 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
3352 libsrcdir="$$s/bfd";; \
3354 $(SHELL) $${libsrcdir}/configure \
3355 $(HOST_CONFIGARGS) $${srcdiroption} \
3359 .PHONY: all-bfd maybe-all-bfd
3362 maybe-all-bfd: all-bfd
3363 all-bfd: configure-bfd
3364 @r=`${PWD_COMMAND}`; export r; \
3365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3367 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
3370 .PHONY: check-bfd maybe-check-bfd
3373 maybe-check-bfd: check-bfd
3376 @r=`${PWD_COMMAND}`; export r; \
3377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3379 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
3383 .PHONY: install-bfd maybe-install-bfd
3386 maybe-install-bfd: install-bfd
3388 install-bfd: installdirs
3389 @r=`${PWD_COMMAND}`; export r; \
3390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3392 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
3396 # Other targets (info, dvi, etc.)
3398 .PHONY: maybe-info-bfd info-bfd
3401 maybe-info-bfd: info-bfd
3405 @[ -f ./bfd/Makefile ] || exit 0; \
3406 r=`${PWD_COMMAND}`; export r; \
3407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3409 for flag in $(EXTRA_HOST_FLAGS); do \
3410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3412 echo "Doing info in bfd" ; \
3414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3416 "RANLIB=$${RANLIB}" \
3417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3423 .PHONY: maybe-dvi-bfd dvi-bfd
3426 maybe-dvi-bfd: dvi-bfd
3430 @[ -f ./bfd/Makefile ] || exit 0; \
3431 r=`${PWD_COMMAND}`; export r; \
3432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3434 for flag in $(EXTRA_HOST_FLAGS); do \
3435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3437 echo "Doing dvi in bfd" ; \
3439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3441 "RANLIB=$${RANLIB}" \
3442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3448 .PHONY: maybe-TAGS-bfd TAGS-bfd
3451 maybe-TAGS-bfd: TAGS-bfd
3455 @[ -f ./bfd/Makefile ] || exit 0; \
3456 r=`${PWD_COMMAND}`; export r; \
3457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3459 for flag in $(EXTRA_HOST_FLAGS); do \
3460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3462 echo "Doing TAGS in bfd" ; \
3464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3466 "RANLIB=$${RANLIB}" \
3467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3473 .PHONY: maybe-install-info-bfd install-info-bfd
3474 maybe-install-info-bfd:
3476 maybe-install-info-bfd: install-info-bfd
3481 @[ -f ./bfd/Makefile ] || exit 0; \
3482 r=`${PWD_COMMAND}`; export r; \
3483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3485 for flag in $(EXTRA_HOST_FLAGS); do \
3486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3488 echo "Doing install-info in bfd" ; \
3490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3492 "RANLIB=$${RANLIB}" \
3493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3499 .PHONY: maybe-installcheck-bfd installcheck-bfd
3500 maybe-installcheck-bfd:
3502 maybe-installcheck-bfd: installcheck-bfd
3506 @[ -f ./bfd/Makefile ] || exit 0; \
3507 r=`${PWD_COMMAND}`; export r; \
3508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3510 for flag in $(EXTRA_HOST_FLAGS); do \
3511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3513 echo "Doing installcheck in bfd" ; \
3515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3517 "RANLIB=$${RANLIB}" \
3518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3524 .PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3525 maybe-mostlyclean-bfd:
3527 maybe-mostlyclean-bfd: mostlyclean-bfd
3530 @[ -f ./bfd/Makefile ] || exit 0; \
3531 r=`${PWD_COMMAND}`; export r; \
3532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3534 for flag in $(EXTRA_HOST_FLAGS); do \
3535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3537 echo "Doing mostlyclean in bfd" ; \
3539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3541 "RANLIB=$${RANLIB}" \
3542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3548 .PHONY: maybe-clean-bfd clean-bfd
3551 maybe-clean-bfd: clean-bfd
3554 @[ -f ./bfd/Makefile ] || exit 0; \
3555 r=`${PWD_COMMAND}`; export r; \
3556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3558 for flag in $(EXTRA_HOST_FLAGS); do \
3559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3561 echo "Doing clean in bfd" ; \
3563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3565 "RANLIB=$${RANLIB}" \
3566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3572 .PHONY: maybe-distclean-bfd distclean-bfd
3573 maybe-distclean-bfd:
3575 maybe-distclean-bfd: distclean-bfd
3578 @[ -f ./bfd/Makefile ] || exit 0; \
3579 r=`${PWD_COMMAND}`; export r; \
3580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3582 for flag in $(EXTRA_HOST_FLAGS); do \
3583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3585 echo "Doing distclean in bfd" ; \
3587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3589 "RANLIB=$${RANLIB}" \
3590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3596 .PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
3597 maybe-maintainer-clean-bfd:
3599 maybe-maintainer-clean-bfd: maintainer-clean-bfd
3601 maintainer-clean-bfd:
3602 @[ -f ./bfd/Makefile ] || exit 0; \
3603 r=`${PWD_COMMAND}`; export r; \
3604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3606 for flag in $(EXTRA_HOST_FLAGS); do \
3607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3609 echo "Doing maintainer-clean in bfd" ; \
3611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3613 "RANLIB=$${RANLIB}" \
3614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3621 .PHONY: configure-opcodes maybe-configure-opcodes
3622 maybe-configure-opcodes:
3624 maybe-configure-opcodes: configure-opcodes
3626 @test ! -f opcodes/Makefile || exit 0; \
3627 [ -d opcodes ] || mkdir opcodes; \
3628 r=`${PWD_COMMAND}`; export r; \
3629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3630 CC="$(CC)"; export CC; \
3631 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3632 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3633 CXX="$(CXX)"; export CXX; \
3634 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3635 AR="$(AR)"; export AR; \
3636 AS="$(AS)"; export AS; \
3637 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3638 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3639 LD="$(LD)"; export LD; \
3640 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
3641 NM="$(NM)"; export NM; \
3642 RANLIB="$(RANLIB)"; export RANLIB; \
3643 WINDRES="$(WINDRES)"; export WINDRES; \
3644 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3645 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3646 echo Configuring in opcodes; \
3647 cd opcodes || exit 1; \
3650 srcdiroption="--srcdir=."; \
3652 /* | [A-Za-z]:[\\/]*) \
3653 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
3654 libsrcdir="$$s/opcodes";; \
3656 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
3657 libsrcdir="$$s/opcodes";; \
3659 $(SHELL) $${libsrcdir}/configure \
3660 $(HOST_CONFIGARGS) $${srcdiroption} \
3664 .PHONY: all-opcodes maybe-all-opcodes
3667 maybe-all-opcodes: all-opcodes
3668 all-opcodes: configure-opcodes
3669 @r=`${PWD_COMMAND}`; export r; \
3670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3672 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
3675 .PHONY: check-opcodes maybe-check-opcodes
3676 maybe-check-opcodes:
3678 maybe-check-opcodes: check-opcodes
3681 @r=`${PWD_COMMAND}`; export r; \
3682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3684 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
3688 .PHONY: install-opcodes maybe-install-opcodes
3689 maybe-install-opcodes:
3691 maybe-install-opcodes: install-opcodes
3693 install-opcodes: installdirs
3694 @r=`${PWD_COMMAND}`; export r; \
3695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3697 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
3701 # Other targets (info, dvi, etc.)
3703 .PHONY: maybe-info-opcodes info-opcodes
3706 maybe-info-opcodes: info-opcodes
3710 @[ -f ./opcodes/Makefile ] || exit 0; \
3711 r=`${PWD_COMMAND}`; export r; \
3712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3714 for flag in $(EXTRA_HOST_FLAGS); do \
3715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3717 echo "Doing info in opcodes" ; \
3719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3721 "RANLIB=$${RANLIB}" \
3722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3728 .PHONY: maybe-dvi-opcodes dvi-opcodes
3731 maybe-dvi-opcodes: dvi-opcodes
3735 @[ -f ./opcodes/Makefile ] || exit 0; \
3736 r=`${PWD_COMMAND}`; export r; \
3737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3739 for flag in $(EXTRA_HOST_FLAGS); do \
3740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3742 echo "Doing dvi in opcodes" ; \
3744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3746 "RANLIB=$${RANLIB}" \
3747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3753 .PHONY: maybe-TAGS-opcodes TAGS-opcodes
3756 maybe-TAGS-opcodes: TAGS-opcodes
3760 @[ -f ./opcodes/Makefile ] || exit 0; \
3761 r=`${PWD_COMMAND}`; export r; \
3762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3764 for flag in $(EXTRA_HOST_FLAGS); do \
3765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3767 echo "Doing TAGS in opcodes" ; \
3769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3771 "RANLIB=$${RANLIB}" \
3772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3778 .PHONY: maybe-install-info-opcodes install-info-opcodes
3779 maybe-install-info-opcodes:
3781 maybe-install-info-opcodes: install-info-opcodes
3783 install-info-opcodes: \
3786 @[ -f ./opcodes/Makefile ] || exit 0; \
3787 r=`${PWD_COMMAND}`; export r; \
3788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3790 for flag in $(EXTRA_HOST_FLAGS); do \
3791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3793 echo "Doing install-info in opcodes" ; \
3795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3797 "RANLIB=$${RANLIB}" \
3798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3804 .PHONY: maybe-installcheck-opcodes installcheck-opcodes
3805 maybe-installcheck-opcodes:
3807 maybe-installcheck-opcodes: installcheck-opcodes
3809 installcheck-opcodes: \
3811 @[ -f ./opcodes/Makefile ] || exit 0; \
3812 r=`${PWD_COMMAND}`; export r; \
3813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3815 for flag in $(EXTRA_HOST_FLAGS); do \
3816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3818 echo "Doing installcheck in opcodes" ; \
3820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3822 "RANLIB=$${RANLIB}" \
3823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3829 .PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
3830 maybe-mostlyclean-opcodes:
3832 maybe-mostlyclean-opcodes: mostlyclean-opcodes
3834 mostlyclean-opcodes:
3835 @[ -f ./opcodes/Makefile ] || exit 0; \
3836 r=`${PWD_COMMAND}`; export r; \
3837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3839 for flag in $(EXTRA_HOST_FLAGS); do \
3840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3842 echo "Doing mostlyclean in opcodes" ; \
3844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3846 "RANLIB=$${RANLIB}" \
3847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3853 .PHONY: maybe-clean-opcodes clean-opcodes
3854 maybe-clean-opcodes:
3856 maybe-clean-opcodes: clean-opcodes
3859 @[ -f ./opcodes/Makefile ] || exit 0; \
3860 r=`${PWD_COMMAND}`; export r; \
3861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3863 for flag in $(EXTRA_HOST_FLAGS); do \
3864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3866 echo "Doing clean in opcodes" ; \
3868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3870 "RANLIB=$${RANLIB}" \
3871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3877 .PHONY: maybe-distclean-opcodes distclean-opcodes
3878 maybe-distclean-opcodes:
3880 maybe-distclean-opcodes: distclean-opcodes
3883 @[ -f ./opcodes/Makefile ] || exit 0; \
3884 r=`${PWD_COMMAND}`; export r; \
3885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3887 for flag in $(EXTRA_HOST_FLAGS); do \
3888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3890 echo "Doing distclean in opcodes" ; \
3892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3894 "RANLIB=$${RANLIB}" \
3895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3901 .PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
3902 maybe-maintainer-clean-opcodes:
3904 maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
3906 maintainer-clean-opcodes:
3907 @[ -f ./opcodes/Makefile ] || exit 0; \
3908 r=`${PWD_COMMAND}`; export r; \
3909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3911 for flag in $(EXTRA_HOST_FLAGS); do \
3912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3914 echo "Doing maintainer-clean in opcodes" ; \
3916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3918 "RANLIB=$${RANLIB}" \
3919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3926 .PHONY: configure-binutils maybe-configure-binutils
3927 maybe-configure-binutils:
3929 maybe-configure-binutils: configure-binutils
3931 @test ! -f binutils/Makefile || exit 0; \
3932 [ -d binutils ] || mkdir binutils; \
3933 r=`${PWD_COMMAND}`; export r; \
3934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3935 CC="$(CC)"; export CC; \
3936 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3937 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3938 CXX="$(CXX)"; export CXX; \
3939 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3940 AR="$(AR)"; export AR; \
3941 AS="$(AS)"; export AS; \
3942 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3943 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3944 LD="$(LD)"; export LD; \
3945 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
3946 NM="$(NM)"; export NM; \
3947 RANLIB="$(RANLIB)"; export RANLIB; \
3948 WINDRES="$(WINDRES)"; export WINDRES; \
3949 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3950 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3951 echo Configuring in binutils; \
3952 cd binutils || exit 1; \
3955 srcdiroption="--srcdir=."; \
3957 /* | [A-Za-z]:[\\/]*) \
3958 srcdiroption="--srcdir=$(srcdir)/binutils"; \
3959 libsrcdir="$$s/binutils";; \
3961 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
3962 libsrcdir="$$s/binutils";; \
3964 $(SHELL) $${libsrcdir}/configure \
3965 $(HOST_CONFIGARGS) $${srcdiroption} \
3969 .PHONY: all-binutils maybe-all-binutils
3972 maybe-all-binutils: all-binutils
3973 all-binutils: configure-binutils
3974 @r=`${PWD_COMMAND}`; export r; \
3975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3977 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
3980 .PHONY: check-binutils maybe-check-binutils
3981 maybe-check-binutils:
3983 maybe-check-binutils: check-binutils
3986 @r=`${PWD_COMMAND}`; export r; \
3987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3989 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
3993 .PHONY: install-binutils maybe-install-binutils
3994 maybe-install-binutils:
3996 maybe-install-binutils: install-binutils
3998 install-binutils: installdirs
3999 @r=`${PWD_COMMAND}`; export r; \
4000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4002 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
4006 # Other targets (info, dvi, etc.)
4008 .PHONY: maybe-info-binutils info-binutils
4009 maybe-info-binutils:
4011 maybe-info-binutils: info-binutils
4015 @[ -f ./binutils/Makefile ] || exit 0; \
4016 r=`${PWD_COMMAND}`; export r; \
4017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4019 for flag in $(EXTRA_HOST_FLAGS); do \
4020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4022 echo "Doing info in binutils" ; \
4024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4026 "RANLIB=$${RANLIB}" \
4027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4033 .PHONY: maybe-dvi-binutils dvi-binutils
4036 maybe-dvi-binutils: dvi-binutils
4040 @[ -f ./binutils/Makefile ] || exit 0; \
4041 r=`${PWD_COMMAND}`; export r; \
4042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4044 for flag in $(EXTRA_HOST_FLAGS); do \
4045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4047 echo "Doing dvi in binutils" ; \
4049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4051 "RANLIB=$${RANLIB}" \
4052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4058 .PHONY: maybe-TAGS-binutils TAGS-binutils
4059 maybe-TAGS-binutils:
4061 maybe-TAGS-binutils: TAGS-binutils
4065 @[ -f ./binutils/Makefile ] || exit 0; \
4066 r=`${PWD_COMMAND}`; export r; \
4067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4069 for flag in $(EXTRA_HOST_FLAGS); do \
4070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4072 echo "Doing TAGS in binutils" ; \
4074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4076 "RANLIB=$${RANLIB}" \
4077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4083 .PHONY: maybe-install-info-binutils install-info-binutils
4084 maybe-install-info-binutils:
4086 maybe-install-info-binutils: install-info-binutils
4088 install-info-binutils: \
4089 configure-binutils \
4091 @[ -f ./binutils/Makefile ] || exit 0; \
4092 r=`${PWD_COMMAND}`; export r; \
4093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4095 for flag in $(EXTRA_HOST_FLAGS); do \
4096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4098 echo "Doing install-info in binutils" ; \
4100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4102 "RANLIB=$${RANLIB}" \
4103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4109 .PHONY: maybe-installcheck-binutils installcheck-binutils
4110 maybe-installcheck-binutils:
4112 maybe-installcheck-binutils: installcheck-binutils
4114 installcheck-binutils: \
4116 @[ -f ./binutils/Makefile ] || exit 0; \
4117 r=`${PWD_COMMAND}`; export r; \
4118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4120 for flag in $(EXTRA_HOST_FLAGS); do \
4121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4123 echo "Doing installcheck in binutils" ; \
4125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4127 "RANLIB=$${RANLIB}" \
4128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4134 .PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
4135 maybe-mostlyclean-binutils:
4137 maybe-mostlyclean-binutils: mostlyclean-binutils
4139 mostlyclean-binutils:
4140 @[ -f ./binutils/Makefile ] || exit 0; \
4141 r=`${PWD_COMMAND}`; export r; \
4142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4144 for flag in $(EXTRA_HOST_FLAGS); do \
4145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4147 echo "Doing mostlyclean in binutils" ; \
4149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4151 "RANLIB=$${RANLIB}" \
4152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4158 .PHONY: maybe-clean-binutils clean-binutils
4159 maybe-clean-binutils:
4161 maybe-clean-binutils: clean-binutils
4164 @[ -f ./binutils/Makefile ] || exit 0; \
4165 r=`${PWD_COMMAND}`; export r; \
4166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4168 for flag in $(EXTRA_HOST_FLAGS); do \
4169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4171 echo "Doing clean in binutils" ; \
4173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4175 "RANLIB=$${RANLIB}" \
4176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4182 .PHONY: maybe-distclean-binutils distclean-binutils
4183 maybe-distclean-binutils:
4185 maybe-distclean-binutils: distclean-binutils
4188 @[ -f ./binutils/Makefile ] || exit 0; \
4189 r=`${PWD_COMMAND}`; export r; \
4190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4192 for flag in $(EXTRA_HOST_FLAGS); do \
4193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4195 echo "Doing distclean in binutils" ; \
4197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4199 "RANLIB=$${RANLIB}" \
4200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4206 .PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
4207 maybe-maintainer-clean-binutils:
4209 maybe-maintainer-clean-binutils: maintainer-clean-binutils
4211 maintainer-clean-binutils:
4212 @[ -f ./binutils/Makefile ] || exit 0; \
4213 r=`${PWD_COMMAND}`; export r; \
4214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4216 for flag in $(EXTRA_HOST_FLAGS); do \
4217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4219 echo "Doing maintainer-clean in binutils" ; \
4221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4223 "RANLIB=$${RANLIB}" \
4224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4231 .PHONY: configure-bison maybe-configure-bison
4232 maybe-configure-bison:
4234 maybe-configure-bison: configure-bison
4236 @test ! -f bison/Makefile || exit 0; \
4237 [ -d bison ] || mkdir bison; \
4238 r=`${PWD_COMMAND}`; export r; \
4239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4240 CC="$(CC)"; export CC; \
4241 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4242 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
4243 CXX="$(CXX)"; export CXX; \
4244 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4245 AR="$(AR)"; export AR; \
4246 AS="$(AS)"; export AS; \
4247 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4248 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4249 LD="$(LD)"; export LD; \
4250 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
4251 NM="$(NM)"; export NM; \
4252 RANLIB="$(RANLIB)"; export RANLIB; \
4253 WINDRES="$(WINDRES)"; export WINDRES; \
4254 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4255 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4256 echo Configuring in bison; \
4257 cd bison || exit 1; \
4260 srcdiroption="--srcdir=."; \
4262 /* | [A-Za-z]:[\\/]*) \
4263 srcdiroption="--srcdir=$(srcdir)/bison"; \
4264 libsrcdir="$$s/bison";; \
4266 srcdiroption="--srcdir=../$(srcdir)/bison"; \
4267 libsrcdir="$$s/bison";; \
4269 $(SHELL) $${libsrcdir}/configure \
4270 $(HOST_CONFIGARGS) $${srcdiroption} \
4274 .PHONY: all-bison maybe-all-bison
4277 maybe-all-bison: all-bison
4278 all-bison: configure-bison
4279 @r=`${PWD_COMMAND}`; export r; \
4280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4282 (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
4285 .PHONY: check-bison maybe-check-bison
4288 maybe-check-bison: check-bison
4290 # This module is only tested in a native toolchain.
4292 @if [ '$(host)' = '$(target)' ] ; then \
4293 r=`${PWD_COMMAND}`; export r; \
4294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4296 (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
4301 .PHONY: install-bison maybe-install-bison
4302 maybe-install-bison:
4304 maybe-install-bison: install-bison
4306 install-bison: installdirs
4307 @r=`${PWD_COMMAND}`; export r; \
4308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4310 (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
4314 # Other targets (info, dvi, etc.)
4316 .PHONY: maybe-info-bison info-bison
4319 maybe-info-bison: info-bison
4323 @[ -f ./bison/Makefile ] || exit 0; \
4324 r=`${PWD_COMMAND}`; export r; \
4325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4327 for flag in $(EXTRA_HOST_FLAGS); do \
4328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4330 echo "Doing info in bison" ; \
4332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4334 "RANLIB=$${RANLIB}" \
4335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4341 .PHONY: maybe-dvi-bison dvi-bison
4344 maybe-dvi-bison: dvi-bison
4348 @[ -f ./bison/Makefile ] || exit 0; \
4349 r=`${PWD_COMMAND}`; export r; \
4350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \