Makefile.am 1.5 KB

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