1 # $NetBSD: Makefile,v 1.31 2015/01/03 14:23:53 gson Exp $ 2 3 .include <bsd.own.mk> 4 5 TESTSDIR= ${TESTSBASE}/lib/libm 6 7 # ARM fenv is incomplete, so we can not enable that here 8 .if ${MACHINE_CPU} == "aarch64" || ${MACHINE_CPU} == "arm" \ 9 || ${MACHINE_ARCH} == "hppa" \ 10 || ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" \ 11 || ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 12 CPPFLAGS+= -DHAVE_FENV_H 13 .endif 14 15 .if ${MACHINE} == "alpha" 16 COPTS+= -mfloat-ieee -mieee-with-inexact -mfp-trap-mode=sui -mtrap-precision=i 17 .endif 18 19 CPPFLAGS.t_fmod.c+= -I${.CURDIR}/../libc/gen 20 21 TESTS_C+= t_acos 22 TESTS_C+= t_asin 23 TESTS_C+= t_atan 24 TESTS_C+= t_cbrt 25 TESTS_C+= t_ceil 26 TESTS_C+= t_cos 27 TESTS_C+= t_cosh 28 TESTS_C+= t_erf 29 TESTS_C+= t_exp 30 TESTS_C+= t_fenv 31 TESTS_C+= t_fmod 32 TESTS_C+= t_infinity 33 TESTS_C+= t_ldexp 34 TESTS_C+= t_log 35 TESTS_C+= t_modf 36 TESTS_C+= t_pow 37 TESTS_C+= t_precision 38 TESTS_C+= t_round 39 TESTS_C+= t_scalbn 40 TESTS_C+= t_sin 41 TESTS_C+= t_sinh 42 TESTS_C+= t_sqrt 43 TESTS_C+= t_tan 44 TESTS_C+= t_tanh 45 46 LDADD+= -lm 47 #COPTS+= -Wfloat-equal 48 49 .include <bsd.test.mk> 50