phunix/tests/lib/libm/Makefile
Lionel Sambuc 0a6a1f1d05 NetBSD re-synchronization of the source tree
This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
2016-01-13 20:32:14 +01:00

51 lines
1.0 KiB
Makefile

# $NetBSD: Makefile,v 1.32 2015/01/20 20:43:10 snj Exp $
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/lib/libm
.if ${MACHINE_CPU} == "aarch64" || ${MACHINE_CPU} == "arm" \
|| ${MACHINE_ARCH} == "hppa" \
|| ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" \
|| ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
CPPFLAGS+= -DHAVE_FENV_H
.endif
.if ${MACHINE} == "alpha"
COPTS+= -mfloat-ieee -mieee-with-inexact -mfp-trap-mode=sui -mtrap-precision=i
.endif
CPPFLAGS.t_fmod.c+= -I${.CURDIR}/../libc/gen
TESTS_C+= t_acos
TESTS_C+= t_asin
TESTS_C+= t_atan
TESTS_C+= t_cbrt
TESTS_C+= t_ceil
TESTS_C+= t_cos
TESTS_C+= t_cosh
TESTS_C+= t_erf
TESTS_C+= t_exp
TESTS_C+= t_fenv
.if !defined(__MINIX)
TESTS_C+= t_fmod
.endif # !defined(__MINIX)
TESTS_C+= t_infinity
TESTS_C+= t_ldexp
TESTS_C+= t_log
TESTS_C+= t_modf
TESTS_C+= t_pow
TESTS_C+= t_precision
TESTS_C+= t_round
TESTS_C+= t_scalbn
TESTS_C+= t_sin
TESTS_C+= t_sinh
TESTS_C+= t_sqrt
TESTS_C+= t_tan
TESTS_C+= t_tanh
LDADD+= -lm
#COPTS+= -Wfloat-equal
.include <bsd.test.mk>