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