d060ebf7b2
larger patchset to get a GNU-free world. Patch rewritten to cope with the 4.2.0 changes. Submitted by: des
30 lines
579 B
Makefile
30 lines
579 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} ${LIBMD}
|
|
LDADD= ${LIBNTP} -lmd
|
|
|
|
.if !defined(NO_GNU)
|
|
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>
|