Home | History | Annotate | Line # | Download | only in libm
Makefile revision 1.1
      1  1.1  cgd #	@(#)Makefile	5.7.1.1 (Berkeley) 5/7/91
      2  1.1  cgd #
      3  1.1  cgd # ieee		- for most IEEE machines, we hope.
      4  1.1  cgd # mc68881	- the, ahem, mc68881.
      5  1.1  cgd # national	- for those ieee machines whose floating point implementation
      6  1.1  cgd #		  has similar byte ordering as the NATIONAL 32016 with 32081.
      7  1.1  cgd # i386		- i387 NPX, currently the same as "national"
      8  1.1  cgd # tahoe		- for the tahoe double format.
      9  1.1  cgd # vax		- for the vax D_floating format
     10  1.1  cgd 
     11  1.1  cgd # Missing: erf.c, j0.c, j1.c, jn.c, lgamma.c
     12  1.1  cgd 
     13  1.1  cgd LIB=	m
     14  1.1  cgd CFLAGS+=-I${.CURDIR}/common_source
     15  1.1  cgd 
     16  1.1  cgd HARDWARE=i387
     17  1.1  cgd .PATH:	${.CURDIR}/common_source ${.CURDIR}/common \
     18  1.1  cgd 	${.CURDIR}/ieee
     19  1.1  cgd CFLAGS+= -Dnational
     20  1.1  cgd # common_source
     21  1.1  cgd SRCS+=	acosh.c asincos.c asinh.c atan.c atanh.c cosh.c exp.c \
     22  1.1  cgd 	exp__E.c expm1.c floor.c fmod.c log.c \
     23  1.1  cgd 	log10.c log1p.c log__L.c pow.c sinh.c tanh.c
     24  1.1  cgd # common
     25  1.1  cgd SRCS+=	atan2.c sincos.c tan.c
     26  1.1  cgd # ieee
     27  1.1  cgd SRCS+=	cabs.c cbrt.c support.c
     28  1.1  cgd 
     29  1.1  cgd MAN3+=	acos.0 acosh.0 asin.0 asinh.0 atan.0 atan2.0 atanh.0 ceil.0 \
     30  1.1  cgd 	cos.0 cosh.0 erf.0 exp.0 fabs.0 floor.0 fmod.0 hypot.0 ieee.0 \
     31  1.1  cgd 	infnan.0 j0.0 lgamma.0 math.0 rint.0 sin.0 sinh.0 sqrt.0 \
     32  1.1  cgd 	tan.0 tanh.0
     33  1.1  cgd 
     34  1.1  cgd MLINKS+=erf.3 erfc.3
     35  1.1  cgd MLINKS+=exp.3 expm1.3 exp.3 log.3 exp.3 log10.3 exp.3 log1p.3 exp.3 pow.3
     36  1.1  cgd MLINKS+=hypot.3 cabs.3
     37  1.1  cgd MLINKS+=ieee.3 copysign.3 ieee.3 drem.3 ieee.3 finite.3 ieee.3 logb.3 \
     38  1.1  cgd 	ieee.3 scalb.3
     39  1.1  cgd MLINKS+=j0.3 j1.3 j0.3 jn.3 j0.3 y0.3 j0.3 y1.3 j0.3 yn.3
     40  1.1  cgd MLINKS+=lgamma.3 gamma.3
     41  1.1  cgd 
     42  1.1  cgd # can't use the standard mkdep, because there are some .s files that
     43  1.1  cgd # are using '#' as a comment indicator and cpp thinks it's an undefined
     44  1.1  cgd # control.
     45  1.1  cgd 
     46  1.1  cgd depend: .depend
     47  1.1  cgd .depend: ${SRCS}
     48  1.1  cgd 	mkdep ${CFLAGS:M-[ID]*} ${.ALLSRC:M*.c}
     49  1.1  cgd 
     50  1.1  cgd .include <bsd.lib.mk>
     51  1.1  cgd 
     52  1.1  cgd .s.o:
     53  1.1  cgd 	${AS} -o ${.TARGET} ${.IMPSRC}
     54  1.1  cgd 	@${LD} -x -r ${.TARGET}
     55  1.1  cgd 	@mv a.out ${.TARGET}
     56  1.1  cgd 
     57  1.1  cgd .s.po:
     58  1.1  cgd 	sed -f ${.CURDIR}/${HARDWARE}/mcount.sed ${.IMPSRC} | \
     59  1.1  cgd 	    ${AS} -o ${.TARGET}
     60  1.1  cgd 	@${LD} -X -r ${.TARGET}
     61  1.1  cgd 	@mv a.out ${.TARGET}
     62