Newer
Older
# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
Paolo Bonzini
committed
# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# -------------------------------
# Standard Autoconf-set variables
# -------------------------------
VPATH=@srcdir@
build_alias=@build_alias@
Nathanael Nerode
committed
build=@build@
Nathanael Nerode
committed
host=@host@
Nathanael Nerode
committed
target=@target@
program_transform_name = @program_transform_name@
prefix = @prefix@
exec_prefix = @exec_prefix@
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@
# -------------------------------------------------
# Miscellaneous non-standard autoconf-set variables
# -------------------------------------------------
# The gcc driver likes to know the arguments it was configured with.
TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
tooldir = @tooldir@
build_tooldir = @build_tooldir@
GDB_NLM_DEPS =
# This is the name of the environment variable used for the path to
# the libraries.
RPATH_ENVVAR = @RPATH_ENVVAR@
# This is the list of directories to be built for the build system.
# 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@ --with-build-subdir="$(BUILD_SUBDIR)"
# 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@
# Host programs are put under this directory, which is . except if building
# with srcdir=..
HOST_SUBDIR = @host_subdir@
# This is the list of variables to export in the environment when
Paolo Bonzini
committed
# configuring subdirectories for the host system. We need to pass
# some to the GCC configure because of its hybrid host/target nature.
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; \
Paolo Bonzini
committed
AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
GMPINC="$(HOST_GMPINC)"; export GMPINC; \
@if gcc-bootstrap
$(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
@endif gcc-bootstrap
$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
# Similar, for later GCC stages.
POSTSTAGE1_HOST_EXPORTS = \
Paolo Bonzini
committed
$(HOST_EXPORTS) \
CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
-B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
CC_FOR_BUILD="$(STAGE_CC_WRAPPER) \
$$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
-B$$r/$(HOST_SUBDIR)/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@ --with-target-subdir="$(TARGET_SUBDIR)"
# This is the list of variables to export in the environment when
# configuring subdirectories for the host system.
BASE_TARGET_EXPORTS = \
$(BASE_EXPORTS) \
AR="$(AR_FOR_TARGET)"; export AR; \
Paolo Bonzini
committed
AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
CC="$(CC_FOR_TARGET)"; export CC; \
CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
Kelley Cook
committed
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; \
Paolo Bonzini
committed
LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
Paolo Bonzini
committed
NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
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
BOOT_LDFLAGS=
Paolo Bonzini
committed
BISON = @BISON@
YACC = @YACC@
FLEX = @FLEX@
LEX = @LEX@
M4 = @M4@
MAKEINFO = @MAKEINFO@
EXPECT = @EXPECT@
RUNTEST = @RUNTEST@
# 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
# ---------------------------------------------
# Programs producing files for the HOST machine
# ---------------------------------------------
AS = @AS@
AR = @AR@
AR_FLAGS = rc
CC = @CC@
CXX = @CXX@
DLLTOOL = @DLLTOOL@
LD = @LD@
Paolo Bonzini
committed
LIPO = @LIPO@
NM = @NM@
Paolo Bonzini
committed
OBJDUMP = @OBJDUMP@
Paolo Bonzini
committed
STRIP = @STRIP@
Paolo Bonzini
committed
CFLAGS = @CFLAGS@
LDFLAGS =
LIBCFLAGS = $(CFLAGS)
CXXFLAGS = @CXXFLAGS@
LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
PICFLAG =
# -----------------------------------------------
# Programs producing files for the TARGET machine
# -----------------------------------------------
FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@ $(FLAGS_FOR_TARGET)
# 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.
Paolo Bonzini
committed
GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@ $(FLAGS_FOR_TARGET)
CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET)
RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET)
GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@ $(FLAGS_FOR_TARGET)
GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@ $(FLAGS_FOR_TARGET)
DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
Paolo Bonzini
committed
COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
COMPILER_NM_FOR_TARGET=@COMPILER_NM_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) $(SYSROOT_CFLAGS_FOR_TARGET)
SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
LDFLAGS_FOR_TARGET =
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.
#### host and target specific makefile fragments come in here.
@target_makefile_frag@
@alphaieee_frag@
@ospace_frag@
@host_makefile_frag@
# 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 = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libmudflap)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(HOST_LIB_PATH_gcc)
@if target-libstdc++-v3
TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/.libs:
@endif target-libstdc++-v3
@if target-libmudflap
TARGET_LIB_PATH_libmudflap = $$r/$(TARGET_SUBDIR)/libmudflap/.libs:
@endif target-libmudflap
@if target-libssp
TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
@endif target-libssp
@if target-libgomp
TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
@endif target-libgomp
# 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 = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)
# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
@if gcc
HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc:$$r/$(HOST_SUBDIR)/prev-gcc:
@endif gcc
@if bfd
HOST_LIB_PATH_bfd = \
$$r/$(HOST_SUBDIR)/bfd/.:$$r/$(HOST_SUBDIR)/prev-bfd/.:
@endif bfd
@if opcodes
HOST_LIB_PATH_opcodes = \
$$r/$(HOST_SUBDIR)/opcodes/.:$$r/$(HOST_SUBDIR)/prev-opcodes/.:
@endif opcodes
# Flags to pass down to all sub-makes.
BASE_FLAGS_TO_PASS = \
"DESTDIR=$(DESTDIR)" \
"TARGET_SUBDIR=$(TARGET_SUBDIR)" \
Paolo Bonzini
committed
"bindir=$(bindir)" \
"datadir=$(datadir)" \
"exec_prefix=$(exec_prefix)" \
"includedir=$(includedir)" \
"infodir=$(infodir)" \
"libdir=$(libdir)" \
"libexecdir=$(libexecdir)" \
"lispdir=$(lispdir)" \
Paolo Bonzini
committed
"localstatedir=$(localstatedir)" \
"mandir=$(mandir)" \
Paolo Bonzini
committed
"prefix=$(prefix)" \
"sbindir=$(sbindir)" \
"sharedstatedir=$(sharedstatedir)" \
"sysconfdir=$(sysconfdir)" \
Manfred Hollstein
committed
"tooldir=$(tooldir)" \
Jeff Law
committed
"build_tooldir=$(build_tooldir)" \
"target_alias=$(target_alias)" \
"BISON=$(BISON)" \
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
"CFLAGS_FOR_BUILD=$(CFLAGS_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)" \
"BOOT_CFLAGS=$(BOOT_CFLAGS)" \
"BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
"CFLAGS=$(CFLAGS)" \
"CXXFLAGS=$(CXXFLAGS)" \
"LDFLAGS=$(LDFLAGS)" \
"LIBCFLAGS=$(LIBCFLAGS)" \
"LIBCXXFLAGS=$(LIBCXXFLAGS)" \
Paolo Bonzini
committed
"STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
"STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
"AR_FOR_TARGET=$(AR_FOR_TARGET)" \
"AS_FOR_TARGET=$(AS_FOR_TARGET)" \
"CC_FOR_TARGET=$(CC_FOR_TARGET)" \
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
Kelley Cook
committed
"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)" \
"LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
"LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
"NM_FOR_TARGET=$(NM_FOR_TARGET)" \
"OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
"RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
"WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
Paolo Bonzini
committed
"LEAN=$(LEAN)" \
"CONFIG_SHELL=$(SHELL)" \
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
# We leave this in just in case, but it is not needed anymore.
RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
# 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)' \
Paolo Bonzini
committed
'LIPO=$(LIPO)' \
Paolo Bonzini
committed
'OBJDUMP=$(OBJDUMP)' \
Paolo Bonzini
committed
'STRIP=$(STRIP)' \
'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.
Daniel Jacobowitz
committed
# The double $ decreases the length of the command line; those variables
# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
# COMPILER_ prefixed variables are not passed down so we expand them here.
Daniel Jacobowitz
committed
'AS=$(COMPILER_AS_FOR_TARGET)' \
'CC=$$(CC_FOR_TARGET)' \
'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
'CXX=$$(CXX_FOR_TARGET)' \
'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
Daniel Jacobowitz
committed
'LD=$(COMPILER_LD_FOR_TARGET)' \
'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
Daniel Jacobowitz
committed
'NM=$(COMPILER_NM_FOR_TARGET)' \
'OBJDUMP=$$(OBJDUMP_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.
Nathanael Nerode
committed
# The BUILD_* variables are a special case, which are used for the gcc
'BUILD_PREFIX=$(BUILD_PREFIX)' \
'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
Nathanael Nerode
committed
"`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 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
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-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-libdecnumber \
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
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 \
.PHONY: configure-target
configure-target: \
maybe-configure-target-libstdc++-v3 \
maybe-configure-target-libmudflap \
maybe-configure-target-libssp \
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-libada \
maybe-configure-target-libgomp
# The target built for a native non-bootstrap build.
.PHONY: all
all:
@if gcc-bootstrap
Paolo Bonzini
committed
[ -f stage_final ] || echo stage3 > stage_final
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
Daniel Jacobowitz
committed
$(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
@endif gcc-bootstrap
Daniel Jacobowitz
committed
@: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if [ -f stage_last ]; then \
Paolo Bonzini
committed
$(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
Paolo Bonzini
committed
$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target; \
.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
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-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 \
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
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 \
.PHONY: all-target
all-target: \
maybe-all-target-libstdc++-v3 \
maybe-all-target-libmudflap \
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-libada \
maybe-all-target-libgomp
# 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).
Nathanael Nerode
committed
.PHONY: do-info
Daniel Jacobowitz
committed
@: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
info-target
Nathanael Nerode
committed
.PHONY: info-host
Nathanael Nerode
committed
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 \
Nathanael Nerode
committed
maybe-info-flex \
maybe-info-gas \
Nathanael Nerode
committed
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 \
Nathanael Nerode
committed
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
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 \
Nathanael Nerode
committed
.PHONY: info-target
info-target: \
maybe-info-target-libstdc++-v3 \
maybe-info-target-libmudflap \
Nathanael Nerode
committed
maybe-info-target-newlib \
maybe-info-target-libgfortran \
Nathanael Nerode
committed
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-libada \
maybe-info-target-libgomp
Nathanael Nerode
committed
.PHONY: do-dvi
Daniel Jacobowitz
committed
@: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
dvi-target
Nathanael Nerode
committed
.PHONY: dvi-host
Nathanael Nerode
committed
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 \
Nathanael Nerode
committed
maybe-dvi-flex \
maybe-dvi-gas \
Nathanael Nerode
committed
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 \
Nathanael Nerode
committed
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
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 \
Nathanael Nerode
committed
.PHONY: dvi-target
dvi-target: \
maybe-dvi-target-libstdc++-v3 \
maybe-dvi-target-libmudflap \
Nathanael Nerode
committed
maybe-dvi-target-newlib \
maybe-dvi-target-libgfortran \
Nathanael Nerode
committed
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 \
maybe-dvi-target-libgomp
Daniel Jacobowitz
committed
@: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
html-target
.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 \