1999-12-09 13:01:21 +00:00
|
|
|
#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
|
|
|
|
AUTOMAKE_OPTIONS = ../util/ansi2knr
|
|
|
|
bin_PROGRAMS = ntpq
|
|
|
|
INCLUDES = -I$(top_srcdir)/include
|
|
|
|
# LDADD might need RESLIB and ADJLIB
|
2004-07-20 15:01:56 +00:00
|
|
|
ntpq_LDADD = version.o ../libntp/libntp.a @READLINE_LIBS@
|
2001-08-29 14:35:15 +00:00
|
|
|
DISTCLEANFILES = .version version.c
|
1999-12-09 13:01:21 +00:00
|
|
|
noinst_HEADERS = ntpq.h
|
|
|
|
#EXTRA_DIST = ntpq.mak
|
|
|
|
ETAGS_ARGS = Makefile.am
|
|
|
|
|
|
|
|
ntpq_SOURCES = ntpq.c ntpq_ops.c
|
|
|
|
|
|
|
|
$(PROGRAMS): $(LDADD)
|
|
|
|
|
|
|
|
../libntp/libntp.a:
|
|
|
|
cd ../libntp && $(MAKE)
|
|
|
|
|
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
|