Makefile.in 892 B

1234567891011121314151617181920212223242526272829
  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. $(TESTS): libm-test.c
  20. libm-test.c: libm-test.inc gen-libm-test.pl
  21. $(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ARCH) ./libm-test.inc -o "." 2>&1 > /dev/null
  22. EXTRA_CLEAN := libm-test.c libm-test-ulps.h