summaryrefslogtreecommitdiff
path: root/libm
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-12 16:12:36 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-12 16:12:36 +0000
commit3a7ac9c7a7b4d6181d3cd70a9cb85d93a1938238 (patch)
treef87aedb508cd30ff8d50b75dbe832d34ac5dad85 /libm
parentb0c8130cec05f40ce926058d18fbc520b1a0e856 (diff)
Rewrote almost all Makefiles: do not use strip $(x),y; run strip on all objects at once; use :=//$</$^; use CRT_SRC/CRT_OBJ/SCRT_OBJ/CSRC/COBJ/SSRC/SOBJ/MSRC/MOBJ where no more is needed, if only CSRC is present use OBJS directly instead of COBJ; CTOR_TARGETS are created directly in lib; remove unused/unneeded parts. Hope I haven't broken too much.
Diffstat (limited to 'libm')
-rw-r--r--libm/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/libm/Makefile b/libm/Makefile
index 0d2aa57cd..6170232e1 100644
--- a/libm/Makefile
+++ b/libm/Makefile
@@ -34,9 +34,9 @@
TOPDIR=../
include $(TOPDIR)Rules.mak
-CFLAGS+=$(SSP_ALL_CFLAGS)
+CFLAGS += $(SSP_ALL_CFLAGS)
-CFLAGS+=-D_IEEE_LIBM -D_ISOC99_SOURCE -D_SVID_SOURCE
+CFLAGS += -D_IEEE_LIBM -D_ISOC99_SOURCE -D_SVID_SOURCE
LIB_NAME := libm
AR_LIB_NAME := $(TOPDIR)lib/$(LIB_NAME).a
@@ -45,7 +45,7 @@ SO_FULL_NAME = $(LIB_NAME)-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
FL_MSRC := float_wrappers.c
-ifeq ($(strip $(DO_C99_MATH)),y)
+ifeq ($(DO_C99_MATH),y)
CSRC := e_acos.c e_acosh.c e_asin.c e_atan2.c e_atanh.c e_cosh.c\
e_exp.c e_fmod.c e_gamma.c e_gamma_r.c e_hypot.c e_j0.c\
e_j1.c e_jn.c e_lgamma.c e_lgamma_r.c e_log.c e_log10.c\
@@ -83,17 +83,17 @@ CSRC := w_acos.c w_asin.c s_atan.c w_atan2.c s_ceil.c s_cos.c \
FL_MOBJ := sqrtf.o
endif
-ifeq ($(strip $(HAS_FPU)),y)
-ifeq ($(strip $(DO_C99_MATH)),y)
+ifeq ($(HAS_FPU),y)
+ifeq ($(DO_C99_MATH),y)
ARCH_CSRC := $(wildcard $(TARGET_ARCH)/*.c)
ARCH_OBJS := $(patsubst %.c,%.o, $(ARCH_CSRC))
endif
endif
-COBJS := $(patsubst %.c,%.o, $(CSRC))
-OBJS := $(COBJS) $(FL_MOBJ)
+COBJ := $(patsubst %.c,%.o, $(CSRC))
+OBJS := $(COBJ) $(FL_MOBJ)
-ifeq ($(strip $(HAVE_SHARED)),y)
+ifeq ($(HAVE_SHARED),y)
all: $(SO_LIB_NAME)
else
all: $(AR_LIB_NAME)
@@ -115,7 +115,7 @@ $(SO_LIB_NAME): $(AR_LIB_NAME)
$(LN) -sf $(SO_FULL_NAME) $(SO_LIB_NAME).$(MAJOR_VERSION)
$(LN) -sf $(SO_FULL_NAME) $@
-$(COBJS) $(ARCH_OBJS): %.o : %.c
+$(COBJ) $(ARCH_OBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
$(FL_MOBJ): $(FL_MSRC)