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