1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdate 6 7PROG= ntpdate 8MAN= 9SRCS= ntpdate.c version.c 10 11CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \ 12 -I${.CURDIR}/../../../contrib/ntp/lib/isc/include/ \ 13 -I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include/ \ 14 -I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \ 15 -I${.CURDIR}/../ 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}/../scripts/mkver ntpdate 29 30.include <bsd.prog.mk> 31