Makefile 862 B

1234567891011121314151617181920212223242526
  1. # uClibc math tests
  2. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  3. TESTS := basic-test rint tst-definitions test-fpucw
  4. # test-double test-idouble
  5. # test-float test-ifloat
  6. # test-ldouble test-ildouble
  7. include ../Test.mak
  8. DODIFF_rint := 1
  9. # NOTE: For basic-test we must disable the floating point optimization.
  10. # Only for sh architecture because in the other architecture are disabled.
  11. ifeq ($(TARGET_ARCH),sh)
  12. CFLAGS_basic-test := -mieee
  13. endif
  14. EXTRA_CFLAGS := -DNO_LONG_DOUBLE -fno-builtin
  15. EXTRA_LDFLAGS := -lm
  16. PERL := /usr/bin/perl
  17. ulps-file := $(firstword $(wildcard $(config-sysdirs:%=$(..)%/libm-test-ulps)))
  18. libm-test.c: $(ulps-file) libm-test.inc gen-libm-test.pl
  19. $(Q)$(PERL) ./gen-libm-test.pl -u $< ./libm-test.inc -o "." 2>&1 > /dev/null
  20. EXTRA_CLEAN := libm-test.c libm-test-ulps.h
  21. $(TARGETS): libm-test.c