diff options
Diffstat (limited to 'ntpq/Makefile.am')
-rw-r--r-- | ntpq/Makefile.am | 41 |
1 files changed, 31 insertions, 10 deletions
diff --git a/ntpq/Makefile.am b/ntpq/Makefile.am index 0bd05fc9cf0a..7cd3f0aa04d1 100644 --- a/ntpq/Makefile.am +++ b/ntpq/Makefile.am @@ -1,21 +1,42 @@ -#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies -AUTOMAKE_OPTIONS = ../util/ansi2knr -bin_PROGRAMS = ntpq -INCLUDES = -I$(top_srcdir)/include +AUTOMAKE_OPTIONS= ../util/ansi2knr + +bin_PROGRAMS= ntpq +AM_CPPFLAGS= -I$(top_srcdir)/include $(LIBOPTS_CFLAGS) + # LDADD might need RESLIB and ADJLIB -ntpq_LDADD = version.o ../libntp/libntp.a @READLINE_LIBS@ -DISTCLEANFILES = .version version.c -noinst_HEADERS = ntpq.h -#EXTRA_DIST = ntpq.mak -ETAGS_ARGS = Makefile.am +ntpq_LDADD= version.o @READLINE_LIBS@ $(LIBOPTS_LDADD) ../libntp/libntp.a +DISTCLEANFILES= .version version.c +noinst_HEADERS= ntpq.h +ETAGS_ARGS= Makefile.am +EXTRA_DIST= ntpq-opts.def ntpq.1 ntpq-opts.texi ntpq-opts.menu +BUILT_SOURCES= ntpq-opts.c ntpq-opts.h ntpq.1 ntpq-opts.texi ntpq-opts.menu +man_MANS= ntpq.1 +run_ag= cd $(srcdir) && autogen -L ../include --writable +std_def_list= $(top_srcdir)/include/debug-opt.def \ + $(top_srcdir)/include/autogen-version.def \ + $(top_srcdir)/include/copyright.def \ + $(top_srcdir)/include/homerc.def \ + $(top_srcdir)/include/version.def +ntpq_SOURCES= ntpq.c ntpq-subs.c ntpq-opts.c ntpq-opts.h + +$(srcdir)/ntpq-opts.h: $(srcdir)/ntpq-opts.c +$(srcdir)/ntpq-opts.c: $(srcdir)/ntpq-opts.def $(std_def_list) + $(run_ag) ntpq-opts.def -ntpq_SOURCES = ntpq.c ntpq_ops.c +$(srcdir)/ntpq.1: $(srcdir)/ntpq-opts.def $(std_def_list) + $(run_ag) -Tagman1.tpl -bntpq ntpq-opts.def + +$(srcdir)/ntpq-opts.texi $(srcdir)/ntpq-opts.menu: $(srcdir)/ntpq-opts.def $(std_def_list) + $(run_ag) -Taginfo.tpl -DLEVEL=section ntpq-opts.def $(PROGRAMS): $(LDADD) ../libntp/libntp.a: cd ../libntp && $(MAKE) +$(top_srcdir)/version : + cd $(top_srcdir) && $(MAKE) version + version.o: $(ntpq_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/version env CSET=`cat $(top_srcdir)/version` $(top_builddir)/scripts/mkver ntpq $(COMPILE) -c version.c |