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