From a87254a0fb225450f5942ccf407b68202499e42d Mon Sep 17 00:00:00 2001 From: William Nesheim Date: Mon, 31 Dec 1990 20:15:43 -0800 Subject: [PATCH] added 386 support SCCS-vsn: lib/libm/Makefile 5.6 --- usr/src/lib/libm/Makefile | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/usr/src/lib/libm/Makefile b/usr/src/lib/libm/Makefile index f87d9a07c1..ad6df3d1ca 100644 --- a/usr/src/lib/libm/Makefile +++ b/usr/src/lib/libm/Makefile @@ -1,9 +1,10 @@ -# @(#)Makefile 5.5 (Berkeley) %G% +# @(#)Makefile 5.6 (Berkeley) %G% # # ieee - for most IEEE machines, we hope. # mc68881 - the, ahem, mc68881. # national - for those ieee machines whose floating point implementation # has similar byte ordering as the NATIONAL 32016 with 32081. +# i386 - i387 NPX, currently the same as "national" # tahoe - for the tahoe double format. # vax - for the vax D_floating format @@ -36,6 +37,25 @@ SRCS+= asincos.s atan.s atan2.c atanh.s cosh.s exp.s expm1.s floor.s \ # ieee SRCS+= cabs.c cbrt.c +.elif (${MACHINE} == "i386") + +HARDWARE=i387 +.PATH: ${.CURDIR}/common_source ${.CURDIR}/common \ + ${.CURDIR}/ieee +CFLAGS+= -Dnational +# common_source +SRCS+= acosh.c asincos.c asinh.c atan.c atanh.c cosh.c erf.c exp.c \ + exp__E.c expm1.c floor.c fmod.c lgamma.c j0.c j1.c jn.c log.c \ + log10.c log1p.c log__L.c pow.c sinh.c tanh.c +# common +SRCS+= atan2.c sincos.c tan.c +# ieee +SRCS+= cabs.c cbrt.c support.c + +.elif (${MACHINE} == "national") + +HARDWARE=${MACHINE} +.PATH: ${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/national \ .elif (${MACHINE} == "national") HARDWARE=${MACHINE} -- 2.20.1