Makefile.am 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.la
  6. libcompat_la_SOURCES = \
  7. empty.c \
  8. compat.h \
  9. gettext.h
  10. # FIXME: unconditionally include these for now.
  11. libcompat_la_SOURCES += md5.c md5.h
  12. if !HAVE_GETOPT
  13. libcompat_la_SOURCES += getopt.c getopt.h
  14. endif
  15. if !HAVE_GETOPT_LONG
  16. libcompat_la_SOURCES += getopt1.c
  17. endif
  18. if !HAVE_OBSTACK_FREE
  19. libcompat_la_SOURCES += obstack.c obstack.h
  20. endif
  21. if !HAVE_STRNLEN
  22. libcompat_la_SOURCES += strnlen.c
  23. endif
  24. if !HAVE_STRNDUP
  25. libcompat_la_SOURCES += strndup.c
  26. endif
  27. if !HAVE_STRERROR
  28. libcompat_la_SOURCES += strerror.c
  29. endif
  30. if !HAVE_STRSIGNAL
  31. libcompat_la_SOURCES += strsignal.c
  32. endif
  33. if !HAVE_C99_SNPRINTF
  34. libcompat_la_SOURCES += snprintf.c vsnprintf.c
  35. endif
  36. if !HAVE_ASPRINTF
  37. libcompat_la_SOURCES += asprintf.c vasprintf.c
  38. endif
  39. if !HAVE_ALPHASORT
  40. libcompat_la_SOURCES += alphasort.c
  41. endif
  42. if !HAVE_SCANDIR
  43. libcompat_la_SOURCES += scandir.c
  44. endif
  45. if !HAVE_UNSETENV
  46. libcompat_la_SOURCES += unsetenv.c
  47. endif