Makefile.in 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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. # The logic is similar for HAS_ADVANCED_REALTIME and
  12. # tst-posix_fallocate/tst-posix_fallocate64
  13. ifeq ($(UCLIBC_HAS_ADVANCED_REALTIME),)
  14. TESTS_DISABLED += tst-posix_fallocate
  15. endif
  16. OPTS_getopt := -abcXXX -9
  17. OPTS_getopt_long := --add XXX --delete YYY --verbose
  18. ifeq ($(UCLIBC_HAS_GNU_GETOPT),y)
  19. OPTS_tstgetopt := -a -b -cfoobar --required foobar --optional=bazbug --none random --col --color --colour
  20. else
  21. # reordering is not supported, behaves as if POSIXLY_CORRECT would be set
  22. OPTS_tstgetopt := -a -b -cfoobar --required foobar --optional=bazbug --none --colou --color --colour random
  23. endif
  24. # getconf.c lives in utils/
  25. # Testsuite cannot currently be built with O= anyway, so hardcode path here
  26. getconf.c:
  27. $(LN_S) ../../utils/$(@F) .
  28. EXTRA_CLEAN += getconf.c
  29. TESTS_DISABLED += getconf
  30. CFLAGS_getconf = -DGETCONF_DIR='"$(CURDIR)"'
  31. shell_tst-getconf: getconf getconf_glibc