1# $FreeBSD$ 2 3MAN= 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 20DPADD+= ${LIBEDIT} ${LIBTERMCAPW} 21LDADD+= -ledit -ltermcapw 22CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \ 23 -I${DESTDIR}/${INCLUDEDIR}/edit 24 25CLEANFILES+= .version version.c 26 27NO_PIE= yes 28 29version.c: 30 sh -e ${.CURDIR}/../scripts/mkver ntpq 31 32.include <bsd.prog.mk> 33