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