1# $FreeBSD$ 2 3MAN= 4 5.include <src.opts.mk> 6.include <bsd.own.mk> 7 8.PATH: ${.CURDIR}/../../../contrib/ntp/ntpq 9 10BINDIR= /usr/bin 11 12PROG= ntpq 13SRCS= ntpq.c ntpq-opts.c ntpq-subs.c version.c 14 15CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \ 16 -I${.CURDIR}/../../../contrib/ntp/include \ 17 -I${.CURDIR}/../../../contrib/ntp/lib/isc/include \ 18 -I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include \ 19 -I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \ 20 -I${.CURDIR}/../../../contrib/ntp/lib/isc/${NTP_ATOMIC}/include \ 21 -I${.CURDIR}/../../../contrib/ntp/sntp/libopts \ 22 -I${.CURDIR}/../ 23 24LIBADD+= edit ntp opts m pthread 25 26.if ${MK_OPENSSL} != "no" 27LIBADD+= crypto 28.else 29LIBADD+= md 30.endif 31 32CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \ 33 -I${DESTDIR}/${INCLUDEDIR}/edit 34 35CLEANFILES+= .version version.c 36 37version.c: 38 sh -e ${.CURDIR}/../scripts/mkver ntpq 39 40.include <bsd.prog.mk> 41