4 sbin_PROGRAMS= @MAKE_NTPSNMPD@
5 EXTRA_PROGRAMS= ntpsnmpd
6 ntpsnmpd_SOURCES= netsnmp_daemonize.c ntpsnmpd.c ntpSnmpSubagentObject.c \
7 ntpsnmpd-opts.c ntpsnmpd-opts.h
8 noinst_HEADERS= ntpSnmpSubagentObject.h
9 # HMS: we probably want a version.o file here, too.
10 LDADD= ../ntpq/libntpq.a ../libntp/libntp.a @SNMP_LIBS@ \
12 AM_CPPFLAGS= -I$(top_srcdir)/ntpq -I$(top_srcdir)/include \
13 -I$(top_srcdir)/lib/isc/include \
14 -I$(top_srcdir)/lib/isc/nothreads/include \
15 -I$(top_srcdir)/lib/isc/unix/include \
16 $(LIBOPTS_CFLAGS) @SNMP_CPPFLAGS@
18 AM_CFLAGS= @SNMP_CFLAGS@
19 EXTRA_DIST= ntpsnmpd-opts.def ntpsnmpd.1 ntpsnmpd-opts.texi \
20 ntpsnmpd-opts.menu ntpv4-mib.mib
21 BUILT_SOURCES= ntpsnmpd-opts.c ntpsnmpd-opts.h ntpsnmpd.1 ntpsnmpd-opts.texi \
25 run_ag= cd $(srcdir) && \
26 env PATH="$(abs_builddir):$(PATH)" \
27 autogen -L ../include --writable
28 std_def_list= $(top_srcdir)/include/autogen-version.def \
29 $(top_srcdir)/include/copyright.def \
30 $(top_srcdir)/include/homerc.def \
31 $(top_srcdir)/include/version.def
33 $(srcdir)/ntpsnmpd-opts.h: $(srcdir)/ntpsnmpd-opts.c
34 @: do-nothing action to avoid default SCCS get, .h built with .c
36 $(srcdir)/ntpsnmpd-opts.c: $(srcdir)/ntpsnmpd-opts.def $(std_def_list)
37 $(run_ag) ntpsnmpd-opts.def
39 $(srcdir)/ntpsnmpd.1: $(srcdir)/ntpsnmpd-opts.def $(std_def_list)
40 $(run_ag) -Tagman1.tpl -bntpsnmpd ntpsnmpd-opts.def
42 $(srcdir)/ntpsnmpd-opts.texi $(srcdir)/ntpsnmpd-opts.menu: $(srcdir)/ntpsnmpd-opts.def $(std_def_list)
43 $(MAKE) @MAKE_NTPSNMPD@ not-all-target # aginfo.tpl runs the binary to extract --help usage text
44 $(run_ag) -Taginfo.tpl -DLEVEL=section ntpsnmpd-opts.def
47 touch $@ # used to avoid "all" default target when not building ntpsnmpd
49 include $(top_srcdir)/bincheck.mf
50 include $(top_srcdir)/depsver.mf