summaryrefslogtreecommitdiff
path: root/libm/Makefile.in
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2010-12-17 08:11:12 +0100
committerCarmelo Amoroso <carmelo.amoroso@st.com>2010-12-17 08:17:14 +0100
commit5a1453f20c9ba7023f1836bdcd5ab06963f927a1 (patch)
tree4bc922995ebbeb02fa723433416026a6e8207e7a /libm/Makefile.in
parent6c6720bb831b14c77d3eb8f5f7061e095df6ea47 (diff)
libm_sh: Move fenv functions into sh4 sub-folder
Indeed fenv funxtions are SH4 specific, so move them into an SH4 specific sub-folder. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libm/Makefile.in')
-rw-r--r--libm/Makefile.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/libm/Makefile.in b/libm/Makefile.in
index 6f66c5644..a0b247981 100644
--- a/libm/Makefile.in
+++ b/libm/Makefile.in
@@ -44,9 +44,15 @@ libm_ARCH_DIR:=$(libm_DIR)/$(TARGET_ARCH)
libm_ARCH_OUT:=$(libm_OUT)/$(TARGET_ARCH)
endif
+ifneq ($(TARGET_SUBARCH),)
+libm_SUBARCH_DIR:=$(libm_DIR)/$(TARGET_ARCH)/$(TARGET_SUBARCH)
+libm_SUBARCH_OUT:=$(libm_OUT)/$(TARGET_ARCH)/$(TARGET_SUBARCH)
+endif
+
ifeq ($(UCLIBC_HAS_FPU),y)
ifeq ($(DO_C99_MATH),y)
-include $(libm_ARCH_DIR)/Makefile.arch
+-include $(libm_SUBARCH_DIR)/Makefile.arch
endif
endif
@@ -223,6 +229,7 @@ ifeq ($(TARGET_ARCH)-$(CONFIG_E500),powerpc-y)
CFLAGS-libm/$(TARGET_ARCH)/e500/ := $(CFLAGS-libm)
else
CFLAGS-libm/$(TARGET_ARCH)/ := $(CFLAGS-libm)
+CFLAGS-libm/$(TARGET_ARCH)/$(TARGET_SUBARCH)/ := $(CFLAGS-libm)
endif
# remove generic sources, if arch specific version is present