summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-01-17 19:53:46 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-01-17 19:53:46 +0000
commit3446174faaee71cf3468dbae56dd6c3c9d9e0932 (patch)
tree4300526b829e31529bb6a837d437565863b675fe
parentecfdc4bc31504748710e4ca6cc45885b215d6171 (diff)
- use libm_DIR and libm_OUT
-rw-r--r--libm/Makefile.in17
1 files changed, 8 insertions, 9 deletions
diff --git a/libm/Makefile.in b/libm/Makefile.in
index eb905e06a..1a8f82710 100644
--- a/libm/Makefile.in
+++ b/libm/Makefile.in
@@ -29,20 +29,22 @@ LIBS-libm.so := $(LIBS)
libm_FULL_NAME := libm-$(VERSION).so
+libm_DIR:=$(top_srcdir)libm
+libm_OUT:=$(top_builddir)libm
# Fix builds for powerpc as there are different cores in this
# section now.`
ifeq ($(TARGET_ARCH),powerpc)
ifeq ($(CONFIG_E500),y)
-libm_ARCH_DIR:=$(top_srcdir)libm/$(TARGET_ARCH)/e500
-libm_ARCH_OUT:=$(top_builddir)libm/$(TARGET_ARCH)/e500
+libm_ARCH_DIR:=$(libm_DIR)/$(TARGET_ARCH)/e500
+libm_ARCH_OUT:=$(libm_OUT)/$(TARGET_ARCH)/e500
else
-libm_ARCH_DIR:=$(top_srcdir)libm/$(TARGET_ARCH)/classic
-libm_ARCH_OUT:=$(top_builddir)libm/$(TARGET_ARCH)/classic
+libm_ARCH_DIR:=$(libm_DIR)/$(TARGET_ARCH)/classic
+libm_ARCH_OUT:=$(libm_OUT)/$(TARGET_ARCH)/classic
endif
else
-libm_ARCH_DIR:=$(top_srcdir)libm/$(TARGET_ARCH)
-libm_ARCH_OUT:=$(top_builddir)libm/$(TARGET_ARCH)
+libm_ARCH_DIR:=$(libm_DIR)/$(TARGET_ARCH)
+libm_ARCH_OUT:=$(libm_OUT)/$(TARGET_ARCH)
endif
libm_ARCH_fpu_DIR:=$(libm_ARCH_DIR)/fpu
@@ -97,9 +99,6 @@ libm_CSRC := \
FL_MOBJ := sqrtf.o
endif
-libm_DIR := $(top_srcdir)libm
-libm_OUT := $(top_builddir)libm
-
# assume that arch specific versions are provided as single sources/objects
ifeq ($(UCLIBC_HAS_FPU),y)
ifeq ($(DO_C99_MATH),y)