Makefile revision 1.15
1#  @(#)Makefile 5.1beta 93/09/24 
2#  $Id: Makefile,v 1.15 1994/02/25 19:32:18 jtc Exp $
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#			    fdlibm.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.if (${MACHINE_ARCH} == "i386")
45# Uncomment the following lines if you have a i387 (or i486 or Pentium)
46#.PATH:	${.CURDIR}/arch/i387
47.elif (${MACHINE_ARCH} == "m68k")
48#.PATH:	${.CURDIR}/arch/mc68881
49.endif
50
51.PATH:	${.CURDIR}/man
52.PATH:	${.CURDIR}/src
53
54
55CFLAGS+= -D_MULTI_LIBM -D_POSIX_MODE
56
57LIB=	m
58OBJS = 	k_standard.o k_rem_pio2.o k_cos.o k_sin.o k_tan.o \
59	e_acos.o e_acosh.o e_asin.o e_atan2.o e_atanh.o e_cosh.o e_exp.o \
60	e_fmod.o e_gamma.o e_gamma_r.o e_hypot.o e_j0.o e_j1.o e_jn.o \
61	e_lgamma.o e_lgamma_r.o e_log.o e_log10.o e_pow.o e_rem_pio2.o \
62	e_remainder.o e_scalb.o e_sinh.o e_sqrt.o \
63	w_acos.o w_acosh.o w_asin.o w_atan2.o \
64	w_atanh.o w_cosh.o w_exp.o w_fmod.o \
65	w_gamma.o w_gamma_r.o w_hypot.o w_j0.o \
66	w_j1.o w_jn.o w_lgamma.o w_lgamma_r.o \
67	w_log.o w_log10.o w_pow.o w_remainder.o \
68	w_scalb.o w_sinh.o w_sqrt.o \
69	s_asinh.o s_atan.o s_cbrt.o s_ceil.o s_copysign.o \
70	s_cos.o s_erf.o s_expm1.o s_finite.o s_floor.o \
71	s_ilogb.o s_lib_version.o \
72	s_log1p.o s_logb.o s_matherr.o s_nextafter.o \
73	s_rint.o s_scalbn.o s_signgam.o s_significand.o s_sin.o \
74	s_tan.o s_tanh.o
75
76# NetBSD's C library supplies these functions:
77#OBJS+=	s_fabs.o s_frexp.o s_isnan.o s_ldexp.o s_modf.o
78
79MAN3+=	acos.0 acosh.0 asin.0 asinh.0 atan.0 atan2.0 atanh.0 ceil.0 \
80	cos.0 cosh.0 erf.0 exp.0 fabs.0 floor.0 fmod.0 hypot.0 ieee.0 \
81	infnan.0 j0.0 lgamma.0 math.0 rint.0 sin.0 sinh.0 sqrt.0 \
82	tan.0 tanh.0
83
84MLINKS+=erf.3 erfc.3
85MLINKS+=exp.3 expm1.3 exp.3 log.3 exp.3 log10.3 exp.3 log1p.3 exp.3 pow.3
86MLINKS+=hypot.3 cabs.3
87MLINKS+=ieee.3 copysign.3 ieee.3 finite.3 ieee.3 ilogb.3 \
88	ieee.3 nextafter.3 ieee.3 remainder.3 ieee.3 scalbn.3
89MLINKS+=j0.3 j1.3 j0.3 jn.3 j0.3 y0.3 j0.3 y1.3 j0.3 yn.3
90MLINKS+=lgamma.3 gamma.3
91MLINKS+=sqrt.3 cbrt.3
92
93
94.include <bsd.lib.mk>
95