summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ntp/ntpd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ntp/ntpd/Makefile')
-rw-r--r--usr.sbin/ntp/ntpd/Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/ntp/ntpd/Makefile b/usr.sbin/ntp/ntpd/Makefile
index 905ff3c..b04e4b5 100644
--- a/usr.sbin/ntp/ntpd/Makefile
+++ b/usr.sbin/ntp/ntpd/Makefile
@@ -4,7 +4,7 @@ MAN=
.include <src.opts.mk>
-.PATH: ${.CURDIR}/../../../contrib/ntp/ntpd \
+.PATH: ${SRCTOP}/contrib/ntp/ntpd \
${.OBJDIR}
PROG= ntpd
@@ -27,13 +27,13 @@ SRCS= cmd_args.c ntp_config.c ntp_control.c ntp_crypto.c ntp_filegen.c \
refclock_tt560.c refclock_ulink.c refclock_wwv.c refclock_wwvb.c \
refclock_zyfer.c version.c
-CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/ntpd \
- -I${.CURDIR}/../../../contrib/ntp/include \
- -I${.CURDIR}/../../../contrib/ntp/lib/isc/include \
- -I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \
- -I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include \
- -I${.CURDIR}/../../../contrib/ntp/sntp/libopts \
- -I${.CURDIR}/../ \
+CFLAGS+= -I${SRCTOP}/contrib/ntp/ntpd \
+ -I${SRCTOP}/contrib/ntp/include \
+ -I${SRCTOP}/contrib/ntp/lib/isc/include \
+ -I${SRCTOP}/contrib/ntp/lib/isc/pthreads/include \
+ -I${SRCTOP}/contrib/ntp/lib/isc/unix/include \
+ -I${SRCTOP}/contrib/ntp/sntp/libopts \
+ -I${.CURDIR:H} \
-I${.CURDIR}
LIBADD= parse ntp m opts pthread
@@ -46,7 +46,7 @@ LIBADD+= md
CLEANFILES+= .version version.c
-version.c:
- sh -e ${.CURDIR}/../scripts/mkver ntpd
+version.c:
+ sh -e ${.CURDIR:H}/scripts/mkver ntpd
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud