Makefile.am 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. 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. endif
  33. if !HAVE_GETOPT_LONG
  34. libcompat_la_SOURCES += getopt1.c
  35. endif
  36. if !HAVE_OBSTACK_FREE
  37. libcompat_la_SOURCES += obstack.c obstack.h
  38. endif
  39. if !HAVE_STRNLEN
  40. libcompat_la_SOURCES += strnlen.c
  41. endif
  42. if !HAVE_STRNDUP
  43. libcompat_la_SOURCES += strndup.c
  44. endif
  45. if !HAVE_STRERROR
  46. libcompat_la_SOURCES += strerror.c
  47. endif
  48. if !HAVE_STRSIGNAL
  49. libcompat_la_SOURCES += strsignal.c
  50. endif
  51. if WITH_SELINUX
  52. if !HAVE_SETEXECFILECON
  53. libcompat_la_SOURCES += selinux.c
  54. endif
  55. endif
  56. if !HAVE_C99_SNPRINTF
  57. libcompat_la_SOURCES += snprintf.c vsnprintf.c
  58. endif
  59. if !HAVE_ASPRINTF
  60. libcompat_la_SOURCES += asprintf.c vasprintf.c
  61. endif
  62. if !HAVE_ALPHASORT
  63. libcompat_la_SOURCES += alphasort.c
  64. endif
  65. if !HAVE_SCANDIR
  66. libcompat_la_SOURCES += scandir.c
  67. endif
  68. if !HAVE_UNSETENV
  69. libcompat_la_SOURCES += unsetenv.c
  70. endif