OSDN Git Service

e801112c619c009fd6f7c14a90c715747b7abf1f
[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 TESTS := basic-test rint signgam tst-definitions test-fpucw test-float test-ifloat test-double test-idouble
5 ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),y)
6 TESTS += test-ldouble test-ildoubl compile_test
7 else
8 CFLAGS_basic-test := -DNO_LONG_DOUBLE
9 endif
10
11 DODIFF_rint     := 1
12 DODIFF_signgam  := 1
13
14 # NOTE: For basic-test we must disable the floating point optimization.
15 #       Only for sh architecture because in the other architecture are disabled.
16 ifeq ($(TARGET_ARCH),sh)
17 CFLAGS_basic-test += -mieee
18 endif
19 EXTRA_CFLAGS    := -fno-builtin
20 EXTRA_LDFLAGS   := -lm
21
22 PERL := /usr/bin/perl
23
24 $(TESTS): libm-test.c
25
26 libm-test.c: libm-test.inc gen-libm-test.pl
27         $(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ARCH) ./libm-test.inc -o "." 2>&1 > /dev/null
28
29 EXTRA_CLEAN := libm-test.c libm-test-ulps.h