Makefile.am 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. other_coreutils_files = \
  13. error.c error.h \
  14. fsusage.c \
  15. getloadavg.c \
  16. malloc.c \
  17. mountlist.c \
  18. realloc.c \
  19. strtod.c \
  20. exitfail.c exitfail.h \
  21. fsusage.h \
  22. getopt.c getopt1.c \
  23. mountlist.h \
  24. unlocked-io.h \
  25. xalloc.h \
  26. xmalloc.c
  27. libcoreutils_a_LIBADD = $(LIBOBJS)
  28. libcoreutils_a_DEPENDENCIES = $(libcoreutils_a_LIBADD)
  29. libnagiosplug_a_SOURCES = snprintf.c
  30. INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl
  31. print_coreutil_files:
  32. @echo $(libcoreutils_a_SOURCES) $(other_coreutils_files) $(EXTRA_DIST)
  33. # Below are from coreutil's lib/Makefile.am
  34. BUILT_SOURCES = $(STDBOOL_H)
  35. EXTRA_DIST = stdbool_.h
  36. MOSTLYCLEANFILES = stdbool.h stdbool.ht
  37. # Create stdbool.h on systems that lack a working one.
  38. stdbool.h: stdbool_.h
  39. sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t
  40. mv $@t $@
  41. BUILT_SOURCES += $(GETOPT_H)
  42. EXTRA_DIST += getopt_.h getopt_int.h
  43. # We need the following in order to create an <getopt.h> when the system
  44. # doesn't have one that works with the given compiler.
  45. all-local $(lib_OBJECTS): $(GETOPT_H)
  46. getopt.h: getopt_.h
  47. cp $(srcdir)/getopt_.h $@-t
  48. mv $@-t $@
  49. MOSTLYCLEANFILES += getopt.h getopt.h-t