NetBSD/lib/libm/Makefile

158 lines
4.9 KiB
Makefile
Raw Normal View History

1993-08-14 17:42:09 +04:00
# from: @(#)Makefile 5.11 (Berkeley) 12/2/92
1993-12-05 04:10:14 +03:00
# $Id: Makefile,v 1.9 1993/12/05 01:10:14 cgd Exp $
1993-03-21 12:45:37 +03:00
#
# ieee - for most IEEE machines, we hope.
# mc68881 - the, ahem, mc68881.
1993-12-05 04:10:14 +03:00
# national - NATIONAL 32016 with 32081.
# i386 - i387 NPX
# mips - for MIPS achitecture machines (and also pmax)
1993-03-21 12:45:37 +03:00
# tahoe - for the tahoe double format.
# vax - for the vax D_floating format
LIB= m
CFLAGS+=-I${.CURDIR}/common_source
NOPIC= nopic
1993-03-21 12:45:37 +03:00
1993-12-05 04:10:14 +03:00
.if (${MACHINE_ARCH} == "ieee")
1993-08-14 17:42:09 +04:00
1993-12-05 04:10:14 +03:00
HARDWARE=${MACHINE_ARCH}
1993-08-14 17:42:09 +04:00
.PATH: ${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/ieee
# common_source
SRCS+= acosh.c asincos.c asinh.c atan.c atanh.c cosh.c erf.c exp.c exp__D.c \
exp__E.c expm1.c floor.c fmod.c gamma.c lgamma.c j0.c j1.c jn.c log.c \
log10.c log1p.c log__D.c log__L.c logtab.c pow.c sinh.c tanh.c
1993-08-14 17:42:09 +04:00
# common
SRCS+= atan2.c sincos.c tan.c
# ieee
SRCS+= cabs.c cbrt.c support.c
1993-12-05 04:10:14 +03:00
.elif (${MACHINE_ARCH} == "m68k")
1993-08-14 17:42:09 +04:00
HARDWARE=mc68881
.PATH: ${.CURDIR}/mc68881 ${.CURDIR}/common_source ${.CURDIR}/ieee
# common_source
SRCS+= acosh.c asinh.c erf.c exp__D.c exp__E.c fmod.c gamma.c lgamma.c j0.c \
j1.c log__D.c log__L.c logtab.c pow.c
1993-08-14 17:42:09 +04:00
# mc68881
SRCS+= asincos.s atan.s atan2.c atanh.s cosh.s exp.s expm1.s floor.s \
log.s log10.s log1p.s sincos.s sinh.s sqrt.s support.s tan.s tanh.s
# ieee
SRCS+= cabs.c cbrt.c
1993-12-05 04:10:14 +03:00
.elif (${MACHINE_ARCH} == "i386")
1993-08-14 17:42:09 +04:00
1993-03-21 12:45:37 +03:00
HARDWARE=i387
1993-08-14 17:42:09 +04:00
.PATH: ${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/ieee
1993-03-21 12:45:37 +03:00
# common_source
SRCS+= acosh.c asincos.c asinh.c atan.c atanh.c cosh.c erf.c exp.c exp__D.c \
exp__E.c expm1.c floor.c fmod.c gamma.c lgamma.c j0.c j1.c jn.c log.c \
log10.c log1p.c log__D.c log__L.c logtab.c pow.c sinh.c tanh.c
1993-03-21 12:45:37 +03:00
# common
SRCS+= atan2.c sincos.c tan.c
# ieee
SRCS+= cabs.c cbrt.c support.c
1993-12-05 04:10:14 +03:00
.elif (${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "pmax")
1993-08-14 17:42:09 +04:00
1993-12-05 04:10:14 +03:00
HARDWARE=${MACHINE_ARCH}
1993-08-14 17:42:09 +04:00
.PATH: ${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/ieee
# common_source
SRCS+= acosh.c asincos.c asinh.c atan.c atanh.c cosh.c erf.c exp.c exp__D.c \
exp__E.c expm1.c floor.c fmod.c gamma.c lgamma.c j0.c j1.c jn.c log.c \
log10.c log1p.c log__D.c log__L.c logtab.c pow.c sinh.c tanh.c
1993-08-14 17:42:09 +04:00
# common
SRCS+= atan2.c sincos.c tan.c
# ieee
SRCS+= cabs.c cbrt.c support.c
1993-12-05 04:10:14 +03:00
.elif (${MACHINE_ARCH} == "national" || ${MACHINE_ARCH} == "ns32k")
HARDWARE=national
1993-08-14 17:42:09 +04:00
.PATH: ${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/national \
${.CURDIR}/ieee
# common_source
SRCS+= acosh.c asincos.c asinh.c atan.c atanh.c cosh.c erf.c exp.c exp__D.c \
exp__E.c expm1.c floor.c fmod.c gamma.c lgamma.c j0.c j1.c jn.c log.c \
log10.c log1p.c log__D.c log__L.c logtab.c pow.c sinh.c tanh.c
1993-08-14 17:42:09 +04:00
# common
SRCS+= atan2.c sincos.c tan.c
# national
SRCS+= sqrt.s support.s
# ieee
SRCS+= cabs.c cbrt.c
1993-12-05 04:10:14 +03:00
.elif (${MACHINE_ARCH} == "sparc")
1993-08-14 17:42:09 +04:00
1993-12-05 04:10:14 +03:00
HARDWARE=${MACHINE_ARCH}
1993-08-14 17:42:09 +04:00
.PATH: ${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/ieee
# common_source
SRCS+= acosh.c asincos.c asinh.c atan.c atanh.c cosh.c erf.c exp.c exp__D.c \
exp__E.c expm1.c floor.c fmod.c gamma.c lgamma.c j0.c j1.c jn.c log.c \
log10.c log1p.c log__D.c log__L.c logtab.c pow.c sinh.c tanh.c
1993-08-14 17:42:09 +04:00
# XXX should do sqrt & support functions in assembly
# common
SRCS+= atan2.c sincos.c tan.c
# ieee
SRCS+= cabs.c cbrt.c support.c
1993-12-05 04:10:14 +03:00
.elif (${MACHINE_ARCH} == "tahoe")
1993-08-14 17:42:09 +04:00
1993-12-05 04:10:14 +03:00
HARDWARE=${MACHINE_ARCH}
1993-08-14 17:42:09 +04:00
.PATH: ${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/tahoe \
# common_source
SRCS+= acosh.c asincos.c asinh.c atan.c atanh.c cosh.c erf.c exp.c exp__D.c \
exp__E.c expm1.c floor.c fmod.c gamma.c lgamma.c j0.c j1.c jn.c log.c \
log10.c log1p.c log__D.c log__L.c logtab.c pow.c sinh.c tanh.c
1993-08-14 17:42:09 +04:00
# common
SRCS+= atan2.c sincos.c tan.c
# tahoe
SRCS+= cabs.s cbrt.s sqrt.s support.s infnan.s
1993-12-05 04:10:14 +03:00
.elif (${MACHINE_ARCH} == "vax")
1993-08-14 17:42:09 +04:00
1993-12-05 04:10:14 +03:00
HARDWARE=${MACHINE_ARCH}
1993-08-14 17:42:09 +04:00
.PATH: ${.CURDIR}/common_source ${.CURDIR}/vax
# common_source
SRCS+= acosh.c asincos.c asinh.c atan.c atanh.c cosh.c erf.c exp.c exp__D.c \
exp__E.c expm1.c floor.c fmod.c gamma.c lgamma.c j0.c j1.c jn.c log.c \
log10.c log1p.c log__D.c log__L.c logtab.c pow.c sinh.c tanh.c
1993-08-14 17:42:09 +04:00
# vax
SRCS+= atan2.s cabs.s cbrt.s sqrt.s sincos.s tan.s argred.s support.s \
infnan.s
.endif
1993-03-21 12:45:37 +03:00
MAN3+= acos.0 acosh.0 asin.0 asinh.0 atan.0 atan2.0 atanh.0 ceil.0 \
cos.0 cosh.0 erf.0 exp.0 fabs.0 floor.0 fmod.0 hypot.0 ieee.0 \
infnan.0 j0.0 lgamma.0 math.0 rint.0 sin.0 sinh.0 sqrt.0 \
tan.0 tanh.0
MLINKS+=erf.3 erfc.3
MLINKS+=exp.3 expm1.3 exp.3 log.3 exp.3 log10.3 exp.3 log1p.3 exp.3 pow.3
MLINKS+=hypot.3 cabs.3
MLINKS+=ieee.3 copysign.3 ieee.3 drem.3 ieee.3 finite.3 ieee.3 logb.3 \
ieee.3 scalb.3
MLINKS+=j0.3 j1.3 j0.3 jn.3 j0.3 y0.3 j0.3 y1.3 j0.3 yn.3
MLINKS+=lgamma.3 gamma.3
1993-10-11 22:20:24 +03:00
MLINKS+=sqrt.3 cbrt.3
1993-03-21 12:45:37 +03:00
# can't use the standard mkdep, because there are some .s files that
# are using '#' as a comment indicator and cpp thinks it's an undefined
# control.
depend: .depend
.depend: ${SRCS}
mkdep ${CFLAGS:M-[ID]*} ${.ALLSRC:M*.c}
.include <bsd.lib.mk>
.s.o:
${AS} -o ${.TARGET} ${.IMPSRC}
@${LD} -x -r ${.TARGET}
@mv a.out ${.TARGET}
.s.po:
sed -f ${.CURDIR}/${HARDWARE}/mcount.sed ${.IMPSRC} | \
${AS} -o ${.TARGET}
@${LD} -X -r ${.TARGET}
@mv a.out ${.TARGET}