Makefile.in 1.2 KB

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