head	1.10;
access;
symbols
	RELENG_4_11_0_RELEASE:1.8.2.1
	RELENG_4_11:1.8.2.1.0.16
	RELENG_4_11_BP:1.8.2.1
	RELENG_4_10_0_RELEASE:1.8.2.1
	RELENG_4_10:1.8.2.1.0.14
	RELENG_4_10_BP:1.8.2.1
	RELENG_4_9_0_RELEASE:1.8.2.1
	RELENG_4_9:1.8.2.1.0.12
	RELENG_4_9_BP:1.8.2.1
	RELENG_4_8_0_RELEASE:1.8.2.1
	RELENG_4_8:1.8.2.1.0.10
	RELENG_4_8_BP:1.8.2.1
	RELENG_4_7_0_RELEASE:1.8.2.1
	RELENG_4_7:1.8.2.1.0.8
	RELENG_4_7_BP:1.8.2.1
	RELENG_4_6_2_RELEASE:1.8.2.1
	RELENG_4_6_1_RELEASE:1.8.2.1
	RELENG_4_6_0_RELEASE:1.8.2.1
	RELENG_4_6:1.8.2.1.0.6
	RELENG_4_6_BP:1.8.2.1
	RELENG_4_5_0_RELEASE:1.8.2.1
	RELENG_4_5:1.8.2.1.0.4
	RELENG_4_5_BP:1.8.2.1
	RELENG_4_4_0_RELEASE:1.8.2.1
	RELENG_4_4:1.8.2.1.0.2
	RELENG_4_4_BP:1.8.2.1
	RELENG_4_3_0_RELEASE:1.8
	RELENG_4_3:1.8.0.4
	RELENG_4_3_BP:1.8
	RELENG_4_2_0_RELEASE:1.8
	RELENG_4_1_1_RELEASE:1.8
	PRE_SMPNG:1.8
	RELENG_4_1_0_RELEASE:1.8
	RELENG_3_5_0_RELEASE:1.6.2.1
	RELENG_4_0_0_RELEASE:1.8
	RELENG_4:1.8.0.2
	RELENG_4_BP:1.8
	RELENG_3_4_0_RELEASE:1.6.2.1
	RELENG_3_3_0_RELEASE:1.6.2.1
	RELENG_3_2_PAO:1.6.0.4
	RELENG_3_2_PAO_BP:1.6
	RELENG_3_2_0_RELEASE:1.6
	RELENG_3_1_0_RELEASE:1.6
	RELENG_3:1.6.0.2
	RELENG_3_BP:1.6
	RELENG_2_2_8_RELEASE:1.3
	RELENG_3_0_0_RELEASE:1.6
	RELENG_2_2_7_RELEASE:1.3
	RELENG_2_2_6_RELEASE:1.3
	RELENG_2_2_5_RELEASE:1.3
	bsd_44_lite_2:1.1.1.1
	RELENG_2_2_2_RELEASE:1.3
	RELENG_2_2_1_RELEASE:1.3
	RELENG_2_2_0_RELEASE:1.3
	RELENG_2_1_7_RELEASE:1.2
	RELENG_2_1_6_1_RELEASE:1.2
	RELENG_2_1_6_RELEASE:1.2
	RELENG_2_2:1.3.0.2
	RELENG_2_2_BP:1.3
	RELENG_2_1_5_RELEASE:1.2
	RELENG_2_1_0_RELEASE:1.2
	RELENG_2_1_0:1.2.0.6
	RELENG_2_1_0_BP:1.2
	RELENG_2_0_5_RELEASE:1.2
	RELENG_2_0_5:1.2.0.4
	RELENG_2_0_5_BP:1.2
	RELENG_2_0_5_ALPHA:1.2
	RELEASE_2_0:1.2
	BETA_2_0:1.2
	ALPHA_2_0:1.2.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.10
date	2002.03.21.00.42.46;	author bde;	state dead;
branches;
next	1.9;

1.9
date	2001.03.27.17.27.05;	author ru;	state Exp;
branches;
next	1.8;

1.8
date	99.11.14.13.54.36;	author marcel;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	99.08.28.00.04.50;	author peter;	state Exp;
branches;
next	1.6;

1.6
date	98.09.05.08.35.53;	author jb;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	97.02.22.15.07.03;	author peter;	state Exp;
branches;
next	1.4;

1.4
date	97.01.14.06.09.34;	author jkh;	state Exp;
branches;
next	1.3;

1.3
date	96.05.07.23.18.54;	author wosch;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	94.08.05.01.52.05;	author wollman;	state Exp;
branches
	1.2.6.1;
next	1.1;

1.1
date	94.05.27.04.58.56;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.8.2.1
date	2001.04.25.10.04.32;	author ru;	state Exp;
branches;
next	1.8.2.2;

1.8.2.2
date	2012.11.17.07.23.56;	author svnexp;	state Exp;
branches;
next	;

1.6.2.1
date	99.08.29.14.57.06;	author peter;	state Exp;
branches;
next	;

1.3.2.1
date	99.09.05.11.17.01;	author peter;	state Exp;
branches;
next	;

1.2.6.1
date	99.09.05.11.18.36;	author peter;	state Exp;
branches;
next	;

1.1.1.1
date	94.05.27.04.58.57;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Removed all files in libm except README-FREEBSD and files needed to
implement tgamma().
@
text
@#	From: @@(#)Makefile	8.1 (Berkeley) 6/4/93
# $FreeBSD: src/lib/libm/Makefile,v 1.9 2001/03/27 17:27:05 ru Exp $
#
# 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

LIB=	m
CFLAGS+=-I${.CURDIR}/common_source

.if (${MACHINE_ARCH} == "ieee")

