1# $FreeBSD$ 2 3MAN= 4 5.include <bsd.own.mk> 6 7.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdc 8 9PROG= ntpdc 10SRCS= ntpdc.c ntpdc_ops.c ntpdc-opts.c version.c 11 12CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../ \ 13 -I${.CURDIR}/../../../contrib/ntp/libopts 14 15DPADD= ${LIBNTP} ${LIBM} ${LIBMD} ${LIBOPTS} 16LDADD= ${LIBNTP} -lm -lmd ${LIBOPTS} 17 18DPADD+= ${LIBEDIT} ${LIBTERMCAPW} 19LDADD+= -ledit -ltermcapw 20CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \ 21 -I${DESTDIR}/${INCLUDEDIR}/edit 22 23CLEANFILES+= .version version.c 24 25version.c: 26 sh -e ${.CURDIR}/../scripts/mkver ntpdc 27 28afterinstall: 29 rm -f ${DESTDIR}/usr/sbin/xntpdc 30 31.include <bsd.prog.mk> 32