freebsd-dev/usr.sbin/ntp/ntpq/Makefile
Ollivier Robert d060ebf7b2 Allow ntpd to be compiled w/o readline when NO_GNU is defined. Part of a
larger patchset to get a GNU-free world.

Patch rewritten to cope with the 4.2.0 changes.

Submitted by:	des
2004-07-22 08:14:37 +00:00

29 lines
546 B
Makefile

# $FreeBSD$
.PATH: ${.CURDIR}/../../../contrib/ntp/ntpq
BINDIR= /usr/bin
PROG= ntpq
NOMAN= yes
SRCS= ntpq.c ntpq_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 \
i -DHAVE_READLINE_READLINE_H
.endif
CLEANFILES+= .version version.c
version.c:
sh -e ${.CURDIR}/../scripts/mkver ntpq
.include <bsd.prog.mk>