| OLD | NEW |
| 1 [+ AutoGen5 template -*- Mode: Makefile -*- | 1 [+ AutoGen5 template -*- Mode: Makefile -*- |
| 2 in | 2 in |
| 3 +] | 3 +] |
| 4 | 4 |
| 5 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'. | 5 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'. |
| 6 # | 6 # |
| 7 # Makefile for directory with subdirs to build. | 7 # Makefile for directory with subdirs to build. |
| 8 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, | 8 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, |
| 9 # 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 9 # 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| 10 # Free Software Foundation | 10 # Free Software Foundation |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \ | 162 GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \ |
| 163 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ | 163 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ |
| 164 LD="$(LD_FOR_BUILD)"; export LD; \ | 164 LD="$(LD_FOR_BUILD)"; export LD; \ |
| 165 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ | 165 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ |
| 166 NM="$(NM_FOR_BUILD)"; export NM; \ | 166 NM="$(NM_FOR_BUILD)"; export NM; \ |
| 167 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ | 167 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ |
| 168 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \ | 168 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \ |
| 169 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC; | 169 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC; |
| 170 | 170 |
| 171 # These variables must be set on the make command line for directories | 171 # These variables must be set on the make command line for directories |
| 172 # built for the build system to override those in BASE_FLAGS_TO_PASSS. | 172 # built for the build system to override those in BASE_FLAGS_TO_PASS. |
| 173 EXTRA_BUILD_FLAGS = \ | 173 EXTRA_BUILD_FLAGS = \ |
| 174 CFLAGS="$(CFLAGS_FOR_BUILD)" \ | 174 CFLAGS="$(CFLAGS_FOR_BUILD)" \ |
| 175 LDFLAGS="$(LDFLAGS_FOR_BUILD)" | 175 LDFLAGS="$(LDFLAGS_FOR_BUILD)" |
| 176 | 176 |
| 177 # This is the list of directories to built for the host system. | 177 # This is the list of directories to built for the host system. |
| 178 SUBDIRS = @configdirs@ | 178 SUBDIRS = @configdirs@ |
| 179 TARGET_CONFIGDIRS = @target_configdirs@ | 179 TARGET_CONFIGDIRS = @target_configdirs@ |
| 180 # This is set by the configure script to the arguments to use when configuring | 180 # This is set by the configure script to the arguments to use when configuring |
| 181 # directories built for the host system. | 181 # directories built for the host system. |
| 182 HOST_CONFIGARGS = @host_configargs@ | 182 HOST_CONFIGARGS = @host_configargs@ |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \ | 215 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \ |
| 216 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \ | 216 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \ |
| 217 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \ | 217 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \ |
| 218 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \ | 218 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \ |
| 219 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \ | 219 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \ |
| 220 READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \ | 220 READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \ |
| 221 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export T
OPLEVEL_CONFIGURE_ARGUMENTS; \ | 221 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export T
OPLEVEL_CONFIGURE_ARGUMENTS; \ |
| 222 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \ | 222 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \ |
| 223 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \ | 223 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \ |
| 224 GMPINC="$(HOST_GMPINC)"; export GMPINC; \ | 224 GMPINC="$(HOST_GMPINC)"; export GMPINC; \ |
| 225 » PPLLIBS="$(HOST_PPLLIBS)"; export PPLLIBS; \ | 225 » ISLINC="$(HOST_ISLINC)"; export ISLINC; \ |
| 226 » PPLINC="$(HOST_PPLINC)"; export PPLINC; \ | |
| 227 CLOOGLIBS="$(HOST_CLOOGLIBS)"; export CLOOGLIBS; \ | 226 CLOOGLIBS="$(HOST_CLOOGLIBS)"; export CLOOGLIBS; \ |
| 228 CLOOGINC="$(HOST_CLOOGINC)"; export CLOOGINC; \ | 227 CLOOGINC="$(HOST_CLOOGINC)"; export CLOOGINC; \ |
| 229 LIBELFLIBS="$(HOST_LIBELFLIBS)" ; export LIBELFLIBS; \ | 228 LIBELFLIBS="$(HOST_LIBELFLIBS)" ; export LIBELFLIBS; \ |
| 230 LIBELFINC="$(HOST_LIBELFINC)" ; export LIBELFINC; \ | 229 LIBELFINC="$(HOST_LIBELFINC)" ; export LIBELFINC; \ |
| 231 @if gcc-bootstrap | 230 @if gcc-bootstrap |
| 232 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*
,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ | 231 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*
,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ |
| 233 @endif gcc-bootstrap | 232 @endif gcc-bootstrap |
| 234 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:
,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); | 233 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:
,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); |
| 235 | 234 |
| 236 POSTSTAGE1_CXX_EXPORT = \ | 235 POSTSTAGE1_CXX_EXPORT = \ |
| 237 CXX='$(CXX)'; export CXX; \ | 236 CXX='$(CXX)'; export CXX; \ |
| 238 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD; | 237 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD; |
| 239 @if target-libstdc++-v3-bootstrap | 238 @if target-libstdc++-v3-bootstrap |
| 240 # Override the above if we're bootstrapping C++. | 239 # Override the above if we're bootstrapping C++. |
| 241 POSTSTAGE1_CXX_EXPORT = \ | 240 POSTSTAGE1_CXX_EXPORT = \ |
| 242 » CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \ | 241 » CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \ |
| 243 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \ | 242 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \ |
| 244 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \ | 243 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \ |
| 245 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \ | 244 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \ |
| 246 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \ | 245 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \ |
| 247 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \ | 246 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \ |
| 248 -I$$s/libstdc++-v3/libsupc++ \ | 247 -I$$s/libstdc++-v3/libsupc++ \ |
| 249 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \ | 248 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \ |
| 250 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \ | 249 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \ |
| 251 export CXX; \ | 250 export CXX; \ |
| 252 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD; | 251 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CX
X; | 305 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CX
X; |
| 307 | 306 |
| 308 NORMAL_TARGET_EXPORTS = \ | 307 NORMAL_TARGET_EXPORTS = \ |
| 309 $(BASE_TARGET_EXPORTS) \ | 308 $(BASE_TARGET_EXPORTS) \ |
| 310 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX; | 309 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX; |
| 311 | 310 |
| 312 # Where to find GMP | 311 # Where to find GMP |
| 313 HOST_GMPLIBS = @gmplibs@ | 312 HOST_GMPLIBS = @gmplibs@ |
| 314 HOST_GMPINC = @gmpinc@ | 313 HOST_GMPINC = @gmpinc@ |
| 315 | 314 |
| 316 # Where to find PPL | 315 # Where to find ISL |
| 317 HOST_PPLLIBS = @ppllibs@ | 316 HOST_ISLINC = @islinc@ |
| 318 HOST_PPLINC = @pplinc@ | |
| 319 | 317 |
| 320 # Where to find CLOOG | 318 # Where to find CLOOG |
| 321 HOST_CLOOGLIBS = @clooglibs@ | 319 HOST_CLOOGLIBS = @clooglibs@ |
| 322 HOST_CLOOGINC = @clooginc@ | 320 HOST_CLOOGINC = @clooginc@ |
| 323 | 321 |
| 324 # Where to find libelf | 322 # Where to find libelf |
| 325 HOST_LIBELFLIBS = @libelflibs@ | 323 HOST_LIBELFLIBS = @libelflibs@ |
| 326 HOST_LIBELFINC = @libelfinc@ | 324 HOST_LIBELFINC = @libelfinc@ |
| 327 | 325 |
| 328 EXTRA_CONFIGARGS_LIBJAVA = @EXTRA_CONFIGARGS_LIBJAVA@ | 326 EXTRA_CONFIGARGS_LIBJAVA = @EXTRA_CONFIGARGS_LIBJAVA@ |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 | 360 |
| 363 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined | 361 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined |
| 364 # here so that they can be overridden by Makefile fragments. | 362 # here so that they can be overridden by Makefile fragments. |
| 365 BUILD_PREFIX = @BUILD_PREFIX@ | 363 BUILD_PREFIX = @BUILD_PREFIX@ |
| 366 BUILD_PREFIX_1 = @BUILD_PREFIX_1@ | 364 BUILD_PREFIX_1 = @BUILD_PREFIX_1@ |
| 367 | 365 |
| 368 # Flags to pass to stage2 and later makes. They are defined | 366 # Flags to pass to stage2 and later makes. They are defined |
| 369 # here so that they can be overridden by Makefile fragments. | 367 # here so that they can be overridden by Makefile fragments. |
| 370 BOOT_CFLAGS= -g -O2 | 368 BOOT_CFLAGS= -g -O2 |
| 371 BOOT_LDFLAGS= | 369 BOOT_LDFLAGS= |
| 372 BOOT_ADAFLAGS=-gnatpg -gnata | 370 BOOT_ADAFLAGS= -gnatpg |
| 373 | 371 |
| 374 AWK = @AWK@ | 372 AWK = @AWK@ |
| 375 SED = @SED@ | 373 SED = @SED@ |
| 376 BISON = @BISON@ | 374 BISON = @BISON@ |
| 377 YACC = @YACC@ | 375 YACC = @YACC@ |
| 378 FLEX = @FLEX@ | 376 FLEX = @FLEX@ |
| 379 LEX = @LEX@ | 377 LEX = @LEX@ |
| 380 M4 = @M4@ | 378 M4 = @M4@ |
| 381 MAKEINFO = @MAKEINFO@ | 379 MAKEINFO = @MAKEINFO@ |
| 382 EXPECT = @EXPECT@ | 380 EXPECT = @EXPECT@ |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates | 416 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates |
| 419 GOCFLAGS = $(CFLAGS) | 417 GOCFLAGS = $(CFLAGS) |
| 420 | 418 |
| 421 TFLAGS = | 419 TFLAGS = |
| 422 | 420 |
| 423 # Defaults for all stages; some are overridden below. | 421 # Defaults for all stages; some are overridden below. |
| 424 | 422 |
| 425 STAGE_CFLAGS = $(BOOT_CFLAGS) | 423 STAGE_CFLAGS = $(BOOT_CFLAGS) |
| 426 STAGE_TFLAGS = $(TFLAGS) | 424 STAGE_TFLAGS = $(TFLAGS) |
| 427 STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@ | 425 STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@ |
| 428 POSTSTAGE1_CONFIGURE_FLAGS = @POSTSTAGE1_CONFIGURE_FLAGS@ | |
| 429 | 426 |
| 430 [+ FOR bootstrap-stage +] | 427 [+ FOR bootstrap-stage +] |
| 431 # Defaults for stage [+id+]; some are overridden below. | 428 # Defaults for stage [+id+]; some are overridden below. |
| 432 STAGE[+id+]_CFLAGS = $(STAGE_CFLAGS) | 429 STAGE[+id+]_CFLAGS = $(STAGE_CFLAGS) |
| 433 STAGE[+id+]_CXXFLAGS = $(CXXFLAGS) | 430 STAGE[+id+]_CXXFLAGS = $(CXXFLAGS) |
| 434 @if target-libstdc++-v3-bootstrap | 431 @if target-libstdc++-v3-bootstrap |
| 435 # Override the above if we're bootstrapping C++. | 432 # Override the above if we're bootstrapping C++. |
| 436 STAGE[+id+]_CXXFLAGS = $(STAGE[+id+]_CFLAGS) | 433 STAGE[+id+]_CXXFLAGS = $(STAGE[+id+]_CFLAGS) |
| 437 @endif target-libstdc++-v3-bootstrap | 434 @endif target-libstdc++-v3-bootstrap |
| 438 STAGE[+id+]_TFLAGS = $(STAGE_TFLAGS) | 435 STAGE[+id+]_TFLAGS = $(STAGE_TFLAGS) |
| 439 # STAGE1_CONFIGURE_FLAGS overridden below, so we can use | 436 STAGE[+id+]_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS) |
| 440 # POSTSTAGE1_CONFIGURE_FLAGS here. | |
| 441 STAGE[+id+]_CONFIGURE_FLAGS = \ | |
| 442 » $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS) | |
| 443 [+ ENDFOR bootstrap-stage +] | 437 [+ ENDFOR bootstrap-stage +] |
| 444 | 438 |
| 445 # Only build the C compiler for stage1, because that is the only one that | 439 # Only build the C compiler for stage1, because that is the only one that |
| 446 # we can guarantee will build with the native compiler, and also it is the | 440 # we can guarantee will build with the native compiler, and also it is the |
| 447 # only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS), | 441 # only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS), |
| 448 # MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them | 442 # MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them |
| 449 # overrideable (for a bootstrap build stage1 also builds gcc.info). | 443 # overrideable (for a bootstrap build stage1 also builds gcc.info). |
| 450 | 444 |
| 451 STAGE1_CFLAGS = @stage1_cflags@ | 445 STAGE1_CFLAGS = @stage1_cflags@ |
| 452 STAGE1_CHECKING = @stage1_checking@ | 446 STAGE1_CHECKING = @stage1_checking@ |
| 453 STAGE1_LANGUAGES = @stage1_languages@ | 447 STAGE1_LANGUAGES = @stage1_languages@ |
| 454 # * We force-disable intermodule optimizations, even if | 448 # * We force-disable intermodule optimizations, even if |
| 455 # --enable-intermodule was passed, since the installed compiler | 449 # --enable-intermodule was passed, since the installed compiler |
| 456 # probably can't handle them. Luckily, autoconf always respects | 450 # probably can't handle them. Luckily, autoconf always respects |
| 457 # the last argument when conflicting --enable arguments are passed. | 451 # the last argument when conflicting --enable arguments are passed. |
| 458 # * Likewise, we force-disable coverage flags, since the installed | 452 # * Likewise, we force-disable coverage flags, since the installed |
| 459 # compiler probably has never heard of them. | 453 # compiler probably has never heard of them. |
| 460 # * Don't remove this, because above we added | 454 # * We also disable -Wformat, since older GCCs don't understand newer %s. |
| 461 # POSTSTAGE1_CONFIGURE_FLAGS to STAGE[+id+]_CONFIGURE_FLAGS, which | |
| 462 # we don't want for STAGE1_CONFIGURE_FLAGS. | |
| 463 STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \ | 455 STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \ |
| 464 » --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" | 456 » --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \ |
| 457 » --disable-build-format-warnings |
| 465 | 458 |
| 466 STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate | 459 STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate |
| 467 STAGEprofile_TFLAGS = $(STAGE2_TFLAGS) | 460 STAGEprofile_TFLAGS = $(STAGE2_TFLAGS) |
| 468 | 461 |
| 469 STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use | 462 STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use |
| 470 STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS) | 463 STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS) |
| 471 | 464 |
| 472 do-compare = @do_compare@ | 465 do-compare = @do_compare@ |
| 473 do-compare3 = $(do-compare) | 466 do-compare3 = $(do-compare) |
| 474 | 467 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 'NM=$(NM)' \ | 610 'NM=$(NM)' \ |
| 618 'OBJDUMP=$(OBJDUMP)' \ | 611 'OBJDUMP=$(OBJDUMP)' \ |
| 619 'RANLIB=$(RANLIB)' \ | 612 'RANLIB=$(RANLIB)' \ |
| 620 'READELF=$(READELF)' \ | 613 'READELF=$(READELF)' \ |
| 621 'STRIP=$(STRIP)' \ | 614 'STRIP=$(STRIP)' \ |
| 622 'WINDRES=$(WINDRES)' \ | 615 'WINDRES=$(WINDRES)' \ |
| 623 'WINDMC=$(WINDMC)' | 616 'WINDMC=$(WINDMC)' |
| 624 | 617 |
| 625 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) | 618 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) |
| 626 | 619 |
| 620 # Flags to pass to stage1 or when not bootstrapping. |
| 621 |
| 622 STAGE1_FLAGS_TO_PASS = \ |
| 623 LDFLAGS="$${LDFLAGS}" \ |
| 624 HOST_LIBS="$${HOST_LIBS}" |
| 625 |
| 627 # Flags to pass to stage2 and later makes. | 626 # Flags to pass to stage2 and later makes. |
| 628 | 627 |
| 629 POSTSTAGE1_FLAGS_TO_PASS = \ | 628 POSTSTAGE1_FLAGS_TO_PASS = \ |
| 630 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ | 629 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ |
| 631 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \ | 630 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \ |
| 632 GNATBIND="$${GNATBIND}" \ | 631 GNATBIND="$${GNATBIND}" \ |
| 633 LDFLAGS="$${LDFLAGS}" \ | 632 LDFLAGS="$${LDFLAGS}" \ |
| 634 HOST_LIBS="$${HOST_LIBS}" \ | 633 HOST_LIBS="$${HOST_LIBS}" \ |
| 635 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" | 634 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" |
| 636 | 635 |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 @if [ -f ./gcc/Makefile ] ; then \ | 898 @if [ -f ./gcc/Makefile ] ; then \ |
| 900 r=`${PWD_COMMAND}` ; export r ; \ | 899 r=`${PWD_COMMAND}` ; export r ; \ |
| 901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 902 $(HOST_EXPORTS) \ | 901 $(HOST_EXPORTS) \ |
| 903 (cd ./gcc && \ | 902 (cd ./gcc && \ |
| 904 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ | 903 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ |
| 905 else \ | 904 else \ |
| 906 true ; \ | 905 true ; \ |
| 907 fi | 906 fi |
| 908 | 907 |
| 909 # install-no-fixedincludes is used because Cygnus can not distribute | 908 # install-no-fixedincludes is used to allow the elaboration of binary packages |
| 910 # the fixed header files. | 909 # suitable for distribution, where we cannot include the fixed system header |
| 910 # files. |
| 911 .PHONY: install-no-fixedincludes | 911 .PHONY: install-no-fixedincludes |
| 912 install-no-fixedincludes: installdirs install-host-nogcc \ | 912 install-no-fixedincludes: installdirs install-host-nogcc \ |
| 913 » install-target gcc-no-fixedincludes | 913 » install-target gcc-install-no-fixedincludes |
| 914 | 914 |
| 915 .PHONY: install-strip | 915 .PHONY: install-strip |
| 916 install-strip: | 916 install-strip: |
| 917 @: $(MAKE); $(unstage) | 917 @: $(MAKE); $(unstage) |
| 918 @r=`${PWD_COMMAND}`; export r; \ | 918 @r=`${PWD_COMMAND}`; export r; \ |
| 919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 920 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-
strip-target | 920 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-
strip-target |
| 921 | 921 |
| 922 .PHONY: install-strip-host | 922 .PHONY: install-strip-host |
| 923 install-strip-host: [+ | 923 install-strip-host: [+ |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 @if [+prefix+][+module+] | 1077 @if [+prefix+][+module+] |
| 1078 TARGET-[+prefix+][+module+]=[+ | 1078 TARGET-[+prefix+][+module+]=[+ |
| 1079 IF all_target +][+all_target+][+ ELSE +]all[+ ENDIF all_target +] | 1079 IF all_target +][+all_target+][+ ELSE +]all[+ ENDIF all_target +] |
| 1080 maybe-all-[+prefix+][+module+]: all-[+prefix+][+module+] | 1080 maybe-all-[+prefix+][+module+]: all-[+prefix+][+module+] |
| 1081 all-[+prefix+][+module+]: configure-[+prefix+][+module+][+ IF bootstrap +][+ ELS
E +] | 1081 all-[+prefix+][+module+]: configure-[+prefix+][+module+][+ IF bootstrap +][+ ELS
E +] |
| 1082 @: $(MAKE); $(unstage)[+ ENDIF bootstrap +] | 1082 @: $(MAKE); $(unstage)[+ ENDIF bootstrap +] |
| 1083 @r=`${PWD_COMMAND}`; export r; \ | 1083 @r=`${PWD_COMMAND}`; export r; \ |
| 1084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 1085 [+exports+] [+extra_exports+] \ | 1085 [+exports+] [+extra_exports+] \ |
| 1086 (cd [+subdir+]/[+module+] && \ | 1086 (cd [+subdir+]/[+module+] && \ |
| 1087 » $(MAKE) $(BASE_FLAGS_TO_PASS) [+args+] [+extra_make_flags+] \ | 1087 » $(MAKE) $(BASE_FLAGS_TO_PASS) [+args+] [+stage1_args+] [+extra_make_fl
ags+] \ |
| 1088 $(TARGET-[+prefix+][+module+])) | 1088 $(TARGET-[+prefix+][+module+])) |
| 1089 @endif [+prefix+][+module+] | 1089 @endif [+prefix+][+module+] |
| 1090 | 1090 |
| 1091 [+ IF bootstrap +] | 1091 [+ IF bootstrap +] |
| 1092 [+ FOR bootstrap_stage +] | 1092 [+ FOR bootstrap_stage +] |
| 1093 .PHONY: all-stage[+id+]-[+prefix+][+module+] maybe-all-stage[+id+]-[+prefix+][+m
odule+] | 1093 .PHONY: all-stage[+id+]-[+prefix+][+module+] maybe-all-stage[+id+]-[+prefix+][+m
odule+] |
| 1094 .PHONY: clean-stage[+id+]-[+prefix+][+module+] maybe-clean-stage[+id+]-[+prefix+
][+module+] | 1094 .PHONY: clean-stage[+id+]-[+prefix+][+module+] maybe-clean-stage[+id+]-[+prefix+
][+module+] |
| 1095 maybe-all-stage[+id+]-[+prefix+][+module+]: | 1095 maybe-all-stage[+id+]-[+prefix+][+module+]: |
| 1096 maybe-clean-stage[+id+]-[+prefix+][+module+]: | 1096 maybe-clean-stage[+id+]-[+prefix+][+module+]: |
| 1097 @if [+prefix+][+module+]-bootstrap | 1097 @if [+prefix+][+module+]-bootstrap |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1110 CFLAGS="$(CFLAGS_FOR_TARGET)" \ | 1110 CFLAGS="$(CFLAGS_FOR_TARGET)" \ |
| 1111 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ | 1111 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \ |
| 1112 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"[+ ELSE prefix +] \ | 1112 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"[+ ELSE prefix +] \ |
| 1113 CFLAGS="$(STAGE[+id+]_CFLAGS)" \ | 1113 CFLAGS="$(STAGE[+id+]_CFLAGS)" \ |
| 1114 CXXFLAGS="$(STAGE[+id+]_CXXFLAGS)"[+ IF prev +] \ | 1114 CXXFLAGS="$(STAGE[+id+]_CXXFLAGS)"[+ IF prev +] \ |
| 1115 LIBCFLAGS="$(STAGE[+id+]_CFLAGS)"[+ ELSE prev +] \ | 1115 LIBCFLAGS="$(STAGE[+id+]_CFLAGS)"[+ ELSE prev +] \ |
| 1116 LIBCFLAGS="$(LIBCFLAGS)"[+ ENDIF prev +][+ ENDIF prefix +] \ | 1116 LIBCFLAGS="$(LIBCFLAGS)"[+ ENDIF prev +][+ ENDIF prefix +] \ |
| 1117 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | 1117 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ |
| 1118 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ | 1118 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ |
| 1119 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ | 1119 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \ |
| 1120 » » [+args+] [+ | 1120 » » [+args+] [+IF prev +][+poststage1_args+][+ ELSE prev +] \ |
| 1121 » » IF prev +][+poststage1_args+][+ ENDIF prev | 1121 » » [+stage1_args+][+ ENDIF prev +] [+extra_make_flags+] \ |
| 1122 » » +] [+extra_make_flags+] \ | |
| 1123 TFLAGS="$(STAGE[+id+]_TFLAGS)" \ | 1122 TFLAGS="$(STAGE[+id+]_TFLAGS)" \ |
| 1124 $(TARGET-stage[+id+]-[+prefix+][+module+]) | 1123 $(TARGET-stage[+id+]-[+prefix+][+module+]) |
| 1125 | 1124 |
| 1126 maybe-clean-stage[+id+]-[+prefix+][+module+]: clean-stage[+id+]-[+prefix+][+modu
le+] | 1125 maybe-clean-stage[+id+]-[+prefix+][+module+]: clean-stage[+id+]-[+prefix+][+modu
le+] |
| 1127 clean-stage[+id+]: clean-stage[+id+]-[+prefix+][+module+] | 1126 clean-stage[+id+]: clean-stage[+id+]-[+prefix+][+module+] |
| 1128 clean-stage[+id+]-[+prefix+][+module+]: | 1127 clean-stage[+id+]-[+prefix+][+module+]: |
| 1129 @if [ $(current_stage) = stage[+id+] ]; then \ | 1128 @if [ $(current_stage) = stage[+id+] ]; then \ |
| 1130 [ -f [+subdir+]/[+module+]/Makefile ] || exit 0; \ | 1129 [ -f [+subdir+]/[+module+]/Makefile ] || exit 0; \ |
| 1131 else \ | 1130 else \ |
| 1132 [ -f [+subdir+]/stage[+id+]-[+module+]/Makefile ] || exit 0; \ | 1131 [ -f [+subdir+]/stage[+id+]-[+module+]/Makefile ] || exit 0; \ |
| 1133 $(MAKE) stage[+id+]-start; \ | 1132 $(MAKE) stage[+id+]-start; \ |
| 1134 fi; \ | 1133 fi; \ |
| 1135 cd [+subdir+]/[+module+] && \ | 1134 cd [+subdir+]/[+module+] && \ |
| 1136 » $(MAKE) [+args+] [+ IF prev +] \ | 1135 » $(MAKE) [+args+] [+ IF prev +][+poststage1_args+][+ ELSE prev +] \ |
| 1137 » » [+poststage1_args+] [+ ENDIF prev +] \ | 1136 » [+stage1_args+][+ ENDIF prev +] [+extra_make_flags+] clean |
| 1138 » » [+extra_make_flags+] clean | |
| 1139 @endif [+prefix+][+module+]-bootstrap | 1137 @endif [+prefix+][+module+]-bootstrap |
| 1140 | 1138 |
| 1141 [+ ENDFOR bootstrap_stage +] | 1139 [+ ENDFOR bootstrap_stage +] |
| 1142 [+ ENDIF bootstrap +] | 1140 [+ ENDIF bootstrap +] |
| 1143 [+ ENDDEF +] | 1141 [+ ENDDEF +] |
| 1144 | 1142 |
| 1145 # -------------------------------------- | 1143 # -------------------------------------- |
| 1146 # Modules which run on the build machine | 1144 # Modules which run on the build machine |
| 1147 # -------------------------------------- | 1145 # -------------------------------------- |
| 1148 [+ FOR build_modules +] | 1146 [+ FOR build_modules +] |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1163 exports="$(HOST_EXPORTS)" | 1161 exports="$(HOST_EXPORTS)" |
| 1164 poststage1_exports="$(POSTSTAGE1_HOST_EXPORTS)" | 1162 poststage1_exports="$(POSTSTAGE1_HOST_EXPORTS)" |
| 1165 host_alias=(get "host" "${host_alias}") | 1163 host_alias=(get "host" "${host_alias}") |
| 1166 target_alias=(get "target" "${target_alias}") | 1164 target_alias=(get "target" "${target_alias}") |
| 1167 args="$(HOST_CONFIGARGS)" +] | 1165 args="$(HOST_CONFIGARGS)" +] |
| 1168 | 1166 |
| 1169 [+ all prefix="" subdir="$(HOST_SUBDIR)" | 1167 [+ all prefix="" subdir="$(HOST_SUBDIR)" |
| 1170 exports="$(HOST_EXPORTS)" | 1168 exports="$(HOST_EXPORTS)" |
| 1171 poststage1_exports="$(POSTSTAGE1_HOST_EXPORTS)" | 1169 poststage1_exports="$(POSTSTAGE1_HOST_EXPORTS)" |
| 1172 args="$(EXTRA_HOST_FLAGS)" | 1170 args="$(EXTRA_HOST_FLAGS)" |
| 1171 stage1_args="$(STAGE1_FLAGS_TO_PASS)" |
| 1173 poststage1_args="$(POSTSTAGE1_FLAGS_TO_PASS)" +] | 1172 poststage1_args="$(POSTSTAGE1_FLAGS_TO_PASS)" +] |
| 1174 | 1173 |
| 1175 .PHONY: check-[+module+] maybe-check-[+module+] | 1174 .PHONY: check-[+module+] maybe-check-[+module+] |
| 1176 maybe-check-[+module+]: | 1175 maybe-check-[+module+]: |
| 1177 @if [+module+] | 1176 @if [+module+] |
| 1178 maybe-check-[+module+]: check-[+module+] | 1177 maybe-check-[+module+]: check-[+module+] |
| 1179 [+ IF no_check +] | 1178 [+ IF no_check +] |
| 1180 check-[+module+]: | 1179 check-[+module+]: |
| 1181 [+ ELIF no_check_cross +] | 1180 [+ ELIF no_check_cross +] |
| 1182 # This module is only tested in a native toolchain. | 1181 # This module is only tested in a native toolchain. |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | 1399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ |
| 1401 "RANLIB=$${RANLIB}" \ | 1400 "RANLIB=$${RANLIB}" \ |
| 1402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}
" \ | 1401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}
" \ |
| 1403 [+extra_make_flags+] [+make_target+]) \ | 1402 [+extra_make_flags+] [+make_target+]) \ |
| 1404 || exit 1 | 1403 || exit 1 |
| 1405 [+ ENDIF +] | 1404 [+ ENDIF +] |
| 1406 @endif target-[+module+] | 1405 @endif target-[+module+] |
| 1407 [+ ENDFOR recursive_targets +] | 1406 [+ ENDFOR recursive_targets +] |
| 1408 [+ ENDFOR target_modules +] | 1407 [+ ENDFOR target_modules +] |
| 1409 | 1408 |
| 1410 @if target-libmudflap | 1409 @if target-libgomp |
| 1411 .PHONY: check-target-libmudflap-c++ | 1410 .PHONY: check-target-libgomp-c++ |
| 1412 check-target-libmudflap-c++: | 1411 check-target-libgomp-c++: |
| 1413 » $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++frags.exp" check-target-libmudf
lap | 1412 » $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp |
| 1414 | 1413 |
| 1415 @endif target-libmudflap | 1414 @endif target-libgomp |
| 1415 |
| 1416 @if target-libitm |
| 1417 .PHONY: check-target-libitm-c++ |
| 1418 check-target-libitm-c++: |
| 1419 » $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm |
| 1420 |
| 1421 @endif target-libitm |
| 1416 | 1422 |
| 1417 # ---------- | 1423 # ---------- |
| 1418 # GCC module | 1424 # GCC module |
| 1419 # ---------- | 1425 # ---------- |
| 1420 | 1426 |
| 1421 @if gcc-no-bootstrap | 1427 @if gcc-no-bootstrap |
| 1422 .PHONY: cross | 1428 .PHONY: cross |
| 1423 cross: all-build all-gas all-ld | 1429 cross: all-build all-gas all-ld |
| 1424 @r=`${PWD_COMMAND}`; export r; \ | 1430 @r=`${PWD_COMMAND}`; export r; \ |
| 1425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1436 [+ FOR languages +] | 1442 [+ FOR languages +] |
| 1437 .PHONY: check-gcc-[+language+] check-[+language+] | 1443 .PHONY: check-gcc-[+language+] check-[+language+] |
| 1438 check-gcc-[+language+]: | 1444 check-gcc-[+language+]: |
| 1439 r=`${PWD_COMMAND}`; export r; \ | 1445 r=`${PWD_COMMAND}`; export r; \ |
| 1440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 1441 $(HOST_EXPORTS) \ | 1447 $(HOST_EXPORTS) \ |
| 1442 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) [+gcc-check-target+]); | 1448 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) [+gcc-check-target+]); |
| 1443 check-[+language+]: check-gcc-[+language+][+ FOR lib-check-target +] [+ lib-chec
k-target +][+ ENDFOR lib-check-target +] | 1449 check-[+language+]: check-gcc-[+language+][+ FOR lib-check-target +] [+ lib-chec
k-target +][+ ENDFOR lib-check-target +] |
| 1444 [+ ENDFOR languages +] | 1450 [+ ENDFOR languages +] |
| 1445 | 1451 |
| 1446 # Install the gcc headers files, but not the fixed include files, | 1452 # The gcc part of install-no-fixedincludes, which relies on an intimate |
| 1447 # which Cygnus is not allowed to distribute. This rule is very | 1453 # knowledge of how a number of gcc internal targets (inter)operate. Delegate. |
| 1448 # dependent on the workings of the gcc Makefile.in. | 1454 .PHONY: gcc-install-no-fixedincludes |
| 1449 .PHONY: gcc-no-fixedincludes | 1455 gcc-install-no-fixedincludes: |
| 1450 gcc-no-fixedincludes: | |
| 1451 @if [ -f ./gcc/Makefile ]; then \ | 1456 @if [ -f ./gcc/Makefile ]; then \ |
| 1452 rm -rf gcc/tmp-include; \ | |
| 1453 mv gcc/include gcc/tmp-include 2>/dev/null; \ | |
| 1454 mkdir gcc/include; \ | |
| 1455 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \ | |
| 1456 touch gcc/stmp-fixinc gcc/include/fixed; \ | |
| 1457 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \ | |
| 1458 r=`${PWD_COMMAND}`; export r; \ | 1457 r=`${PWD_COMMAND}`; export r; \ |
| 1459 » s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \ | 1458 » s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
| 1460 $(HOST_EXPORTS) \ | 1459 $(HOST_EXPORTS) \ |
| 1461 » (cd ./gcc && \ | 1460 » (cd ./gcc \ |
| 1462 » $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ | 1461 » && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \ |
| 1463 » rm -rf gcc/include; \ | |
| 1464 » mv gcc/tmp-include gcc/include 2>/dev/null; \ | |
| 1465 else true; fi | 1462 else true; fi |
| 1466 @endif gcc | 1463 @endif gcc |
| 1467 | 1464 |
| 1468 # --------------------- | 1465 # --------------------- |
| 1469 # GCC bootstrap support | 1466 # GCC bootstrap support |
| 1470 # --------------------- | 1467 # --------------------- |
| 1471 | 1468 |
| 1472 # We track the current stage (the one in 'gcc') in the stage_current file. | 1469 # We track the current stage (the one in 'gcc') in the stage_current file. |
| 1473 # stage_last instead tracks the stage that was built last. These targets | 1470 # stage_last instead tracks the stage that was built last. These targets |
| 1474 # are dummy when toplevel bootstrap is not active. | 1471 # are dummy when toplevel bootstrap is not active. |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1894 | 1891 |
| 1895 # ------------------------------ | 1892 # ------------------------------ |
| 1896 # Special directives to GNU Make | 1893 # Special directives to GNU Make |
| 1897 # ------------------------------ | 1894 # ------------------------------ |
| 1898 | 1895 |
| 1899 # Don't pass command-line variables to submakes. | 1896 # Don't pass command-line variables to submakes. |
| 1900 .NOEXPORT: | 1897 .NOEXPORT: |
| 1901 MAKEOVERRIDES= | 1898 MAKEOVERRIDES= |
| 1902 | 1899 |
| 1903 # end of Makefile.in | 1900 # end of Makefile.in |
| OLD | NEW |