summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ntp/ntp-keygen/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ntp/ntp-keygen/Makefile')
-rw-r--r--usr.sbin/ntp/ntp-keygen/Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/usr.sbin/ntp/ntp-keygen/Makefile b/usr.sbin/ntp/ntp-keygen/Makefile
index 78308fa..3c29f9b 100644
--- a/usr.sbin/ntp/ntp-keygen/Makefile
+++ b/usr.sbin/ntp/ntp-keygen/Makefile
@@ -4,21 +4,26 @@ MAN=
.include <src.opts.mk>
-.PATH: ${.CURDIR}/../../../contrib/ntp/util \
- ${.CURDIR}/../../../contrib/ntp/ntpd
+.PATH: ${.CURDIR}/../../../contrib/ntp/util \
+ ${.CURDIR}/../../../contrib/ntp/ntpd
PROG= ntp-keygen
SRCS= ntp-keygen.c ntp-keygen-opts.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}/../../../lib/libc/${MACHINE_ARCH} \
+ -I${.CURDIR}/../
-DPADD= ${LIBNTP} ${LIBOPTS}
-LDADD= ${LIBNTP} ${LIBOPTS}
+LIBADD+= ntp opts pthread
.if ${MK_OPENSSL} != "no"
-DPADD+= ${LIBMD} ${LIBCRYPTO}
-LDADD+= -lmd -lcrypto
+LIBADD+= md crypto
.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud