2 #AUTOMAKE_OPTIONS = ../ansi2knr no-dependencies
5 bin_PROGRAMS= @MAKE_NTPTIME@ @MAKE_TICKADJ@ @MAKE_TIMETRIM@ \
7 EXTRA_PROGRAMS= audio-pcm byteorder hist jitter kern longsize \
8 ntptime pps-api precision sht testrs6000 tg tickadj timetrim
10 AM_CPPFLAGS= -I$(top_srcdir)/include -I$(top_srcdir)/lib/isc/include \
11 -I$(top_srcdir)/lib/isc/nothreads/include \
12 -I$(top_srcdir)/lib/isc/unix/include $(LIBOPTS_CFLAGS)
14 # LDADD might need RESLIB and ADJLIB
15 LDADD= ../libntp/libntp.a
16 ntp_keygen_SOURCES = ntp-keygen.c ntp-keygen-opts.c ntp-keygen-opts.h
17 ntp_keygen_LDADD= @LCRYPTO@ $(LIBOPTS_LDADD) ../libntp/libntp.a
19 ETAGS_ARGS= Makefile.am
20 #EXTRA_DIST= README TAGS
21 EXTRA_DIST= ntp-keygen-opts.def ntp-keygen.1 ntp-keygen-opts.texi ntp-keygen-opts.menu
22 BUILT_SOURCES= ntp-keygen-opts.c ntp-keygen-opts.h ntp-keygen.1 \
23 ntp-keygen-opts.texi ntp-keygen-opts.menu
25 man_MANS= ntp-keygen.1
26 run_ag= cd $(srcdir) && \
27 env PATH="$(abs_builddir):$(PATH)" \
28 autogen -L ../include --writable
29 std_def_list= $(top_srcdir)/include/debug-opt.def \
30 $(top_srcdir)/include/autogen-version.def \
31 $(top_srcdir)/include/copyright.def \
32 $(top_srcdir)/include/homerc.def \
33 $(top_srcdir)/include/version.def
35 $(srcdir)/ntp-keygen-opts.h: $(srcdir)/ntp-keygen-opts.c
36 @: do-nothing action to avoid default SCCS get, .h built with .c
38 $(srcdir)/ntp-keygen-opts.c: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
39 $(run_ag) ntp-keygen-opts.def
41 $(srcdir)/ntp-keygen.1: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
42 $(run_ag) -Tagman1.tpl -bntp-keygen ntp-keygen-opts.def
44 $(srcdir)/ntp-keygen-opts.texi $(srcdir)/ntp-keygen-opts.menu: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
45 $(MAKE) ntp-keygen # aginfo.tpl runs the binary to extract --help usage text
46 $(run_ag) -Taginfo.tpl -DLEVEL=section ntp-keygen-opts.def
49 jitter_SOURCES= jitter.c jitter.h
53 cd ../libntp && $(MAKE)
56 $(COMPILE) -DHAVE_TIMEX_H -c kern.c
58 include $(top_srcdir)/bincheck.mf
59 include $(top_srcdir)/depsver.mf