OSDN Git Service

beef6503de63e9c30a3d4eab9005b4d90236dd19
[uclinux-h8/uClibc.git] / test / math / Makefile.in
1 # uClibc math tests
2 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
3
4 # gamma (removed from TESTS, need to add "small errors are ok" machinery there)
5 TESTS_DISABLED := gamma
6 ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),)
7 TESTS_DISABLED += test-ldouble test-ildoubl compile_test c99_test
8 else
9 CFLAGS_basic-test := -DNO_LONG_DOUBLE
10 endif
11 ifeq ($(DO_C99_MATH),)
12 TESTS_DISABLED += test-float test-ifloat test-double test-idouble rint signgam ilogb
13 endif
14
15 DODIFF_rint     := 1
16 DODIFF_signgam  := 1
17
18 # NOTE: For basic-test we must disable the floating point optimization.
19 #       Only for sh architecture because in the other architecture are disabled.
20 ifeq ($(TARGET_ARCH),sh)
21 CFLAGS_basic-test += -mieee
22 endif
23 EXTRA_CFLAGS    := -fno-builtin
24 EXTRA_LDFLAGS   := -lm
25
26 PERL := /usr/bin/perl
27
28 $(TESTS): libm-test.c
29
30 libm-test.c: libm-test-ulps-$(TARGET_ARCH) libm-test.inc gen-libm-test.pl
31         $(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ARCH) ./libm-test.inc -o "." 2>&1 > /dev/null
32
33 EXTRA_CLEAN := libm-test.c libm-test-ulps.h