summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ntp/ntpq/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ntp/ntpq/Makefile')
-rw-r--r--usr.sbin/ntp/ntpq/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/usr.sbin/ntp/ntpq/Makefile b/usr.sbin/ntp/ntpq/Makefile
index 95e3296..d512cff 100644
--- a/usr.sbin/ntp/ntpq/Makefile
+++ b/usr.sbin/ntp/ntpq/Makefile
@@ -2,6 +2,7 @@
MAN=
+.include <src.opts.mk>
.include <bsd.own.mk>
.PATH: ${.CURDIR}/../../../contrib/ntp/ntpq
@@ -11,10 +12,21 @@ BINDIR= /usr/bin
PROG= ntpq
SRCS= ntpq.c ntpq-opts.c ntpq-subs.c version.c
-CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../ \
- -I${.CURDIR}/../../../contrib/ntp/libopts
+CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \
+ -I${.CURDIR}/../../../contrib/ntp/include \
+ -I${.CURDIR}/../../../contrib/ntp/lib/isc/include \
+ -I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include \
+ -I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \
+ -I${.CURDIR}/../../../contrib/ntp/lib/isc/${NTP_ATOMIC}/include \
+ -I${.CURDIR}/../../../contrib/ntp/sntp/libopts \
+ -I${.CURDIR}/../
+
+LIBADD+= edit md ntp opts m pthread
+
+.if ${MK_OPENSSL} != "no"
+LIBADD+= ssl crypto
+.endif
-LIBADD+= edit md ntp opts
CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \
-I${DESTDIR}/${INCLUDEDIR}/edit
OpenPOWER on IntegriCloud