1# $FreeBSD$ 2 3NO_MAN= 4 5.include <bsd.own.mk> 6 7.PATH: ${.CURDIR}/../../../contrib/ntp/ntpq 8 9BINDIR= /usr/bin 10 11PROG= ntpq 12SRCS= ntpq.c ntpq-opts.c ntpq-subs.c version.c 13 14CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../ \ 15 -I${.CURDIR}/../../../contrib/ntp/libopts 16 17DPADD= ${LIBNTP} ${LIBM} ${LIBMD} ${LIBOPTS} 18LDADD= ${LIBNTP} -lm -lmd ${LIBOPTS} 19 20.if ${MK_GNU_SUPPORT} != "no" 21DPADD+= ${LIBREADLINE} ${LIBTERMCAP} 22LDADD+= -lreadline -ltermcap 23CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_HISTORY_H \ 24 -DHAVE_READLINE_READLINE_H 25.endif 26 27CLEANFILES+= .version version.c 28 29version.c: 30 sh -e ${.CURDIR}/../scripts/mkver ntpq 31 32.include <bsd.prog.mk> 33