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_ops.c version.c 13 14CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../ 15 16DPADD= ${LIBNTP} ${LIBMD} 17LDADD= ${LIBNTP} -lmd 18 19.if ${MK_GNU_SUPPORT} != "no" 20DPADD+= ${LIBREADLINE} ${LIBTERMCAP} 21LDADD+= -lreadline -ltermcap 22CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_HISTORY_H \ 23 -DHAVE_READLINE_READLINE_H 24.endif 25 26CLEANFILES+= .version version.c 27 28version.c: 29 sh -e ${.CURDIR}/../scripts/mkver ntpq 30 31.include <bsd.prog.mk> 32