1999-12-13 14:09:56 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
NO_MAN=
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2001-07-20 06:20:32 +00:00
|
|
|
.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdc
|
1999-12-13 14:09:56 +00:00
|
|
|
|
2001-07-20 06:20:32 +00:00
|
|
|
PROG= ntpdc
|
2000-01-01 23:58:01 +00:00
|
|
|
SRCS= ntpdc.c ntpdc_ops.c version.c
|
|
|
|
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
|
1999-12-13 14:09:56 +00:00
|
|
|
|
2004-07-22 08:14:37 +00:00
|
|
|
DPADD= ${LIBNTP} ${LIBMD}
|
|
|
|
LDADD= ${LIBNTP} -lmd
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_GNU_SUPPORT} != "no"
|
2004-07-22 08:14:37 +00:00
|
|
|
DPADD+= ${LIBREADLINE} ${LIBTERMCAP}
|
|
|
|
LDADD+= -lreadline -ltermcap
|
|
|
|
CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_HISTORY_H \
|
|
|
|
-DHAVE_READLINE_READLINE_H
|
|
|
|
.endif
|
2000-01-01 23:58:01 +00:00
|
|
|
|
|
|
|
CLEANFILES+= .version version.c
|
1999-12-13 14:09:56 +00:00
|
|
|
|
|
|
|
version.c:
|
|
|
|
sh -e ${.CURDIR}/../scripts/mkver ntpdc
|
|
|
|
|
1999-12-16 12:40:51 +00:00
|
|
|
afterinstall:
|
|
|
|
rm -f ${DESTDIR}/usr/sbin/xntpdc
|
|
|
|
|
1999-12-13 14:09:56 +00:00
|
|
|
.include <bsd.prog.mk>
|