2008-08-18 14:26:05 +00:00
|
|
|
AUTOMAKE_OPTIONS= ../util/ansi2knr
|
|
|
|
|
|
|
|
bin_PROGRAMS= ntpq
|
|
|
|
AM_CPPFLAGS= -I$(top_srcdir)/include $(LIBOPTS_CFLAGS)
|
|
|
|
|
1999-12-09 13:01:21 +00:00
|
|
|
# LDADD might need RESLIB and ADJLIB
|
2008-08-18 14:26:05 +00:00
|
|
|
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
|
1999-12-09 13:01:21 +00:00
|
|
|
|
2008-08-18 14:26:05 +00:00
|
|
|
$(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
|
1999-12-09 13:01:21 +00:00
|
|
|
|
|
|
|
$(PROGRAMS): $(LDADD)
|
|
|
|
|
|
|
|
../libntp/libntp.a:
|
|
|
|
cd ../libntp && $(MAKE)
|
|
|
|
|
2008-08-18 14:26:05 +00:00
|
|
|
$(top_srcdir)/version :
|
|
|
|
cd $(top_srcdir) && $(MAKE) version
|
|
|
|
|
2004-07-20 15:01:56 +00:00
|
|
|
version.o: $(ntpq_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/version
|
2002-10-29 19:58:12 +00:00
|
|
|
env CSET=`cat $(top_srcdir)/version` $(top_builddir)/scripts/mkver ntpq
|
1999-12-09 13:01:21 +00:00
|
|
|
$(COMPILE) -c version.c
|