Makefile (29bf6af8904f9833bbc9c0e5f2219f785defe550) Makefile (e1b61b5b934310dd0f80cc9e1489ff8e52fd7457)
1# @(#)Makefile 5.1beta 93/09/24
2# $FreeBSD$
3#
4# ====================================================
5# Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
6#
7# Developed at SunPro, a Sun Microsystems, Inc. business.
8# Permission to use, copy, modify, and distribute this
9# software is freely granted, provided that this notice
10# is preserved.
11# ====================================================
12#
13#
14
1# @(#)Makefile 5.1beta 93/09/24
2# $FreeBSD$
3#
4# ====================================================
5# Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
6#
7# Developed at SunPro, a Sun Microsystems, Inc. business.
8# Permission to use, copy, modify, and distribute this
9# software is freely granted, provided that this notice
10# is preserved.
11# ====================================================
12#
13#
14
15#
16# There are two options in making libm at fdlibm compile time:
17# _IEEE_LIBM --- IEEE libm; smaller, and somewhat faster
18# _MULTI_LIBM --- Support multi-standard at runtime by
19# imposing wrapper functions defined in
20# math.h:
21# _IEEE_MODE -- IEEE
22# _XOPEN_MODE -- X/OPEN
23# _POSIX_MODE -- POSIX/ANSI
24# _SVID3_MODE -- SVID
25#
26# Here is how to set up CFLAGS to create the desired libm at
27# compile time:
28#
29# CFLAGS = -D_IEEE_LIBM ... IEEE libm (recommended)
30# CFLAGS = -D_SVID3_MODE ... Multi-standard supported
31# libm with SVID as the
32# default standard
33# CFLAGS = -D_XOPEN_MODE ... Multi-standard supported
34# libm with XOPEN as the
35# default standard
36# CFLAGS = -D_POSIX_MODE ... Multi-standard supported
37# libm with POSIX as the
38# default standard
39# CFLAGS = ... Multi-standard supported
40# libm with IEEE as the
41# default standard
42#
43
44# XXX MD crud should be in separate makefiles
45.if ${MACHINE_ARCH} == "alpha"
46ARCH_SRCS = s_copysign.S s_copysignf.S
47# XXX Comment from NetBSD/Alpha:
48# XXX LINT SIGFPEs in e_exp.c's strtod(). FP underflow/denorm software
49# handling is broken (doesn't exist!) on the Alpha port.
50# Stock gcc 2.7.2.1 doesn't understand these options.
51#CFLAGS += -mtrap-precision=i -mfp-trap-mode=su

--- 29 unchanged lines hidden (view full) ---

81 e_atan2.c e_atan2f.c e_atanh.c e_atanhf.c e_cosh.c e_coshf.c e_exp.c \
82 e_expf.c e_fmod.c e_fmodf.c e_gamma.c e_gamma_r.c e_gammaf.c \
83 e_gammaf_r.c e_hypot.c e_hypotf.c e_j0.c e_j0f.c e_j1.c e_j1f.c \
84 e_jn.c e_jnf.c e_lgamma.c e_lgamma_r.c e_lgammaf.c e_lgammaf_r.c \
85 e_log.c e_log10.c e_log10f.c e_logf.c e_pow.c e_powf.c e_rem_pio2.c \
86 e_rem_pio2f.c e_remainder.c e_remainderf.c e_scalb.c e_scalbf.c \
87 e_sinh.c e_sinhf.c e_sqrt.c e_sqrtf.c fenv.c \
88 k_cos.c k_cosf.c k_rem_pio2.c k_rem_pio2f.c k_sin.c k_sinf.c \
15# XXX MD crud should be in separate makefiles
16.if ${MACHINE_ARCH} == "alpha"
17ARCH_SRCS = s_copysign.S s_copysignf.S
18# XXX Comment from NetBSD/Alpha:
19# XXX LINT SIGFPEs in e_exp.c's strtod(). FP underflow/denorm software
20# handling is broken (doesn't exist!) on the Alpha port.
21# Stock gcc 2.7.2.1 doesn't understand these options.
22#CFLAGS += -mtrap-precision=i -mfp-trap-mode=su

--- 29 unchanged lines hidden (view full) ---

