diff options
author | das <das@FreeBSD.org> | 2004-06-06 10:06:57 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2004-06-06 10:06:57 +0000 |
commit | 04b52e2cd3730150352f2f9eb168afc2c6698546 (patch) | |
tree | 1c5a0032aa114d1427af9fd194ef3fe5985fb070 /lib/msun | |
parent | 535ca6faf5c9e6ad9b9983be8370998576bfc5e1 (diff) | |
download | FreeBSD-src-04b52e2cd3730150352f2f9eb168afc2c6698546.zip FreeBSD-src-04b52e2cd3730150352f2f9eb168afc2c6698546.tar.gz |
Add fenv.h, fenv.c, and the associated documentation to the libm
build. To facilitate this, add ${.CURDIR}/${ARCH} to make's search
path unconditionally.
Reviewed by: standards@
Diffstat (limited to 'lib/msun')
-rw-r--r-- | lib/msun/Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/msun/Makefile b/lib/msun/Makefile index 024de86..e86ce21 100644 --- a/lib/msun/Makefile +++ b/lib/msun/Makefile @@ -42,7 +42,6 @@ # .if ${MACHINE_ARCH} == "alpha" -ARCH= alpha ARCH_SRCS = s_copysign.S s_copysignf.S # XXX Comment from NetBSD/Alpha: # XXX LINT SIGFPEs in e_exp.c's strtod(). FP underflow/denorm software @@ -59,6 +58,8 @@ ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_fmod.S e_log.S e_log10.S \ # ARCH_SRCS+= s_log1p.S .endif +ARCH?= ${MACHINE_ARCH} + .PATH: ${.CURDIR}/bsdsrc .PATH: ${.CURDIR}/man .PATH: ${.CURDIR}/src @@ -75,7 +76,7 @@ COMMON_SRCS= b_exp.c b_log.c b_tgamma.c \ e_jn.c e_jnf.c e_lgamma.c e_lgamma_r.c e_lgammaf.c e_lgammaf_r.c \ e_log.c e_log10.c e_log10f.c e_logf.c e_pow.c e_powf.c e_rem_pio2.c \ e_rem_pio2f.c e_remainder.c e_remainderf.c e_scalb.c e_scalbf.c \ - e_sinh.c e_sinhf.c e_sqrt.c e_sqrtf.c \ + e_sinh.c e_sinhf.c e_sqrt.c e_sqrtf.c fenv.c \ k_cos.c k_cosf.c k_rem_pio2.c k_rem_pio2f.c k_sin.c k_sinf.c \ k_standard.c k_tan.c k_tanf.c \ s_asinh.c s_asinhf.c s_atan.c s_atanf.c s_cbrt.c s_cbrtf.c s_ceil.c \ @@ -112,8 +113,8 @@ COMMON_SRCS+= s_cimag.c s_cimagf.c s_cimagl.c s_conj.c s_conjf.c s_conjl.c \ #COMMON_SRCS+= s_fabs.c s_frexp.c s_isnan.c s_ldexp.c s_modf.c # Exclude the generic versions of what we provide in the MD area. -.if defined(ARCH_SRCS) .PATH: ${.CURDIR}/${ARCH} +.if defined(ARCH_SRCS) .for i in ${ARCH_SRCS} COMMON_SRCS:= ${COMMON_SRCS:N${i:R}.c} .endfor @@ -121,10 +122,11 @@ COMMON_SRCS:= ${COMMON_SRCS:N${i:R}.c} SRCS= ${COMMON_SRCS} ${ARCH_SRCS} -INCS= math.h +INCS= fenv.h math.h MAN= acos.3 acosh.3 asin.3 asinh.3 atan.3 atan2.3 atanh.3 ceil.3 \ - cos.3 cosh.3 erf.3 exp.3 fabs.3 floor.3 fmod.3 hypot.3 ieee.3 \ + cos.3 cosh.3 erf.3 exp.3 fabs.3 feclearexcept.3 fegetenv.3 \ + fegetround.3 fenv.3 floor.3 fmod.3 hypot.3 ieee.3 \ ieee_test.3 j0.3 lgamma.3 math.3 rint.3 sin.3 sinh.3 sqrt.3 \ tan.3 tanh.3 @@ -144,6 +146,11 @@ MLINKS+=exp.3 expm1.3 exp.3 log.3 exp.3 log10.3 exp.3 log1p.3 exp.3 pow.3 \ exp.3 expm1f.3 exp.3 logf.3 exp.3 powf.3 \ exp.3 log10f.3 exp.3 log1pf.3 MLINKS+=fabs.3 fabsf.3 fabs.3 fabsl.3 +MLINKS+=feclearexcept.3 fegetexceptflag.3 feclearexcept.3 feraiseexcept.3 \ + feclearexcept.3 fesetexceptflag.3 feclearexcept.3 fetestexcept.3 +MLINKS+=fegetenv.3 feholdexcept.3 fegetenv.3 fesetenv.3 \ + fegetenv.3 feupdateenv.3 +MLINKS+=fegetround.3 fesetround.3 MLINKS+=floor.3 floorf.3 MLINKS+=fmod.3 fmodf.3 MLINKS+=hypot.3 cabs.3 hypot.3 cabsf.3 hypot.3 hypotf.3 |