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