Makefile.am 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ## LIBOPTS Makefile
  2. MAINTAINERCLEANFILES = Makefile.in
  3. if INSTALL_LIBOPTS
  4. lib_LTLIBRARIES = libopts.la
  5. else
  6. noinst_LTLIBRARIES = libopts.la
  7. endif
  8. libopts_la_SOURCES = libopts.c
  9. libopts_la_CPPFLAGS = -I$(srcdir)
  10. #libopts_la_LDFLAGS = -version-info 41:1:16
  11. EXTRA_DIST =
  12. BUILT_SOURCES =
  13. MOSTLYCLEANFILES =
  14. libopts.c: $(BUILT_SOURCES)
  15. @: do-nothing rule to avoid default SCCS get
  16. # Makefile fragment from gnulib-s stdnoreturn module:
  17. #
  18. _NORETURN_H=$(srcdir)/compat/_Noreturn.h
  19. EXTRA_DIST += $(srcdir)/compat/_Noreturn.h
  20. BUILT_SOURCES += $(STDNORETURN_H)
  21. if GL_GENERATE_STDNORETURN_H
  22. stdnoreturn.h: stdnoreturn.in.h $(top_builddir)/config.status $(_NORETURN_H)
  23. $(AM_V_GEN)rm -f $@-t $@ && \
  24. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
  25. sed -e '/definition of _Noreturn/r $(_NORETURN_H)' \
  26. < $(srcdir)/stdnoreturn.in.h; \
  27. } > $@-t && \
  28. mv $@-t $@
  29. else
  30. stdnoreturn.h: $(top_builddir)/config.status
  31. rm -f $@
  32. endif
  33. MOSTLYCLEANFILES += stdnoreturn.h stdnoreturn.h-t
  34. EXTRA_DIST += stdnoreturn.in.h
  35. EXTRA_DIST += \
  36. COPYING.gplv3 COPYING.lgplv3 COPYING.mbsd \
  37. MakeDefs.inc README ag-char-map.h \
  38. alias.c ao-strs.c ao-strs.h \
  39. autoopts.c autoopts.h autoopts/options.h \
  40. autoopts/project.h autoopts/usage-txt.h boolean.c \
  41. check.c compat/_Noreturn.h compat/compat.h \
  42. compat/pathfind.c compat/snprintf.c compat/strchr.c \
  43. compat/strdup.c compat/windows-config.h configfile.c \
  44. cook.c enum.c env.c \
  45. file.c find.c genshell.c \
  46. genshell.h gettext.h init.c \
  47. intprops.h load.c m4/libopts.m4 \
  48. m4/liboptschk.m4 m4/stdnoreturn.m4 makeshell.c \
  49. nested.c numeric.c option-value-type.c \
  50. option-value-type.h option-xat-attribute.c option-xat-attribute.h \
  51. parse-duration.c parse-duration.h pgusage.c \
  52. proto.h putshell.c reset.c \
  53. restore.c save.c sort.c \
  54. stack.c stdnoreturn.in.h streqvcmp.c \
  55. text_mmap.c time.c tokenize.c \
  56. usage.c version.c