added 386 support
authorWilliam Nesheim <william@ucbvax.Berkeley.EDU>
Tue, 1 Jan 1991 04:15:43 +0000 (20:15 -0800)
committerWilliam Nesheim <william@ucbvax.Berkeley.EDU>
Tue, 1 Jan 1991 04:15:43 +0000 (20:15 -0800)
SCCS-vsn: lib/libm/Makefile 5.6

usr/src/lib/libm/Makefile

index f87d9a0..ad6df3d 100644 (file)
@@ -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.
 #
 # 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
 
 # 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
 
 # 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}
 .elif (${MACHINE} == "national")
 
 HARDWARE=${MACHINE}