freebsd-skq/usr.sbin/ntp/ntpdc/Makefile
ru 388e590f95 Reimplementation of world/kernel build options. For details, see:
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)
2006-03-17 18:54:44 +00:00

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>