blob: 20b65723afbeb20f2023e156992b74f8de9479fb [file] [log] [blame]
# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
#
# Makefile for directory with subdirs to build.
# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
# 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# -------------------------------
# Standard Autoconf-set variables
# -------------------------------
VPATH=@srcdir@
build_alias=@build_alias@
build=@build@
host_alias=@host_alias@
host=@host@
target_alias=@target_alias@
target=@target@
program_transform_name = @program_transform_name@
prefix = @prefix@
exec_prefix = @exec_prefix@
srcdir = @srcdir@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
includedir = @includedir@
oldincludedir = @oldincludedir@
infodir = @infodir@
mandir = @mandir@
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
LN = @LN@
LN_S = @LN_S@
# -------------------------------------------------
# Miscellaneous non-standard autoconf-set variables
# -------------------------------------------------
# The file containing GCC's version number.
gcc_version_trigger = @gcc_version_trigger@
gcc_version = @gcc_version@
# The gcc driver likes to know the arguments it was configured with.
TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
gxx_include_dir = @gxx_include_dir@
libstdcxx_incdir = @libstdcxx_incdir@
tooldir = @tooldir@
build_tooldir = @build_tooldir@
# Directory in which the compiler finds executables, libraries, etc.
libsubdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)
GDB_NLM_DEPS =
# This is the name of the environment variable used for the path to
# the libraries.
RPATH_ENVVAR = @RPATH_ENVVAR@
# This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
# was used.
SET_LIB_PATH = @SET_LIB_PATH@
# configure.in sets SET_LIB_PATH to this if --enable-shared was used.
# Some platforms don't like blank entries, so we remove duplicate,
# leading and trailing colons.
REALLY_SET_LIB_PATH = \
@SET_GCC_LIB_PATH@ \
$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
# This is the list of directories to be built for the build system.
BUILD_CONFIGDIRS = libiberty
# Build programs are put under this directory.
BUILD_SUBDIR = @build_subdir@
# This is set by the configure script to the arguments to use when configuring
# directories built for the build system.
BUILD_CONFIGARGS = @build_configargs@
# This is the list of variables to export in the environment when
# configuring any subdirectory. It must also be exported whenever
# recursing into a build directory in case that directory's Makefile
# re-runs configure.
BASE_EXPORTS = \
FLEX="$(FLEX)"; export FLEX; \
LEX="$(LEX)"; export LEX; \
BISON="$(BISON)"; export BISON; \
YACC="$(YACC)"; export YACC; \
M4="$(M4)"; export M4; \
MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
# This is the list of variables to export in the environment when
# configuring subdirectories for the build system.
BUILD_EXPORTS = \
$(BASE_EXPORTS) \
AR="$(AR_FOR_BUILD)"; export AR; \
AS="$(AS_FOR_BUILD)"; export AS; \
CC="$(CC_FOR_BUILD)"; export CC; \
CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
CXX="$(CXX_FOR_BUILD)"; export CXX; \
CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
LD="$(LD_FOR_BUILD)"; export LD; \
LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
NM="$(NM_FOR_BUILD)"; export NM; \
RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
# This is the list of directories to built for the host system.
SUBDIRS = @configdirs@
# This is set by the configure script to the arguments to use when configuring
# directories built for the host system.
HOST_CONFIGARGS = @host_configargs@
# This is the list of variables to export in the environment when
# configuring subdirectories for the host system.
HOST_EXPORTS = \
$(BASE_EXPORTS) \
CC="$(CC)"; export CC; \
CFLAGS="$(CFLAGS)"; export CFLAGS; \
CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
CXX="$(CXX)"; export CXX; \
CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
AR="$(AR)"; export AR; \
AS="$(AS)"; export AS; \
CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
LD="$(LD)"; export LD; \
LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
NM="$(NM)"; export NM; \
RANLIB="$(RANLIB)"; export RANLIB; \
WINDRES="$(WINDRES)"; export WINDRES; \
OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
GMPINC="$(HOST_GMPINC)"; export GMPINC; \
SET_GCC_LIB_PATH_CMD="@SET_GCC_LIB_PATH@"; export SET_GCC_LIB_PATH_CMD; \
@SET_GCC_LIB_PATH@
# Similar, for later GCC stages.
STAGE_HOST_EXPORTS = \
$(HOST_EXPORTS) \
CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC_FOR_BUILD;
# This is set by the configure script to the list of directories which
# should be built using the target tools.
TARGET_CONFIGDIRS = @target_configdirs@
# Target libraries are put under this directory:
TARGET_SUBDIR = @target_subdir@
# This is set by the configure script to the arguments to use when configuring
# directories built for the target.
TARGET_CONFIGARGS = @target_configargs@
# This is the list of variables to export in the environment when
# configuring subdirectories for the host system.
# APPLE LOCAL begin mainline 2005-10-02 4218570
BASE_TARGET_EXPORTS = \
$(BASE_EXPORTS) \
AR="$(AR_FOR_TARGET)"; export AR; \
AS="$(AS_FOR_TARGET)"; export AS; \
CC="$(CC_FOR_TARGET)"; export CC; \
CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
LD="$(LD_FOR_TARGET)"; export LD; \
LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
NM="$(NM_FOR_TARGET)"; export NM; \
RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
SET_GCC_LIB_PATH_CMD="@SET_GCC_LIB_PATH@"; export SET_GCC_LIB_PATH_CMD; \
@SET_GCC_LIB_PATH@
# APPLE LOCAL end mainline 2005-10-02 4218570
RAW_CXX_TARGET_EXPORTS = \
$(BASE_TARGET_EXPORTS) \
CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
NORMAL_TARGET_EXPORTS = \
$(BASE_TARGET_EXPORTS) \
CXX="$(CXX_FOR_TARGET)"; export CXX;
# Where to find GMP
HOST_GMPLIBS = @gmplibs@
HOST_GMPINC = @gmpinc@
# ----------------------------------------------
# Programs producing files for the BUILD machine
# ----------------------------------------------
SHELL = @config_shell@
# pwd command to use. Allow user to override default by setting PWDCMD in
# the environment to account for automounters. The make variable must not
# be called PWDCMD, otherwise the value set here is passed to make
# subprocesses and overrides the setting from the user's environment.
# Don't use PWD since it is a common shell environment variable and we
# don't want to corrupt it.
PWD_COMMAND = $${PWDCMD-pwd}
# compilers to use to create programs which must be run in the build
# environment.
CC_FOR_BUILD = @CC_FOR_BUILD@
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
CXX_FOR_BUILD = $(CXX)
# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
# here so that they can be overridden by Makefile fragments.
BUILD_PREFIX = @BUILD_PREFIX@
BUILD_PREFIX_1 = @BUILD_PREFIX_1@
# Flags to pass to stage2 and later makes. They are defined
# here so that they can be overridden by Makefile fragments.
BOOT_CFLAGS= -g -O2
CONFIGURED_BISON = @CONFIGURED_BISON@
BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \
else \
echo ${CONFIGURED_BISON} ; \
fi`
CONFIGURED_YACC = @CONFIGURED_YACC@
YACC = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
echo $$r/$(BUILD_SUBDIR)/bison/tests/bison -y ; \
elif [ -f $$r/$(BUILD_SUBDIR)/byacc/byacc ] ; then \
echo $$r/$(BUILD_SUBDIR)/byacc/byacc ; \
else \
echo ${CONFIGURED_YACC} ; \
fi`
CONFIGURED_FLEX = @CONFIGURED_FLEX@
FLEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
else echo ${CONFIGURED_FLEX} ; fi`
CONFIGURED_LEX = @CONFIGURED_LEX@
LEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
else echo ${CONFIGURED_LEX} ; fi`
CONFIGURED_M4 = @CONFIGURED_M4@
M4 = `if [ -f $$r/$(BUILD_SUBDIR)/m4/m4 ] ; \
then echo $$r/$(BUILD_SUBDIR)/m4/m4 ; \
else echo ${CONFIGURED_M4} ; fi`
# For an installed makeinfo, we require it to be from texinfo 4.2 or
# higher, else we use the "missing" dummy. We also pass the subdirectory
# makeinfo even if only the Makefile is there, because Texinfo builds its
# manual when made, and it requires its own version.
CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@
MAKEINFO = `if [ -f $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/Makefile ] ; \
then echo $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo ; \
else if (${CONFIGURED_MAKEINFO} --version \
| egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
# This just becomes part of the MAKEINFO definition passed down to
# sub-makes. It lets flags be given on the command line while still
# using the makeinfo from the object tree.
# (Default to avoid splitting info files by setting the threshold high.)
MAKEINFOFLAGS = --split-size=5000000
EXPECT = `if [ -f $$r/expect/expect ] ; \
then echo $$r/expect/expect ; \
else echo expect ; fi`
RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
then echo $$s/dejagnu/runtest ; \
else echo runtest ; fi`
# ---------------------------------------------
# Programs producing files for the HOST machine
# ---------------------------------------------
# This is the list of directories that may be needed in RPATH_ENVVAR
# so that programs built for the host machine work.
HOST_LIB_PATH = $$r/bfd:$$r/opcodes
AS = @AS@
AR = @AR@
AR_FLAGS = rc
CC = @CC@
CFLAGS = @CFLAGS@
LIBCFLAGS = $(CFLAGS)
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
DLLTOOL = @DLLTOOL@
NM = @NM@
LD = @LD@
LDFLAGS =
RANLIB = @RANLIB@
WINDRES = @WINDRES@
PICFLAG =
# -----------------------------------------------
# Programs producing files for the TARGET machine
# -----------------------------------------------
# This is the list of directories that may be needed in RPATH_ENVVAR
# so that prorgams built for the target machine work.
TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libmudflap/.libs
FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
AR_FOR_TARGET=@AR_FOR_TARGET@
CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
USUAL_AR_FOR_TARGET = ` \
if [ -f $$r/binutils/ar ] ; then \
echo $$r/binutils/ar ; \
else \
if [ '$(host)' = '$(target)' ] ; then \
echo $(AR); \
else \
echo $(CONFIGURED_AR_FOR_TARGET) ; \
fi; \
fi`
AS_FOR_TARGET=@AS_FOR_TARGET@
CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
USUAL_AS_FOR_TARGET = ` \
if [ -f $$r/gas/as-new ] ; then \
echo $$r/gas/as-new ; \
elif [ -f $$r/gcc/xgcc ]; then \
$(CC_FOR_TARGET) -print-prog-name=as ; \
else \
if [ '$(host)' = '$(target)' ] ; then \
echo $(AS); \
else \
echo $(CONFIGURED_AS_FOR_TARGET) ; \
fi; \
fi`
CC_FOR_TARGET = @CC_FOR_TARGET@
# During gcc bootstrap, if we use some random cc for stage1 then
# CFLAGS will be just -g. We want to ensure that TARGET libraries
# (which we know are built with gcc) are built with optimizations so
# prepend -O2 when setting CFLAGS_FOR_TARGET.
CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
# If GCC_FOR_TARGET is not overriden on the command line, then this
# variable is passed down to the gcc Makefile, where it is used to
# build libgcc2.a. We define it here so that it can itself be
# overridden on the command line.
GCC_FOR_TARGET=@GCC_FOR_TARGET@
USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
CXX_FOR_TARGET = @CXX_FOR_TARGET@
RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
USUAL_DLLTOOL_FOR_TARGET = ` \
if [ -f $$r/binutils/dlltool ] ; then \
echo $$r/binutils/dlltool ; \
else \
if [ '$(host)' = '$(target)' ] ; then \
echo $(DLLTOOL); \
else \
echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
fi; \
fi`
GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
LD_FOR_TARGET=@LD_FOR_TARGET@
CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
USUAL_LD_FOR_TARGET = ` \
if [ -f $$r/ld/ld-new ] ; then \
echo $$r/ld/ld-new ; \
elif [ -f $$r/gcc/xgcc ]; then \
$(CC_FOR_TARGET) -print-prog-name=ld ; \
else \
if [ '$(host)' = '$(target)' ] ; then \
echo $(LD); \
else \
echo $(CONFIGURED_LD_FOR_TARGET) ; \
fi; \
fi`
LDFLAGS_FOR_TARGET =
# APPLE LOCAL begin mainline 2005-10-02 4218570
LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
CONFIGURED_LIPO_FOR_TARGET=@CONFIGURED_LIPO_FOR_TARGET@
USUAL_LIPO_FOR_TARGET = ` \
if [ '$(host)' = '$(target)' ] ; then \
if [ x'$(LIPO)' != x ]; then \
echo $(LIPO); \
else \
echo lipo; \
fi; \
else \
echo $(CONFIGURED_LIPO_FOR_TARGET) ; \
fi`
# APPLE LOCAL end mainline 2005-10-02 4218570
NM_FOR_TARGET=@NM_FOR_TARGET@
CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
USUAL_NM_FOR_TARGET = ` \
if [ -f $$r/binutils/nm-new ] ; then \
echo $$r/binutils/nm-new ; \
elif [ -f $$r/gcc/xgcc ]; then \
$(CC_FOR_TARGET) -print-prog-name=nm ; \
else \
if [ '$(host)' = '$(target)' ] ; then \
echo $(NM); \
else \
echo $(CONFIGURED_NM_FOR_TARGET) ; \
fi; \
fi`
RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
USUAL_RANLIB_FOR_TARGET = ` \
if [ -f $$r/binutils/ranlib ] ; then \
echo $$r/binutils/ranlib ; \
else \
if [ '$(host)' = '$(target)' ] ; then \
if [ x'$(RANLIB)' != x ]; then \
echo $(RANLIB); \
else \
echo ranlib; \
fi; \
else \
echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
fi; \
fi`
# APPLE LOCAL begin mainline 2005-10-02 4218570
STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
CONFIGURED_STRIP_FOR_TARGET=@CONFIGURED_STRIP_FOR_TARGET@
USUAL_STRIP_FOR_TARGET = ` \
if [ -f $$r/$(HOST_SUBDIR)/binutils/strip ] ; then \
echo $$r/$(HOST_SUBDIR)/binutils/strip ; \
else \
if [ '$(host)' = '$(target)' ] ; then \
if [ x'$(STRIP)' != x ]; then \
echo $(STRIP); \
else \
echo strip; \
fi; \
else \
echo $(CONFIGURED_STRIP_FOR_TARGET) ; \
fi; \
fi`
# APPLE LOCAL end mainline 2005-10-02 4218570
WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
USUAL_WINDRES_FOR_TARGET = ` \
if [ -f $$r/binutils/windres ] ; then \
echo $$r/binutils/windres ; \
else \
if [ '$(host)' = '$(target)' ] ; then \
echo $(WINDRES); \
else \
echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
fi; \
fi`
PICFLAG_FOR_TARGET =
# ------------------------------------
# Miscellaneous targets and flag lists
# ------------------------------------
# The first rule in the file had better be this one. Don't put any above it.
# This lives here to allow makefile fragments to contain dependencies.
@default_target@:
#### host and target specific makefile fragments come in here.
@target_makefile_frag@
@alphaieee_frag@
@ospace_frag@
@host_makefile_frag@
###
# Flags to pass down to all sub-makes.
BASE_FLAGS_TO_PASS = \
"DESTDIR=$(DESTDIR)" \
"RPATH_ENVVAR=$(RPATH_ENVVAR)" \
"TARGET_SUBDIR=$(TARGET_SUBDIR)" \
"bindir=$(bindir)" \
"datadir=$(datadir)" \
"exec_prefix=$(exec_prefix)" \
"includedir=$(includedir)" \
"infodir=$(infodir)" \
"libdir=$(libdir)" \
"libexecdir=$(libexecdir)" \
"lispdir=$(lispdir)" \
"libstdcxx_incdir=$(libstdcxx_incdir)" \
"libsubdir=$(libsubdir)" \
"localstatedir=$(localstatedir)" \
"mandir=$(mandir)" \
"oldincludedir=$(oldincludedir)" \
"prefix=$(prefix)" \
"sbindir=$(sbindir)" \
"sharedstatedir=$(sharedstatedir)" \
"sysconfdir=$(sysconfdir)" \
"tooldir=$(tooldir)" \
"build_tooldir=$(build_tooldir)" \
"gxx_include_dir=$(gxx_include_dir)" \
"gcc_version=$(gcc_version)" \
"gcc_version_trigger=$(gcc_version_trigger)" \
"target_alias=$(target_alias)" \
"BISON=$(BISON)" \
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
"CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
"EXPECT=$(EXPECT)" \
"FLEX=$(FLEX)" \
"INSTALL=$(INSTALL)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
"LEX=$(LEX)" \
"M4=$(M4)" \
"MAKE=$(MAKE)" \
"RUNTEST=$(RUNTEST)" \
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
"SHELL=$(SHELL)" \
"YACC=$(YACC)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CFLAGS=$(CFLAGS)" \
"CXXFLAGS=$(CXXFLAGS)" \
"LDFLAGS=$(LDFLAGS)" \
"LIBCFLAGS=$(LIBCFLAGS)" \
"LIBCXXFLAGS=$(LIBCXXFLAGS)" \
"AR_FOR_TARGET=$(AR_FOR_TARGET)" \
"AS_FOR_TARGET=$(AS_FOR_TARGET)" \
"CC_FOR_TARGET=$(CC_FOR_TARGET)" \
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
"CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
"CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
"CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
"DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
"GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
"GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
"LD_FOR_TARGET=$(LD_FOR_TARGET)" \
"LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
"LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
"NM_FOR_TARGET=$(NM_FOR_TARGET)" \
"RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
"STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
"WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
"CONFIG_SHELL=$(SHELL)" \
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
# For any flags above that may contain shell code that varies from one
# target library to another. When doing recursive invocations of the
# top-level Makefile, we don't want the outer make to evaluate them,
# so we pass these variables down unchanged. They must not contain
# single nor double quotes.
RECURSE_FLAGS = \
CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS)
# Flags to pass down to most sub-makes, in which we're building with
# the host environment.
EXTRA_HOST_FLAGS = \
'AR=$(AR)' \
'AS=$(AS)' \
'CC=$(CC)' \
'CXX=$(CXX)' \
'DLLTOOL=$(DLLTOOL)' \
'LD=$(LD)' \
'NM=$(NM)' \
'RANLIB=$(RANLIB)' \
'WINDRES=$(WINDRES)'
FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
# Flags that are concerned with the location of the X11 include files
# and library files
#
# NOTE: until the top-level is getting the values via autoconf, it only
# causes problems to have this top-level Makefile overriding the autoconf-set
# values in child directories. Only variables that don't conflict with
# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
#
X11_FLAGS_TO_PASS = \
'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
# Flags to pass down to makes which are built with the target environment.
# The double $ decreases the length of the command line; the variables
# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
EXTRA_TARGET_FLAGS = \
'AR=$$(AR_FOR_TARGET)' \
'AS=$$(AS_FOR_TARGET)' \
'CC=$$(CC_FOR_TARGET)' \
'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
'CXX=$$(CXX_FOR_TARGET)' \
'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
'LD=$$(LD_FOR_TARGET)' \
'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
'NM=$$(NM_FOR_TARGET)' \
'RANLIB=$$(RANLIB_FOR_TARGET)' \
'WINDRES=$$(WINDRES_FOR_TARGET)'
TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
# unfortunately needs the native compiler and the target ar and
# ranlib.
# If any variables are added here, they must be added to do-*, below.
# The BUILD_* variables are a special case, which are used for the gcc
# cross-building scheme.
EXTRA_GCC_FLAGS = \
'BUILD_PREFIX=$(BUILD_PREFIX)' \
'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
"GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
"`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
"`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
"`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
"`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
"`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
"`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
"`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
"`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
"`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
.PHONY: configure-host
configure-host: \
maybe-configure-ash \
maybe-configure-autoconf \
maybe-configure-automake \
maybe-configure-bash \
maybe-configure-bfd \
maybe-configure-opcodes \
maybe-configure-binutils \
maybe-configure-bison \
maybe-configure-byacc \
maybe-configure-bzip2 \
maybe-configure-dejagnu \
maybe-configure-diff \
maybe-configure-dosutils \
maybe-configure-etc \
maybe-configure-fastjar \
maybe-configure-fileutils \
maybe-configure-findutils \
maybe-configure-find \
maybe-configure-fixincludes \
maybe-configure-flex \
maybe-configure-gas \
maybe-configure-gcc \
maybe-configure-gawk \
maybe-configure-gettext \
maybe-configure-gnuserv \
maybe-configure-gprof \
maybe-configure-gzip \
maybe-configure-hello \
maybe-configure-indent \
maybe-configure-intl \
maybe-configure-tcl \
maybe-configure-itcl \
maybe-configure-ld \
maybe-configure-libcpp \
maybe-configure-libgui \
maybe-configure-libiberty \
maybe-configure-libtool \
maybe-configure-m4 \
maybe-configure-make \
maybe-configure-mmalloc \
maybe-configure-patch \
maybe-configure-perl \
maybe-configure-prms \
maybe-configure-rcs \
maybe-configure-readline \
maybe-configure-release \
maybe-configure-recode \
maybe-configure-sed \
maybe-configure-send-pr \
maybe-configure-shellutils \
maybe-configure-sid \
maybe-configure-sim \
maybe-configure-tar \
maybe-configure-texinfo \
maybe-configure-textutils \
maybe-configure-time \
maybe-configure-uudecode \
maybe-configure-wdiff \
maybe-configure-zip \
maybe-configure-zlib \
maybe-configure-gdb \
maybe-configure-expect \
maybe-configure-guile \
maybe-configure-tk \
maybe-configure-libtermcap \
maybe-configure-utils
.PHONY: configure-target
configure-target: \
maybe-configure-target-libstdc++-v3 \
maybe-configure-target-libmudflap \
maybe-configure-target-newlib \
maybe-configure-target-libgfortran \
maybe-configure-target-libobjc \
maybe-configure-target-libtermcap \
maybe-configure-target-winsup \
maybe-configure-target-libgloss \
maybe-configure-target-libiberty \
maybe-configure-target-gperf \
maybe-configure-target-examples \
maybe-configure-target-libffi \
maybe-configure-target-libjava \
maybe-configure-target-zlib \
maybe-configure-target-boehm-gc \
maybe-configure-target-qthreads \
maybe-configure-target-rda \
maybe-configure-target-libada
# The target built for a native non-bootstrap build.
.PHONY: all
all: unstage all-host all-target stage
.PHONY: all-build
all-build: \
maybe-all-build-libiberty \
maybe-all-build-bison \
maybe-all-build-byacc \
maybe-all-build-flex \
maybe-all-build-m4 \
maybe-all-build-texinfo \
maybe-all-build-fixincludes
.PHONY: all-host
all-host: \
maybe-all-ash \
maybe-all-autoconf \
maybe-all-automake \
maybe-all-bash \
maybe-all-bfd \
maybe-all-opcodes \
maybe-all-binutils \
maybe-all-bison \
maybe-all-byacc \
maybe-all-bzip2 \
maybe-all-dejagnu \
maybe-all-diff \
maybe-all-dosutils \
maybe-all-etc \
maybe-all-fastjar \
maybe-all-fileutils \
maybe-all-findutils \
maybe-all-find \
maybe-all-fixincludes \
maybe-all-flex \
maybe-all-gas \
maybe-all-gcc \
maybe-all-gawk \
maybe-all-gettext \
maybe-all-gnuserv \
maybe-all-gprof \
maybe-all-gzip \
maybe-all-hello \
maybe-all-indent \
maybe-all-intl \
maybe-all-tcl \
maybe-all-itcl \
maybe-all-ld \
maybe-all-libcpp \
maybe-all-libgui \
maybe-all-libiberty \
maybe-all-libtool \
maybe-all-m4 \
maybe-all-make \
maybe-all-mmalloc \
maybe-all-patch \
maybe-all-perl \
maybe-all-prms \
maybe-all-rcs \
maybe-all-readline \
maybe-all-release \
maybe-all-recode \
maybe-all-sed \
maybe-all-send-pr \
maybe-all-shellutils \
maybe-all-sid \
maybe-all-sim \
maybe-all-tar \
maybe-all-texinfo \
maybe-all-textutils \
maybe-all-time \
maybe-all-uudecode \
maybe-all-wdiff \
maybe-all-zip \
maybe-all-zlib \
maybe-all-gdb \
maybe-all-expect \
maybe-all-guile \
maybe-all-tk \
maybe-all-libtermcap \
maybe-all-utils
.PHONY: all-target
all-target: \
maybe-all-target-libstdc++-v3 \
maybe-all-target-libmudflap \
maybe-all-target-newlib \
maybe-all-target-libgfortran \
maybe-all-target-libobjc \
maybe-all-target-libtermcap \
maybe-all-target-winsup \
maybe-all-target-libgloss \
maybe-all-target-libiberty \
maybe-all-target-gperf \
maybe-all-target-examples \
maybe-all-target-libffi \
maybe-all-target-libjava \
maybe-all-target-zlib \
maybe-all-target-boehm-gc \
maybe-all-target-qthreads \
maybe-all-target-rda \
maybe-all-target-libada
# Do a target for all the subdirectories. A ``make do-X'' will do a
# ``make X'' in all subdirectories (because, in general, there is a
# dependency (below) of X upon do-X, a ``make X'' will also do this,
# but it may do additional work as well).
.PHONY: do-info
do-info: unstage info-host info-target stage
.PHONY: info-host
info-host: \
maybe-info-ash \
maybe-info-autoconf \
maybe-info-automake \
maybe-info-bash \
maybe-info-bfd \
maybe-info-opcodes \
maybe-info-binutils \
maybe-info-bison \
maybe-info-byacc \
maybe-info-bzip2 \
maybe-info-dejagnu \
maybe-info-diff \
maybe-info-dosutils \
maybe-info-etc \
maybe-info-fastjar \
maybe-info-fileutils \
maybe-info-findutils \
maybe-info-find \
maybe-info-fixincludes \
maybe-info-flex \
maybe-info-gas \
maybe-info-gcc \
maybe-info-gawk \
maybe-info-gettext \
maybe-info-gnuserv \
maybe-info-gprof \
maybe-info-gzip \
maybe-info-hello \
maybe-info-indent \
maybe-info-intl \
maybe-info-tcl \
maybe-info-itcl \
maybe-info-ld \
maybe-info-libcpp \
maybe-info-libgui \
maybe-info-libiberty \
maybe-info-libtool \
maybe-info-m4 \
maybe-info-make \
maybe-info-mmalloc \
maybe-info-patch \
maybe-info-perl \
maybe-info-prms \
maybe-info-rcs \
maybe-info-readline \
maybe-info-release \
maybe-info-recode \
maybe-info-sed \
maybe-info-send-pr \
maybe-info-shellutils \
maybe-info-sid \
maybe-info-sim \
maybe-info-tar \
maybe-info-texinfo \
maybe-info-textutils \
maybe-info-time \
maybe-info-uudecode \
maybe-info-wdiff \
maybe-info-zip \
maybe-info-zlib \
maybe-info-gdb \
maybe-info-expect \
maybe-info-guile \
maybe-info-tk \
maybe-info-libtermcap \
maybe-info-utils
.PHONY: info-target
info-target: \
maybe-info-target-libstdc++-v3 \
maybe-info-target-libmudflap \
maybe-info-target-newlib \
maybe-info-target-libgfortran \
maybe-info-target-libobjc \
maybe-info-target-libtermcap \
maybe-info-target-winsup \
maybe-info-target-libgloss \
maybe-info-target-libiberty \
maybe-info-target-gperf \
maybe-info-target-examples \
maybe-info-target-libffi \
maybe-info-target-libjava \
maybe-info-target-zlib \
maybe-info-target-boehm-gc \
maybe-info-target-qthreads \
maybe-info-target-rda \
maybe-info-target-libada
.PHONY: do-dvi
do-dvi: unstage dvi-host dvi-target stage
.PHONY: dvi-host
dvi-host: \
maybe-dvi-ash \
maybe-dvi-autoconf \
maybe-dvi-automake \
maybe-dvi-bash \
maybe-dvi-bfd \
maybe-dvi-opcodes \
maybe-dvi-binutils \
maybe-dvi-bison \
maybe-dvi-byacc \
maybe-dvi-bzip2 \
maybe-dvi-dejagnu \
maybe-dvi-diff \
maybe-dvi-dosutils \
maybe-dvi-etc \
maybe-dvi-fastjar \
maybe-dvi-fileutils \
maybe-dvi-findutils \
maybe-dvi-find \
maybe-dvi-fixincludes \
maybe-dvi-flex \
maybe-dvi-gas \
maybe-dvi-gcc \
maybe-dvi-gawk \
maybe-dvi-gettext \
maybe-dvi-gnuserv \
maybe-dvi-gprof \
maybe-dvi-gzip \
maybe-dvi-hello \
maybe-dvi-indent \
maybe-dvi-intl \
maybe-dvi-tcl \
maybe-dvi-itcl \
maybe-dvi-ld \
maybe-dvi-libcpp \
maybe-dvi-libgui \
maybe-dvi-libiberty \
maybe-dvi-libtool \
maybe-dvi-m4 \
maybe-dvi-make \
maybe-dvi-mmalloc \
maybe-dvi-patch \
maybe-dvi-perl \
maybe-dvi-prms \
maybe-dvi-rcs \
maybe-dvi-readline \
maybe-dvi-release \
maybe-dvi-recode \
maybe-dvi-sed \
maybe-dvi-send-pr \
maybe-dvi-shellutils \
maybe-dvi-sid \
maybe-dvi-sim \
maybe-dvi-tar \
maybe-dvi-texinfo \
maybe-dvi-textutils \
maybe-dvi-time \
maybe-dvi-uudecode \
maybe-dvi-wdiff \
maybe-dvi-zip \
maybe-dvi-zlib \
maybe-dvi-gdb \
maybe-dvi-expect \
maybe-dvi-guile \
maybe-dvi-tk \
maybe-dvi-libtermcap \
maybe-dvi-utils
.PHONY: dvi-target
dvi-target: \
maybe-dvi-target-libstdc++-v3 \
maybe-dvi-target-libmudflap \
maybe-dvi-target-newlib \
maybe-dvi-target-libgfortran \
maybe-dvi-target-libobjc \
maybe-dvi-target-libtermcap \
maybe-dvi-target-winsup \
maybe-dvi-target-libgloss \
maybe-dvi-target-libiberty \
maybe-dvi-target-gperf \
maybe-dvi-target-examples \
maybe-dvi-target-libffi \
maybe-dvi-target-libjava \
maybe-dvi-target-zlib \
maybe-dvi-target-boehm-gc \
maybe-dvi-target-qthreads \
maybe-dvi-target-rda \
maybe-dvi-target-libada
.PHONY: do-html
do-html: unstage html-host html-target stage
.PHONY: html-host
html-host: \
maybe-html-ash \
maybe-html-autoconf \
maybe-html-automake \
maybe-html-bash \
maybe-html-bfd \
maybe-html-opcodes \
maybe-html-binutils \
maybe-html-bison \
maybe-html-byacc \
maybe-html-bzip2 \
maybe-html-dejagnu \
maybe-html-diff \
maybe-html-dosutils \
maybe-html-etc \
maybe-html-fastjar \
maybe-html-fileutils \
maybe-html-findutils \
maybe-html-find \
maybe-html-fixincludes \
maybe-html-flex \
maybe-html-gas \
maybe-html-gcc \
maybe-html-gawk \
maybe-html-gettext \
maybe-html-gnuserv \
maybe-html-gprof \
maybe-html-gzip \
maybe-html-hello \
maybe-html-indent \
maybe-html-intl \
maybe-html-tcl \
maybe-html-itcl \
maybe-html-ld \
maybe-html-libcpp \
maybe-html-libgui \
maybe-html-libiberty \
maybe-html-libtool \
maybe-html-m4 \
maybe-html-make \
maybe-html-mmalloc \
maybe-html-patch \
maybe-html-perl \
maybe-html-prms \
maybe-html-rcs \
maybe-html-readline \
maybe-html-release \
maybe-html-recode \
maybe-html-sed \
maybe-html-send-pr \
maybe-html-shellutils \
maybe-html-sid \
maybe-html-sim \
maybe-html-tar \
maybe-html-texinfo \
maybe-html-textutils \
maybe-html-time \
maybe-html-uudecode \
maybe-html-wdiff \
maybe-html-zip \
maybe-html-zlib \
maybe-html-gdb \
maybe-html-expect \
maybe-html-guile \
maybe-html-tk \
maybe-html-libtermcap \
maybe-html-utils
.PHONY: html-target
html-target: \
maybe-html-target-libstdc++-v3 \
maybe-html-target-libmudflap \
maybe-html-target-newlib \
maybe-html-target-libgfortran \
maybe-html-target-libobjc \
maybe-html-target-libtermcap \
maybe-html-target-winsup \
maybe-html-target-libgloss \
maybe-html-target-libiberty \
maybe-html-target-gperf \
maybe-html-target-examples \
maybe-html-target-libffi \
maybe-html-target-libjava \
maybe-html-target-zlib \
maybe-html-target-boehm-gc \
maybe-html-target-qthreads \
maybe-html-target-rda \
maybe-html-target-libada
.PHONY: do-TAGS
do-TAGS: unstage TAGS-host TAGS-target stage
.PHONY: TAGS-host
TAGS-host: \
maybe-TAGS-ash \
maybe-TAGS-autoconf \
maybe-TAGS-automake \
maybe-TAGS-bash \
maybe-TAGS-bfd \
maybe-TAGS-opcodes \
maybe-TAGS-binutils \
maybe-TAGS-bison \
maybe-TAGS-byacc \
maybe-TAGS-bzip2 \
maybe-TAGS-dejagnu \
maybe-TAGS-diff \
maybe-TAGS-dosutils \
maybe-TAGS-etc \
maybe-TAGS-fastjar \
maybe-TAGS-fileutils \
maybe-TAGS-findutils \
maybe-TAGS-find \
maybe-TAGS-fixincludes \
maybe-TAGS-flex \
maybe-TAGS-gas \
maybe-TAGS-gcc \
maybe-TAGS-gawk \
maybe-TAGS-gettext \
maybe-TAGS-gnuserv \
maybe-TAGS-gprof \
maybe-TAGS-gzip \
maybe-TAGS-hello \
maybe-TAGS-indent \
maybe-TAGS-intl \
maybe-TAGS-tcl \
maybe-TAGS-itcl \
maybe-TAGS-ld \
maybe-TAGS-libcpp \
maybe-TAGS-libgui \
maybe-TAGS-libiberty \
maybe-TAGS-libtool \
maybe-TAGS-m4 \
maybe-TAGS-make \
maybe-TAGS-mmalloc \
maybe-TAGS-patch \
maybe-TAGS-perl \
maybe-TAGS-prms \
maybe-TAGS-rcs \
maybe-TAGS-readline \
maybe-TAGS-release \
maybe-TAGS-recode \
maybe-TAGS-sed \
maybe-TAGS-send-pr \
maybe-TAGS-shellutils \
maybe-TAGS-sid \
maybe-TAGS-sim \
maybe-TAGS-tar \
maybe-TAGS-texinfo \
maybe-TAGS-textutils \
maybe-TAGS-time \
maybe-TAGS-uudecode \
maybe-TAGS-wdiff \
maybe-TAGS-zip \
maybe-TAGS-zlib \
maybe-TAGS-gdb \
maybe-TAGS-expect \
maybe-TAGS-guile \
maybe-TAGS-tk \
maybe-TAGS-libtermcap \
maybe-TAGS-utils
.PHONY: TAGS-target
TAGS-target: \
maybe-TAGS-target-libstdc++-v3 \
maybe-TAGS-target-libmudflap \
maybe-TAGS-target-newlib \
maybe-TAGS-target-libgfortran \
maybe-TAGS-target-libobjc \
maybe-TAGS-target-libtermcap \
maybe-TAGS-target-winsup \
maybe-TAGS-target-libgloss \
maybe-TAGS-target-libiberty \
maybe-TAGS-target-gperf \
maybe-TAGS-target-examples \
maybe-TAGS-target-libffi \
maybe-TAGS-target-libjava \
maybe-TAGS-target-zlib \
maybe-TAGS-target-boehm-gc \
maybe-TAGS-target-qthreads \
maybe-TAGS-target-rda \
maybe-TAGS-target-libada
.PHONY: do-install-info
do-install-info: unstage install-info-host install-info-target stage
.PHONY: install-info-host
install-info-host: \
maybe-install-info-ash \
maybe-install-info-autoconf \
maybe-install-info-automake \
maybe-install-info-bash \
maybe-install-info-bfd \
maybe-install-info-opcodes \
maybe-install-info-binutils \
maybe-install-info-bison \
maybe-install-info-byacc \
maybe-install-info-bzip2 \
maybe-install-info-dejagnu \
maybe-install-info-diff \
maybe-install-info-dosutils \
maybe-install-info-etc \
maybe-install-info-fastjar \
maybe-install-info-fileutils \
maybe-install-info-findutils \
maybe-install-info-find \
maybe-install-info-fixincludes \
maybe-install-info-flex \
maybe-install-info-gas \
maybe-install-info-gcc \
maybe-install-info-gawk \
maybe-install-info-gettext \
maybe-install-info-gnuserv \
maybe-install-info-gprof \
maybe-install-info-gzip \
maybe-install-info-hello \
maybe-install-info-indent \
maybe-install-info-intl \
maybe-install-info-tcl \
maybe-install-info-itcl \
maybe-install-info-ld \
maybe-install-info-libcpp \
maybe-install-info-libgui \
maybe-install-info-libiberty \
maybe-install-info-libtool \
maybe-install-info-m4 \
maybe-install-info-make \
maybe-install-info-mmalloc \
maybe-install-info-patch \
maybe-install-info-perl \
maybe-install-info-prms \
maybe-install-info-rcs \
maybe-install-info-readline \
maybe-install-info-release \
maybe-install-info-recode \
maybe-install-info-sed \
maybe-install-info-send-pr \
maybe-install-info-shellutils \
maybe-install-info-sid \
maybe-install-info-sim \
maybe-install-info-tar \
maybe-install-info-texinfo \
maybe-install-info-textutils \
maybe-install-info-time \
maybe-install-info-uudecode \
maybe-install-info-wdiff \
maybe-install-info-zip \
maybe-install-info-zlib \
maybe-install-info-gdb \
maybe-install-info-expect \
maybe-install-info-guile \
maybe-install-info-tk \
maybe-install-info-libtermcap \
maybe-install-info-utils
.PHONY: install-info-target
install-info-target: \
maybe-install-info-target-libstdc++-v3 \
maybe-install-info-target-libmudflap \
maybe-install-info-target-newlib \
maybe-install-info-target-libgfortran \
maybe-install-info-target-libobjc \
maybe-install-info-target-libtermcap \
maybe-install-info-target-winsup \
maybe-install-info-target-libgloss \
maybe-install-info-target-libiberty \
maybe-install-info-target-gperf \
maybe-install-info-target-examples \
maybe-install-info-target-libffi \
maybe-install-info-target-libjava \
maybe-install-info-target-zlib \
maybe-install-info-target-boehm-gc \
maybe-install-info-target-qthreads \
maybe-install-info-target-rda \
maybe-install-info-target-libada
.PHONY: do-installcheck
do-installcheck: unstage installcheck-host installcheck-target stage
.PHONY: installcheck-host
installcheck-host: \
maybe-installcheck-ash \
maybe-installcheck-autoconf \
maybe-installcheck-automake \
maybe-installcheck-bash \
maybe-installcheck-bfd \
maybe-installcheck-opcodes \
maybe-installcheck-binutils \
maybe-installcheck-bison \
maybe-installcheck-byacc \
maybe-installcheck-bzip2 \
maybe-installcheck-dejagnu \
maybe-installcheck-diff \
maybe-installcheck-dosutils \
maybe-installcheck-etc \
maybe-installcheck-fastjar \
maybe-installcheck-fileutils \
maybe-installcheck-findutils \
maybe-installcheck-find \
maybe-installcheck-fixincludes \
maybe-installcheck-flex \
maybe-installcheck-gas \
maybe-installcheck-gcc \
maybe-installcheck-gawk \
maybe-installcheck-gettext \
maybe-installcheck-gnuserv \
maybe-installcheck-gprof \
maybe-installcheck-gzip \
maybe-installcheck-hello \
maybe-installcheck-indent \
maybe-installcheck-intl \
maybe-installcheck-tcl \
maybe-installcheck-itcl \
maybe-installcheck-ld \
maybe-installcheck-libcpp \
maybe-installcheck-libgui \
maybe-installcheck-libiberty \
maybe-installcheck-libtool \
maybe-installcheck-m4 \
maybe-installcheck-make \
maybe-installcheck-mmalloc \
maybe-installcheck-patch \
maybe-installcheck-perl \
maybe-installcheck-prms \
maybe-installcheck-rcs \
maybe-installcheck-readline \
maybe-installcheck-release \
maybe-installcheck-recode \
maybe-installcheck-sed \
maybe-installcheck-send-pr \
maybe-installcheck-shellutils \
maybe-installcheck-sid \
maybe-installcheck-sim \
maybe-installcheck-tar \
maybe-installcheck-texinfo \
maybe-installcheck-textutils \
maybe-installcheck-time \
maybe-installcheck-uudecode \
maybe-installcheck-wdiff \
maybe-installcheck-zip \
maybe-installcheck-zlib \
maybe-installcheck-gdb \
maybe-installcheck-expect \
maybe-installcheck-guile \
maybe-installcheck-tk \
maybe-installcheck-libtermcap \
maybe-installcheck-utils
.PHONY: installcheck-target
installcheck-target: \
maybe-installcheck-target-libstdc++-v3 \
maybe-installcheck-target-libmudflap \
maybe-installcheck-target-newlib \
maybe-installcheck-target-libgfortran \
maybe-installcheck-target-libobjc \
maybe-installcheck-target-libtermcap \
maybe-installcheck-target-winsup \
maybe-installcheck-target-libgloss \
maybe-installcheck-target-libiberty \
maybe-installcheck-target-gperf \
maybe-installcheck-target-examples \
maybe-installcheck-target-libffi \
maybe-installcheck-target-libjava \
maybe-installcheck-target-zlib \
maybe-installcheck-target-boehm-gc \
maybe-installcheck-target-qthreads \
maybe-installcheck-target-rda \
maybe-installcheck-target-libada
.PHONY: do-mostlyclean
do-mostlyclean: unstage mostlyclean-host mostlyclean-target stage
.PHONY: mostlyclean-host
mostlyclean-host: \
maybe-mostlyclean-ash \
maybe-mostlyclean-autoconf \
maybe-mostlyclean-automake \
maybe-mostlyclean-bash \
maybe-mostlyclean-bfd \
maybe-mostlyclean-opcodes \
maybe-mostlyclean-binutils \
maybe-mostlyclean-bison \
maybe-mostlyclean-byacc \
maybe-mostlyclean-bzip2 \
maybe-mostlyclean-dejagnu \
maybe-mostlyclean-diff \
maybe-mostlyclean-dosutils \
maybe-mostlyclean-etc \
maybe-mostlyclean-fastjar \
maybe-mostlyclean-fileutils \
maybe-mostlyclean-findutils \
maybe-mostlyclean-find \
maybe-mostlyclean-fixincludes \
maybe-mostlyclean-flex \
maybe-mostlyclean-gas \
maybe-mostlyclean-gcc \
maybe-mostlyclean-gawk \
maybe-mostlyclean-gettext \
maybe-mostlyclean-gnuserv \
maybe-mostlyclean-gprof \
maybe-mostlyclean-gzip \
maybe-mostlyclean-hello \
maybe-mostlyclean-indent \
maybe-mostlyclean-intl \
maybe-mostlyclean-tcl \
maybe-mostlyclean-itcl \
maybe-mostlyclean-ld \
maybe-mostlyclean-libcpp \
maybe-mostlyclean-libgui \
maybe-mostlyclean-libiberty \
maybe-mostlyclean-libtool \
maybe-mostlyclean-m4 \
maybe-mostlyclean-make \
maybe-mostlyclean-mmalloc \
maybe-mostlyclean-patch \
maybe-mostlyclean-perl \
maybe-mostlyclean-prms \
maybe-mostlyclean-rcs \
maybe-mostlyclean-readline \
maybe-mostlyclean-release \
maybe-mostlyclean-recode \
maybe-mostlyclean-sed \
maybe-mostlyclean-send-pr \
maybe-mostlyclean-shellutils \
maybe-mostlyclean-sid \
maybe-mostlyclean-sim \
maybe-mostlyclean-tar \
maybe-mostlyclean-texinfo \
maybe-mostlyclean-textutils \
maybe-mostlyclean-time \
maybe-mostlyclean-uudecode \
maybe-mostlyclean-wdiff \
maybe-mostlyclean-zip \
maybe-mostlyclean-zlib \
maybe-mostlyclean-gdb \
maybe-mostlyclean-expect \
maybe-mostlyclean-guile \
maybe-mostlyclean-tk \
maybe-mostlyclean-libtermcap \
maybe-mostlyclean-utils
.PHONY: mostlyclean-target
mostlyclean-target: \
maybe-mostlyclean-target-libstdc++-v3 \
maybe-mostlyclean-target-libmudflap \
maybe-mostlyclean-target-newlib \
maybe-mostlyclean-target-libgfortran \
maybe-mostlyclean-target-libobjc \
maybe-mostlyclean-target-libtermcap \
maybe-mostlyclean-target-winsup \
maybe-mostlyclean-target-libgloss \
maybe-mostlyclean-target-libiberty \
maybe-mostlyclean-target-gperf \
maybe-mostlyclean-target-examples \
maybe-mostlyclean-target-libffi \
maybe-mostlyclean-target-libjava \
maybe-mostlyclean-target-zlib \
maybe-mostlyclean-target-boehm-gc \
maybe-mostlyclean-target-qthreads \
maybe-mostlyclean-target-rda \
maybe-mostlyclean-target-libada
.PHONY: do-clean
do-clean: unstage clean-host clean-target stage
.PHONY: clean-host
clean-host: \
maybe-clean-ash \
maybe-clean-autoconf \
maybe-clean-automake \
maybe-clean-bash \
maybe-clean-bfd \
maybe-clean-opcodes \
maybe-clean-binutils \
maybe-clean-bison \
maybe-clean-byacc \
maybe-clean-bzip2 \
maybe-clean-dejagnu \
maybe-clean-diff \
maybe-clean-dosutils \
maybe-clean-etc \
maybe-clean-fastjar \
maybe-clean-fileutils \
maybe-clean-findutils \
maybe-clean-find \
maybe-clean-fixincludes \
maybe-clean-flex \
maybe-clean-gas \
maybe-clean-gcc \
maybe-clean-gawk \
maybe-clean-gettext \
maybe-clean-gnuserv \
maybe-clean-gprof \
maybe-clean-gzip \
maybe-clean-hello \
maybe-clean-indent \
maybe-clean-intl \
maybe-clean-tcl \
maybe-clean-itcl \
maybe-clean-ld \
maybe-clean-libcpp \
maybe-clean-libgui \
maybe-clean-libiberty \
maybe-clean-libtool \
maybe-clean-m4 \
maybe-clean-make \
maybe-clean-mmalloc \
maybe-clean-patch \
maybe-clean-perl \
maybe-clean-prms \
maybe-clean-rcs \
maybe-clean-readline \
maybe-clean-release \
maybe-clean-recode \
maybe-clean-sed \
maybe-clean-send-pr \
maybe-clean-shellutils \
maybe-clean-sid \
maybe-clean-sim \
maybe-clean-tar \
maybe-clean-texinfo \
maybe-clean-textutils \
maybe-clean-time \
maybe-clean-uudecode \
maybe-clean-wdiff \
maybe-clean-zip \
maybe-clean-zlib \
maybe-clean-gdb \
maybe-clean-expect \
maybe-clean-guile \
maybe-clean-tk \
maybe-clean-libtermcap \
maybe-clean-utils
.PHONY: clean-target
clean-target: \
maybe-clean-target-libstdc++-v3 \
maybe-clean-target-libmudflap \
maybe-clean-target-newlib \
maybe-clean-target-libgfortran \
maybe-clean-target-libobjc \
maybe-clean-target-libtermcap \
maybe-clean-target-winsup \
maybe-clean-target-libgloss \
maybe-clean-target-libiberty \
maybe-clean-target-gperf \
maybe-clean-target-examples \
maybe-clean-target-libffi \
maybe-clean-target-libjava \
maybe-clean-target-zlib \
maybe-clean-target-boehm-gc \
maybe-clean-target-qthreads \
maybe-clean-target-rda \
maybe-clean-target-libada
.PHONY: do-distclean
do-distclean: unstage distclean-host distclean-target stage
.PHONY: distclean-host
distclean-host: \
maybe-distclean-ash \
maybe-distclean-autoconf \
maybe-distclean-automake \
maybe-distclean-bash \
maybe-distclean-bfd \
maybe-distclean-opcodes \
maybe-distclean-binutils \
maybe-distclean-bison \
maybe-distclean-byacc \
maybe-distclean-bzip2 \
maybe-distclean-dejagnu \
maybe-distclean-diff \
maybe-distclean-dosutils \
maybe-distclean-etc \
maybe-distclean-fastjar \
maybe-distclean-fileutils \
maybe-distclean-findutils \
maybe-distclean-find \
maybe-distclean-fixincludes \
maybe-distclean-flex \
maybe-distclean-gas \
maybe-distclean-gcc \
maybe-distclean-gawk \
maybe-distclean-gettext \
maybe-distclean-gnuserv \
maybe-distclean-gprof \
maybe-distclean-gzip \
maybe-distclean-hello \
maybe-distclean-indent \
maybe-distclean-intl \
maybe-distclean-tcl \
maybe-distclean-itcl \
maybe-distclean-ld \
maybe-distclean-libcpp \
maybe-distclean-libgui \
maybe-distclean-libiberty \
maybe-distclean-libtool \
maybe-distclean-m4 \
maybe-distclean-make \
maybe-distclean-mmalloc \
maybe-distclean-patch \
maybe-distclean-perl \
maybe-distclean-prms \
maybe-distclean-rcs \
maybe-distclean-readline \
maybe-distclean-release \
maybe-distclean-recode \
maybe-distclean-sed \
maybe-distclean-send-pr \
maybe-distclean-shellutils \
maybe-distclean-sid \
maybe-distclean-sim \
maybe-distclean-tar \
maybe-distclean-texinfo \
maybe-distclean-textutils \
maybe-distclean-time \
maybe-distclean-uudecode \
maybe-distclean-wdiff \
maybe-distclean-zip \
maybe-distclean-zlib \
maybe-distclean-gdb \
maybe-distclean-expect \
maybe-distclean-guile \
maybe-distclean-tk \
maybe-distclean-libtermcap \
maybe-distclean-utils
.PHONY: distclean-target
distclean-target: \
maybe-distclean-target-libstdc++-v3 \
maybe-distclean-target-libmudflap \
maybe-distclean-target-newlib \
maybe-distclean-target-libgfortran \
maybe-distclean-target-libobjc \
maybe-distclean-target-libtermcap \
maybe-distclean-target-winsup \
maybe-distclean-target-libgloss \
maybe-distclean-target-libiberty \
maybe-distclean-target-gperf \
maybe-distclean-target-examples \
maybe-distclean-target-libffi \
maybe-distclean-target-libjava \
maybe-distclean-target-zlib \
maybe-distclean-target-boehm-gc \
maybe-distclean-target-qthreads \
maybe-distclean-target-rda \
maybe-distclean-target-libada
.PHONY: do-maintainer-clean
do-maintainer-clean: unstage maintainer-clean-host maintainer-clean-target stage
.PHONY: maintainer-clean-host
maintainer-clean-host: \
maybe-maintainer-clean-ash \
maybe-maintainer-clean-autoconf \
maybe-maintainer-clean-automake \
maybe-maintainer-clean-bash \
maybe-maintainer-clean-bfd \
maybe-maintainer-clean-opcodes \
maybe-maintainer-clean-binutils \
maybe-maintainer-clean-bison \
maybe-maintainer-clean-byacc \
maybe-maintainer-clean-bzip2 \
maybe-maintainer-clean-dejagnu \
maybe-maintainer-clean-diff \
maybe-maintainer-clean-dosutils \
maybe-maintainer-clean-etc \
maybe-maintainer-clean-fastjar \
maybe-maintainer-clean-fileutils \
maybe-maintainer-clean-findutils \
maybe-maintainer-clean-find \
maybe-maintainer-clean-fixincludes \
maybe-maintainer-clean-flex \
maybe-maintainer-clean-gas \
maybe-maintainer-clean-gcc \
maybe-maintainer-clean-gawk \
maybe-maintainer-clean-gettext \
maybe-maintainer-clean-gnuserv \
maybe-maintainer-clean-gprof \
maybe-maintainer-clean-gzip \
maybe-maintainer-clean-hello \
maybe-maintainer-clean-indent \
maybe-maintainer-clean-intl \
maybe-maintainer-clean-tcl \
maybe-maintainer-clean-itcl \
maybe-maintainer-clean-ld \
maybe-maintainer-clean-libcpp \
maybe-maintainer-clean-libgui \
maybe-maintainer-clean-libiberty \
maybe-maintainer-clean-libtool \
maybe-maintainer-clean-m4 \
maybe-maintainer-clean-make \
maybe-maintainer-clean-mmalloc \
maybe-maintainer-clean-patch \
maybe-maintainer-clean-perl \
maybe-maintainer-clean-prms \
maybe-maintainer-clean-rcs \
maybe-maintainer-clean-readline \
maybe-maintainer-clean-release \
maybe-maintainer-clean-recode \
maybe-maintainer-clean-sed \
maybe-maintainer-clean-send-pr \
maybe-maintainer-clean-shellutils \
maybe-maintainer-clean-sid \
maybe-maintainer-clean-sim \
maybe-maintainer-clean-tar \
maybe-maintainer-clean-texinfo \
maybe-maintainer-clean-textutils \
maybe-maintainer-clean-time \
maybe-maintainer-clean-uudecode \
maybe-maintainer-clean-wdiff \
maybe-maintainer-clean-zip \
maybe-maintainer-clean-zlib \
maybe-maintainer-clean-gdb \
maybe-maintainer-clean-expect \
maybe-maintainer-clean-guile \
maybe-maintainer-clean-tk \
maybe-maintainer-clean-libtermcap \
maybe-maintainer-clean-utils
.PHONY: maintainer-clean-target
maintainer-clean-target: \
maybe-maintainer-clean-target-libstdc++-v3 \
maybe-maintainer-clean-target-libmudflap \
maybe-maintainer-clean-target-newlib \
maybe-maintainer-clean-target-libgfortran \
maybe-maintainer-clean-target-libobjc \
maybe-maintainer-clean-target-libtermcap \
maybe-maintainer-clean-target-winsup \
maybe-maintainer-clean-target-libgloss \
maybe-maintainer-clean-target-libiberty \
maybe-maintainer-clean-target-gperf \
maybe-maintainer-clean-target-examples \
maybe-maintainer-clean-target-libffi \
maybe-maintainer-clean-target-libjava \
maybe-maintainer-clean-target-zlib \
maybe-maintainer-clean-target-boehm-gc \
maybe-maintainer-clean-target-qthreads \
maybe-maintainer-clean-target-rda \
maybe-maintainer-clean-target-libada
# Here are the targets which correspond to the do-X targets.
.PHONY: info installcheck dvi html install-info
.PHONY: clean distclean mostlyclean maintainer-clean realclean
.PHONY: local-clean local-distclean local-maintainer-clean
info: do-info
installcheck: do-installcheck
dvi: do-dvi
html: do-html
# Make sure makeinfo is built before we do a `make info', if we're
# in fact building texinfo.
do-info: maybe-all-texinfo
install-info: do-install-info dir.info
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if [ -f dir.info ] ; then \
$(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
else true ; fi
local-clean:
-rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
local-distclean:
-rm -f Makefile config.status config.cache mh-frag mt-frag
-rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
-if [ "$(TARGET_SUBDIR)" != "." ]; then \
rm -rf $(TARGET_SUBDIR); \
else true; fi
-rm -rf $(BUILD_SUBDIR)
-rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
-rm -f texinfo/doc/Makefile texinfo/po/POTFILES
-rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
-rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
-rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
local-maintainer-clean:
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
clean: do-clean local-clean
mostlyclean: do-mostlyclean local-clean
distclean: do-distclean local-clean local-distclean
maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
maintainer-clean: local-distclean
realclean: maintainer-clean
# Extra dependency for clean-target, owing to the mixed nature of gcc
clean-target: clean-target-libgcc
clean-target-libgcc:
test ! -d gcc/libgcc || \
(cd gcc/libgcc && find . -type d -print) | \
while read d; do rm -f gcc/$$d/libgcc.a || : ; done
-rm -rf gcc/libgcc
-rm -f gcc/stmp-dirs
# Check target.
.PHONY: check do-check
check: do-check
# Only include modules actually being configured and built.
do-check: unstage \
maybe-check-ash \
maybe-check-autoconf \
maybe-check-automake \
maybe-check-bash \
maybe-check-bfd \
maybe-check-opcodes \
maybe-check-binutils \
maybe-check-bison \
maybe-check-byacc \
maybe-check-bzip2 \
maybe-check-dejagnu \
maybe-check-diff \
maybe-check-dosutils \
maybe-check-etc \
maybe-check-fastjar \
maybe-check-fileutils \
maybe-check-findutils \
maybe-check-find \
maybe-check-fixincludes \
maybe-check-flex \
maybe-check-gas \
maybe-check-gcc \
maybe-check-gawk \
maybe-check-gettext \
maybe-check-gnuserv \
maybe-check-gprof \
maybe-check-gzip \
maybe-check-hello \
maybe-check-indent \
maybe-check-intl \
maybe-check-tcl \
maybe-check-itcl \
maybe-check-ld \
maybe-check-libcpp \
maybe-check-libgui \
maybe-check-libiberty \
maybe-check-libtool \
maybe-check-m4 \
maybe-check-make \
maybe-check-mmalloc \
maybe-check-patch \
maybe-check-perl \
maybe-check-prms \
maybe-check-rcs \
maybe-check-readline \
maybe-check-release \
maybe-check-recode \
maybe-check-sed \
maybe-check-send-pr \
maybe-check-shellutils \
maybe-check-sid \
maybe-check-sim \
maybe-check-tar \
maybe-check-texinfo \
maybe-check-textutils \
maybe-check-time \
maybe-check-uudecode \
maybe-check-wdiff \
maybe-check-zip \
maybe-check-zlib \
maybe-check-gdb \
maybe-check-expect \
maybe-check-guile \
maybe-check-tk \
maybe-check-libtermcap \
maybe-check-utils \
maybe-check-target-libstdc++-v3 \
maybe-check-target-libmudflap \
maybe-check-target-newlib \
maybe-check-target-libgfortran \
maybe-check-target-libobjc \
maybe-check-target-libtermcap \
maybe-check-target-winsup \
maybe-check-target-libgloss \
maybe-check-target-libiberty \
maybe-check-target-gperf \
maybe-check-target-examples \
maybe-check-target-libffi \
maybe-check-target-libjava \
maybe-check-target-zlib \
maybe-check-target-boehm-gc \
maybe-check-target-qthreads \
maybe-check-target-rda \
maybe-check-target-libada stage
# Automated reporting of test results.
warning.log: build.log
$(srcdir)/contrib/warn_summary build.log > $@
mail-report.log:
if test x'$(BOOT_CFLAGS)' != x''; then \
BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
fi; \
$(srcdir)/contrib/test_summary -t >$@
chmod +x $@
echo If you really want to send e-mail, run ./$@ now
mail-report-with-warnings.log: warning.log
if test x'$(BOOT_CFLAGS)' != x''; then \
BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
fi; \
$(srcdir)/contrib/test_summary -t -i warning.log >$@
chmod +x $@
echo If you really want to send e-mail, run ./$@ now
# Installation targets.
.PHONY: install uninstall
install: installdirs install-host install-target
.PHONY: install-host-nogcc
install-host-nogcc: \
maybe-install-ash \
maybe-install-autoconf \
maybe-install-automake \
maybe-install-bash \
maybe-install-bfd \
maybe-install-opcodes \
maybe-install-binutils \
maybe-install-bison \
maybe-install-byacc \
maybe-install-bzip2 \
maybe-install-dejagnu \
maybe-install-diff \
maybe-install-dosutils \
maybe-install-etc \
maybe-install-fastjar \
maybe-install-fileutils \
maybe-install-findutils \
maybe-install-find \
maybe-install-fixincludes \
maybe-install-flex \
maybe-install-gas \
maybe-install-gawk \
maybe-install-gettext \
maybe-install-gnuserv \
maybe-install-gprof \
maybe-install-gzip \
maybe-install-hello \
maybe-install-indent \
maybe-install-intl \
maybe-install-tcl \
maybe-install-itcl \
maybe-install-ld \
maybe-install-libcpp \
maybe-install-libgui \
maybe-install-libiberty \
maybe-install-libtool \
maybe-install-m4 \
maybe-install-make \
maybe-install-mmalloc \
maybe-install-patch \
maybe-install-perl \
maybe-install-prms \
maybe-install-rcs \
maybe-install-readline \
maybe-install-release \
maybe-install-recode \
maybe-install-sed \
maybe-install-send-pr \
maybe-install-shellutils \
maybe-install-sid \
maybe-install-sim \
maybe-install-tar \
maybe-install-texinfo \
maybe-install-textutils \
maybe-install-time \
maybe-install-uudecode \
maybe-install-wdiff \
maybe-install-zip \
maybe-install-zlib \
maybe-install-gdb \
maybe-install-expect \
maybe-install-guile \
maybe-install-tk \
maybe-install-libtermcap \
maybe-install-utils
.PHONY: install-host
install-host: \
maybe-install-ash \
maybe-install-autoconf \
maybe-install-automake \
maybe-install-bash \
maybe-install-bfd \
maybe-install-opcodes \
maybe-install-binutils \
maybe-install-bison \
maybe-install-byacc \
maybe-install-bzip2 \
maybe-install-dejagnu \
maybe-install-diff \
maybe-install-dosutils \
maybe-install-etc \
maybe-install-fastjar \
maybe-install-fileutils \
maybe-install-findutils \
maybe-install-find \
maybe-install-fixincludes \
maybe-install-flex \
maybe-install-gas \
maybe-install-gcc \
maybe-install-gawk \
maybe-install-gettext \
maybe-install-gnuserv \
maybe-install-gprof \
maybe-install-gzip \
maybe-install-hello \
maybe-install-indent \
maybe-install-intl \
maybe-install-tcl \
maybe-install-itcl \
maybe-install-ld \
maybe-install-libcpp \
maybe-install-libgui \
maybe-install-libiberty \
maybe-install-libtool \
maybe-install-m4 \
maybe-install-make \
maybe-install-mmalloc \
maybe-install-patch \
maybe-install-perl \
maybe-install-prms \
maybe-install-rcs \
maybe-install-readline \
maybe-install-release \
maybe-install-recode \
maybe-install-sed \
maybe-install-send-pr \
maybe-install-shellutils \
maybe-install-sid \
maybe-install-sim \
maybe-install-tar \
maybe-install-texinfo \
maybe-install-textutils \
maybe-install-time \
maybe-install-uudecode \
maybe-install-wdiff \
maybe-install-zip \
maybe-install-zlib \
maybe-install-gdb \
maybe-install-expect \
maybe-install-guile \
maybe-install-tk \
maybe-install-libtermcap \
maybe-install-utils
.PHONY: install-target
install-target: \
maybe-install-target-libstdc++-v3 \
maybe-install-target-libmudflap \
maybe-install-target-newlib \
maybe-install-target-libgfortran \
maybe-install-target-libobjc \
maybe-install-target-libtermcap \
maybe-install-target-winsup \
maybe-install-target-libgloss \
maybe-install-target-libiberty \
maybe-install-target-gperf \
maybe-install-target-examples \
maybe-install-target-libffi \
maybe-install-target-libjava \
maybe-install-target-zlib \
maybe-install-target-boehm-gc \
maybe-install-target-qthreads \
maybe-install-target-rda \
maybe-install-target-libada
uninstall:
@echo "the uninstall target is not supported in this tree"
.PHONY: install.all
install.all: install-no-fixedincludes
@if [ -f ./gcc/Makefile ] ; then \
r=`${PWD_COMMAND}` ; export r ; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
(cd ./gcc && \
$(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
else \
true ; \
fi
# install-no-fixedincludes is used because Cygnus can not distribute
# the fixed header files.
.PHONY: install-no-fixedincludes
install-no-fixedincludes: installdirs install-host-nogcc \
install-target gcc-no-fixedincludes
### other supporting targets
MAKEDIRS= \
$(DESTDIR)$(prefix) \
$(DESTDIR)$(exec_prefix)
.PHONY: installdirs
installdirs: mkinstalldirs
$(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
dir.info: do-install-info
if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
$(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
mv -f dir.info.new dir.info ; \
else true ; \
fi
dist:
@echo "Building a full distribution of this tree isn't done"
@echo "via 'make dist'. Check out the etc/ subdirectory"
etags tags: TAGS
# Right now this just builds TAGS in each subdirectory. emacs19 has the
# ability to use several tags files at once, so there is probably no need
# to combine them into one big TAGS file (like CVS 1.3 does). We could
# (if we felt like it) have this Makefile write a piece of elisp which
# the user could load to tell emacs19 where all the TAGS files we just
# built are.
TAGS: do-TAGS
# --------------------------------------
# Modules which run on the build machine
# --------------------------------------
.PHONY: configure-build-libiberty maybe-configure-build-libiberty
maybe-configure-build-libiberty:
@if build-libiberty
maybe-configure-build-libiberty: configure-build-libiberty
configure-build-libiberty:
@test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/libiberty; \
cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
case $(srcdir) in \
/* | [A-Za-z]:[\\/]*) \
topdir=$(srcdir) ;; \
*) \
case "$(BUILD_SUBDIR)" in \
.) topdir="../$(srcdir)" ;; \
*) topdir="../../$(srcdir)" ;; \
esac ;; \
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
if [ -f Makefile ]; then \
if $(MAKE) distclean; then \
true; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
srcdiroption="--srcdir=."; \
libsrcdir="."; \
else \
srcdiroption="--srcdir=$${topdir}/libiberty"; \
libsrcdir="$$s/libiberty"; \
fi; \
rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
--with-build-subdir="$(BUILD_SUBDIR)" \
|| exit 1
@endif build-libiberty
.PHONY: all-build-libiberty maybe-all-build-libiberty
maybe-all-build-libiberty:
@if build-libiberty
TARGET-build-libiberty=all
maybe-all-build-libiberty: all-build-libiberty
all-build-libiberty: configure-build-libiberty
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/libiberty && \
$(MAKE) $(TARGET-build-libiberty))
@endif build-libiberty
.PHONY: configure-build-bison maybe-configure-build-bison
maybe-configure-build-bison:
@if build-bison
maybe-configure-build-bison: configure-build-bison
configure-build-bison:
@test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/bison; \
cd "$(BUILD_SUBDIR)/bison" || exit 1; \
case $(srcdir) in \
/* | [A-Za-z]:[\\/]*) \
topdir=$(srcdir) ;; \
*) \
case "$(BUILD_SUBDIR)" in \
.) topdir="../$(srcdir)" ;; \
*) topdir="../../$(srcdir)" ;; \
esac ;; \
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
if $(SHELL) $$s/symlink-tree $${topdir}/bison "no-such-file" ; then \
if [ -f Makefile ]; then \
if $(MAKE) distclean; then \
true; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
srcdiroption="--srcdir=."; \
libsrcdir="."; \
else \
srcdiroption="--srcdir=$${topdir}/bison"; \
libsrcdir="$$s/bison"; \
fi; \
rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
--with-build-subdir="$(BUILD_SUBDIR)" \
|| exit 1
@endif build-bison
.PHONY: all-build-bison maybe-all-build-bison
maybe-all-build-bison:
@if build-bison
TARGET-build-bison=all
maybe-all-build-bison: all-build-bison
all-build-bison: configure-build-bison
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/bison && \
$(MAKE) $(TARGET-build-bison))
@endif build-bison
.PHONY: configure-build-byacc maybe-configure-build-byacc
maybe-configure-build-byacc:
@if build-byacc
maybe-configure-build-byacc: configure-build-byacc
configure-build-byacc:
@test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/byacc; \
cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
case $(srcdir) in \
/* | [A-Za-z]:[\\/]*) \
topdir=$(srcdir) ;; \
*) \
case "$(BUILD_SUBDIR)" in \
.) topdir="../$(srcdir)" ;; \
*) topdir="../../$(srcdir)" ;; \
esac ;; \
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
if $(SHELL) $$s/symlink-tree $${topdir}/byacc "no-such-file" ; then \
if [ -f Makefile ]; then \
if $(MAKE) distclean; then \
true; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
srcdiroption="--srcdir=."; \
libsrcdir="."; \
else \
srcdiroption="--srcdir=$${topdir}/byacc"; \
libsrcdir="$$s/byacc"; \
fi; \
rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
--with-build-subdir="$(BUILD_SUBDIR)" \
|| exit 1
@endif build-byacc
.PHONY: all-build-byacc maybe-all-build-byacc
maybe-all-build-byacc:
@if build-byacc
TARGET-build-byacc=all
maybe-all-build-byacc: all-build-byacc
all-build-byacc: configure-build-byacc
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/byacc && \
$(MAKE) $(TARGET-build-byacc))
@endif build-byacc
.PHONY: configure-build-flex maybe-configure-build-flex
maybe-configure-build-flex:
@if build-flex
maybe-configure-build-flex: configure-build-flex
configure-build-flex:
@test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/flex; \
cd "$(BUILD_SUBDIR)/flex" || exit 1; \
case $(srcdir) in \
/* | [A-Za-z]:[\\/]*) \
topdir=$(srcdir) ;; \
*) \
case "$(BUILD_SUBDIR)" in \
.) topdir="../$(srcdir)" ;; \
*) topdir="../../$(srcdir)" ;; \
esac ;; \
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
if $(SHELL) $$s/symlink-tree $${topdir}/flex "no-such-file" ; then \
if [ -f Makefile ]; then \
if $(MAKE) distclean; then \
true; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
srcdiroption="--srcdir=."; \
libsrcdir="."; \
else \
srcdiroption="--srcdir=$${topdir}/flex"; \
libsrcdir="$$s/flex"; \
fi; \
rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
--with-build-subdir="$(BUILD_SUBDIR)" \
|| exit 1
@endif build-flex
.PHONY: all-build-flex maybe-all-build-flex
maybe-all-build-flex:
@if build-flex
TARGET-build-flex=all
maybe-all-build-flex: all-build-flex
all-build-flex: configure-build-flex
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/flex && \
$(MAKE) $(TARGET-build-flex))
@endif build-flex
.PHONY: configure-build-m4 maybe-configure-build-m4
maybe-configure-build-m4:
@if build-m4
maybe-configure-build-m4: configure-build-m4
configure-build-m4:
@test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/m4; \
cd "$(BUILD_SUBDIR)/m4" || exit 1; \
case $(srcdir) in \
/* | [A-Za-z]:[\\/]*) \
topdir=$(srcdir) ;; \
*) \
case "$(BUILD_SUBDIR)" in \
.) topdir="../$(srcdir)" ;; \
*) topdir="../../$(srcdir)" ;; \
esac ;; \
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
if $(SHELL) $$s/symlink-tree $${topdir}/m4 "no-such-file" ; then \
if [ -f Makefile ]; then \
if $(MAKE) distclean; then \
true; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
srcdiroption="--srcdir=."; \
libsrcdir="."; \
else \
srcdiroption="--srcdir=$${topdir}/m4"; \
libsrcdir="$$s/m4"; \
fi; \
rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
--with-build-subdir="$(BUILD_SUBDIR)" \
|| exit 1
@endif build-m4
.PHONY: all-build-m4 maybe-all-build-m4
maybe-all-build-m4:
@if build-m4
TARGET-build-m4=all
maybe-all-build-m4: all-build-m4
all-build-m4: configure-build-m4
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/m4 && \
$(MAKE) $(TARGET-build-m4))
@endif build-m4
.PHONY: configure-build-texinfo maybe-configure-build-texinfo
maybe-configure-build-texinfo:
@if build-texinfo
maybe-configure-build-texinfo: configure-build-texinfo
configure-build-texinfo:
@test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/texinfo; \
cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
case $(srcdir) in \
/* | [A-Za-z]:[\\/]*) \
topdir=$(srcdir) ;; \
*) \
case "$(BUILD_SUBDIR)" in \
.) topdir="../$(srcdir)" ;; \
*) topdir="../../$(srcdir)" ;; \
esac ;; \
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
if $(SHELL) $$s/symlink-tree $${topdir}/texinfo "no-such-file" ; then \
if [ -f Makefile ]; then \
if $(MAKE) distclean; then \
true; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
srcdiroption="--srcdir=."; \
libsrcdir="."; \
else \
srcdiroption="--srcdir=$${topdir}/texinfo"; \
libsrcdir="$$s/texinfo"; \
fi; \
rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
--with-build-subdir="$(BUILD_SUBDIR)" \
|| exit 1
@endif build-texinfo
.PHONY: all-build-texinfo maybe-all-build-texinfo
maybe-all-build-texinfo:
@if build-texinfo
TARGET-build-texinfo=all
maybe-all-build-texinfo: all-build-texinfo
all-build-texinfo: configure-build-texinfo
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/texinfo && \
$(MAKE) $(TARGET-build-texinfo))
@endif build-texinfo
.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
maybe-configure-build-fixincludes:
@if build-fixincludes
maybe-configure-build-fixincludes: configure-build-fixincludes
configure-build-fixincludes:
@test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
case $(srcdir) in \
/* | [A-Za-z]:[\\/]*) \
topdir=$(srcdir) ;; \
*) \
case "$(BUILD_SUBDIR)" in \
.) topdir="../$(srcdir)" ;; \
*) topdir="../../$(srcdir)" ;; \
esac ;; \
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
if $(SHELL) $$s/symlink-tree $${topdir}/fixincludes "no-such-file" ; then \
if [ -f Makefile ]; then \
if $(MAKE) distclean; then \
true; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
srcdiroption="--srcdir=."; \
libsrcdir="."; \
else \
srcdiroption="--srcdir=$${topdir}/fixincludes"; \
libsrcdir="$$s/fixincludes"; \
fi; \
rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
--with-build-subdir="$(BUILD_SUBDIR)" \
|| exit 1
@endif build-fixincludes
.PHONY: all-build-fixincludes maybe-all-build-fixincludes
maybe-all-build-fixincludes:
@if build-fixincludes
TARGET-build-fixincludes=all
maybe-all-build-fixincludes: all-build-fixincludes
all-build-fixincludes: configure-build-fixincludes
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/fixincludes && \
$(MAKE) $(TARGET-build-fixincludes))
@endif build-fixincludes
# --------------------------------------
# Modules which run on the host machine
# --------------------------------------
.PHONY: configure-ash maybe-configure-ash
maybe-configure-ash:
@if ash
maybe-configure-ash: configure-ash
configure-ash:
@test ! -f ash/Makefile || exit 0; \
[ -d ash ] || mkdir ash; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
echo Configuring in ash; \
cd ash || exit 1; \
case $(srcdir) in \
\.) \
srcdiroption="--srcdir=."; \
libsrcdir=".";; \
/* | [A-Za-z]:[\\/]*) \
srcdiroption="--srcdir=$(srcdir)/ash"; \
libsrcdir="$$s/ash";; \
*) \
srcdiroption="--srcdir=../$(srcdir)/ash"; \
libsrcdir="$$s/ash";; \
esac; \
$(SHELL) $${libsrcdir}/configure \
$(HOST_CONFIGARGS) $${srcdiroption} \
|| exit 1
@endif ash
.PHONY: all-ash maybe-all-ash
maybe-all-ash:
@if ash
TARGET-ash=all
maybe-all-ash: all-ash
all-ash: configure-ash
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
(cd ash && $(MAKE) $(FLAGS_TO_PASS) \
$(TARGET-ash))
@endif ash
.PHONY: check-ash maybe-check-ash
maybe-check-ash:
@if ash
maybe-check-ash: check-ash
check-ash:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
(cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
@endif ash
.PHONY: install-ash maybe-install-ash
maybe-install-ash:
@if ash
maybe-install-ash: install-ash
install-ash: installdirs
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
(cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
@endif ash
# Other targets (info, dvi, etc.)
.PHONY: maybe-info-ash info-ash
maybe-info-ash:
@if ash
maybe-info-ash: info-ash
info-ash: \
configure-ash
@[ -f ./ash/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing info in ash" ; \
(cd ash && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
info) \
|| exit 1
@endif ash
.PHONY: maybe-dvi-ash dvi-ash
maybe-dvi-ash:
@if ash
maybe-dvi-ash: dvi-ash
dvi-ash: \
configure-ash
@[ -f ./ash/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing dvi in ash" ; \
(cd ash && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
dvi) \
|| exit 1
@endif ash
.PHONY: maybe-html-ash html-ash
maybe-html-ash:
@if ash
maybe-html-ash: html-ash
html-ash: \
configure-ash
@[ -f ./ash/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing html in ash" ; \
(cd ash && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
html) \
|| exit 1
@endif ash
.PHONY: maybe-TAGS-ash TAGS-ash
maybe-TAGS-ash:
@if ash
maybe-TAGS-ash: TAGS-ash
TAGS-ash: \
configure-ash
@[ -f ./ash/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing TAGS in ash" ; \
(cd ash && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
TAGS) \
|| exit 1
@endif ash
.PHONY: maybe-install-info-ash install-info-ash
maybe-install-info-ash:
@if ash
maybe-install-info-ash: install-info-ash
install-info-ash: \
configure-ash \
info-ash
@[ -f ./ash/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing install-info in ash" ; \
(cd ash && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
install-info) \
|| exit 1
@endif ash
.PHONY: maybe-installcheck-ash installcheck-ash
maybe-installcheck-ash:
@if ash
maybe-installcheck-ash: installcheck-ash
installcheck-ash: \
configure-ash
@[ -f ./ash/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing installcheck in ash" ; \
(cd ash && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
installcheck) \
|| exit 1
@endif ash
.PHONY: maybe-mostlyclean-ash mostlyclean-ash
maybe-mostlyclean-ash:
@if ash
maybe-mostlyclean-ash: mostlyclean-ash
mostlyclean-ash:
@[ -f ./ash/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing mostlyclean in ash" ; \
(cd ash && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
mostlyclean) \
|| exit 1
@endif ash
.PHONY: maybe-clean-ash clean-ash
maybe-clean-ash:
@if ash
maybe-clean-ash: clean-ash
clean-ash:
@[ -f ./ash/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing clean in ash" ; \
(cd ash && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
clean) \
|| exit 1
@endif ash
.PHONY: maybe-distclean-ash distclean-ash
maybe-distclean-ash:
@if ash
maybe-distclean-ash: distclean-ash
distclean-ash:
@[ -f ./ash/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing distclean in ash" ; \
(cd ash && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
distclean) \
|| exit 1
@endif ash
.PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
maybe-maintainer-clean-ash:
@if ash
maybe-maintainer-clean-ash: maintainer-clean-ash
maintainer-clean-ash:
@[ -f ./ash/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing maintainer-clean in ash" ; \
(cd ash && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
maintainer-clean) \
|| exit 1
@endif ash
.PHONY: configure-autoconf maybe-configure-autoconf
maybe-configure-autoconf:
@if autoconf
maybe-configure-autoconf: configure-autoconf
configure-autoconf:
@test ! -f autoconf/Makefile || exit 0; \
[ -d autoconf ] || mkdir autoconf; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
echo Configuring in autoconf; \
cd autoconf || exit 1; \
case $(srcdir) in \
\.) \
srcdiroption="--srcdir=."; \
libsrcdir=".";; \
/* | [A-Za-z]:[\\/]*) \
srcdiroption="--srcdir=$(srcdir)/autoconf"; \
libsrcdir="$$s/autoconf";; \
*) \
srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
libsrcdir="$$s/autoconf";; \
esac; \
$(SHELL) $${libsrcdir}/configure \
$(HOST_CONFIGARGS) $${srcdiroption} \
|| exit 1
@endif autoconf
.PHONY: all-autoconf maybe-all-autoconf
maybe-all-autoconf:
@if autoconf
TARGET-autoconf=all
maybe-all-autoconf: all-autoconf
all-autoconf: configure-autoconf
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
(cd autoconf && $(MAKE) $(FLAGS_TO_PASS) \
$(TARGET-autoconf))
@endif autoconf
.PHONY: check-autoconf maybe-check-autoconf
maybe-check-autoconf:
@if autoconf
maybe-check-autoconf: check-autoconf
check-autoconf:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
(cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
@endif autoconf
.PHONY: install-autoconf maybe-install-autoconf
maybe-install-autoconf:
@if autoconf
maybe-install-autoconf: install-autoconf
install-autoconf: installdirs
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
(cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
@endif autoconf
# Other targets (info, dvi, etc.)
.PHONY: maybe-info-autoconf info-autoconf
maybe-info-autoconf:
@if autoconf
maybe-info-autoconf: info-autoconf
info-autoconf: \
configure-autoconf
@[ -f ./autoconf/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing info in autoconf" ; \
(cd autoconf && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
info) \
|| exit 1
@endif autoconf
.PHONY: maybe-dvi-autoconf dvi-autoconf
maybe-dvi-autoconf:
@if autoconf
maybe-dvi-autoconf: dvi-autoconf
dvi-autoconf: \
configure-autoconf
@[ -f ./autoconf/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing dvi in autoconf" ; \
(cd autoconf && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
dvi) \
|| exit 1
@endif autoconf
.PHONY: maybe-html-autoconf html-autoconf
maybe-html-autoconf:
@if autoconf
maybe-html-autoconf: html-autoconf
html-autoconf: \
configure-autoconf
@[ -f ./autoconf/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing html in autoconf" ; \
(cd autoconf && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
html) \
|| exit 1
@endif autoconf
.PHONY: maybe-TAGS-autoconf TAGS-autoconf
maybe-TAGS-autoconf:
@if autoconf
maybe-TAGS-autoconf: TAGS-autoconf
TAGS-autoconf: \
configure-autoconf
@[ -f ./autoconf/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing TAGS in autoconf" ; \
(cd autoconf && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
TAGS) \
|| exit 1
@endif autoconf
.PHONY: maybe-install-info-autoconf install-info-autoconf
maybe-install-info-autoconf:
@if autoconf
maybe-install-info-autoconf: install-info-autoconf
install-info-autoconf: \
configure-autoconf \
info-autoconf
@[ -f ./autoconf/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing install-info in autoconf" ; \
(cd autoconf && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
install-info) \
|| exit 1
@endif autoconf
.PHONY: maybe-installcheck-autoconf installcheck-autoconf
maybe-installcheck-autoconf:
@if autoconf
maybe-installcheck-autoconf: installcheck-autoconf
installcheck-autoconf: \
configure-autoconf
@[ -f ./autoconf/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing installcheck in autoconf" ; \
(cd autoconf && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
installcheck) \
|| exit 1
@endif autoconf
.PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
maybe-mostlyclean-autoconf:
@if autoconf
maybe-mostlyclean-autoconf: mostlyclean-autoconf
mostlyclean-autoconf:
@[ -f ./autoconf/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing mostlyclean in autoconf" ; \
(cd autoconf && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
mostlyclean) \
|| exit 1
@endif autoconf
.PHONY: maybe-clean-autoconf clean-autoconf
maybe-clean-autoconf:
@if autoconf
maybe-clean-autoconf: clean-autoconf
clean-autoconf:
@[ -f ./autoconf/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing clean in autoconf" ; \
(cd autoconf && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
clean) \
|| exit 1
@endif autoconf
.PHONY: maybe-distclean-autoconf distclean-autoconf
maybe-distclean-autoconf:
@if autoconf
maybe-distclean-autoconf: distclean-autoconf
distclean-autoconf:
@[ -f ./autoconf/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing distclean in autoconf" ; \
(cd autoconf && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
distclean) \
|| exit 1
@endif autoconf
.PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
maybe-maintainer-clean-autoconf:
@if autoconf
maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
maintainer-clean-autoconf:
@[ -f ./autoconf/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing maintainer-clean in autoconf" ; \
(cd autoconf && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
maintainer-clean) \
|| exit 1
@endif autoconf
.PHONY: configure-automake maybe-configure-automake
maybe-configure-automake:
@if automake
maybe-configure-automake: configure-automake
configure-automake:
@test ! -f automake/Makefile || exit 0; \
[ -d automake ] || mkdir automake; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
echo Configuring in automake; \
cd automake || exit 1; \
case $(srcdir) in \
\.) \
srcdiroption="--srcdir=."; \
libsrcdir=".";; \
/* | [A-Za-z]:[\\/]*) \
srcdiroption="--srcdir=$(srcdir)/automake"; \
libsrcdir="$$s/automake";; \
*) \
srcdiroption="--srcdir=../$(srcdir)/automake"; \
libsrcdir="$$s/automake";; \
esac; \
$(SHELL) $${libsrcdir}/configure \
$(HOST_CONFIGARGS) $${srcdiroption} \
|| exit 1
@endif automake
.PHONY: all-automake maybe-all-automake
maybe-all-automake:
@if automake
TARGET-automake=all
maybe-all-automake: all-automake
all-automake: configure-automake
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
(cd automake && $(MAKE) $(FLAGS_TO_PASS) \
$(TARGET-automake))
@endif automake
.PHONY: check-automake maybe-check-automake
maybe-check-automake:
@if automake
maybe-check-automake: check-automake
check-automake:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
(cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
@endif automake
.PHONY: install-automake maybe-install-automake
maybe-install-automake:
@if automake
maybe-install-automake: install-automake
install-automake: installdirs
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
(cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
@endif automake
# Other targets (info, dvi, etc.)
.PHONY: maybe-info-automake info-automake
maybe-info-automake:
@if automake
maybe-info-automake: info-automake
info-automake: \
configure-automake
@[ -f ./automake/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing info in automake" ; \
(cd automake && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
info) \
|| exit 1
@endif automake
.PHONY: maybe-dvi-automake dvi-automake
maybe-dvi-automake:
@if automake
maybe-dvi-automake: dvi-automake
dvi-automake: \
configure-automake
@[ -f ./automake/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(SET_LIB_PATH) \
$(HOST_EXPORTS) \
for flag in $(EXTRA_HOST_FLAGS) ; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
done; \
echo "Doing dvi in automake" ; \
(cd automake && \
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \