comparison Makefile.tpl @ 63:b7f97abdc517 gcc-4.6-20100522

update gcc from gcc-4.5.0 to gcc-4.6
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Mon, 24 May 2010 12:47:05 +0900
parents 77e2b8dfacca
children f6334be47118
comparison
equal deleted inserted replaced
56:3c8a44c06a95 63:b7f97abdc517
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 # 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
180 # directories built for the host system. 181 # directories built for the host system.
181 HOST_CONFIGARGS = @host_configargs@ 182 HOST_CONFIGARGS = @host_configargs@
182 # Host programs are put under this directory, which is . except if building 183 # Host programs are put under this directory, which is . except if building
183 # with srcdir=.. 184 # with srcdir=..
260 TARGET_SUBDIR = @target_subdir@ 261 TARGET_SUBDIR = @target_subdir@
261 # This is set by the configure script to the arguments to use when configuring 262 # This is set by the configure script to the arguments to use when configuring
262 # directories built for the target. 263 # directories built for the target.
263 TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)" 264 TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
264 # This is the list of variables to export in the environment when 265 # This is the list of variables to export in the environment when
265 # configuring subdirectories for the host system. 266 # configuring subdirectories for the target system.
266 BASE_TARGET_EXPORTS = \ 267 BASE_TARGET_EXPORTS = \
267 $(BASE_EXPORTS) \ 268 $(BASE_EXPORTS) \
268 AR="$(AR_FOR_TARGET)"; export AR; \ 269 AR="$(AR_FOR_TARGET)"; export AR; \
269 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \ 270 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
270 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \ 271 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
282 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \ 283 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
283 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ 284 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
284 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \ 285 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
285 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ 286 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
286 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \ 287 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
287 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); 288 @if gcc-bootstrap
289 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
290 @endif gcc-bootstrap
291 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
292 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
288 293
289 RAW_CXX_TARGET_EXPORTS = \ 294 RAW_CXX_TARGET_EXPORTS = \
290 $(BASE_TARGET_EXPORTS) \ 295 $(BASE_TARGET_EXPORTS) \
291 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ 296 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
292 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX; 297 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
764 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile 769 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
765 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES 770 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
766 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null 771 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
767 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null 772 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
768 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null 773 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
774 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
769 775
770 local-maintainer-clean: 776 local-maintainer-clean:
771 @echo "This command is intended for maintainers to use;" 777 @echo "This command is intended for maintainers to use;"
772 @echo "it deletes files that may require special tools to rebuild." 778 @echo "it deletes files that may require special tools to rebuild."
773 779