Home | History | Annotate | Line # | Download | only in libm
Makefile revision 1.13
      1  1.11      jtc #  @(#)Makefile 5.1beta 93/09/24 
      2  1.13      jtc #  $Id: Makefile,v 1.13 1994/02/14 17:32:56 jtc Exp $
      3  1.11      jtc # 
      4  1.11      jtc #  ====================================================
      5  1.11      jtc #  Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
      6  1.11      jtc # 
      7  1.11      jtc #  Developed at SunPro, a Sun Microsystems, Inc. business.
      8  1.11      jtc #  Permission to use, copy, modify, and distribute this
      9  1.11      jtc #  software is freely granted, provided that this notice 
     10  1.11      jtc #  is preserved.
     11  1.11      jtc #  ====================================================
     12  1.11      jtc # 
     13  1.11      jtc # 
     14  1.11      jtc 
     15  1.11      jtc #
     16  1.11      jtc # There are two options in making libm at fdlibm compile time:
     17  1.11      jtc # 	_IEEE_LIBM 	--- IEEE libm; smaller, and somewhat faster
     18  1.11      jtc #	_MULTI_LIBM	--- Support multi-standard at runtime by 
     19  1.11      jtc #			    imposing wrapper functions defined in 
     20  1.11      jtc #			    fdlibm.h:
     21  1.11      jtc #				_IEEE_MODE 	-- IEEE
     22  1.11      jtc #				_XOPEN_MODE 	-- X/OPEN
     23  1.11      jtc #				_POSIX_MODE 	-- POSIX/ANSI
     24  1.11      jtc #				_SVID3_MODE 	-- SVID
     25  1.11      jtc #
     26  1.11      jtc # Here is how to set up CFLAGS to create the desired libm at 
     27  1.11      jtc # compile time:
     28   1.1      cgd #
     29  1.11      jtc # 	CFLAGS = -D_IEEE_LIBM		... IEEE libm (recommended)
     30  1.11      jtc #	CFLAGS = -D_SVID3_MODE	... Multi-standard supported
     31  1.11      jtc #					    libm with SVID as the 
     32  1.11      jtc #					    default standard
     33  1.11      jtc #	CFLAGS = -D_XOPEN_MODE	... Multi-standard supported
     34  1.11      jtc #					    libm with XOPEN as the 
     35  1.11      jtc #					    default standard
     36  1.11      jtc #	CFLAGS = -D_POSIX_MODE	... Multi-standard supported
     37  1.11      jtc #					    libm with POSIX as the 
     38  1.11      jtc #					    default standard
     39  1.11      jtc #	CFLAGS = 			... Multi-standard supported
     40  1.11      jtc #					    libm with IEEE as the 
     41  1.11      jtc #					    default standard
     42  1.11      jtc # 
     43  1.11      jtc 
     44  1.11      jtc .if (${MACHINE_ARCH} == "i386")
     45  1.11      jtc # Uncomment the following lines if you have a i387 (or i486 or Pentium)
     46  1.11      jtc #.PATH:	${.CURDIR}/arch/i387
     47  1.11      jtc .elif (${MACHINE_ARCH} == "m68k")
     48  1.11      jtc #.PATH:	${.CURDIR}/arch/mc68881
     49  1.11      jtc .endif
     50   1.1      cgd 
     51  1.11      jtc .PATH:	${.CURDIR}/man
     52  1.11      jtc .PATH:	${.CURDIR}/src
     53   1.1      cgd 
     54   1.3  mycroft 
     55  1.11      jtc CFLAGS+= -D_MULTI_LIBM -D_POSIX_MODE
     56  1.11      jtc NOPIC=
     57   1.3  mycroft 
     58  1.11      jtc LIB=	m
     59  1.11      jtc OBJS = 	k_standard.o k_rem_pio2.o k_cos.o k_sin.o k_tan.o \
     60  1.11      jtc 	e_acos.o e_acosh.o e_asin.o e_atan2.o e_atanh.o e_cosh.o e_exp.o \
     61  1.11      jtc 	e_fmod.o e_gamma.o e_gamma_r.o e_hypot.o e_j0.o e_j1.o e_jn.o \
     62  1.11      jtc 	e_lgamma.o e_lgamma_r.o e_log.o e_log10.o e_pow.o e_rem_pio2.o \
     63  1.11      jtc 	e_remainder.o e_scalb.o e_sinh.o e_sqrt.o \
     64  1.11      jtc 	w_acos.o w_acosh.o w_asin.o w_atan2.o \
     65  1.11      jtc 	w_atanh.o w_cosh.o w_exp.o w_fmod.o \
     66  1.11      jtc 	w_gamma.o w_gamma_r.o w_hypot.o w_j0.o \
     67  1.11      jtc 	w_j1.o w_jn.o w_lgamma.o w_lgamma_r.o \
     68  1.11      jtc 	w_log.o w_log10.o w_pow.o w_remainder.o \
     69  1.11      jtc 	w_scalb.o w_sinh.o w_sqrt.o \
     70  1.11      jtc 	s_asinh.o s_atan.o s_cbrt.o s_ceil.o s_copysign.o \
     71  1.13      jtc 	s_cos.o s_erf.o s_expm1.o s_finite.o s_floor.o \
     72  1.13      jtc 	s_ilogb.o s_lib_version.o \
     73  1.13      jtc 	s_log1p.o s_logb.o s_matherr.o s_nextafter.o \
     74  1.11      jtc 	s_rint.o s_scalbn.o s_signgam.o s_significand.o s_sin.o \
     75  1.11      jtc 	s_tan.o s_tanh.o
     76   1.3  mycroft 
     77  1.13      jtc # NetBSD's C library supplies these functions:
     78  1.13      jtc #OBJS+=	s_fabs.o s_frexp.o s_isnan.o s_ldexp.o s_modf.o
     79   1.1      cgd 
     80   1.1      cgd MAN3+=	acos.0 acosh.0 asin.0 asinh.0 atan.0 atan2.0 atanh.0 ceil.0 \
     81   1.1      cgd 	cos.0 cosh.0 erf.0 exp.0 fabs.0 floor.0 fmod.0 hypot.0 ieee.0 \
     82   1.1      cgd 	infnan.0 j0.0 lgamma.0 math.0 rint.0 sin.0 sinh.0 sqrt.0 \
     83   1.1      cgd 	tan.0 tanh.0
     84   1.1      cgd 
     85   1.1      cgd MLINKS+=erf.3 erfc.3
     86   1.1      cgd MLINKS+=exp.3 expm1.3 exp.3 log.3 exp.3 log10.3 exp.3 log1p.3 exp.3 pow.3
     87   1.1      cgd MLINKS+=hypot.3 cabs.3
     88   1.1      cgd MLINKS+=ieee.3 copysign.3 ieee.3 drem.3 ieee.3 finite.3 ieee.3 logb.3 \
     89   1.1      cgd 	ieee.3 scalb.3
     90   1.1      cgd MLINKS+=j0.3 j1.3 j0.3 jn.3 j0.3 y0.3 j0.3 y1.3 j0.3 yn.3
     91   1.1      cgd MLINKS+=lgamma.3 gamma.3
     92   1.7      jtc MLINKS+=sqrt.3 cbrt.3
     93   1.1      cgd 
     94   1.1      cgd 
     95   1.1      cgd .include <bsd.lib.mk>
     96