Makefile revision 1.2
11.2Smycroft#	from: @(#)Makefile	5.7.1.1 (Berkeley) 5/7/91
21.2Smycroft#	$Id: Makefile,v 1.2 1993/08/01 05:40:21 mycroft Exp $
31.1Scgd#
41.1Scgd# ieee		- for most IEEE machines, we hope.
51.1Scgd# mc68881	- the, ahem, mc68881.
61.1Scgd# national	- for those ieee machines whose floating point implementation
71.1Scgd#		  has similar byte ordering as the NATIONAL 32016 with 32081.
81.1Scgd# i386		- i387 NPX, currently the same as "national"
91.1Scgd# tahoe		- for the tahoe double format.
101.1Scgd# vax		- for the vax D_floating format
111.1Scgd
121.1Scgd# Missing: erf.c, j0.c, j1.c, jn.c, lgamma.c
131.1Scgd
141.1ScgdLIB=	m
151.1ScgdCFLAGS+=-I${.CURDIR}/common_source
161.1Scgd
171.1ScgdHARDWARE=i387
181.1Scgd.PATH:	${.CURDIR}/common_source ${.CURDIR}/common \
191.1Scgd	${.CURDIR}/ieee
201.1ScgdCFLAGS+= -Dnational
211.1Scgd# common_source
221.1ScgdSRCS+=	acosh.c asincos.c asinh.c atan.c atanh.c cosh.c exp.c \
231.1Scgd	exp__E.c expm1.c floor.c fmod.c log.c \
241.1Scgd	log10.c log1p.c log__L.c pow.c sinh.c tanh.c
251.1Scgd# common
261.1ScgdSRCS+=	atan2.c sincos.c tan.c
271.1Scgd# ieee
281.1ScgdSRCS+=	cabs.c cbrt.c support.c
291.1Scgd
301.1ScgdMAN3+=	acos.0 acosh.0 asin.0 asinh.0 atan.0 atan2.0 atanh.0 ceil.0 \
311.1Scgd	cos.0 cosh.0 erf.0 exp.0 fabs.0 floor.0 fmod.0 hypot.0 ieee.0 \
321.1Scgd	infnan.0 j0.0 lgamma.0 math.0 rint.0 sin.0 sinh.0 sqrt.0 \
331.1Scgd	tan.0 tanh.0
341.1Scgd
351.1ScgdMLINKS+=erf.3 erfc.3
361.1ScgdMLINKS+=exp.3 expm1.3 exp.3 log.3 exp.3 log10.3 exp.3 log1p.3 exp.3 pow.3
371.1ScgdMLINKS+=hypot.3 cabs.3
381.1ScgdMLINKS+=ieee.3 copysign.3 ieee.3 drem.3 ieee.3 finite.3 ieee.3 logb.3 \
391.1Scgd	ieee.3 scalb.3
401.1ScgdMLINKS+=j0.3 j1.3 j0.3 jn.3 j0.3 y0.3 j0.3 y1.3 j0.3 yn.3
411.1ScgdMLINKS+=lgamma.3 gamma.3
421.1Scgd
431.1Scgd# can't use the standard mkdep, because there are some .s files that
441.1Scgd# are using '#' as a comment indicator and cpp thinks it's an undefined
451.1Scgd# control.
461.1Scgd
471.1Scgddepend: .depend
481.1Scgd.depend: ${SRCS}
491.1Scgd	mkdep ${CFLAGS:M-[ID]*} ${.ALLSRC:M*.c}
501.1Scgd
511.1Scgd.include <bsd.lib.mk>
521.1Scgd
531.1Scgd.s.o:
541.1Scgd	${AS} -o ${.TARGET} ${.IMPSRC}
551.1Scgd	@${LD} -x -r ${.TARGET}
561.1Scgd	@mv a.out ${.TARGET}
571.1Scgd
581.1Scgd.s.po:
591.1Scgd	sed -f ${.CURDIR}/${HARDWARE}/mcount.sed ${.IMPSRC} | \
601.1Scgd	    ${AS} -o ${.TARGET}
611.1Scgd	@${LD} -X -r ${.TARGET}
621.1Scgd	@mv a.out ${.TARGET}
63