| 1 |
[+ AutoGen5 template -*- Mode: Makefile -*- |
| 2 |
in |
| 3 |
+] |
| 4 |
|
| 5 |
# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'. |
| 6 |
# |
| 7 |
# Makefile for directory with subdirs to build. |
| 8 |
# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, |
| 9 |
# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation |
| 10 |
# |
| 11 |
# This file is free software; you can redistribute it and/or modify |
| 12 |
# it under the terms of the GNU General Public License as published by |
| 13 |
# the Free Software Foundation; either version 2 of the License, or |
| 14 |
# (at your option) any later version. |
| 15 |
# |
| 16 |
# This program is distributed in the hope that it will be useful, |
| 17 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 |
# GNU General Public License for more details. |
| 20 |
# |
| 21 |
# You should have received a copy of the GNU General Public License |
| 22 |
# along with this program; if not, write to the Free Software |
| 23 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 24 |
# |
| 25 |
|
| 26 |
# ------------------------------- |
| 27 |
# Standard Autoconf-set variables |
| 28 |
# ------------------------------- |
| 29 |
VPATH=@srcdir@ |
| 30 |
|
| 31 |
build_alias=@build_noncanonical@ |
| 32 |
build_vendor=@build_vendor@ |
| 33 |
build_os=@build_os@ |
| 34 |
build=@build@ |
| 35 |
host_alias=@host_noncanonical@ |
| 36 |
host_vendor=@host_vendor@ |
| 37 |
host_os=@host_os@ |
| 38 |
host=@host@ |
| 39 |
target_alias=@target_noncanonical@ |
| 40 |
target_vendor=@target_vendor@ |
| 41 |
target_os=@target_os@ |
| 42 |
target=@target@ |
| 43 |
|
| 44 |
program_transform_name = @program_transform_name@ |
| 45 |
|
| 46 |
prefix = @prefix@ |
| 47 |
exec_prefix = @exec_prefix@ |
| 48 |
|
| 49 |
srcdir = @srcdir@ |
| 50 |
|
| 51 |
bindir = @bindir@ |
| 52 |
sbindir = @sbindir@ |
| 53 |
libexecdir = @libexecdir@ |
| 54 |
datadir = @datadir@ |
| 55 |
sysconfdir = @sysconfdir@ |
| 56 |
sharedstatedir = @sharedstatedir@ |
| 57 |
localstatedir = @localstatedir@ |
| 58 |
libdir = @libdir@ |
| 59 |
includedir = @includedir@ |
| 60 |
oldincludedir = @oldincludedir@ |
| 61 |
infodir = @infodir@ |
| 62 |
datarootdir = @datarootdir@ |
| 63 |
docdir = @docdir@ |
| 64 |
pdfdir = @pdfdir@ |
| 65 |
htmldir = @htmldir@ |
| 66 |
mandir = @mandir@ |
| 67 |
man1dir = $(mandir)/man1 |
| 68 |
man2dir = $(mandir)/man2 |
| 69 |
man3dir = $(mandir)/man3 |
| 70 |
man4dir = $(mandir)/man4 |
| 71 |
man5dir = $(mandir)/man5 |
| 72 |
man6dir = $(mandir)/man6 |
| 73 |
man7dir = $(mandir)/man7 |
| 74 |
man8dir = $(mandir)/man8 |
| 75 |
man9dir = $(mandir)/man9 |
| 76 |
|
| 77 |
INSTALL = @INSTALL@ |
| 78 |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 79 |
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
| 80 |
INSTALL_DATA = @INSTALL_DATA@ |
| 81 |
LN = @LN@ |
| 82 |
LN_S = @LN_S@ |
| 83 |
MAINT = @MAINT@ |
| 84 |
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ |
| 85 |
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ |
| 86 |
|
| 87 |
# ------------------------------------------------- |
| 88 |
# Miscellaneous non-standard autoconf-set variables |
| 89 |
# ------------------------------------------------- |
| 90 |
|
| 91 |
# The gcc driver likes to know the arguments it was configured with. |
| 92 |
TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@ |
| 93 |
|
| 94 |
tooldir = @tooldir@ |
| 95 |
build_tooldir = @build_tooldir@ |
| 96 |
|
| 97 |
GDB_NLM_DEPS = |
| 98 |
|
| 99 |
# This is the name of the environment variable used for the path to |
| 100 |
# the libraries. |
| 101 |
RPATH_ENVVAR = @RPATH_ENVVAR@ |
| 102 |
|
| 103 |
# Build programs are put under this directory. |
| 104 |
BUILD_SUBDIR = @build_subdir@ |
| 105 |
# This is set by the configure script to the arguments to use when configuring |
| 106 |
# directories built for the build system. |
| 107 |
BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)" |
| 108 |
|
| 109 |
# This is the list of variables to export in the environment when |
| 110 |
# configuring any subdirectory. It must also be exported whenever |
| 111 |
# recursing into a build directory in case that directory's Makefile |
| 112 |
# re-runs configure. |
| 113 |
BASE_EXPORTS = \ |
| 114 |
FLEX="$(FLEX)"; export FLEX; \ |
| 115 |
LEX="$(LEX)"; export LEX; \ |
| 116 |
BISON="$(BISON)"; export BISON; \ |
| 117 |
YACC="$(YACC)"; export YACC; \ |
| 118 |
M4="$(M4)"; export M4; \ |
| 119 |
MAKEINFO="$(MAKEINFO)"; export MAKEINFO; |
| 120 |
|
| 121 |
# This is the list of variables to export in the environment when |
| 122 |
# configuring subdirectories for the build system. |
| 123 |
BUILD_EXPORTS = \ |
| 124 |
$(BASE_EXPORTS) \ |
| 125 |
AR="$(AR_FOR_BUILD)"; export AR; \ |
| 126 |
AS="$(AS_FOR_BUILD)"; export AS; \ |
| 127 |
CC="$(CC_FOR_BUILD)"; export CC; \ |
| 128 |
CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ |
| 129 |
CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ |
| 130 |
CXX="$(CXX_FOR_BUILD)"; export CXX; \ |
| 131 |
CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ |
| 132 |
GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \ |
| 133 |
GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \ |
| 134 |
DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ |
| 135 |
LD="$(LD_FOR_BUILD)"; export LD; \ |
| 136 |
LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ |
| 137 |
NM="$(NM_FOR_BUILD)"; export NM; \ |
| 138 |
RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ |
| 139 |
WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \ |
| 140 |
WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC; |
| 141 |
|
| 142 |
# This is the list of directories to built for the host system. |
| 143 |
SUBDIRS = @configdirs@ |
| 144 |
# This is set by the configure script to the arguments to use when configuring |
| 145 |
# directories built for the host system. |
| 146 |
HOST_CONFIGARGS = @host_configargs@ |
| 147 |
# Host programs are put under this directory, which is . except if building |
| 148 |
# with srcdir=.. |
| 149 |
HOST_SUBDIR = @host_subdir@ |
| 150 |
# This is the list of variables to export in the environment when |
| 151 |
# configuring subdirectories for the host system. We need to pass |
| 152 |
# some to the GCC configure because of its hybrid host/target nature. |
| 153 |
HOST_EXPORTS = \ |
| 154 |
$(BASE_EXPORTS) \ |
| 155 |
CC="$(CC)"; export CC; \ |
| 156 |
CFLAGS="$(CFLAGS)"; export CFLAGS; \ |
| 157 |
CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ |
| 158 |
CXX="$(CXX)"; export CXX; \ |
| 159 |
CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ |
| 160 |
AR="$(AR)"; export AR; \ |
| 161 |
AS="$(AS)"; export AS; \ |
| 162 |
CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ |
| 163 |
DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ |
| 164 |
LD="$(LD)"; export LD; \ |
| 165 |
LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \ |
| 166 |
NM="$(NM)"; export NM; \ |
| 167 |
RANLIB="$(RANLIB)"; export RANLIB; \ |
| 168 |
WINDRES="$(WINDRES)"; export WINDRES; \ |
| 169 |
WINDMC="$(WINDMC)"; export WINDMC; \ |
| 170 |
OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ |
| 171 |
OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ |
| 172 |
AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \ |
| 173 |
AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \ |
| 174 |
GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \ |
| 175 |
LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \ |
| 176 |
NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \ |
| 177 |
OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \ |
| 178 |
RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \ |
| 179 |
TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \ |
| 180 |
GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \ |
| 181 |
GMPINC="$(HOST_GMPINC)"; export GMPINC; \ |
| 182 |
@if gcc-bootstrap |
| 183 |
$(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ |
| 184 |
@endif gcc-bootstrap |
| 185 |
$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); |
| 186 |
|
| 187 |
# Similar, for later GCC stages. |
| 188 |
POSTSTAGE1_HOST_EXPORTS = \ |
| 189 |
$(HOST_EXPORTS) \ |
| 190 |
CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \ |
| 191 |
-B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \ |
| 192 |
CC_FOR_BUILD="$(STAGE_CC_WRAPPER) \ |
| 193 |
$$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \ |
| 194 |
-B$$r/$(HOST_SUBDIR)/prev-gcc/ \ |
| 195 |
-B$(build_tooldir)/bin/"; export CC_FOR_BUILD; \ |
| 196 |
LDFLAGS="$(BOOT_LDFLAGS)"; export LDFLAGS; |
| 197 |
|
| 198 |
# Target libraries are put under this directory: |
| 199 |
TARGET_SUBDIR = @target_subdir@ |
| 200 |
# This is set by the configure script to the arguments to use when configuring |
| 201 |
# directories built for the target. |
| 202 |
TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)" |
| 203 |
# This is the list of variables to export in the environment when |
| 204 |
# configuring subdirectories for the host system. |
| 205 |
BASE_TARGET_EXPORTS = \ |
| 206 |
$(BASE_EXPORTS) \ |
| 207 |
AR="$(AR_FOR_TARGET)"; export AR; \ |
| 208 |
AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \ |
| 209 |
CC="$(CC_FOR_TARGET)"; export CC; \ |
| 210 |
CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ |
| 211 |
CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ |
| 212 |
CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \ |
| 213 |
CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ |
| 214 |
GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ |
| 215 |
GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \ |
| 216 |
DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ |
| 217 |
LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \ |
| 218 |
LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ |
| 219 |
LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \ |
| 220 |
NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \ |
| 221 |
OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \ |
| 222 |
RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ |
| 223 |
STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \ |
| 224 |
WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ |
| 225 |
WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \ |
| 226 |
$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); |
| 227 |
|
| 228 |
RAW_CXX_TARGET_EXPORTS = \ |
| 229 |
$(BASE_TARGET_EXPORTS) \ |
| 230 |
CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ |
| 231 |
CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; |
| 232 |
|
| 233 |
NORMAL_TARGET_EXPORTS = \ |
| 234 |
$(BASE_TARGET_EXPORTS) \ |
| 235 |
CXX="$(CXX_FOR_TARGET)"; export CXX; |
| 236 |
|
| 237 |
# Where to find GMP |
| 238 |
HOST_GMPLIBS = @gmplibs@ |
| 239 |
HOST_GMPINC = @gmpinc@ |
| 240 |
|
| 241 |
# ---------------------------------------------- |
| 242 |
# Programs producing files for the BUILD machine |
| 243 |
# ---------------------------------------------- |
| 244 |
|
| 245 |
SHELL = @config_shell@ |
| 246 |
|
| 247 |
# pwd command to use. Allow user to override default by setting PWDCMD in |
| 248 |
# the environment to account for automounters. The make variable must not |
| 249 |
# be called PWDCMD, otherwise the value set here is passed to make |
| 250 |
# subprocesses and overrides the setting from the user's environment. |
| 251 |
# Don't use PWD since it is a common shell environment variable and we |
| 252 |
# don't want to corrupt it. |
| 253 |
PWD_COMMAND = $${PWDCMD-pwd} |
| 254 |
|
| 255 |
# compilers to use to create programs which must be run in the build |
| 256 |
# environment. |
| 257 |
AR_FOR_BUILD = @AR_FOR_BUILD@ |
| 258 |
AS_FOR_BUILD = @AS_FOR_BUILD@ |
| 259 |
CC_FOR_BUILD = @CC_FOR_BUILD@ |
| 260 |
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ |
| 261 |
CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@ |
| 262 |
CXX_FOR_BUILD = @CXX_FOR_BUILD@ |
| 263 |
DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@ |
| 264 |
GCJ_FOR_BUILD = @GCJ_FOR_BUILD@ |
| 265 |
GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@ |
| 266 |
LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ |
| 267 |
LD_FOR_BUILD = @LD_FOR_BUILD@ |
| 268 |
NM_FOR_BUILD = @NM_FOR_BUILD@ |
| 269 |
RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@ |
| 270 |
WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@ |
| 271 |
WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@ |
| 272 |
|
| 273 |
# Special variables passed down in EXTRA_GCC_FLAGS. They are defined |
| 274 |
# here so that they can be overridden by Makefile fragments. |
| 275 |
BUILD_PREFIX = @BUILD_PREFIX@ |
| 276 |
BUILD_PREFIX_1 = @BUILD_PREFIX_1@ |
| 277 |
|
| 278 |
# Flags to pass to stage2 and later makes. They are defined |
| 279 |
# here so that they can be overridden by Makefile fragments. |
| 280 |
BOOT_CFLAGS= -g -O2 |
| 281 |
BOOT_LDFLAGS= |
| 282 |
|
| 283 |
BISON = @BISON@ |
| 284 |
YACC = @YACC@ |
| 285 |
FLEX = @FLEX@ |
| 286 |
LEX = @LEX@ |
| 287 |
M4 = @M4@ |
| 288 |
MAKEINFO = @MAKEINFO@ |
| 289 |
EXPECT = @EXPECT@ |
| 290 |
RUNTEST = @RUNTEST@ |
| 291 |
|
| 292 |
# This just becomes part of the MAKEINFO definition passed down to |
| 293 |
# sub-makes. It lets flags be given on the command line while still |
| 294 |
# using the makeinfo from the object tree. |
| 295 |
# (Default to avoid splitting info files by setting the threshold high.) |
| 296 |
MAKEINFOFLAGS = --split-size=5000000 |
| 297 |
|
| 298 |
# --------------------------------------------- |
| 299 |
# Programs producing files for the HOST machine |
| 300 |
# --------------------------------------------- |
| 301 |
|
| 302 |
AS = @AS@ |
| 303 |
AR = @AR@ |
| 304 |
AR_FLAGS = rc |
| 305 |
CC = @CC@ |
| 306 |
CXX = @CXX@ |
| 307 |
DLLTOOL = @DLLTOOL@ |
| 308 |
LD = @LD@ |
| 309 |
LIPO = @LIPO@ |
| 310 |
NM = @NM@ |
| 311 |
OBJDUMP = @OBJDUMP@ |
| 312 |
RANLIB = @RANLIB@ |
| 313 |
STRIP = @STRIP@ |
| 314 |
WINDRES = @WINDRES@ |
| 315 |
WINDMC = @WINDMC@ |
| 316 |
|
| 317 |
GNATBIND = @GNATBIND@ |
| 318 |
GNATMAKE = @GNATMAKE@ |
| 319 |
|
| 320 |
CFLAGS = @CFLAGS@ |
| 321 |
LDFLAGS = @LDFLAGS@ |
| 322 |
LIBCFLAGS = $(CFLAGS) |
| 323 |
CXXFLAGS = @CXXFLAGS@ |
| 324 |
LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates |
| 325 |
PICFLAG = |
| 326 |
|
| 327 |
# Only build the C compiler for stage1, because that is the only one that |
| 328 |
# we can guarantee will build with the native compiler, and also it is the |
| 329 |
# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS), |
| 330 |
# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them |
| 331 |
# overrideable (for a bootstrap build stage1 also builds gcc.info). |
| 332 |
|
| 333 |
STAGE1_CFLAGS=@stage1_cflags@ |
| 334 |
STAGE1_CHECKING=@stage1_checking@ |
| 335 |
STAGE1_LANGUAGES=@stage1_languages@ |
| 336 |
|
| 337 |
STAGE2_CFLAGS=$(BOOT_CFLAGS) |
| 338 |
STAGE3_CFLAGS=$(BOOT_CFLAGS) |
| 339 |
STAGE4_CFLAGS=$(BOOT_CFLAGS) |
| 340 |
|
| 341 |
do-compare = @do_compare@ |
| 342 |
do-compare3 = $(do-compare) |
| 343 |
do-compare-debug = $(SHELL) $(srcdir)/contrib/compare-debug $$f1 $$f2 |
| 344 |
|
| 345 |
# ----------------------------------------------- |
| 346 |
# Programs producing files for the TARGET machine |
| 347 |
# ----------------------------------------------- |
| 348 |
|
| 349 |
FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@ |
| 350 |
|
| 351 |
AR_FOR_TARGET=@AR_FOR_TARGET@ |
| 352 |
AS_FOR_TARGET=@AS_FOR_TARGET@ |
| 353 |
CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@ $(FLAGS_FOR_TARGET) |
| 354 |
|
| 355 |
# If GCC_FOR_TARGET is not overriden on the command line, then this |
| 356 |
# variable is passed down to the gcc Makefile, where it is used to |
| 357 |
# build libgcc2.a. We define it here so that it can itself be |
| 358 |
# overridden on the command line. |
| 359 |
GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@ $(FLAGS_FOR_TARGET) |
| 360 |
CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET) |
| 361 |
RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET) |
| 362 |
GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@ $(FLAGS_FOR_TARGET) |
| 363 |
GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@ $(FLAGS_FOR_TARGET) |
| 364 |
DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@ |
| 365 |
LD_FOR_TARGET=@LD_FOR_TARGET@ |
| 366 |
|
| 367 |
LIPO_FOR_TARGET=@LIPO_FOR_TARGET@ |
| 368 |
NM_FOR_TARGET=@NM_FOR_TARGET@ |
| 369 |
OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@ |
| 370 |
RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@ |
| 371 |
STRIP_FOR_TARGET=@STRIP_FOR_TARGET@ |
| 372 |
WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@ |
| 373 |
WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@ |
| 374 |
|
| 375 |
COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@ |
| 376 |
COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@ |
| 377 |
COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@ |
| 378 |
|
| 379 |
# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
| 380 |
# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS |
| 381 |
# might also be empty (or "-g", if a non-GCC C++ compiler is in the path). |
| 382 |
# We want to ensure that TARGET libraries (which we know are built with |
| 383 |
# gcc) are built with "-O2 -g", so prepend those options when setting |
| 384 |
# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. |
| 385 |
CFLAGS_FOR_TARGET = -O2 -g $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) \ |
| 386 |
$(DEBUG_PREFIX_CFLAGS_FOR_TARGET) |
| 387 |
SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ |
| 388 |
DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@ |
| 389 |
CXXFLAGS_FOR_TARGET = -O2 -g $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) \ |
| 390 |
$(DEBUG_PREFIX_CFLAGS_FOR_TARGET) |
| 391 |
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) |
| 392 |
LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates |
| 393 |
LDFLAGS_FOR_TARGET = |
| 394 |
PICFLAG_FOR_TARGET = |
| 395 |
|
| 396 |
# ------------------------------------ |
| 397 |
# Miscellaneous targets and flag lists |
| 398 |
# ------------------------------------ |
| 399 |
|
| 400 |
# The first rule in the file had better be this one. Don't put any above it. |
| 401 |
# This lives here to allow makefile fragments to contain dependencies. |
| 402 |
all: |
| 403 |
|
| 404 |
#### host and target specific makefile fragments come in here. |
| 405 |
@target_makefile_frag@ |
| 406 |
@alphaieee_frag@ |
| 407 |
@ospace_frag@ |
| 408 |
@host_makefile_frag@ |
| 409 |
### |
| 410 |
|
| 411 |
# This is the list of directories that may be needed in RPATH_ENVVAR |
| 412 |
# so that prorgams built for the target machine work. |
| 413 |
TARGET_LIB_PATH = [+ FOR target_modules +][+ |
| 414 |
IF lib_path +]$(TARGET_LIB_PATH_[+module+])[+ ENDIF lib_path +][+ |
| 415 |
ENDFOR target_modules +]$(HOST_LIB_PATH_gcc) |
| 416 |
[+ FOR target_modules +][+ IF lib_path +] |
| 417 |
@if target-[+module+] |
| 418 |
TARGET_LIB_PATH_[+module+] = $$r/$(TARGET_SUBDIR)/[+module+]/[+lib_path+]: |
| 419 |
@endif target-[+module+] |
| 420 |
[+ ENDIF lib_path +][+ ENDFOR target_modules +] |
| 421 |
|
| 422 |
|
| 423 |
# This is the list of directories that may be needed in RPATH_ENVVAR |
| 424 |
# so that programs built for the host machine work. |
| 425 |
HOST_LIB_PATH = [+ FOR host_modules +][+ |
| 426 |
IF lib_path +]$(HOST_LIB_PATH_[+module+])[+ ENDIF lib_path +][+ |
| 427 |
ENDFOR host_modules +] |
| 428 |
|
| 429 |
# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch |
| 430 |
@if gcc |
| 431 |
HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc:$$r/$(HOST_SUBDIR)/prev-gcc: |
| 432 |
@endif gcc |
| 433 |
|
| 434 |
[+ FOR host_modules +][+ IF lib_path +] |
| 435 |
@if [+module+] |
| 436 |
HOST_LIB_PATH_[+module+] = \ |
| 437 |
$$r/$(HOST_SUBDIR)/[+module+]/[+lib_path+]:[+ IF bootstrap |
| 438 |
+]$$r/$(HOST_SUBDIR)/prev-[+module+]/[+lib_path+]:[+ ENDIF bootstrap +] |
| 439 |
@endif [+module+] |
| 440 |
[+ ENDIF lib_path +][+ ENDFOR host_modules +] |
| 441 |
|
| 442 |
# Flags to pass down to all sub-makes. |
| 443 |
BASE_FLAGS_TO_PASS =[+ FOR flags_to_pass +][+ IF optional +] \ |
| 444 |
"`echo '[+flag+]=$([+flag+])' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"[+ ELSE optional +] \ |
| 445 |
"[+flag+]=$([+flag+])"[+ ENDIF optional+][+ ENDFOR flags_to_pass +] \ |
| 446 |
"CONFIG_SHELL=$(SHELL)" \ |
| 447 |
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" |
| 448 |
|
| 449 |
# We leave this in just in case, but it is not needed anymore. |
| 450 |
RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) |
| 451 |
|
| 452 |
# Flags to pass down to most sub-makes, in which we're building with |
| 453 |
# the host environment. |
| 454 |
EXTRA_HOST_FLAGS = \ |
| 455 |
'AR=$(AR)' \ |
| 456 |
'AS=$(AS)' \ |
| 457 |
'CC=$(CC)' \ |
| 458 |
'CXX=$(CXX)' \ |
| 459 |
'DLLTOOL=$(DLLTOOL)' \ |
| 460 |
'LD=$(LD)' \ |
| 461 |
'LIPO=$(LIPO)' \ |
| 462 |
'NM=$(NM)' \ |
| 463 |
'OBJDUMP=$(OBJDUMP)' \ |
| 464 |
'RANLIB=$(RANLIB)' \ |
| 465 |
'STRIP=$(STRIP)' \ |
| 466 |
'WINDRES=$(WINDRES)' \ |
| 467 |
'WINDMC=$(WINDMC)' |
| 468 |
|
| 469 |
FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) |
| 470 |
|
| 471 |
# Flags that are concerned with the location of the X11 include files |
| 472 |
# and library files |
| 473 |
# |
| 474 |
# NOTE: until the top-level is getting the values via autoconf, it only |
| 475 |
# causes problems to have this top-level Makefile overriding the autoconf-set |
| 476 |
# values in child directories. Only variables that don't conflict with |
| 477 |
# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now. |
| 478 |
# |
| 479 |
X11_FLAGS_TO_PASS = \ |
| 480 |
'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \ |
| 481 |
'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)' |
| 482 |
|
| 483 |
# Flags to pass to stage2 and later makes. |
| 484 |
|
| 485 |
POSTSTAGE1_FLAGS_TO_PASS = \ |
| 486 |
CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ |
| 487 |
GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind" \ |
| 488 |
LDFLAGS="$(BOOT_LDFLAGS)" \ |
| 489 |
"`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" |
| 490 |
|
| 491 |
# Flags to pass down to makes which are built with the target environment. |
| 492 |
# The double $ decreases the length of the command line; those variables |
| 493 |
# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The |
| 494 |
# COMPILER_ prefixed variables are not passed down so we expand them here. |
| 495 |
EXTRA_TARGET_FLAGS = \ |
| 496 |
'AR=$$(AR_FOR_TARGET)' \ |
| 497 |
'AS=$(COMPILER_AS_FOR_TARGET)' \ |
| 498 |
'CC=$$(CC_FOR_TARGET)' \ |
| 499 |
'CFLAGS=$$(CFLAGS_FOR_TARGET)' \ |
| 500 |
'CXX=$$(CXX_FOR_TARGET)' \ |
| 501 |
'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ |
| 502 |
'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ |
| 503 |
'LD=$(COMPILER_LD_FOR_TARGET)' \ |
| 504 |
'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \ |
| 505 |
'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ |
| 506 |
'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ |
| 507 |
'NM=$(COMPILER_NM_FOR_TARGET)' \ |
| 508 |
'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \ |
| 509 |
'RANLIB=$$(RANLIB_FOR_TARGET)' \ |
| 510 |
'WINDRES=$$(WINDRES_FOR_TARGET)' \ |
| 511 |
'WINDMC=$$(WINDMC_FOR_TARGET)' |
| 512 |
|
| 513 |
TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) |
| 514 |
|
| 515 |
# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it |
| 516 |
# unfortunately needs the native compiler and the target ar and |
| 517 |
# ranlib. |
| 518 |
# If any variables are added here, they must be added to do-*, below. |
| 519 |
# The BUILD_* variables are a special case, which are used for the gcc |
| 520 |
# cross-building scheme. |
| 521 |
EXTRA_GCC_FLAGS = \ |
| 522 |
"GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ |
| 523 |
"`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
| 524 |
"`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
| 525 |
"`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
| 526 |
"`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \ |
| 527 |
"`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" |
| 528 |
|
| 529 |
GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) |
| 530 |
|
| 531 |
.PHONY: configure-host |
| 532 |
configure-host: [+ |
| 533 |
FOR host_modules +] \ |
| 534 |
maybe-configure-[+module+][+ |
| 535 |
ENDFOR host_modules +] |
| 536 |
.PHONY: configure-target |
| 537 |
configure-target: [+ |
| 538 |
FOR target_modules +] \ |
| 539 |
maybe-configure-target-[+module+][+ |
| 540 |
ENDFOR target_modules +] |
| 541 |
|
| 542 |
# The target built for a native non-bootstrap build. |
| 543 |
.PHONY: all |
| 544 |
all: |
| 545 |
@if gcc-bootstrap |
| 546 |
[ -f stage_final ] || echo stage3 > stage_final |
| 547 |
@r=`${PWD_COMMAND}`; export r; \ |
| 548 |
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 549 |
$(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble |
| 550 |
@endif gcc-bootstrap |
| 551 |
@: $(MAKE); $(unstage) |
| 552 |
@r=`${PWD_COMMAND}`; export r; \ |
| 553 |
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 554 |
if [ -f stage_last ]; then \ |
| 555 |
$(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \ |
| 556 |
else \ |
| 557 |
$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target; \ |
| 558 |
fi |
| 559 |
|
| 560 |
.PHONY: all-build |
| 561 |
[+ FOR build_modules +] |
| 562 |
all-build: maybe-all-build-[+module+][+ ENDFOR build_modules +] |
| 563 |
|
| 564 |
.PHONY: all-host |
| 565 |
[+ FOR host_modules +][+ IF bootstrap +] |
| 566 |
@if [+module+]-no-bootstrap[+ ENDIF bootstrap +] |
| 567 |
all-host: maybe-all-[+module+][+ IF bootstrap +] |
| 568 |
@endif [+module+]-no-bootstrap[+ ENDIF bootstrap +][+ ENDFOR host_modules +] |
| 569 |
|
| 570 |
.PHONY: all-target |
| 571 |
[+ FOR target_modules +][+ IF bootstrap +] |
| 572 |
@if target-[+module+]-no-bootstrap[+ ENDIF bootstrap +] |
| 573 |
all-target: maybe-all-target-[+module+][+ IF bootstrap +] |
| 574 |
@endif target-[+module+]-no-bootstrap[+ |
| 575 |
ENDIF bootstrap +][+ ENDFOR target_modules +] |
| 576 |
|
| 577 |
# Do a target for all the subdirectories. A ``make do-X'' will do a |
| 578 |
# ``make X'' in all subdirectories (because, in general, there is a |
| 579 |
# dependency (below) of X upon do-X, a ``make X'' will also do this, |
| 580 |
# but it may do additional work as well). |
| 581 |
[+ FOR recursive_targets +] |
| 582 |
.PHONY: do-[+make_target+] |
| 583 |
do-[+make_target+]: |
| 584 |
@: $(MAKE); $(unstage) |
| 585 |
@r=`${PWD_COMMAND}`; export r; \ |
| 586 |
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 587 |
$(MAKE) $(RECURSE_FLAGS_TO_PASS) [+make_target+]-host \ |
| 588 |
[+make_target+]-target |
| 589 |
|
| 590 |
|
| 591 |
.PHONY: [+make_target+]-host |
| 592 |
[+ FOR host_modules +] |
| 593 |
[+make_target+]-host: maybe-[+make_target+]-[+module+][+ ENDFOR host_modules +] |
| 594 |
|
| 595 |
.PHONY: [+make_target+]-target |
| 596 |
[+ FOR target_modules +] |
| 597 |
[+make_target+]-target: maybe-[+make_target+]-target-[+module+][+ ENDFOR target_modules +] |
| 598 |
[+ ENDFOR recursive_targets +] |
| 599 |
|
| 600 |
# Here are the targets which correspond to the do-X targets. |
| 601 |
|
| 602 |
.PHONY: info installcheck dvi pdf html |
| 603 |
.PHONY: install-info install-pdf install-html |
| 604 |
.PHONY: clean distclean mostlyclean maintainer-clean realclean |
| 605 |
.PHONY: local-clean local-distclean local-maintainer-clean |
| 606 |
info: do-info |
| 607 |
installcheck: do-installcheck |
| 608 |
dvi: do-dvi |
| 609 |
pdf: do-pdf |
| 610 |
html: do-html |
| 611 |
|
| 612 |
# Make sure makeinfo is built before we do a `make info', if we're |
| 613 |
# in fact building texinfo. |
| 614 |
do-info: maybe-all-texinfo |
| 615 |
|
| 616 |
install-info: do-install-info dir.info |
| 617 |
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 618 |
if [ -f dir.info ] ; then \ |
| 619 |
$(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \ |
| 620 |
else true ; fi |
| 621 |
|
| 622 |
install-pdf: do-install-pdf |
| 623 |
|
| 624 |
install-html: do-install-html |
| 625 |
|
| 626 |
local-clean: |
| 627 |
-rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log |
| 628 |
|
| 629 |
local-distclean: |
| 630 |
-rm -f Makefile config.status config.cache mh-frag mt-frag |
| 631 |
-rm -f maybedep.tmp serdep.tmp |
| 632 |
-if [ "$(TARGET_SUBDIR)" != "." ]; then \ |
| 633 |
rm -rf $(TARGET_SUBDIR); \ |
| 634 |
else true; fi |
| 635 |
-rm -rf $(BUILD_SUBDIR) |
| 636 |
-if [ "$(HOST_SUBDIR)" != "." ]; then \ |
| 637 |
rm -rf $(HOST_SUBDIR); \ |
| 638 |
else true; fi |
| 639 |
-rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile |
| 640 |
-rm -f texinfo/doc/Makefile texinfo/po/POTFILES |
| 641 |
-rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null |
| 642 |
-rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null |
| 643 |
-rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null |
| 644 |
|
| 645 |
local-maintainer-clean: |
| 646 |
@echo "This command is intended for maintainers to use;" |
| 647 |
@echo "it deletes files that may require special tools to rebuild." |
| 648 |
|
| 649 |
clean: do-clean local-clean |
| 650 |
mostlyclean: do-mostlyclean local-clean |
| 651 |
distclean: do-distclean local-clean local-distclean |
| 652 |
maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean |
| 653 |
maintainer-clean: local-distclean |
| 654 |
realclean: maintainer-clean |
| 655 |
|
| 656 |
# Check target. |
| 657 |
|
| 658 |
.PHONY: check do-check |
| 659 |
check: do-check |
| 660 |
|
| 661 |
# Only include modules actually being configured and built. |
| 662 |
.PHONY: check-host |
| 663 |
check-host: [+ |
| 664 |
FOR host_modules +] \ |
| 665 |
maybe-check-[+module+][+ |
| 666 |
ENDFOR host_modules +] |
| 667 |
|
| 668 |
.PHONY: check-target |
| 669 |
check-target: [+ |
| 670 |
FOR target_modules +] \ |
| 671 |
maybe-check-target-[+module+][+ |
| 672 |
ENDFOR target_modules +] |
| 673 |
|
| 674 |
do-check: |
| 675 |
@: $(MAKE); $(unstage) |
| 676 |
@r=`${PWD_COMMAND}`; export r; \ |
| 677 |
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 678 |
$(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target |
| 679 |
|
| 680 |
# Automated reporting of test results. |
| 681 |
|
| 682 |
warning.log: build.log |
| 683 |
$(srcdir)/contrib/warn_summary build.log > $@ |
| 684 |
|
| 685 |
mail-report.log: |
| 686 |
if test x'$(BOOT_CFLAGS)' != x''; then \ |
| 687 |
BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ |
| 688 |
fi; \ |
| 689 |
$(srcdir)/contrib/test_summary -t >$@ |
| 690 |
chmod +x $@ |
| 691 |
echo If you really want to send e-mail, run ./$@ now |
| 692 |
|
| 693 |
mail-report-with-warnings.log: warning.log |
| 694 |
if test x'$(BOOT_CFLAGS)' != x''; then \ |
| 695 |
BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ |
| 696 |
fi; \ |
| 697 |
$(srcdir)/contrib/test_summary -t -i warning.log >$@ |
| 698 |
chmod +x $@ |
| 699 |
echo If you really want to send e-mail, run ./$@ now |
| 700 |
|
| 701 |
# Installation targets. |
| 702 |
|
| 703 |
.PHONY: install uninstall |
| 704 |
install: |
| 705 |
@: $(MAKE); $(unstage) |
| 706 |
@r=`${PWD_COMMAND}`; export r; \ |
| 707 |
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 708 |
$(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target |
| 709 |
|
| 710 |
.PHONY: install-host-nogcc |
| 711 |
install-host-nogcc: [+ |
| 712 |
FOR host_modules +][+ IF (not (= (get "module") "gcc")) +] \ |
| 713 |
maybe-install-[+module+][+ ENDIF +][+ |
| 714 |
ENDFOR host_modules +] |
| 715 |
|
| 716 |
.PHONY: install-host |
| 717 |
install-host: [+ |
| 718 |
FOR host_modules +] \ |
| 719 |
maybe-install-[+module+][+ |
| 720 |
ENDFOR host_modules +] |
| 721 |
|
| 722 |
.PHONY: install-target |
| 723 |
install-target: [+ |
| 724 |
FOR target_modules +] \ |
| 725 |
maybe-install-target-[+module+][+ |
| 726 |
ENDFOR target_modules +] |
| 727 |
|
| 728 |
uninstall: |
| 729 |
@echo "the uninstall target is not supported in this tree" |
| 730 |
|
| 731 |
.PHONY: install.all |
| 732 |
install.all: install-no-fixedincludes |
| 733 |
@if [ -f ./gcc/Makefile ] ; then \ |
| 734 |
r=`${PWD_COMMAND}` ; export r ; \ |
| 735 |
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 736 |
$(HOST_EXPORTS) \ |
| 737 |
(cd ./gcc && \ |
| 738 |
$(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ |
| 739 |
else \ |
| 740 |
true ; \ |
| 741 |
fi |
| 742 |
|
| 743 |
# install-no-fixedincludes is used because Cygnus can not distribute |
| 744 |
# the fixed header files. |
| 745 |
.PHONY: install-no-fixedincludes |
| 746 |
install-no-fixedincludes: installdirs install-host-nogcc \ |
| 747 |
install-target gcc-no-fixedincludes |
| 748 |
|
| 749 |
### other supporting targets |
| 750 |
|
| 751 |
MAKEDIRS= \ |
| 752 |
$(DESTDIR)$(prefix) \ |
| 753 |
$(DESTDIR)$(exec_prefix) |
| 754 |
.PHONY: installdirs |
| 755 |
installdirs: mkinstalldirs |
| 756 |
$(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS) |
| 757 |
|
| 758 |
dir.info: do-install-info |
| 759 |
if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \ |
| 760 |
$(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \ |
| 761 |
mv -f dir.info.new dir.info ; \ |
| 762 |
else true ; \ |
| 763 |
fi |
| 764 |
|
| 765 |
dist: |
| 766 |
@echo "Building a full distribution of this tree isn't done" |
| 767 |
@echo "via 'make dist'. Check out the etc/ subdirectory" |
| 768 |
|
| 769 |
etags tags: TAGS |
| 770 |
|
| 771 |
# Right now this just builds TAGS in each subdirectory. emacs19 has the |
| 772 |
# ability to use several tags files at once, so there is probably no need |
| 773 |
# to combine them into one big TAGS file (like CVS 1.3 does). We could |
| 774 |
# (if we felt like it) have this Makefile write a piece of elisp which |
| 775 |
# the user could load to tell emacs19 where all the TAGS files we just |
| 776 |
# built are. |
| 777 |
TAGS: do-TAGS |
| 778 |
|
| 779 |
# ------------------------------------ |
| 780 |
# Macros for configure and all targets |
| 781 |
# ------------------------------------ |
| 782 |
|
| 783 |
[+ DEFINE configure +] |
| 784 |
.PHONY: configure-[+prefix+][+module+] maybe-configure-[+prefix+][+module+] |
| 785 |
maybe-configure-[+prefix+][+module+]: |
| 786 |
@if gcc-bootstrap |
| 787 |
configure-[+prefix+][+module+]: stage_current |
| 788 |
@endif gcc-bootstrap |
| 789 |
@if [+prefix+][+module+] |
| 790 |
maybe-configure-[+prefix+][+module+]: configure-[+prefix+][+module+] |
| 791 |
configure-[+prefix+][+module+]: [+ IF bootstrap +][+ ELSE +] |
| 792 |
@: $(MAKE); $(unstage)[+ ENDIF bootstrap +] |
| 793 |
@r=`${PWD_COMMAND}`; export r; \ |
| 794 |
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 795 |
[+ IF check_multilibs |
| 796 |
+]echo "Checking multilib configuration for [+module+]..."; \ |
| 797 |
$(SHELL) $(srcdir)/mkinstalldirs [+subdir+]/[+module+] ; \ |
| 798 |
$(CC_FOR_TARGET) --print-multi-lib > [+subdir+]/[+module+]/multilib.tmp 2> /dev/null ; \ |
| 799 |
if test -r [+subdir+]/[+module+]/multilib.out; then \ |
| 800 |
if cmp -s [+subdir+]/[+module+]/multilib.tmp [+subdir+]/[+module+]/multilib.out; then \ |
| 801 |
rm -f [+subdir+]/[+module+]/multilib.tmp; \ |
| 802 |
else \ |
| 803 |
rm -f [+subdir+]/[+module+]/Makefile; \ |
| 804 |
mv [+subdir+]/[+module+]/multilib.tmp [+subdir+]/[+module+]/multilib.out; \ |
| 805 |
fi; \ |
| 806 |
else \ |
| 807 |
<