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
|
2008-08-22 16:00:48 +00:00
|
|
|
SRCS= ntpdc.c ntpdc_ops.c ntpdc-opts.c version.c
|
2000-01-01 23:58:01 +00:00
|
|
|
|
2008-08-22 16:00:48 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../ \
|
|
|
|
-I${.CURDIR}/../../../contrib/ntp/libopts
|
1999-12-13 14:09:56 +00:00
|
|
|
|
2008-08-22 16:00:48 +00:00
|
|
|
DPADD= ${LIBNTP} ${LIBM} ${LIBMD} ${LIBOPTS}
|
|
|
|
LDADD= ${LIBNTP} -lm -lmd ${LIBOPTS}
|
2004-07-22 08:14:37 +00:00
|
|
|
|
2011-04-05 18:41:01 +00:00
|
|
|
DPADD+= ${LIBEDIT} ${LIBTERMCAP}
|
|
|
|
LDADD+= -ledit -ltermcap
|
|
|
|
CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \
|
|
|
|
-I${DESTDIR}/${INCLUDEDIR}/edit
|
2000-01-01 23:58:01 +00:00
|
|
|
|
|
|
|
CLEANFILES+= .version version.c
|
1999-12-13 14:09:56 +00:00
|
|
|
|
2011-04-05 18:41:01 +00:00
|
|
|
version.c:
|
1999-12-13 14:09:56 +00:00
|
|
|
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>
|