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