1 # @(#)Makefile 5.1beta 93/09/24
3 # ====================================================
4 # Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
6 # Developed at SunPro, a Sun Microsystems, Inc. business.
7 # Permission to use, copy, modify, and distribute this
8 # software is freely granted, provided that this notice
10 # ====================================================
15 # There are two options in making libm at fdlibm compile time:
16 # _IEEE_LIBM --- IEEE libm; smaller, and somewhat faster
17 # _MULTI_LIBM --- Support multi-standard at runtime by
18 # imposing wrapper functions defined in
21 # _XOPEN_MODE -- X/OPEN
22 # _POSIX_MODE -- POSIX/ANSI
25 # Here is how to set up CFLAGS to create the desired libm at
28 # CFLAGS = -D_IEEE_LIBM ... IEEE libm (recommended)
29 # CFLAGS = -D_SVID3_MODE ... Multi-standard supported
30 # libm with SVID as the
32 # CFLAGS = -D_XOPEN_MODE ... Multi-standard supported
33 # libm with XOPEN as the
35 # CFLAGS = -D_POSIX_MODE ... Multi-standard supported
36 # libm with POSIX as the
38 # CFLAGS = ... Multi-standard supported
39 # libm with IEEE as the
42 # NOTE: if scalb's second arguement is an int, then one must
43 # define _SCALB_INT in CFLAGS. The default prototype of scalb
44 # is double scalb(double, double)
58 src
= k_standard.c k_rem_pio2.c \
59 k_cos.c k_sin.c k_tan.c \
60 e_acos.c e_acosh.c e_asin.c e_atan2.c \
61 e_atanh.c e_cosh.c e_exp.c e_fmod.c \
62 e_gamma.c e_gamma_r.c e_hypot.c e_j0.c \
63 e_j1.c e_jn.c e_lgamma.c e_lgamma_r.c \
64 e_log.c e_log10.c e_pow.c e_rem_pio2.c e_remainder.c \
65 e_scalb.c e_sinh.c e_sqrt.c \
66 w_acos.c w_acosh.c w_asin.c w_atan2.c \
67 w_atanh.c w_cosh.c w_exp.c w_fmod.c \
68 w_gamma.c w_gamma_r.c w_hypot.c w_j0.c \
69 w_j1.c w_jn.c w_lgamma.c w_lgamma_r.c \
70 w_log.c w_log10.c w_pow.c w_remainder.c \
71 w_scalb.c w_sinh.c w_sqrt.c \
72 s_asinh.c s_atan.c s_cbrt.c s_ceil.c s_copysign.c \
73 s_cos.c s_erf.c s_expm1.c s_fabs.c s_finite.c s_floor.c \
74 s_frexp.c s_ilogb.c s_isnan.c s_ldexp.c s_lib_version.c \
75 s_log1p.c s_logb.c s_matherr.c s_modf.c s_nextafter.c \
76 s_rint.c s_scalbn.c s_signgam.c s_significand.c s_sin.c \
79 obj
= k_standard.o k_rem_pio2.o \
80 k_cos.o k_sin.o k_tan.o \
81 e_acos.o e_acosh.o e_asin.o e_atan2.o \
82 e_atanh.o e_cosh.o e_exp.o e_fmod.o \
83 e_gamma.o e_gamma_r.o e_hypot.o e_j0.o \
84 e_j1.o e_jn.o e_lgamma.o e_lgamma_r.o \
85 e_log.o e_log10.o e_pow.o e_rem_pio2.o e_remainder.o \
86 e_scalb.o e_sinh.o e_sqrt.o \
87 w_acos.o w_acosh.o w_asin.o w_atan2.o \
88 w_atanh.o w_cosh.o w_exp.o w_fmod.o \
89 w_gamma.o w_gamma_r.o w_hypot.o w_j0.o \
90 w_j1.o w_jn.o w_lgamma.o w_lgamma_r.o \
91 w_log.o w_log10.o w_pow.o w_remainder.o \
92 w_scalb.o w_sinh.o w_sqrt.o \
93 s_asinh.o s_atan.o s_cbrt.o s_ceil.o s_copysign.o \
94 s_cos.o s_erf.o s_expm1.o s_fabs.o s_finite.o s_floor.o \
95 s_frexp.o s_ilogb.o s_isnan.o s_ldexp.o s_lib_version.o \
96 s_log1p.o s_logb.o s_matherr.o s_modf.o s_nextafter.o \
97 s_rint.o s_scalbn.o s_signgam.o s_significand.o s_sin.o \
106 source
: $(src
) Readme
109 /bin
/rm -f
$(obj
) a.out libm.a