Makefile.in 1.3 KB

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