Makefile.in 1.4 KB

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