HARDWARE=${MACHINE_ARCH}
.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_ARCH} == "hp300" || ${MACHINE_ARCH} == "luna68k")

HARDWARE=mc68881
.PATH:	${.CURDIR}/mc68881 ${.CURDIR}/common_source ${.CURDIR}/ieee
# common_source
SRCS+=	acosh.c asinh.c erf.c exp.c exp__E.c fmod.c gamma.c lgamma.c \
	j0.c j1.c log.c log__L.c pow.c
# mc68881
SRCS+=	asincos.s atan.s atan2.c atanh.s cosh.s expm1.s floor.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_ARCH} == "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 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_ARCH} == "mips")

HARDWARE=${MACHINE_ARCH}
.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_ARCH} == "national")

HARDWARE=${MACHINE_ARCH}
.PATH:	${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/national \
.elif (${MACHINE_ARCH} == "national")

HARDWARE=${MACHINE_ARCH}
.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_ARCH} == "sparc")

HARDWARE=${MACHINE_ARCH}
.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
# XXX should do sqrt & support functions in assembly
# common
SRCS+=	atan2.c sincos.c tan.c
# ieee
SRCS+=	cabs.c cbrt.c support.c

.elif (${MACHINE_ARCH} == "tahoe")

HARDWARE=${MACHINE_ARCH}
.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_ARCH} == "vax")

HARDWARE=${MACHINE_ARCH}
.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

MAN+=	common_source/acos.3 common_source/acosh.3 common_source/asin.3 \
	common_source/asinh.3 common_source/atan.3 common_source/atan2.3 \
	common_source/atanh.3 common_source/ceil.3 common_source/cos.3 \
	common_source/cosh.3 common_source/erf.3 common_source/exp.3 \
	common_source/fabs.3 common_source/floor.3 common_source/fmod.3 \
	common_source/hypot.3 common_source/ieee.3 common_source/infnan.3 \
	common_source/j0.3 common_source/lgamma.3 common_source/math.3 \
	common_source/rint.3 common_source/sin.3 common_source/sinh.3 \
	common_source/sqrt.3 common_source/tan.3 common_source/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+=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

# 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 -f a.out ${.TARGET}

.s.po:
	sed -f ${.CURDIR}/${HARDWARE}/mcount.sed ${.IMPSRC} | \
	    ${AS} -o ${.TARGET}
	@@${LD} -X -r ${.TARGET}
	@@mv -f a.out ${.TARGET}
@


1.9
log
@MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libm/Makefile,v 1.8 1999/11/14 13:54:36 marcel Exp $
@


1.8
log
@${MACHINE} -> ${MACHINE_ARCH}

All Makefiles now use MACHINE_ARCH for the target architecture.
Unification is required for cross-building.

Tags added to:
	sys/boot/Makefile
	sys/boot/arc/loader/Makefile
	sys/kern/Makefile
	usr.bin/cpp/Makefile
	usr.bin/gcore/Makefile
	usr.bin/truss/Makefile

usr.bin/gcore/Makefile:
	fixed typo: MACHINDE -> MACHINE_ARCH
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libm/Makefile,v 1.7 1999/08/28 00:04:50 peter Exp $
d131 1
a131 1
MAN3+=	common_source/acos.3 common_source/acosh.3 common_source/asin.3 \
@


1.8.2.1
log
@MFC: MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libm/Makefile,v 1.8 1999/11/14 13:54:36 marcel Exp $
d131 1
a131 1
MAN+=	common_source/acos.3 common_source/acosh.3 common_source/asin.3 \
@


1.8.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/lib/libm/Makefile 75949 2001-04-25 10:04:44Z ru $
@


1.7
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d16 1
a16 1
.if (${MACHINE} == "ieee")
d18 1
a18 1
HARDWARE=${MACHINE}
d29 1
a29 1
.elif (${MACHINE} == "hp300" || ${MACHINE} == "luna68k")
d56 1
a56 1
.elif (${MACHINE} == "mips")
d58 1
a58 1
HARDWARE=${MACHINE}
d70 1
a70 1
.elif (${MACHINE} == "national")
d72 1
a72 1
HARDWARE=${MACHINE}
d74 1
a74 1
.elif (${MACHINE} == "national")
d76 1
a76 1
HARDWARE=${MACHINE}
d90 1
a90 1
.elif (${MACHINE} == "sparc")
d92 1
a92 1
HARDWARE=${MACHINE}
d104 1
a104 1
.elif (${MACHINE} == "tahoe")
d106 1
a106 1
HARDWARE=${MACHINE}
d117 1
a117 1
.elif (${MACHINE} == "vax")
d119 1
a119 1
HARDWARE=${MACHINE}
@


1.6
log
@Change MACHINE to MACHINE_ARCH when testing for i386 to support
MACHINE=pc98.

There are a lot unsupported machines here.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.5 1997/02/22 15:07:03 peter Exp $
@


1.6.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.5
log
@Revert $FreeBSD$ to $Id$
@
text
@d2 1
a2 1
#	$Id$
d42 1
a42 1
.elif (${MACHINE} == "i386")
@


1.4
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d2 1
a2 1
#	$FreeBSD$
@


1.3
log
@``mv'' -> ``mv -f''
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.2 1994/08/05 01:52:05 wollman Exp $
@


1.3.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.2
log
@Make it work with our make macros.
@
text
@d2 1
a2 1
#	$Id$
d162 1
a162 1
	@@mv a.out ${.TARGET}
d168 1
a168 1
	@@mv a.out ${.TARGET}
@


1.2.6.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.1
log
@Initial revision
@
text
@d1 2
a2 1
#	@@(#)Makefile	8.1 (Berkeley) 6/4/93
d131 9
a139 4
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
@


1.1.1.1
log
@BSD 4.4 Lite Lib Sources
@
text
@@
