Makefile.am 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ## Process this file with automake to produce Makefile.in
  2. noinst_LIBRARIES = libcoreutils.a libnagiosplug.a
  3. # Will auto pick up fsusage.c mountlist.c
  4. libcoreutils_a_SOURCES = \
  5. cloexec.c cloexec.h \
  6. exit.h \
  7. full-read.c full-read.h \
  8. full-write.c full-write.h \
  9. gettext.h \
  10. safe-read.c safe-read.h \
  11. safe-write.c safe-write.h strcase.h xalloc-die.c
  12. # intprops.h required for getloadavg.c
  13. # This needs to be an EXTRA_DIST because the m4s
  14. # that have AC_LIBSOURCES for intprops.h are not necessary and
  15. # the getloadavg m4 is an autoconf one, so doesn't
  16. # know about intprops.h. Confused? You will be!
  17. EXTRA_DIST = intprops.h
  18. other_coreutils_files = \
  19. error.c error.h \
  20. fsusage.c \
  21. getloadavg.c \
  22. malloc.c \
  23. mountlist.c \
  24. realloc.c \
  25. strtod.c \
  26. exitfail.c exitfail.h \
  27. fsusage.h \
  28. getopt.c getopt1.c \
  29. mountlist.h \
  30. unlocked-io.h \
  31. xalloc.h \
  32. xmalloc.c
  33. libcoreutils_a_LIBADD = $(LIBOBJS)
  34. libcoreutils_a_DEPENDENCIES = $(libcoreutils_a_LIBADD)
  35. libnagiosplug_a_SOURCES = snprintf.c
  36. INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl
  37. print_coreutil_files:
  38. @echo $(libcoreutils_a_SOURCES) $(other_coreutils_files) $(EXTRA_DIST)
  39. # Below are from coreutil's lib/Makefile.am
  40. BUILT_SOURCES = $(STDBOOL_H)
  41. EXTRA_DIST += stdbool_.h
  42. MOSTLYCLEANFILES = stdbool.h stdbool.ht
  43. # Create stdbool.h on systems that lack a working one.
  44. stdbool.h: stdbool_.h
  45. sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t
  46. mv $@t $@
  47. BUILT_SOURCES += $(GETOPT_H)
  48. EXTRA_DIST += getopt_.h getopt_int.h
  49. # We need the following in order to create an <getopt.h> when the system
  50. # doesn't have one that works with the given compiler.
  51. all-local $(lib_OBJECTS): $(GETOPT_H)
  52. getopt.h: getopt_.h
  53. cp $(srcdir)/getopt_.h $@-t
  54. mv $@-t $@
  55. MOSTLYCLEANFILES += getopt.h getopt.h-t