388e590f95
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
33 lines
609 B
Makefile
33 lines
609 B
Makefile
# $FreeBSD$
|
|
|
|
NO_MAN=
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdc
|
|
|
|
PROG= ntpdc
|
|
SRCS= ntpdc.c ntpdc_ops.c version.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
|
|
|
|
DPADD= ${LIBNTP} ${LIBMD}
|
|
LDADD= ${LIBNTP} -lmd
|
|
|
|
.if ${MK_GNU_SUPPORT} != "no"
|
|
DPADD+= ${LIBREADLINE} ${LIBTERMCAP}
|
|
LDADD+= -lreadline -ltermcap
|
|
CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_HISTORY_H \
|
|
-DHAVE_READLINE_READLINE_H
|
|
.endif
|
|
|
|
CLEANFILES+= .version version.c
|
|
|
|
version.c:
|
|
sh -e ${.CURDIR}/../scripts/mkver ntpdc
|
|
|
|
afterinstall:
|
|
rm -f ${DESTDIR}/usr/sbin/xntpdc
|
|
|
|
.include <bsd.prog.mk>
|