Makefile.am 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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_SELINUX
  21. libcompat_test_la_SOURCES += selinux.c
  22. endif
  23. libcompat_la_SOURCES = \
  24. empty.c \
  25. compat.h \
  26. gettext.h
  27. # FIXME: unconditionally include these for now.
  28. libcompat_la_SOURCES += md5.c md5.h
  29. if !HAVE_GETOPT
  30. libcompat_la_SOURCES += getopt.c getopt.h
  31. endif
  32. if !HAVE_GETOPT_LONG
  33. libcompat_la_SOURCES += getopt1.c
  34. endif
  35. if !HAVE_OBSTACK_FREE
  36. libcompat_la_SOURCES += obstack.c obstack.h
  37. endif
  38. if !HAVE_STRNLEN
  39. libcompat_la_SOURCES += strnlen.c
  40. endif
  41. if !HAVE_STRNDUP
  42. libcompat_la_SOURCES += strndup.c
  43. endif
  44. if !HAVE_STRERROR
  45. libcompat_la_SOURCES += strerror.c
  46. endif
  47. if !HAVE_STRSIGNAL
  48. libcompat_la_SOURCES += strsignal.c
  49. endif
  50. if WITH_SELINUX
  51. if !HAVE_SETEXECFILECON
  52. libcompat_la_SOURCES += selinux.c
  53. endif
  54. endif
  55. if !HAVE_C99_SNPRINTF
  56. libcompat_la_SOURCES += snprintf.c vsnprintf.c
  57. endif
  58. if !HAVE_ASPRINTF
  59. libcompat_la_SOURCES += asprintf.c vasprintf.c
  60. endif
  61. if !HAVE_ALPHASORT
  62. libcompat_la_SOURCES += alphasort.c
  63. endif
  64. if !HAVE_SCANDIR
  65. libcompat_la_SOURCES += scandir.c
  66. endif
  67. if !HAVE_UNSETENV
  68. libcompat_la_SOURCES += unsetenv.c
  69. endif