Makefile.in 954 B

12345678910111213141516171819202122232425262728
  1. # uClibc math tests
  2. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  3. TESTS := basic-test rint signgam 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. DODIFF_signgam := 1
  11. # NOTE: For basic-test we must disable the floating point optimization.
  12. # Only for sh architecture because in the other architecture are disabled.
  13. ifeq ($(TARGET_ARCH),sh)
  14. CFLAGS_basic-test += -mieee
  15. endif
  16. EXTRA_CFLAGS := -fno-builtin
  17. EXTRA_LDFLAGS := -lm
  18. PERL := /usr/bin/perl
  19. ulps-file := $(firstword $(wildcard $(config-sysdirs:%=$(..)%/libm-test-ulps)))
  20. libm-test.c: $(ulps-file) libm-test.inc gen-libm-test.pl
  21. $(Q)$(PERL) ./gen-libm-test.pl -u $< ./libm-test.inc -o "." 2>&1 > /dev/null
  22. EXTRA_CLEAN := libm-test.c libm-test-ulps.h
  23. TARGETS=libm-test.c