1# $FreeBSD$ 2 3NO_MAN= 4 5.include <bsd.own.mk> 6 7.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdc 8 9PROG= ntpdc 10SRCS= ntpdc.c ntpdc_ops.c version.c 11 12CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../ 13 14DPADD= ${LIBNTP} ${LIBMD} 15LDADD= ${LIBNTP} -lmd 16 17.if ${MK_GNU_SUPPORT} != "no" 18DPADD+= ${LIBREADLINE} ${LIBTERMCAP} 19LDADD+= -lreadline -ltermcap 20CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_HISTORY_H \ 21 -DHAVE_READLINE_READLINE_H 22.endif 23 24CLEANFILES+= .version version.c 25 26version.c: 27 sh -e ${.CURDIR}/../scripts/mkver ntpdc 28 29afterinstall: 30 rm -f ${DESTDIR}/usr/sbin/xntpdc 31 32.include <bsd.prog.mk> 33