This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / lib / libm / Makefile
index c307282..1140ae1 100644 (file)
-#      @(#)Makefile    5.7.1.1 (Berkeley) 5/7/91
+#      @(#)Makefile    5.11 (Berkeley) 12/2/92
 #
 # 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"
 #
 # 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"
+# mips         - for MIPS achitecture machines
 # 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
 
-# Missing: erf.c, j0.c, j1.c, jn.c, lgamma.c
-
 LIB=   m
 CFLAGS+=-I${.CURDIR}/common_source
 
 LIB=   m
 CFLAGS+=-I${.CURDIR}/common_source
 
+.if (${MACHINE} == "ieee")
+
+HARDWARE=${MACHINE}
+.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__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__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} == "hp300" || ${MACHINE} == "luna68k")
+
+HARDWARE=mc68881
+.PATH: ${.CURDIR}/mc68881 ${.CURDIR}/common_source ${.CURDIR}/ieee
+# common_source
+SRCS+= acosh.c asinh.c erf.c exp__E.c fmod.c gamma.c lgamma.c j0.c j1.c log__L.c \
+       pow.c
+# 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
+
+.elif (${MACHINE} == "i386")
+
 HARDWARE=i387
 HARDWARE=i387
-.PATH: ${.CURDIR}/common_source ${.CURDIR}/common \
-       ${.CURDIR}/ieee
+.PATH: ${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/ieee
 CFLAGS+= -Dnational
 # common_source
 CFLAGS+= -Dnational
 # common_source
-SRCS+= acosh.c asincos.c asinh.c atan.c atanh.c cosh.c exp.c \
-       exp__E.c expm1.c floor.c fmod.c log.c \
+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 gamma.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} == "mips")
+
+HARDWARE=${MACHINE}
+.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 gamma.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}
+.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__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__L.c pow.c sinh.c tanh.c
+# common
+SRCS+= atan2.c sincos.c tan.c
+# national
+SRCS+= sqrt.s support.s
+# ieee
+SRCS+= cabs.c cbrt.c
+
+.elif (${MACHINE} == "sparc")
+
+HARDWARE=${MACHINE}
+.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__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__L.c pow.c sinh.c tanh.c
        log10.c log1p.c log__L.c pow.c sinh.c tanh.c
+# XXX should do sqrt & support functions in assembly
 # common
 SRCS+= atan2.c sincos.c tan.c
 # ieee
 SRCS+= cabs.c cbrt.c support.c
 
 # common
 SRCS+= atan2.c sincos.c tan.c
 # ieee
 SRCS+= cabs.c cbrt.c support.c
 
-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
+.elif (${MACHINE} == "tahoe")
+
+HARDWARE=${MACHINE}
+.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__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__L.c pow.c sinh.c tanh.c
+# common
+SRCS+= atan2.c sincos.c tan.c
+# tahoe
+SRCS+= cabs.s cbrt.s sqrt.s support.s infnan.s
+
+.elif (${MACHINE} == "vax")
+
+HARDWARE=${MACHINE}
+.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__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__L.c pow.c sinh.c tanh.c
+# vax
+SRCS+= atan2.s cabs.s cbrt.s sqrt.s sincos.s tan.s argred.s support.s \
+       infnan.s
+
+.endif
+
+MANSRC= ${.CURDIR}/common_source
+
+MAN3+= acos.3 acosh.3 asin.3 asinh.3 atan.3 atan2.3 atanh.3 ceil.3 \
+       cos.3 cosh.3 erf.3 exp.3 fabs.3 floor.3 fmod.3 hypot.3 ieee.3 \
+       infnan.3 j0.3 lgamma.3 math.3 rint.3 sin.3 sinh.3 sqrt.3 \
+       tan.3 tanh.3
 
 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+=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