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