Makefile.am 1.5 KB

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