summaryrefslogtreecommitdiff
path: root/libm/Makefile.in
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-28 22:30:40 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-28 22:30:40 +0000
commitf48c471eecd1a7790b5e54f35cdcf16e736aebb2 (patch)
tree18d9e299f25f57ab72ad17611e6473e2fcd250a1 /libm/Makefile.in
parent1d07bee82a4ca6fb7d0f3e783c2487df49d5c382 (diff)
Change Makefiles that are not fully IMA to allow it to be used w/ a DOMULTI config option
Diffstat (limited to 'libm/Makefile.in')
-rw-r--r--libm/Makefile.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/libm/Makefile.in b/libm/Makefile.in
index fb547465c..541b6fb91 100644
--- a/libm/Makefile.in
+++ b/libm/Makefile.in
@@ -26,6 +26,8 @@ CFLAGS+=-D_IEEE_LIBM -D_ISOC99_SOURCE -D_SVID_SOURCE
CFLAGS-s_lib_version.c=-D_POSIX_MODE
+#DOMULTI=n
+
LIB_NAME:=libm
ifeq ($(HAS_FPU),y)
@@ -92,10 +94,12 @@ FL_MOBJ:=$(filter-out $(patsubst s_%.o,%.o,$(notdir $(libm_ARCH_OBJS))),$(FL_MOB
endif
endif
+ifneq ($(DOMULTI),n)
ifeq ($(DO_C99_MATH),y)
LIBM_NO_MULTI:=s_lib_version.c
CSRC:=$(filter-out $(LIBM_NO_MULTI),$(CSRC))
endif
+endif
libm_SRC:=$(patsubst %.c,$(libm_DIR)/%.c,$(CSRC))
libm_OBJ:=$(patsubst $(libm_DIR)/%.c,$(libm_OUT)/%.o,$(libm_SRC))
@@ -106,9 +110,11 @@ libm_MOBJ:=$(patsubst %.o,$(libm_OUT)/%.o,$(FL_MOBJ))
libm_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ))))
libm_OBJS:=$(libm_OBJ) $(libm_MOBJ)
+ifneq ($(DOMULTI),n)
ifeq ($(DO_C99_MATH),y)
libm_OBJS+=$(patsubst %.c,$(libm_OUT)/%.o,$(LIBM_NO_MULTI))
endif
+endif
$(libm_MOBJ) $(libm_MOBJ:.o=.os): $(libm_MSRC)
$(compile.m)