summaryrefslogtreecommitdiff
path: root/usr.sbin/ntp/ntpq/Makefile
diff options
context:
space:
mode:
authorOllivier Robert <roberto@FreeBSD.org>2004-07-22 08:14:37 +0000
committerOllivier Robert <roberto@FreeBSD.org>2004-07-22 08:14:37 +0000
commitd060ebf7b2b5bc7a4978fe5972050b910ca5997b (patch)
tree62aefadf50e2203fe5ce7dc7f0032cb518a93780 /usr.sbin/ntp/ntpq/Makefile
parent284b024b2b4afebfec18924630090bf08d661a1b (diff)
downloadsrc-test-d060ebf7b2b5bc7a4978fe5972050b910ca5997b.tar.gz
src-test-d060ebf7b2b5bc7a4978fe5972050b910ca5997b.zip
Notes
Diffstat (limited to 'usr.sbin/ntp/ntpq/Makefile')
-rw-r--r--usr.sbin/ntp/ntpq/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/ntp/ntpq/Makefile b/usr.sbin/ntp/ntpq/Makefile
index 67687e9614166..7d3e1e5e07ad5 100644
--- a/usr.sbin/ntp/ntpq/Makefile
+++ b/usr.sbin/ntp/ntpq/Makefile
@@ -10,8 +10,15 @@ SRCS= ntpq.c ntpq_ops.c version.c
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
-DPADD= ${LIBNTP} ${LIBREADLINE} ${LIBTERMCAP} ${LIBMD}
-LDADD= ${LIBNTP} -lreadline -ltermcap -lmd
+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