kumquat-buildroot/toolchain/gcc/Makefile.in

98 lines
2.6 KiB
Makefile
Raw Normal View History

# gcc has a bunch of options that need to be shared with
# both gcc-uclibc-2.95.mk and gcc-uclibc-3.x.mk, and are
2007-08-22 14:35:41 +02:00
# use by other packages... So include them in this file
# and arrange to include it soon after invoking make from
# the top level.
GCC_VERSION:=$(strip $(subst ",, $(BR2_GCC_VERSION)))
2006-12-12 18:01:26 +01:00
#"))
TARGET_OPTIMIZATION:=$(strip $(subst ",, $(BR2_TARGET_OPTIMIZATION)))
2006-12-12 18:01:26 +01:00
#"))
EXTRA_GCC_CONFIG_OPTIONS:=$(strip $(subst ",, $(BR2_EXTRA_GCC_CONFIG_OPTIONS)))
2006-12-12 18:01:26 +01:00
#"))
2007-07-29 19:51:32 +02:00
# AVR32 GCC configuration
ifeq ($(strip $(BR2_avr32)),y)
2007-07-29 19:51:32 +02:00
EXTRA_GCC_CONFIG_OPTIONS+=--disable-libmudflap
endif
2006-04-13 07:50:01 +02:00
ifeq ($(strip $(subst ",, $(BR2_GCC_IS_SNAP))),y)
2006-12-12 18:01:26 +01:00
#"))
2006-04-13 07:50:01 +02:00
GCC_SNAP_DATE:=$(strip $(subst ",, $(BR2_GCC_SNAP_DATE)))
2006-12-12 18:01:26 +01:00
#"))
2006-04-13 07:50:01 +02:00
else
GCC_SNAP_DATE:=
endif
2006-12-12 18:01:26 +01:00
#")))
ifeq ($(strip $(BR2_GCC_USE_SJLJ_EXCEPTIONS)),y)
GCC_USE_SJLJ_EXCEPTIONS:=--enable-sjlj-exceptions
endif
2004-10-09 23:28:56 +02:00
ifeq ($(BR2_SOFT_FLOAT),y)
# gcc 3.4.x soft float configuration is different than previous versions.
ifeq ($(findstring x3.4.,x$(GCC_VERSION)),x3.4.)
SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
else
SOFT_FLOAT_CONFIG_OPTION:=--without-float
endif
2005-05-01 00:59:05 +02:00
# again... there must be a better way
ifeq ($(findstring x4.,x$(GCC_VERSION)),x4.)
2005-05-01 00:59:05 +02:00
SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
ifeq ($(BR2_SOFT_FLOAT_FP),y)
TARGET_SOFT_FLOAT:=-mfloat-abi=softfp
else # no fp at all
TARGET_SOFT_FLOAT:=-mfloat-abi=soft
2005-05-01 00:59:05 +02:00
endif
else # not gcc-4.x
TARGET_SOFT_FLOAT:=-msoft-float
endif
ARCH_FPU_SUFFIX:=_nofpu
else # no softfloat support
SOFT_FLOAT_CONFIG_OPTION:=
TARGET_SOFT_FLOAT:=
ARCH_FPU_SUFFIX:=
# some additional defaults
ifneq ($(strip $(subst ",,$(BR2_GCC_TARGET_ARCH))),)
# ")))
GCC_WITH_ARCH:=--with-arch=$(BR2_GCC_TARGET_ARCH)
endif
ifneq ($(strip $(subst ",,$(BR2_GCC_TARGET_TUNE))),)
# ")))
GCC_WITH_TUNE:=--with-tune=$(BR2_GCC_TARGET_TUNE)
endif
ifneq ($(strip $(subst ",,$(BR2_GCC_TARGET_ABI))),)
# ")))
GCC_WITH_ABI:=--with-abi=$(BR2_GCC_TARGET_ABI)
endif
endif
TARGET_GCC_FLAGS= CFLAGS_FOR_TARGET="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
CXXFLAGS_FOR_TARGET="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
BOOT_CFLAGS="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)"
2004-10-09 08:13:40 +02:00
ifeq ($(strip $(BR2_PACKAGE_GCC_TARGET)),y)
2007-08-26 23:00:56 +02:00
EXTRA_TARGET_GCC_CONFIG_OPTIONS:=
# AVR32 target GCC configuration
ifeq ($(strip $(BR2_avr32)),y)
EXTRA_TARGET_GCC_CONFIG_OPTIONS+=--disable-libmudflap
endif
# and finally pull in config opts from the user
EXTRA_TARGET_GCC_CONFIG_OPTIONS+=$(strip $(subst ",, $(BR2_EXTRA_TARGET_GCC_CONFIG_OPTIONS)))
#"))
ifeq ($(BR2_PREFER_IMA),y)
# >= 4.x
ifneq ($(findstring x3.,x$(GCC_VERSION)),x3.)
EXTRA_TARGET_GCC_CONFIG_OPTIONS+=--enable-intermodule
endif
endif # BR2_PREFER_IMA=y
2004-10-09 08:13:40 +02:00
TARGETS+=gcc_target
endif