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