1NULL= 2 3bin_PROGRAMS= $(NTP_KEYGEN_DB) $(NTPTIME_DB) $(TICKADJ_DB) $(TIMETRIM_DB) 4libexec_PROGRAMS= $(NTP_KEYGEN_DL) $(NTPTIME_DL) $(TICKADJ_DL) $(TIMETRIM_DL) 5sbin_PROGRAMS= $(NTP_KEYGEN_DS) $(NTPTIME_DS) $(TICKADJ_DS) $(TIMETRIM_DS) 6 7EXTRA_PROGRAMS= audio-pcm byteorder hist jitter kern longsize lsf-times \ 8 ntp-keygen \ 9 ntptime pps-api precision sht testrs6000 tg tg2 tickadj timetrim 10 11AM_CFLAGS = $(CFLAGS_NTP) 12AM_CFLAGS += $(NTP_HARD_CFLAGS) 13 14AM_CPPFLAGS = $(NTP_INCS) 15AM_CPPFLAGS += $(LIBOPTS_CFLAGS) 16AM_CPPFLAGS += $(CPPFLAGS_NTP) 17AM_CPPFLAGS += $(NTP_HARD_CPPFLAGS) 18 19AM_LDFLAGS = $(LDFLAGS_NTP) 20AM_LDFLAGS += $(NTP_HARD_LDFLAGS) 21 22# LDADD might need RESLIB and ADJLIB 23LDADD= ../libntp/libntp.a $(LDADD_LIBNTP) $(LIBM) $(PTHREAD_LIBS) 24tg2_LDADD= ../libntp/libntp.a $(LDADD_LIBNTP) $(LIBM) 25ntp_keygen_LDADD = $(LIBOPTS_LDADD) ../libntp/libntp.a 26ntp_keygen_LDADD += $(LDADD_LIBEVENT) 27ntp_keygen_LDADD += $(LDADD_LIBNTP) $(PTHREAD_LIBS) $(LDADD_NTP) $(LIBM) 28ntp_keygen_SOURCES = ntp-keygen.c ntp-keygen-opts.c ntp-keygen-opts.h 29nodist_ntp_keygen_SOURCES = version.c 30 31tickadj_LDADD= ../libntp/libntp.a $(LDADD_LIBNTP) $(LIBM) $(PTHREAD_LIBS) $(LDADD_NLIST) 32 33EXTRA_DIST= \ 34 invoke-ntp-keygen.menu \ 35 invoke-ntp-keygen.texi \ 36 lsf-times.c \ 37 ntp-keygen-opts.def \ 38 ntp-keygen.1ntp-keygenman \ 39 ntp-keygen.1ntp-keygenmdoc \ 40 ntp-keygen.man.in \ 41 ntp-keygen.mdoc.in \ 42 ntp-keygen.mdoc.in \ 43 ntp-keygen.html \ 44 ntp-keygen.texi \ 45 $(NULL) 46 47BUILT_SOURCES= ntp-keygen-opts.c ntp-keygen-opts.h 48CLEANFILES = .version version.c 49DISTCLEANFILES= config.log $(man_MANS) 50 51html_DATA= \ 52 $(srcdir)/ntp-keygen.html \ 53 $(NULL) 54 55noinst_DATA= \ 56 $(srcdir)/invoke-ntp-keygen.menu \ 57 $(srcdir)/invoke-ntp-keygen.texi \ 58 $(srcdir)/ntp-keygen.man.in \ 59 $(srcdir)/ntp-keygen.mdoc.in \ 60 $(man_MANS) \ 61 $(NULL) 62 63man1_MANS= 64man8_MANS= 65man_MANS= ntp-keygen.$(NTP_KEYGEN_MS) 66 67run_ag= cd $(srcdir) && env PATH="$(abs_builddir):$(PATH)" AUTOGEN_DNE_DATE=-D \ 68 autogen -L ../sntp/include -L ../sntp/ag-tpl --writable 69std_def_list = \ 70 $(top_srcdir)/sntp/include/debug-opt.def \ 71 $(top_srcdir)/sntp/include/autogen-version.def \ 72 $(top_srcdir)/sntp/include/copyright.def \ 73 $(top_srcdir)/sntp/include/homerc.def \ 74 $(top_srcdir)/sntp/include/ntp.lic \ 75 $(top_srcdir)/sntp/include/version.def \ 76 $(NULL) 77 78$(srcdir)/ntp-keygen-opts.h: $(srcdir)/ntp-keygen-opts.c 79 @: do-nothing action to avoid default SCCS get, .h built with .c 80 81$(srcdir)/ntp-keygen-opts.c: $(srcdir)/ntp-keygen-opts.def $(std_def_list) 82 $(run_ag) ntp-keygen-opts.def 83 84### 85 86$(srcdir)/ntp-keygen.1ntp-keygenman: $(srcdir)/ntp-keygen-opts.def $(std_def_list) 87 $(run_ag) -DMAN_SECTION=1ntp-keygenman -Tagman-cmd.tpl ntp-keygen-opts.def 88 89$(srcdir)/ntp-keygen.man.in: $(srcdir)/ntp-keygen.1ntp-keygenman $(top_srcdir)/sntp/scripts/mansec2subst.sed 90 sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntp-keygen.1ntp-keygenman > $(srcdir)/ntp-keygen.man.in+ 91 mv $(srcdir)/ntp-keygen.man.in+ $(srcdir)/ntp-keygen.man.in 92 93### 94 95$(srcdir)/ntp-keygen.1ntp-keygenmdoc: $(srcdir)/ntp-keygen-opts.def $(std_def_list) 96 $(run_ag) -DMAN_SECTION=1ntp-keygenmdoc -Tagmdoc-cmd.tpl ntp-keygen-opts.def 97 98$(srcdir)/ntp-keygen.mdoc.in: $(srcdir)/ntp-keygen.1ntp-keygenmdoc $(top_srcdir)/sntp/scripts/mansec2subst.sed 99 sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntp-keygen.1ntp-keygenmdoc > $(srcdir)/ntp-keygen.mdoc.in+ 100 mv $(srcdir)/ntp-keygen.mdoc.in+ $(srcdir)/ntp-keygen.mdoc.in 101 102### 103 104ntp-keygen.$(NTP_KEYGEN_MS): $(srcdir)/ntp-keygen.$(MANTAGFMT).in $(top_builddir)/config.status 105 $(top_builddir)/config.status --file=ntp-keygen.$(NTP_KEYGEN_MS)+:$(srcdir)/ntp-keygen.$(MANTAGFMT).in 106 mv ntp-keygen.$(NTP_KEYGEN_MS)+ ntp-keygen.$(NTP_KEYGEN_MS) 107 108### 109 110$(srcdir)/invoke-ntp-keygen.menu: $(srcdir)/invoke-ntp-keygen.texi 111 @: do-nothing action to avoid default SCCS get, .menu built with .texi 112 113$(srcdir)/invoke-ntp-keygen.texi: $(srcdir)/ntp-keygen-opts.def $(std_def_list) 114 $(run_ag) -Tagtexi-cmd.tpl -DLEVEL=section ntp-keygen-opts.def 115 $(top_srcdir)/scripts/build/check--help $@ 116 117$(srcdir)/ntp-keygen.html: $(srcdir)/invoke-ntp-keygen.texi $(srcdir)/ntp-keygen.texi $(top_srcdir)/sntp/include/version.texi 118 cd $(srcdir) && ( makeinfo --force --html --no-split -o ntp-keygen.html ntp-keygen.texi || true ) 119 120 121jitter_SOURCES= jitter.c 122jitter_LDADD= 123 124kern.o: kern.c 125 $(COMPILE) -DHAVE_TIMEX_H -c kern.c 126 127version.c: Makefile $(top_srcdir)/sntp/scm-rev 128 $(AM_V_GEN)env CSET=`cat $(top_srcdir)/sntp/scm-rev` $(top_builddir)/scripts/build/mkver ntp-keygen 129 130include $(top_srcdir)/bincheck.mf 131include $(top_srcdir)/check-libntp.mf 132include $(top_srcdir)/check-libopts.mf 133include $(top_srcdir)/check-scm-rev.mf 134include $(top_srcdir)/depsver.mf 135include $(top_srcdir)/includes.mf 136