summaryrefslogtreecommitdiff
path: root/libm
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-20 02:11:06 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-20 02:11:06 +0000
commit9c9ea56612e9dd04d455c87c806f8e95744945d9 (patch)
tree5f70fd6299559ef62ed9739f3fc1db812c7841ab /libm
parentd4b5778bf85ba9bddbf40c3b05c379bd683146ab (diff)
move some generic arch rules up a level to remove duplication
Diffstat (limited to 'libm')
-rw-r--r--libm/Makefile.in5
-rw-r--r--libm/powerpc/Makefile.arch8
2 files changed, 4 insertions, 9 deletions
diff --git a/libm/Makefile.in b/libm/Makefile.in
index fa57e3374..60d880dba 100644
--- a/libm/Makefile.in
+++ b/libm/Makefile.in
@@ -29,6 +29,9 @@ LIBS-libm.so := $(LIBS)
libm_FULL_NAME := libm-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
+libm_ARCH_DIR:=$(top_srcdir)libm/$(TARGET_ARCH)
+libm_ARCH_OUT:=$(top_builddir)libm/$(TARGET_ARCH)
+
ifeq ($(UCLIBC_HAS_FPU),y)
ifeq ($(DO_C99_MATH),y)
-include $(top_srcdir)libm/$(TARGET_ARCH)/Makefile.arch
@@ -159,4 +162,4 @@ $(libm_MOBJ:.o=.os): $(libm_MSRC)
$(compile.m)
libm_clean:
- $(RM) $(libm_OUT)/*.{o,os,oS,a}
+ $(RM) $(libm_OUT)/*.{o,os,oS,a} $(libm_ARCH_OUT)/*.{o,os,oS}
diff --git a/libm/powerpc/Makefile.arch b/libm/powerpc/Makefile.arch
index 6615e901c..7c7600f80 100644
--- a/libm/powerpc/Makefile.arch
+++ b/libm/powerpc/Makefile.arch
@@ -5,9 +5,6 @@
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#
-libm_ARCH_DIR:=$(top_srcdir)libm/powerpc
-libm_ARCH_OUT:=$(top_builddir)libm/powerpc
-
libm_ARCH_SRC:=$(wildcard $(libm_ARCH_DIR)/*.c)
libm_ARCH_OBJ:=$(patsubst $(libm_ARCH_DIR)/%.c,$(libm_ARCH_OUT)/%.o,$(libm_ARCH_SRC))
@@ -19,8 +16,3 @@ else
libm-a-y+=$(libm_ARCH_OBJS)
endif
libm-so-y+=$(libm_ARCH_OBJS:.o=.os)
-
-objclean-y+=libm_arch_objclean
-
-libm_arch_objclean:
- $(RM) $(libm_ARCH_OUT)/*.{o,os}