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 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 18.if ${MK_GNU_SUPPORT} != "no" 19DPADD+= ${LIBREADLINE} ${LIBTERMCAP} 20LDADD+= -lreadline -ltermcap 21CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_HISTORY_H \ 22 -DHAVE_READLINE_READLINE_H 23.endif 24 25CLEANFILES+= .version version.c 26 27version.c: 28 sh -e ${.CURDIR}/../scripts/mkver ntpdc 29 30afterinstall: 31 rm -f ${DESTDIR}/usr/sbin/xntpdc 32 33.include <bsd.prog.mk> 34