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