]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/test/math/Makefile.in
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / 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 tst-definitions test-fpucw test-float test-ifloat test-double test-idouble \
5     rint signgam ilogb
6 # gamma (removed from TESTS, need to add "small errors are ok" machinery there)
7 ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),y)
8 TESTS += test-ldouble test-ildoubl compile_test c99_test
9 else
10 CFLAGS_basic-test := -DNO_LONG_DOUBLE
11 endif
12
13 DODIFF_rint     := 1
14 DODIFF_signgam  := 1
15
16 # NOTE: For basic-test we must disable the floating point optimization.
17 #       Only for sh architecture because in the other architecture are disabled.
18 ifeq ($(TARGET_ARCH),sh)
19 CFLAGS_basic-test += -mieee
20 endif
21 EXTRA_CFLAGS    := -fno-builtin
22 EXTRA_LDFLAGS   := -lm
23
24 PERL := /usr/bin/perl
25
26 $(TESTS): libm-test.c
27
28 libm-test.c: libm-test-ulps-$(TARGET_ARCH) libm-test.inc gen-libm-test.pl
29         $(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ARCH) ./libm-test.inc -o "." 2>&1 > /dev/null
30
31 EXTRA_CLEAN := libm-test.c libm-test-ulps.h