Makefile.in 925 B

123456789101112131415161718192021222324252627
  1. # uClibc math tests
  2. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  3. TESTS := basic-test rint tst-definitions test-fpucw test-float test-ifloat test-double test-idouble
  4. ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),y)
  5. TESTS += test-ldouble test-ildoubl compile_test
  6. else
  7. CFLAGS_basic-test := -DNO_LONG_DOUBLE
  8. endif
  9. DODIFF_rint := 1
  10. # NOTE: For basic-test we must disable the floating point optimization.
  11. # Only for sh architecture because in the other architecture are disabled.
  12. ifeq ($(TARGET_ARCH),sh)
  13. CFLAGS_basic-test += -mieee
  14. endif
  15. EXTRA_CFLAGS := -fno-builtin
  16. EXTRA_LDFLAGS := -lm
  17. PERL := /usr/bin/perl
  18. ulps-file := $(firstword $(wildcard $(config-sysdirs:%=$(..)%/libm-test-ulps)))
  19. libm-test.c: $(ulps-file) libm-test.inc gen-libm-test.pl
  20. $(Q)$(PERL) ./gen-libm-test.pl -u $< ./libm-test.inc -o "." 2>&1 > /dev/null
  21. EXTRA_CLEAN := libm-test.c libm-test-ulps.h
  22. TARGETS=libm-test.c