52 e_atan2.c e_atan2f.c e_atanh.c e_atanhf.c e_cosh.c e_coshf.c e_exp.c \
53 e_expf.c e_fmod.c e_fmodf.c e_gamma.c e_gamma_r.c e_gammaf.c \
54 e_gammaf_r.c e_hypot.c e_hypotf.c e_j0.c e_j0f.c e_j1.c e_j1f.c \
55 e_jn.c e_jnf.c e_lgamma.c e_lgamma_r.c e_lgammaf.c e_lgammaf_r.c \
56 e_log.c e_log10.c e_log10f.c e_logf.c e_pow.c e_powf.c e_rem_pio2.c \
57 e_rem_pio2f.c e_remainder.c e_remainderf.c e_scalb.c e_scalbf.c \
58 e_sinh.c e_sinhf.c e_sqrt.c e_sqrtf.c fenv.c \
59 k_cos.c k_cosf.c k_rem_pio2.c k_rem_pio2f.c k_sin.c k_sinf.c \
89 k_standard.c k_tan.c k_tanf.c \
60 k_tan.c k_tanf.c \
90 s_asinh.c s_asinhf.c s_atan.c s_atanf.c s_cbrt.c s_cbrtf.c \
91 s_ceil.c s_ceilf.c s_ceill.c \
92 s_copysign.c s_copysignf.c s_cos.c s_cosf.c s_erf.c s_erff.c \
93 s_expm1.c s_expm1f.c s_fabsf.c s_fdim.c s_finite.c s_finitef.c \
94 s_floor.c s_floorf.c s_floorl.c s_fma.c s_fmaf.c \
95 s_fmax.c s_fmaxf.c s_fmaxl.c s_fmin.c \
96 s_fminf.c s_fminl.c s_frexp.c s_frexpf.c s_ilogb.c s_ilogbf.c \
97 s_ilogbl.c s_isfinite.c s_isnan.c s_isnormal.c s_ldexpf.c \
61 s_asinh.c s_asinhf.c s_atan.c s_atanf.c s_cbrt.c s_cbrtf.c \
62 s_ceil.c s_ceilf.c s_ceill.c \
63 s_copysign.c s_copysignf.c s_cos.c s_cosf.c s_erf.c s_erff.c \
64 s_expm1.c s_expm1f.c s_fabsf.c s_fdim.c s_finite.c s_finitef.c \
65 s_floor.c s_floorf.c s_floorl.c s_fma.c s_fmaf.c \
66 s_fmax.c s_fmaxf.c s_fmaxl.c s_fmin.c \
67 s_fminf.c s_fminl.c s_frexp.c s_frexpf.c s_ilogb.c s_ilogbf.c \
68 s_ilogbl.c s_isfinite.c s_isnan.c s_isnormal.c s_ldexpf.c \
98 s_lib_version.c s_llrint.c s_llrintf.c s_llround.c s_llroundf.c \
69 s_llrint.c s_llrintf.c s_llround.c s_llroundf.c \
99 s_log1p.c s_log1pf.c s_logb.c s_logbf.c s_lrint.c s_lrintf.c \
70 s_log1p.c s_log1pf.c s_logb.c s_logbf.c s_lrint.c s_lrintf.c \
100 s_lround.c s_lroundf.c s_matherr.c s_modff.c \
71 s_lround.c s_lroundf.c s_modff.c \
101 s_nearbyint.c s_nextafter.c s_nextafterf.c \
102 s_rint.c s_rintf.c s_round.c s_roundf.c \
103 s_scalbln.c s_scalbn.c s_scalbnf.c s_signbit.c \
104 s_signgam.c s_significand.c s_significandf.c s_sin.c s_sinf.c s_tan.c \
105 s_tanf.c s_tanh.c s_tanhf.c s_trunc.c s_truncf.c \
72 s_nearbyint.c s_nextafter.c s_nextafterf.c \
73 s_rint.c s_rintf.c s_round.c s_roundf.c \
74 s_scalbln.c s_scalbn.c s_scalbnf.c s_signbit.c \
75 s_signgam.c s_significand.c s_significandf.c s_sin.c s_sinf.c s_tan.c \
76 s_tanf.c s_tanh.c s_tanhf.c s_trunc.c s_truncf.c \
106 w_acos.c w_acosf.c w_acosh.c w_acoshf.c w_asin.c w_asinf.c w_atan2.c \
107 w_atan2f.c w_atanh.c w_atanhf.c w_cabs.c w_cabsf.c w_cosh.c w_coshf.c \
108 w_drem.c w_dremf.c w_exp.c w_expf.c w_fmod.c w_fmodf.c w_gamma.c \
109 w_gamma_r.c w_gammaf.c w_gammaf_r.c w_hypot.c w_hypotf.c w_j0.c \
110 w_j0f.c w_j1.c w_j1f.c w_jn.c w_jnf.c w_lgamma.c w_lgamma_r.c \
111 w_lgammaf.c w_lgammaf_r.c w_log.c w_log10.c w_log10f.c w_logf.c \
112 w_pow.c w_powf.c w_remainder.c w_remainderf.c w_scalb.c w_scalbf.c \
113 w_sinh.c w_sinhf.c w_sqrt.c w_sqrtf.c \
114 w_y0.c w_y0f.c w_y1.c w_y1f.c w_yn.c w_ynf.c
77 w_cabs.c w_cabsf.c w_drem.c w_dremf.c
115
116# Location of fpmath.h and _fpmath.h
117LIBCDIR= ${.CURDIR}/../libc
118CFLAGS+= -I${LIBCDIR}/include -I${LIBCDIR}/${MACHINE_ARCH}
119
120# C99 long double functions
121COMMON_SRCS+= s_copysignl.c s_fabsl.c
122

--- 80 unchanged lines hidden ---
78
79# Location of fpmath.h and _fpmath.h
80LIBCDIR= ${.CURDIR}/../libc
81CFLAGS+= -I${LIBCDIR}/include -I${LIBCDIR}/${MACHINE_ARCH}
82
83# C99 long double functions
84COMMON_SRCS+= s_copysignl.c s_fabsl.c
85

--- 80 unchanged lines hidden ---