Makefile.am 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ## Process this file with automake to produce Makefile.in
  2. AM_CPPFLAGS = \
  3. -idirafter $(top_srcdir)/lib/compat \
  4. -I$(top_builddir)
  5. noinst_LTLIBRARIES = libcompat-test.la libcompat.la
  6. libcompat_test_la_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_LIBCOMPAT=1
  7. libcompat_test_la_SOURCES = \
  8. compat.h \
  9. strnlen.c \
  10. strndup.c \
  11. strsignal.c \
  12. snprintf.c vsnprintf.c \
  13. asprintf.c vasprintf.c \
  14. alphasort.c \
  15. scandir.c \
  16. unsetenv.c
  17. if HAVE_SYS_ERRLIST
  18. libcompat_test_la_SOURCES += strerror.c
  19. endif
  20. if WITH_LIBSELINUX
  21. libcompat_test_la_SOURCES += selinux.c
  22. endif
  23. libcompat_la_SOURCES = \
  24. empty.c \
  25. compat.h \
  26. gettext.h
  27. if !HAVE_LIBMD_MD5
  28. libcompat_la_SOURCES += md5.c md5.h
  29. endif
  30. if !HAVE_GETOPT
  31. libcompat_la_SOURCES += getopt.c getopt.h
  32. else
  33. if !HAVE_GETOPT_LONG
  34. libcompat_la_SOURCES += getopt.c getopt.h
  35. endif
  36. endif
  37. if !HAVE_GETOPT_LONG
  38. libcompat_la_SOURCES += getopt1.c
  39. endif
  40. if !HAVE_OBSTACK_FREE
  41. libcompat_la_SOURCES += obstack.c obstack.h
  42. endif
  43. if !HAVE_STRNLEN
  44. libcompat_la_SOURCES += strnlen.c
  45. endif
  46. if !HAVE_STRNDUP
  47. libcompat_la_SOURCES += strndup.c
  48. endif
  49. if !HAVE_STRERROR
  50. libcompat_la_SOURCES += strerror.c
  51. endif
  52. if !HAVE_STRSIGNAL
  53. libcompat_la_SOURCES += strsignal.c
  54. endif
  55. if WITH_LIBSELINUX
  56. if !HAVE_SETEXECFILECON
  57. libcompat_la_SOURCES += selinux.c
  58. endif
  59. endif
  60. if !HAVE_C99_SNPRINTF
  61. libcompat_la_SOURCES += snprintf.c vsnprintf.c
  62. endif
  63. if !HAVE_ASPRINTF
  64. libcompat_la_SOURCES += asprintf.c vasprintf.c
  65. endif
  66. if !HAVE_ALPHASORT
  67. libcompat_la_SOURCES += alphasort.c
  68. endif
  69. if !HAVE_SCANDIR
  70. libcompat_la_SOURCES += scandir.c
  71. endif
  72. if !HAVE_UNSETENV
  73. libcompat_la_SOURCES += unsetenv.c
  74. endif