summaryrefslogtreecommitdiff
path: root/libm/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-09 00:21:19 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-09 00:21:19 +0000
commit2a0977528a6a7b8110199a9ed42cda5fba981fd9 (patch)
tree1d8d4b932934ff36aa40de2d06c07fe3ba7fc54a /libm/Makefile
parent51da40e78d19c791fa8e0e00f764137b0e5a9e36 (diff)
Patch from Simon Rowe to try and build asm libm code
only when HAS_FPU is set. If you don't have an FPU then usm FPU code isn't going to help much...
Diffstat (limited to 'libm/Makefile')
-rw-r--r--libm/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/libm/Makefile b/libm/Makefile
index 7723b180d..e93582a5f 100644
--- a/libm/Makefile
+++ b/libm/Makefile
@@ -34,10 +34,11 @@
TOPDIR=../
include $(TOPDIR)Rules.mak
+DIRS =
+ifeq ($(strip $(HAS_FPU)),y)
ifeq ($(TARGET_ARCH),$(wildcard $(TARGET_ARCH)))
DIRS = $(TARGET_ARCH)
-else
-DIRS =
+endif
endif
ALL_SUBDIRS = powerpc