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