Makefile 632 B

123456789101112131415161718192021
  1. # uClibc math tests
  2. # Licensed under the GNU Library General Public License, see COPYING.LIB
  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. EXTRA_CFLAGS := -DNO_LONG_DOUBLE -fno-builtin
  10. EXTRA_LDFLAGS := -lm
  11. PERL := /usr/bin/perl
  12. ulps-file := $(firstword $(wildcard $(config-sysdirs:%=$(..)%/libm-test-ulps)))
  13. libm-test.c: $(ulps-file) libm-test.inc gen-libm-test.pl
  14. $(Q)$(PERL) ./gen-libm-test.pl -u $< ./libm-test.inc -o "." 2>&1 > /dev/null
  15. EXTRA_CLEAN := libm-test.c
  16. $(TARGETS): libm-test.c