OSDN Git Service

libm: enable log2f and exp2f
[uclinux-h8/uClibc.git] / libm / Makefile.in
index 6b82246..6eb9358 100644 (file)
@@ -20,6 +20,8 @@
 # by Erik Andersen <andersen@codepoet.org>
 #
 
+subdirs += libm
+
 CFLAGS-libm := -DNOT_IN_libc -DIS_IN_libm $(SSP_ALL_CFLAGS)
 CFLAGS-libm += -D_IEEE_LIBM
 
@@ -54,8 +56,8 @@ LD_MSRC := ldouble_wrappers.c
 ifeq ($(DO_C99_MATH),y)
 libm_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_hypot.c e_j0.c \
-       e_j1.c e_jn.c e_lgamma_r.c e_log.c e_log2.c e_log10.c \
+       e_exp.c e_fmod.c e_hypot.c \
+       e_lgamma_r.c e_log.c e_log2.c e_log10.c \
        e_pow.c e_remainder.c e_rem_pio2.c e_scalb.c e_sinh.c \
        e_sqrt.c k_cos.c k_rem_pio2.c k_sin.c k_standard.c k_tan.c \
        s_asinh.c s_atan.c s_cbrt.c s_ceil.c s_copysign.c s_cos.c \
@@ -73,7 +75,7 @@ libm_CSRC := \
        s_remquo.c w_exp2.c
 
 # Not implemented [yet?], see comment in float_wrappers.c:
-# exp2f.o fdimf.o fmaf.o fmaxf.o fminf.o log2f.o
+# fdimf.o fmaf.o fmaxf.o fminf.o
 # nearbyintf.o remquof.o scalblnf.o tgammaf.o
 FL_MOBJ := \
        acosf.o \
@@ -91,6 +93,7 @@ FL_MOBJ := \
        coshf.o \
        erfcf.o \
        erff.o \
+       exp2f.o \
        expf.o \
        expm1f.o \
        fabsf.o \
@@ -106,6 +109,7 @@ FL_MOBJ := \
        llroundf.o \
        log10f.o \
        log1pf.o \
+       log2f.o \
        logbf.o \
        logf.o \
        lrintf.o \
@@ -207,6 +211,10 @@ libm_CSRC := \
 FL_MOBJ := sqrtf.o
 endif
 
+ifeq ($(DO_XSI_MATH),y)
+libm_CSRC += e_j0.c e_j1.c e_jn.c
+endif
+
 # assume that arch specific versions are provided as single sources/objects
 ifeq ($(UCLIBC_HAS_FPU),y)
 ifeq ($(DO_C99_MATH),y)