Expand PMF_FN_* macros.
[netbsd-mini2440.git] / lib / libm / src / Makefile
blobab69b23ababa351ec40190a39b4406cf538831a3
1 # @(#)Makefile 5.1beta 93/09/24
2 #
3 # ====================================================
4 # Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
5 #
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
9 # is preserved.
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
19 # fdlibm.h:
20 # _IEEE_MODE -- IEEE
21 # _XOPEN_MODE -- X/OPEN
22 # _POSIX_MODE -- POSIX/ANSI
23 # _SVID3_MODE -- SVID
25 # Here is how to set up CFLAGS to create the desired libm at
26 # compile time:
28 # CFLAGS = -D_IEEE_LIBM ... IEEE libm (recommended)
29 # CFLAGS = -D_SVID3_MODE ... Multi-standard supported
30 # libm with SVID as the
31 # default standard
32 # CFLAGS = -D_XOPEN_MODE ... Multi-standard supported
33 # libm with XOPEN as the
34 # default standard
35 # CFLAGS = -D_POSIX_MODE ... Multi-standard supported
36 # libm with POSIX as the
37 # default standard
38 # CFLAGS = ... Multi-standard supported
39 # libm with IEEE as the
40 # default standard
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)
49 # Default IEEE libm
51 CFLAGS = -D_IEEE_LIBM
53 CC = cc
55 INCFILES = fdlibm.h
56 .INIT: $(INCFILES)
57 .KEEP_STATE:
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 \
77 s_tan.c s_tanh.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 \
98 s_tan.o s_tanh.o
100 all: libm.a
102 libm.a : $(obj)
103 ar cru libm.a $(obj)
104 ranlib libm.a
106 source: $(src) Readme
108 clean:
109 /bin/rm -f $(obj) a.out libm.a