Makefile.in 1023 B

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