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/lib/isc/include \ 14 -I${SRCTOP}/contrib/ntp/lib/isc/unix/include \ 15 -I${SRCTOP}/contrib/ntp/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 21CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \ 22 -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/edit 23 24.if ${MK_OPENSSL} != "no" 25LIBADD+= crypto 26.else 27LIBADD+= md 28.endif 29 30CLEANFILES+= .version version.c 31 32version.c: 33 sh -e ${.CURDIR:H}/scripts/mkver ntpdc 34 35.include <bsd.prog.mk> 36