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