1# $FreeBSD$ 2 3MAN= 4 5.include <src.opts.mk> 6.include <bsd.own.mk> 7 8.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdc 9 10PROG= ntpdc 11SRCS= ntpdc.c ntpdc_ops.c ntpdc-opts.c version.c 12 13CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \ 14 -I${.CURDIR}/../../../contrib/ntp/lib/isc/include \ 15 -I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include \ 16 -I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \ 17 -I${.CURDIR}/../../../contrib/ntp/sntp/libopts \ 18 -I${.CURDIR}/../../../lib/libc/${MACHINE_ARCH} \ 19 -I${.CURDIR}/../ -I${.CURDIR} 20 21LIBADD= edit ntp m opts pthread 22CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \ 23 -I${DESTDIR}/${INCLUDEDIR}/edit 24 25.if ${MK_OPENSSL} != "no" 26LIBADD+= crypto 27.else 28LIBADD+= md 29.endif 30 31CLEANFILES+= .version version.c 32 33version.c: 34 sh -e ${.CURDIR}/../scripts/mkver ntpdc 35 36.include <bsd.prog.mk> 37