2013-12-04 21:33:17 +00:00
|
|
|
NULL=
|
2008-08-18 14:26:05 +00:00
|
|
|
|
2014-12-20 22:52:39 +00:00
|
|
|
bin_PROGRAMS= $(NTP_KEYGEN_DB) $(NTPTIME_DB) $(TICKADJ_DB) $(TIMETRIM_DB)
|
|
|
|
libexec_PROGRAMS= $(NTP_KEYGEN_DL) $(NTPTIME_DL) $(TICKADJ_DL) $(TIMETRIM_DL)
|
|
|
|
sbin_PROGRAMS= $(NTP_KEYGEN_DS) $(NTPTIME_DS) $(TICKADJ_DS) $(TIMETRIM_DS)
|
2013-12-04 21:33:17 +00:00
|
|
|
|
2014-12-20 22:52:39 +00:00
|
|
|
EXTRA_PROGRAMS= audio-pcm byteorder hist jitter kern longsize ntp-keygen \
|
|
|
|
ntptime pps-api precision sht testrs6000 tg tg2 tickadj timetrim
|
1999-12-09 13:01:21 +00:00
|
|
|
|
2017-03-23 05:19:00 +00:00
|
|
|
AM_CFLAGS = $(CFLAGS_NTP)
|
|
|
|
AM_CFLAGS += $(NTP_HARD_CFLAGS)
|
2014-12-20 22:52:39 +00:00
|
|
|
|
|
|
|
AM_CPPFLAGS = $(NTP_INCS)
|
|
|
|
AM_CPPFLAGS += $(LIBOPTS_CFLAGS)
|
|
|
|
AM_CPPFLAGS += $(CPPFLAGS_NTP)
|
2017-03-23 05:19:00 +00:00
|
|
|
AM_CPPFLAGS += $(NTP_HARD_CPPFLAGS)
|
2014-12-20 22:52:39 +00:00
|
|
|
|
2017-03-23 05:19:00 +00:00
|
|
|
AM_LDFLAGS = $(LDFLAGS_NTP)
|
|
|
|
AM_LDFLAGS += $(NTP_HARD_LDFLAGS)
|
2013-12-04 21:33:17 +00:00
|
|
|
|
1999-12-09 13:01:21 +00:00
|
|
|
# LDADD might need RESLIB and ADJLIB
|
2014-12-20 22:52:39 +00:00
|
|
|
LDADD= ../libntp/libntp.a $(LDADD_LIBNTP) $(LIBM) $(PTHREAD_LIBS)
|
|
|
|
tg2_LDADD= ../libntp/libntp.a $(LDADD_LIBNTP) $(LIBM)
|
|
|
|
ntp_keygen_LDADD = version.o $(LIBOPTS_LDADD) ../libntp/libntp.a
|
2015-02-05 20:53:33 +00:00
|
|
|
ntp_keygen_LDADD += $(LDADD_LIBEVENT)
|
2014-12-20 22:52:39 +00:00
|
|
|
ntp_keygen_LDADD += $(LDADD_LIBNTP) $(PTHREAD_LIBS) $(LDADD_NTP) $(LIBM)
|
2008-08-18 14:26:05 +00:00
|
|
|
ntp_keygen_SOURCES = ntp-keygen.c ntp-keygen-opts.c ntp-keygen-opts.h
|
|
|
|
|
2014-12-20 22:52:39 +00:00
|
|
|
tickadj_LDADD= ../libntp/libntp.a $(LDADD_LIBNTP) $(LIBM) $(PTHREAD_LIBS) $(LDADD_NLIST)
|
|
|
|
|
|
|
|
EXTRA_DIST= \
|
|
|
|
invoke-ntp-keygen.menu \
|
|
|
|
invoke-ntp-keygen.texi \
|
|
|
|
ntp-keygen-opts.def \
|
|
|
|
ntp-keygen.1ntp-keygenman \
|
|
|
|
ntp-keygen.1ntp-keygenmdoc \
|
|
|
|
ntp-keygen.man.in \
|
|
|
|
ntp-keygen.mdoc.in \
|
|
|
|
ntp-keygen.mdoc.in \
|
|
|
|
ntp-keygen.html \
|
|
|
|
ntp-keygen.texi \
|
|
|
|
$(NULL)
|
|
|
|
|
2013-12-04 21:33:17 +00:00
|
|
|
BUILT_SOURCES= ntp-keygen-opts.c ntp-keygen-opts.h
|
|
|
|
CLEANFILES=
|
2014-12-20 22:52:39 +00:00
|
|
|
DISTCLEANFILES= .version version.c config.log $(man_MANS)
|
|
|
|
|
|
|
|
html_DATA= \
|
|
|
|
$(srcdir)/ntp-keygen.html \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
noinst_DATA= \
|
|
|
|
$(srcdir)/invoke-ntp-keygen.menu \
|
|
|
|
$(srcdir)/invoke-ntp-keygen.texi \
|
|
|
|
$(srcdir)/ntp-keygen.man.in \
|
|
|
|
$(srcdir)/ntp-keygen.mdoc.in \
|
|
|
|
$(man_MANS) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
man1_MANS=
|
|
|
|
man8_MANS=
|
|
|
|
man_MANS= ntp-keygen.$(NTP_KEYGEN_MS)
|
|
|
|
|
|
|
|
run_ag= cd $(srcdir) && env PATH="$(abs_builddir):$(PATH)" AUTOGEN_DNE_DATE=-D \
|
|
|
|
autogen -L ../sntp/include -L ../sntp/ag-tpl --writable
|
|
|
|
std_def_list = \
|
|
|
|
$(top_srcdir)/sntp/include/debug-opt.def \
|
|
|
|
$(top_srcdir)/sntp/include/autogen-version.def \
|
|
|
|
$(top_srcdir)/sntp/include/copyright.def \
|
|
|
|
$(top_srcdir)/sntp/include/homerc.def \
|
|
|
|
$(top_srcdir)/sntp/include/ntp.lic \
|
|
|
|
$(top_srcdir)/sntp/include/version.def \
|
|
|
|
$(NULL)
|
2008-08-18 14:26:05 +00:00
|
|
|
|
|
|
|
$(srcdir)/ntp-keygen-opts.h: $(srcdir)/ntp-keygen-opts.c
|
2013-12-04 21:33:17 +00:00
|
|
|
@: do-nothing action to avoid default SCCS get, .h built with .c
|
2014-12-20 22:52:39 +00:00
|
|
|
|
2008-08-18 14:26:05 +00:00
|
|
|
$(srcdir)/ntp-keygen-opts.c: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
|
|
|
|
$(run_ag) ntp-keygen-opts.def
|
|
|
|
|
2014-12-20 22:52:39 +00:00
|
|
|
###
|
|
|
|
|
|
|
|
$(srcdir)/ntp-keygen.1ntp-keygenman: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
|
|
|
|
$(run_ag) -DMAN_SECTION=1ntp-keygenman -Tagman-cmd.tpl ntp-keygen-opts.def
|
|
|
|
|
|
|
|
$(srcdir)/ntp-keygen.man.in: $(srcdir)/ntp-keygen.1ntp-keygenman $(top_srcdir)/sntp/scripts/mansec2subst.sed
|
|
|
|
sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntp-keygen.1ntp-keygenman > $(srcdir)/ntp-keygen.man.in+
|
|
|
|
mv $(srcdir)/ntp-keygen.man.in+ $(srcdir)/ntp-keygen.man.in
|
2008-08-18 14:26:05 +00:00
|
|
|
|
2014-12-20 22:52:39 +00:00
|
|
|
###
|
|
|
|
|
|
|
|
$(srcdir)/ntp-keygen.1ntp-keygenmdoc: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
|
|
|
|
$(run_ag) -DMAN_SECTION=1ntp-keygenmdoc -Tagmdoc-cmd.tpl ntp-keygen-opts.def
|
|
|
|
|
|
|
|
$(srcdir)/ntp-keygen.mdoc.in: $(srcdir)/ntp-keygen.1ntp-keygenmdoc $(top_srcdir)/sntp/scripts/mansec2subst.sed
|
|
|
|
sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntp-keygen.1ntp-keygenmdoc > $(srcdir)/ntp-keygen.mdoc.in+
|
|
|
|
mv $(srcdir)/ntp-keygen.mdoc.in+ $(srcdir)/ntp-keygen.mdoc.in
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
ntp-keygen.$(NTP_KEYGEN_MS): $(srcdir)/ntp-keygen.$(MANTAGFMT).in $(top_builddir)/config.status
|
|
|
|
$(top_builddir)/config.status --file=ntp-keygen.$(NTP_KEYGEN_MS)+:$(srcdir)/ntp-keygen.$(MANTAGFMT).in
|
|
|
|
mv ntp-keygen.$(NTP_KEYGEN_MS)+ ntp-keygen.$(NTP_KEYGEN_MS)
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
$(srcdir)/invoke-ntp-keygen.menu: $(srcdir)/invoke-ntp-keygen.texi
|
2013-12-04 21:33:17 +00:00
|
|
|
@: do-nothing action to avoid default SCCS get, .menu built with .texi
|
2014-12-20 22:52:39 +00:00
|
|
|
|
|
|
|
$(srcdir)/invoke-ntp-keygen.texi: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
|
|
|
|
$(run_ag) -Tagtexi-cmd.tpl -DLEVEL=section ntp-keygen-opts.def
|
|
|
|
$(top_srcdir)/scripts/build/check--help $@
|
|
|
|
|
|
|
|
$(srcdir)/ntp-keygen.html: $(srcdir)/ntp-keygen.texi $(top_srcdir)/sntp/include/version.texi
|
|
|
|
cd $(srcdir) && ( makeinfo --force --html --no-split -o ntp-keygen.html ntp-keygen.texi || true )
|
2008-08-18 14:26:05 +00:00
|
|
|
|
|
|
|
|
2015-04-10 01:26:02 +00:00
|
|
|
jitter_SOURCES= jitter.c
|
2008-08-18 14:26:05 +00:00
|
|
|
jitter_LDADD=
|
1999-12-09 13:01:21 +00:00
|
|
|
|
|
|
|
kern.o: kern.c
|
|
|
|
$(COMPILE) -DHAVE_TIMEX_H -c kern.c
|
2013-12-04 21:33:17 +00:00
|
|
|
|
2014-12-20 22:52:39 +00:00
|
|
|
$(PROGRAMS): version.o
|
|
|
|
|
|
|
|
$(top_srcdir)/sntp/scm-rev:
|
|
|
|
cd ../sntp && $(MAKE) $(AM_MAKEFLAGS) check-scm-rev
|
|
|
|
|
|
|
|
version.c: $(ntp_keygen_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/sntp/scm-rev
|
|
|
|
env CSET=`cat $(top_srcdir)/sntp/scm-rev` $(top_builddir)/scripts/build/mkver ntp-keygen
|
2013-12-04 21:33:17 +00:00
|
|
|
|
2014-12-20 22:52:39 +00:00
|
|
|
version.o: version.c
|
|
|
|
env CCACHE_DISABLE=1 $(COMPILE) -c version.c -o version.o
|
2013-12-04 21:33:17 +00:00
|
|
|
|
|
|
|
include $(top_srcdir)/bincheck.mf
|
2014-12-20 22:52:39 +00:00
|
|
|
include $(top_srcdir)/sntp/check-libntp.mf
|
|
|
|
include $(top_srcdir)/check-libopts.mf
|
2013-12-04 21:33:17 +00:00
|
|
|
include $(top_srcdir)/depsver.mf
|
2014-12-20 22:52:39 +00:00
|
|
|
include $(top_srcdir)/includes.mf
|