Makefile.in 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # uClibc unistd tests
  2. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  3. # If LFS is not set, get rid of all *64 tests up front
  4. ifeq ($(UCLIBC_HAS_LFS),)
  5. TESTS_DISABLED := tst-preadwrite64 tst-posix_fallocate64 tst-fallocate64
  6. endif
  7. # If we don't have LINUX_SPECIFIC, then get rid of tst-fallocate
  8. ifeq ($(UCLIBC_LINUX_SPECIFIC),)
  9. TESTS_DISABLED += tst-fallocate
  10. endif
  11. ifeq ($(TARGET_avr32),y)
  12. TESTS_DISABLED += tst-fallocate tst-posix_fallocate tst-fallocate64
  13. endif
  14. # The logic is similar for HAS_ADVANCED_REALTIME and
  15. # tst-posix_fallocate/tst-posix_fallocate64
  16. ifeq ($(UCLIBC_HAS_ADVANCED_REALTIME),)
  17. TESTS_DISABLED += tst-posix_fallocate
  18. endif
  19. OPTS_getopt := -abcXXX -9
  20. OPTS_getopt_long := --add XXX --delete YYY --verbose
  21. ifeq ($(UCLIBC_HAS_GNU_GETOPT),y)
  22. OPTS_tstgetopt := -a -b -cfoobar --required foobar --optional=bazbug --none random --col --color --colour
  23. else
  24. # reordering is not supported, behaves as if POSIXLY_CORRECT would be set
  25. OPTS_tstgetopt := -a -b -cfoobar --required foobar --optional=bazbug --none --colou --color --colour random
  26. endif
  27. # for embedded systems 4 GB disk space is not available
  28. TESTS_DISABLED += tst-posix_fallocate64
  29. # getconf.c lives in utils/
  30. # Testsuite cannot currently be built with O= anyway, so hardcode path here
  31. getconf.c:
  32. $(LN_S) ../../utils/$(@F) .
  33. EXTRA_CLEAN += getconf.c
  34. TESTS_DISABLED += getconf
  35. CFLAGS_getconf = -DGETCONF_DIR='"$(CURDIR)"'
  36. shell_tst-getconf: getconf getconf_glibc