Makefile.am 1.4 KB

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