summaryrefslogtreecommitdiff
path: root/test/math/Makefile.in
blob: 0285b6606214fde90f2e0fe40b09e07c727a1931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# uClibc math tests
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.

# gamma (removed from TESTS, need to add "small errors are ok" machinery there)
TESTS_DISABLED := gamma
ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),)
TESTS_DISABLED += test-ldouble test-ildoubl compile_test c99_test
else
CFLAGS_basic-test := -DNO_LONG_DOUBLE
endif
ifeq ($(DO_C99_MATH),)
TESTS_DISABLED += test-float test-ifloat test-double test-idouble rint signgam ilogb
endif

DODIFF_rint     := 1
DODIFF_signgam  := 1

# NOTE: For basic-test we must disable the floating point optimization.
#       Only for sh architecture because in the other architecture are disabled.
ifeq ($(TARGET_ARCH),sh)
CFLAGS_basic-test += -mieee
endif
EXTRA_CFLAGS    := -fno-builtin
EXTRA_LDFLAGS   := -lm

PERL := /usr/bin/perl

MDEPS := $(wildcard test-*.c)
$(MDEPS): libm-test.c

libm-test.c: libm-test-ulps-$(TARGET_ARCH) libm-test.inc gen-libm-test.pl
	$(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ARCH) ./libm-test.inc -o "." 2>&1 > /dev/null

EXTRA_CLEAN := libm-test.c libm-test-ulps.h