freebsd-nq/usr.sbin/ntp/ntpdc/Makefile
Bruce Evans 2b51efa03a Fixed breakage of NOSHARED worlds in previous commit. -lreadline was
added but not its postrequisite -ltermcap.

Fixed breakage of DPADD in previous commit.  ${LIBREADLINE} was misspelled
-lreadline.  This should have been fatal since there is no file named
-lreadline, but it worked because of an undcumented bugfeature in make(1)
(or its configuration files): missing source files named -l* are silently
assumed to be up to date libraries.  `make checkdpadd' also fails to detect
this error.
2001-08-30 10:37:28 +00:00

23 lines
433 B
Makefile

# $FreeBSD$
.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdc
PROG= ntpdc
NOMAN= yes
SRCS= ntpdc.c ntpdc_ops.c version.c
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
DPADD= ${LIBNTP} ${LIBREADLINE} ${LIBTERMCAP}
LDADD= ${LIBNTP} -lreadline -ltermcap
CLEANFILES+= .version version.c
version.c:
sh -e ${.CURDIR}/../scripts/mkver ntpdc
afterinstall:
rm -f ${DESTDIR}/usr/sbin/xntpdc
.include <bsd.prog.mk>