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