Makefile.in 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. CFLAGS_tst-fallocate = -fPIC
  31. CFLAGS_tst-posix_fallocate = -fPIC
  32. CFLAGS_tst-preadwrite = -fPIC
  33. CFLAGS_tst-preadwrite64 = -fPIC
  34. # getconf.c lives in utils/
  35. # Testsuite cannot currently be built with O= anyway, so hardcode path here
  36. getconf.c:
  37. $(LN_S) ../../utils/$(@F) .
  38. EXTRA_CLEAN += getconf.c
  39. TESTS_DISABLED += getconf
  40. CFLAGS_getconf = -DGETCONF_DIR='"$(CURDIR)"'
  41. shell_tst-getconf: getconf getconf_glibc