xref: /freebsd/lib/msun/tests/Makefile (revision 276da39af92f48350aa01091a2b8b3e735217eea)
1# $FreeBSD$
2
3OBJTOP=		${.OBJDIR:H:H:H}
4SRCTOP=		${.CURDIR:H:H:H}
5TESTSRC=	${SRCTOP}/contrib/netbsd-tests/lib/libm
6
7TESTSDIR=	${TESTSBASE}/lib/msun
8
9# All architectures on FreeBSD have fenv.h
10CFLAGS+=	-DHAVE_FENV_H
11
12# Not sure why this isn't defined for all architectures, since most
13# have long double.
14.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
15CFLAGS+=	-D__HAVE_LONG_DOUBLE
16.endif
17
18NETBSD_ATF_TESTS_C=	acos_test
19NETBSD_ATF_TESTS_C+=	asin_test
20NETBSD_ATF_TESTS_C+=	atan_test
21NETBSD_ATF_TESTS_C+=	cbrt_test
22NETBSD_ATF_TESTS_C+=	ceil_test
23NETBSD_ATF_TESTS_C+=	cos_test
24NETBSD_ATF_TESTS_C+=	cosh_test
25NETBSD_ATF_TESTS_C+=	erf_test
26NETBSD_ATF_TESTS_C+=	exp_test
27NETBSD_ATF_TESTS_C+=	fmod_test
28NETBSD_ATF_TESTS_C+=	infinity_test
29NETBSD_ATF_TESTS_C+=	ldexp_test
30NETBSD_ATF_TESTS_C+=	log_test
31NETBSD_ATF_TESTS_C+=	pow_test
32NETBSD_ATF_TESTS_C+=	precision_test
33NETBSD_ATF_TESTS_C+=	round_test
34NETBSD_ATF_TESTS_C+=	scalbn_test
35NETBSD_ATF_TESTS_C+=	sin_test
36NETBSD_ATF_TESTS_C+=	sinh_test
37NETBSD_ATF_TESTS_C+=	sqrt_test
38NETBSD_ATF_TESTS_C+=	tan_test
39NETBSD_ATF_TESTS_C+=	tanh_test
40
41CSTD=		c99
42
43LIBADD+=	m
44#COPTS+=	-Wfloat-equal
45
46# Copied from lib/msun/Makefile
47.if ${MACHINE_CPUARCH} == "i386"
48ARCH_SUBDIR= i387
49.else
50ARCH_SUBDIR= ${MACHINE_CPUARCH}
51.endif
52
53.include "../${ARCH_SUBDIR}/Makefile.inc"
54
55# XXX: for some odd reason float.h doesn't tell the full story about what the
56# precision is.
57CFLAGS+=	-DLDBL_PREC=${LDBL_PREC}
58
59.include <netbsd-tests.test.mk>
60
61.include <bsd.test.mk>
62