Mercurial > hg > CbC > CbC_gcc
comparison Makefile.tpl @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | b7f97abdc517 |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
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 | 9 # 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
10 # Free Software Foundation | 10 # Free Software Foundation |
11 # | 11 # |
12 # This file is free software; you can redistribute it and/or modify | 12 # This file is free software; you can redistribute it and/or modify |
13 # it under the terms of the GNU General Public License as published by | 13 # it under the terms of the GNU General Public License as published by |
14 # the Free Software Foundation; either version 3 of the License, or | 14 # the Free Software Foundation; either version 3 of the License, or |
158 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | 158 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ |
159 CXX="$(CXX_FOR_BUILD)"; export CXX; \ | 159 CXX="$(CXX_FOR_BUILD)"; export CXX; \ |
160 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ | 160 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ |
161 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \ | 161 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \ |
162 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \ | 162 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \ |
163 GOC="$(GOC_FOR_BUILD)"; export GOC; \ | |
164 GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \ | |
163 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ | 165 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ |
164 LD="$(LD_FOR_BUILD)"; export LD; \ | 166 LD="$(LD_FOR_BUILD)"; export LD; \ |
165 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ | 167 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ |
166 NM="$(NM_FOR_BUILD)"; export NM; \ | 168 NM="$(NM_FOR_BUILD)"; export NM; \ |
167 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ | 169 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ |
194 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | 196 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ |
195 CXX="$(CXX)"; export CXX; \ | 197 CXX="$(CXX)"; export CXX; \ |
196 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | 198 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ |
197 GCJ="$(GCJ)"; export GCJ; \ | 199 GCJ="$(GCJ)"; export GCJ; \ |
198 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \ | 200 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \ |
201 GOC="$(GOC)"; export GOC; \ | |
199 AR="$(AR)"; export AR; \ | 202 AR="$(AR)"; export AR; \ |
200 AS="$(AS)"; export AS; \ | 203 AS="$(AS)"; export AS; \ |
201 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | 204 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ |
202 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | 205 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ |
203 LD="$(LD)"; export LD; \ | 206 LD="$(LD)"; export LD; \ |
236 @if target-libstdc++-v3-bootstrap | 239 @if target-libstdc++-v3-bootstrap |
237 # Override the above if we're bootstrapping C++. | 240 # Override the above if we're bootstrapping C++. |
238 POSTSTAGE1_CXX_EXPORT = \ | 241 POSTSTAGE1_CXX_EXPORT = \ |
239 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \ | 242 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \ |
240 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \ | 243 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \ |
244 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \ | |
241 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \ | 245 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \ |
242 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \ | 246 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \ |
243 -I$$s/libstdc++-v3/libsupc++ \ | 247 -I$$s/libstdc++-v3/libsupc++ \ |
244 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs"; export CXX; \ | 248 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs"; export CXX; \ |
245 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD; | 249 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD; |
273 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | 277 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ |
274 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | 278 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \ |
275 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | 279 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ |
276 GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \ | 280 GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \ |
277 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \ | 281 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \ |
282 GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \ | |
278 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | 283 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ |
279 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \ | 284 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \ |
280 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | 285 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ |
281 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \ | 286 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \ |
282 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \ | 287 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \ |
339 CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@ | 344 CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@ |
340 CXX_FOR_BUILD = @CXX_FOR_BUILD@ | 345 CXX_FOR_BUILD = @CXX_FOR_BUILD@ |
341 DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@ | 346 DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@ |
342 GCJ_FOR_BUILD = @GCJ_FOR_BUILD@ | 347 GCJ_FOR_BUILD = @GCJ_FOR_BUILD@ |
343 GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@ | 348 GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@ |
349 GOC_FOR_BUILD = @GOC_FOR_BUILD@ | |
344 LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ | 350 LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ |
345 LD_FOR_BUILD = @LD_FOR_BUILD@ | 351 LD_FOR_BUILD = @LD_FOR_BUILD@ |
346 NM_FOR_BUILD = @NM_FOR_BUILD@ | 352 NM_FOR_BUILD = @NM_FOR_BUILD@ |
347 RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@ | 353 RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@ |
348 WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@ | 354 WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@ |
401 CFLAGS = @CFLAGS@ | 407 CFLAGS = @CFLAGS@ |
402 LDFLAGS = @LDFLAGS@ | 408 LDFLAGS = @LDFLAGS@ |
403 LIBCFLAGS = $(CFLAGS) | 409 LIBCFLAGS = $(CFLAGS) |
404 CXXFLAGS = @CXXFLAGS@ | 410 CXXFLAGS = @CXXFLAGS@ |
405 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates | 411 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates |
412 GOCFLAGS = $(CFLAGS) | |
406 | 413 |
407 TFLAGS = | 414 TFLAGS = |
408 | 415 |
409 # Defaults for all stages; some are overridden below. | 416 # Defaults for all stages; some are overridden below. |
410 | 417 |
466 GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@ | 473 GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@ |
467 CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@ | 474 CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@ |
468 RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@ | 475 RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@ |
469 GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@ | 476 GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@ |
470 GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@ | 477 GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@ |
478 GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@ | |
471 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@ | 479 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@ |
472 LD_FOR_TARGET=@LD_FOR_TARGET@ | 480 LD_FOR_TARGET=@LD_FOR_TARGET@ |
473 | 481 |
474 LIPO_FOR_TARGET=@LIPO_FOR_TARGET@ | 482 LIPO_FOR_TARGET=@LIPO_FOR_TARGET@ |
475 NM_FOR_TARGET=@NM_FOR_TARGET@ | 483 NM_FOR_TARGET=@NM_FOR_TARGET@ |
487 CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@ | 495 CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@ |
488 | 496 |
489 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) | 497 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) |
490 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates | 498 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates |
491 LDFLAGS_FOR_TARGET = | 499 LDFLAGS_FOR_TARGET = |
500 GOCFLAGS_FOR_TARGET = -O2 -g | |
492 | 501 |
493 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@ | 502 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@ |
494 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ | 503 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ |
495 DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@ | 504 DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@ |
496 | 505 |
510 @ospace_frag@ | 519 @ospace_frag@ |
511 @host_makefile_frag@ | 520 @host_makefile_frag@ |
512 ### | 521 ### |
513 | 522 |
514 # This is the list of directories that may be needed in RPATH_ENVVAR | 523 # This is the list of directories that may be needed in RPATH_ENVVAR |
515 # so that prorgams built for the target machine work. | 524 # so that programs built for the target machine work. |
516 TARGET_LIB_PATH = [+ FOR target_modules +][+ | 525 TARGET_LIB_PATH = [+ FOR target_modules +][+ |
517 IF lib_path +]$(TARGET_LIB_PATH_[+module+])[+ ENDIF lib_path +][+ | 526 IF lib_path +]$(TARGET_LIB_PATH_[+module+])[+ ENDIF lib_path +][+ |
518 ENDFOR target_modules +]$(HOST_LIB_PATH_gcc) | 527 ENDFOR target_modules +]$(HOST_LIB_PATH_gcc) |
519 [+ FOR target_modules +][+ IF lib_path +] | 528 [+ FOR target_modules +][+ IF lib_path +] |
520 @if target-[+module+] | 529 @if target-[+module+] |
540 $$r/$(HOST_SUBDIR)/[+module+]/[+lib_path+]:[+ IF bootstrap | 549 $$r/$(HOST_SUBDIR)/[+module+]/[+lib_path+]:[+ IF bootstrap |
541 +]$$r/$(HOST_SUBDIR)/prev-[+module+]/[+lib_path+]:[+ ENDIF bootstrap +] | 550 +]$$r/$(HOST_SUBDIR)/prev-[+module+]/[+lib_path+]:[+ ENDIF bootstrap +] |
542 @endif [+module+] | 551 @endif [+module+] |
543 [+ ENDIF lib_path +][+ ENDFOR host_modules +] | 552 [+ ENDIF lib_path +][+ ENDFOR host_modules +] |
544 | 553 |
554 CXX_FOR_TARGET_FLAG_TO_PASS = \ | |
555 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" | |
556 @if target-libstdc++-v3 | |
557 # CXX_FOR_TARGET is tricky to get right for target libs that require a | |
558 # functional C++ compiler. When we recurse, if we expand | |
559 # CXX_FOR_TARGET before configuring libstdc++-v3, we won't get | |
560 # libstdc++ include flags from the script. Instead, we get an | |
561 # -funconfigured-* word, so that we'll get errors if this invalid C++ | |
562 # command line is used for anything, but also so that we can use the | |
563 # word to decide whether or not to pass on this CXX_FOR_TARGET. If we | |
564 # don't pass it on, sub-make will use the default definition, that | |
565 # re-expands it at the time of use, so we'll get it right when we need | |
566 # it. One potential exception is the expansion of CXX_FOR_TARGET | |
567 # passed down as part of CXX within TARGET_FLAGS, but this wouldn't | |
568 # really work, for C++ host programs can't depend on the current-stage | |
569 # C++ target library. | |
570 CXX_FOR_TARGET_FLAG_TO_PASS = \ | |
571 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi) | |
572 @endif target-libstdc++-v3 | |
573 | |
545 # Flags to pass down to all sub-makes. | 574 # Flags to pass down to all sub-makes. |
546 BASE_FLAGS_TO_PASS =[+ FOR flags_to_pass +][+ IF optional +] \ | 575 BASE_FLAGS_TO_PASS =[+ FOR flags_to_pass +][+ IF optional +] \ |
547 "`echo '[+flag+]=$([+flag+])' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"[+ ELSE optional +] \ | 576 "`echo '[+flag+]=$([+flag+])' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"[+ ELSE optional +] \ |
548 "[+flag+]=$([+flag+])"[+ ENDIF optional+][+ ENDFOR flags_to_pass +][+ FOR bootstrap-stage +] \ | 577 "[+flag+]=$([+flag+])"[+ ENDIF optional+][+ ENDFOR flags_to_pass +][+ FOR bootstrap-stage +] \ |
549 "STAGE[+id+]_CFLAGS=$(STAGE[+id+]_CFLAGS)" \ | 578 "STAGE[+id+]_CFLAGS=$(STAGE[+id+]_CFLAGS)" \ |
550 "STAGE[+id+]_CXXFLAGS=$(STAGE[+id+]_CXXFLAGS)" \ | 579 "STAGE[+id+]_CXXFLAGS=$(STAGE[+id+]_CXXFLAGS)" \ |
551 "STAGE[+id+]_TFLAGS=$(STAGE[+id+]_TFLAGS)"[+ ENDFOR bootstrap-stage +] \ | 580 "STAGE[+id+]_TFLAGS=$(STAGE[+id+]_TFLAGS)"[+ ENDFOR bootstrap-stage +] \ |
581 $(CXX_FOR_TARGET_FLAG_TO_PASS) \ | |
552 "TFLAGS=$(TFLAGS)" \ | 582 "TFLAGS=$(TFLAGS)" \ |
553 "CONFIG_SHELL=$(SHELL)" \ | 583 "CONFIG_SHELL=$(SHELL)" \ |
554 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" | 584 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" |
555 | 585 |
556 # We leave this in just in case, but it is not needed anymore. | 586 # We leave this in just in case, but it is not needed anymore. |
564 'CC=$(CC)' \ | 594 'CC=$(CC)' \ |
565 'CXX=$(CXX)' \ | 595 'CXX=$(CXX)' \ |
566 'DLLTOOL=$(DLLTOOL)' \ | 596 'DLLTOOL=$(DLLTOOL)' \ |
567 'GCJ=$(GCJ)' \ | 597 'GCJ=$(GCJ)' \ |
568 'GFORTRAN=$(GFORTRAN)' \ | 598 'GFORTRAN=$(GFORTRAN)' \ |
599 'GOC=$(GOC)' \ | |
569 'LD=$(LD)' \ | 600 'LD=$(LD)' \ |
570 'LIPO=$(LIPO)' \ | 601 'LIPO=$(LIPO)' \ |
571 'NM=$(NM)' \ | 602 'NM=$(NM)' \ |
572 'OBJDUMP=$(OBJDUMP)' \ | 603 'OBJDUMP=$(OBJDUMP)' \ |
573 'RANLIB=$(RANLIB)' \ | 604 'RANLIB=$(RANLIB)' \ |
612 'CXX=$$(CXX_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ | 643 'CXX=$$(CXX_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ |
613 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ | 644 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ |
614 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ | 645 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ |
615 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ | 646 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ |
616 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ | 647 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ |
648 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \ | |
649 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \ | |
617 'LD=$(COMPILER_LD_FOR_TARGET)' \ | 650 'LD=$(COMPILER_LD_FOR_TARGET)' \ |
618 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \ | 651 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \ |
619 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ | 652 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ |
620 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ | 653 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ |
621 'NM=$(COMPILER_NM_FOR_TARGET)' \ | 654 'NM=$(COMPILER_NM_FOR_TARGET)' \ |
874 # install-no-fixedincludes is used because Cygnus can not distribute | 907 # install-no-fixedincludes is used because Cygnus can not distribute |
875 # the fixed header files. | 908 # the fixed header files. |
876 .PHONY: install-no-fixedincludes | 909 .PHONY: install-no-fixedincludes |
877 install-no-fixedincludes: installdirs install-host-nogcc \ | 910 install-no-fixedincludes: installdirs install-host-nogcc \ |
878 install-target gcc-no-fixedincludes | 911 install-target gcc-no-fixedincludes |
912 | |
913 .PHONY: install-strip | |
914 install-strip: | |
915 @: $(MAKE); $(unstage) | |
916 @r=`${PWD_COMMAND}`; export r; \ | |
917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
918 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target | |
919 | |
920 .PHONY: install-strip-host | |
921 install-strip-host: [+ | |
922 FOR host_modules +] \ | |
923 maybe-install-strip-[+module+][+ | |
924 ENDFOR host_modules +] | |
925 | |
926 .PHONY: install-strip-target | |
927 install-strip-target: [+ | |
928 FOR target_modules +] \ | |
929 maybe-install-strip-target-[+module+][+ | |
930 ENDFOR target_modules +] | |
931 | |
879 | 932 |
880 ### other supporting targets | 933 ### other supporting targets |
881 | 934 |
882 MAKEDIRS= \ | 935 MAKEDIRS= \ |
883 $(DESTDIR)$(prefix) \ | 936 $(DESTDIR)$(prefix) \ |
1160 (cd $(HOST_SUBDIR)/[+module+] && \ | 1213 (cd $(HOST_SUBDIR)/[+module+] && \ |
1161 $(MAKE) $(FLAGS_TO_PASS) [+extra_make_flags+] install) | 1214 $(MAKE) $(FLAGS_TO_PASS) [+extra_make_flags+] install) |
1162 [+ ENDIF no_install +] | 1215 [+ ENDIF no_install +] |
1163 @endif [+module+] | 1216 @endif [+module+] |
1164 | 1217 |
1218 .PHONY: install-strip-[+module+] maybe-install-strip-[+module+] | |
1219 maybe-install-strip-[+module+]: | |
1220 @if [+module+] | |
1221 maybe-install-strip-[+module+]: install-strip-[+module+] | |
1222 [+ IF no_install +] | |
1223 install-strip-[+module+]: | |
1224 [+ ELSE install +] | |
1225 install-strip-[+module+]: installdirs | |
1226 @: $(MAKE); $(unstage) | |
1227 @r=`${PWD_COMMAND}`; export r; \ | |
1228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | |
1229 $(HOST_EXPORTS) \ | |
1230 (cd $(HOST_SUBDIR)/[+module+] && \ | |
1231 $(MAKE) $(FLAGS_TO_PASS) [+extra_make_flags+] install-strip) | |
1232 [+ ENDIF no_install +] | |
1233 @endif [+module+] | |
1234 | |
1165 # Other targets (info, dvi, pdf, etc.) | 1235 # Other targets (info, dvi, pdf, etc.) |
1166 [+ FOR recursive_targets +] | 1236 [+ FOR recursive_targets +] |
1167 .PHONY: maybe-[+make_target+]-[+module+] [+make_target+]-[+module+] | 1237 .PHONY: maybe-[+make_target+]-[+module+] [+make_target+]-[+module+] |
1168 maybe-[+make_target+]-[+module+]: | 1238 maybe-[+make_target+]-[+module+]: |
1169 @if [+module+] | 1239 @if [+module+] |
1269 ELSE normal_cxx +] | 1339 ELSE normal_cxx +] |
1270 $(NORMAL_TARGET_EXPORTS) \[+ | 1340 $(NORMAL_TARGET_EXPORTS) \[+ |
1271 ENDIF raw_cxx +] | 1341 ENDIF raw_cxx +] |
1272 (cd $(TARGET_SUBDIR)/[+module+] && \ | 1342 (cd $(TARGET_SUBDIR)/[+module+] && \ |
1273 $(MAKE) $(TARGET_FLAGS_TO_PASS) [+extra_make_flags+] install) | 1343 $(MAKE) $(TARGET_FLAGS_TO_PASS) [+extra_make_flags+] install) |
1344 [+ ENDIF no_install +] | |
1345 @endif target-[+module+] | |
1346 | |
1347 .PHONY: install-strip-target-[+module+] maybe-install-strip-target-[+module+] | |
1348 maybe-install-strip-target-[+module+]: | |
1349 @if target-[+module+] | |
1350 maybe-install-strip-target-[+module+]: install-strip-target-[+module+] | |
1351 [+ IF no_install +] | |
1352 # Dummy target for uninstallable. | |
1353 install-strip-target-[+module+]: | |
1354 [+ ELSE install +] | |
1355 install-strip-target-[+module+]: installdirs | |
1356 @: $(MAKE); $(unstage) | |
1357 @r=`${PWD_COMMAND}`; export r; \ | |
1358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \[+ | |
1359 IF raw_cxx +] | |
1360 $(RAW_CXX_TARGET_EXPORTS) \[+ | |
1361 ELSE normal_cxx +] | |
1362 $(NORMAL_TARGET_EXPORTS) \[+ | |
1363 ENDIF raw_cxx +] | |
1364 (cd $(TARGET_SUBDIR)/[+module+] && \ | |
1365 $(MAKE) $(TARGET_FLAGS_TO_PASS) [+extra_make_flags+] install-strip) | |
1274 [+ ENDIF no_install +] | 1366 [+ ENDIF no_install +] |
1275 @endif target-[+module+] | 1367 @endif target-[+module+] |
1276 | 1368 |
1277 # Other targets (info, dvi, pdf, etc.) | 1369 # Other targets (info, dvi, pdf, etc.) |
1278 [+ FOR recursive_targets +] | 1370 [+ FOR recursive_targets +] |
1337 check-gcc-[+language+]: | 1429 check-gcc-[+language+]: |
1338 r=`${PWD_COMMAND}`; export r; \ | 1430 r=`${PWD_COMMAND}`; export r; \ |
1339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ | 1431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ |
1340 $(HOST_EXPORTS) \ | 1432 $(HOST_EXPORTS) \ |
1341 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) [+gcc-check-target+]); | 1433 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) [+gcc-check-target+]); |
1342 check-[+language+]: check-gcc-[+language+][+ IF lib-check-target +] [+ lib-check-target +][+ ENDIF lib-check-target +] | 1434 check-[+language+]: check-gcc-[+language+][+ FOR lib-check-target +] [+ lib-check-target +][+ ENDFOR lib-check-target +] |
1343 [+ ENDFOR languages +] | 1435 [+ ENDFOR languages +] |
1344 | 1436 |
1345 # Install the gcc headers files, but not the fixed include files, | 1437 # Install the gcc headers files, but not the fixed include files, |
1346 # which Cygnus is not allowed to distribute. This rule is very | 1438 # which Cygnus is not allowed to distribute. This rule is very |
1347 # dependent on the workings of the gcc Makefile.in. | 1439 # dependent on the workings of the gcc Makefile.in. |