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