1# $FreeBSD$ 2 3MAN= 4 5.include <src.opts.mk> 6 7.PATH: ${SRCTOP}/contrib/ntp/ntpq 8 9BINDIR= /usr/bin 10 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/lib/isc/include \ 17 -I${SRCTOP}/contrib/ntp/lib/isc/unix/include \ 18 -I${SRCTOP}/contrib/ntp/lib/isc/pthreads/include \ 19 -I${SRCTOP}/contrib/ntp/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 31CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \ 32 -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/edit 33 34CLEANFILES+= .version version.c 35 36version.c: 37 sh -e ${.CURDIR:H}/scripts/mkver ntpq 38 39.include <bsd.prog.mk> 40