summaryrefslogtreecommitdiff
path: root/usr.sbin/ntp
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-03-01 05:19:35 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-03-01 05:19:35 +0000
commit982a915f13a215b92f91c0404b32257df0882abb (patch)
treef07a150bb3a63b547a34fbeca136a3a963a6dabd /usr.sbin/ntp
parent9417c448f81272a975d93043a88588ff5a625c14 (diff)
downloadsrc-test2-982a915f13a215b92f91c0404b32257df0882abb.tar.gz
src-test2-982a915f13a215b92f91c0404b32257df0882abb.zip
Notes
Diffstat (limited to 'usr.sbin/ntp')
-rw-r--r--usr.sbin/ntp/libntp/Makefile18
-rw-r--r--usr.sbin/ntp/ntpdate/Makefile4
-rw-r--r--usr.sbin/ntp/ntpdc/Makefile2
-rw-r--r--usr.sbin/ntp/ntpq/Makefile2
4 files changed, 13 insertions, 13 deletions
diff --git a/usr.sbin/ntp/libntp/Makefile b/usr.sbin/ntp/libntp/Makefile
index 749728639d7e..bd3b8b51d866 100644
--- a/usr.sbin/ntp/libntp/Makefile
+++ b/usr.sbin/ntp/libntp/Makefile
@@ -73,14 +73,14 @@ ISC_SRCS= assertions.c \
SRCS= ${NTP_SRCS} ${ISC_SRCS} version.c
-CFLAGS+= -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/sntp/libopts \
- -I${.CURDIR}/../../../lib/libc/${MACHINE_ARCH} \
- -I${.CURDIR}/../../../lib/libedit/edit \
- -I${.CURDIR}/../ \
+CFLAGS+= -I${SRCTOP}/contrib/ntp/include \
+ -I${SRCTOP}/contrib/ntp/lib/isc/include \
+ -I${SRCTOP}/contrib/ntp/lib/isc/unix/include \
+ -I${SRCTOP}/contrib/ntp/lib/isc/pthreads/include \
+ -I${SRCTOP}/contrib/ntp/sntp/libopts \
+ -I${SRCTOP}/lib/libc/${MACHINE_ARCH} \
+ -I${SRCTOP}/lib/libedit/edit \
+ -I${.CURDIR:H} \
-I${.CURDIR}/
CFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H
@@ -88,6 +88,6 @@ CFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H
CLEANFILES+= .version version.c
version.c:
- sh -e ${.CURDIR}/../scripts/mkver ntpd
+ sh -e ${.CURDIR:H}/scripts/mkver ntpd
.include <bsd.lib.mk>
diff --git a/usr.sbin/ntp/ntpdate/Makefile b/usr.sbin/ntp/ntpdate/Makefile
index 1a0c92412434..afd544d020da 100644
--- a/usr.sbin/ntp/ntpdate/Makefile
+++ b/usr.sbin/ntp/ntpdate/Makefile
@@ -24,7 +24,7 @@ LIBADD+= md
CLEANFILES+= .version version.c
-version.c:
- sh -e ${.CURDIR}/../scripts/mkver ntpdate
+version.c:
+ sh -e ${.CURDIR:H}/scripts/mkver ntpdate
.include <bsd.prog.mk>
diff --git a/usr.sbin/ntp/ntpdc/Makefile b/usr.sbin/ntp/ntpdc/Makefile
index b4a88c7f0496..b60aa9933fd3 100644
--- a/usr.sbin/ntp/ntpdc/Makefile
+++ b/usr.sbin/ntp/ntpdc/Makefile
@@ -30,6 +30,6 @@ LIBADD+= md
CLEANFILES+= .version version.c
version.c:
- sh -e ${.CURDIR}/../scripts/mkver ntpdc
+ sh -e ${.CURDIR:H}/scripts/mkver ntpdc
.include <bsd.prog.mk>
diff --git a/usr.sbin/ntp/ntpq/Makefile b/usr.sbin/ntp/ntpq/Makefile
index 6a8dbf499c8b..cfb2c901d343 100644
--- a/usr.sbin/ntp/ntpq/Makefile
+++ b/usr.sbin/ntp/ntpq/Makefile
@@ -34,6 +34,6 @@ CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \
CLEANFILES+= .version version.c
version.c:
- sh -e ${.CURDIR}/../scripts/mkver ntpq
+ sh -e ${.CURDIR:H}/scripts/mkver ntpq
.include <bsd.prog.mk>