154552Sroberto# $FreeBSD$ 254552Sroberto 3156813SruNO_MAN= 4156813Sru 5156813Sru.include <bsd.own.mk> 6156813Sru 780029Sobrien.PATH: ${.CURDIR}/../../../contrib/ntp/ntpq 854552Sroberto 980029SobrienBINDIR= /usr/bin 1055307Sroberto 1180029SobrienPROG= ntpq 12182008SrobertoSRCS= ntpq.c ntpq-opts.c ntpq-subs.c version.c 1355307Sroberto 14290001SglebiusCFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \ 15290001Sglebius -I${.CURDIR}/../../../contrib/ntp/include \ 16290001Sglebius -I${.CURDIR}/../../../contrib/ntp/lib/isc/include \ 17290001Sglebius -I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include \ 18290001Sglebius -I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \ 19290001Sglebius -I${.CURDIR}/../../../contrib/ntp/lib/isc/${NTP_ATOMIC}/include \ 20290001Sglebius -I${.CURDIR}/../../../contrib/ntp/sntp/libopts \ 21290001Sglebius -I${.CURDIR}/../ 2254552Sroberto 23290363SglebiusDPADD= ${LIBEDIT} ${LIBNTP} ${LIBM} ${LIBOPTS} ${LIBPTHREAD} 24290363SglebiusLDADD= -ledit ${LIBNTP} -lm ${LIBOPTS} -lpthread 2555307Sroberto 26290001Sglebius.if ${MK_OPENSSL} != "no" 27290001SglebiusDPADD+= ${LIBCRYPTO} 28290001SglebiusLDADD+= -lcrypto 29290001Sglebius.else 30290001SglebiusDPADD+= ${LIBMD} 31290001SglebiusLDADD+= -lmd 32290001Sglebius.endif 33290001Sglebius 34220370SobrienCFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \ 35220370Sobrien -I${DESTDIR}/${INCLUDEDIR}/edit 36132531Sroberto 3754552SrobertoCLEANFILES+= .version version.c 3854552Sroberto 39220370Sobrienversion.c: 4054552Sroberto sh -e ${.CURDIR}/../scripts/mkver ntpq 4154552Sroberto 4254552Sroberto.include <bsd.prog.mk> 43