982a915f13
- Use SRCTOP-relative paths instead of .CURDIR-relative ones where possible - Use :H to manipulate .CURDIR in areas instead of ..-relative paths. MFC after: 1 week Sponsored by: Dell EMC Isilon
40 lines
788 B
Makefile
40 lines
788 B
Makefile
# $FreeBSD$
|
|
|
|
MAN=
|
|
|
|
.include <src.opts.mk>
|
|
|
|
.PATH: ${SRCTOP}/contrib/ntp/ntpq
|
|
|
|
BINDIR= /usr/bin
|
|
|
|
PROG= ntpq
|
|
SRCS= ntpq.c ntpq-opts.c ntpq-subs.c version.c
|
|
|
|
CFLAGS+= -I${SRCTOP}/contrib/ntp/include \
|
|
-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/lib/isc/${NTP_ATOMIC}/include \
|
|
-I${SRCTOP}/contrib/ntp/sntp/libopts \
|
|
-I${.CURDIR:H}
|
|
|
|
LIBADD+= edit ntp opts m pthread
|
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
LIBADD+= crypto
|
|
.else
|
|
LIBADD+= md
|
|
.endif
|
|
|
|
CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \
|
|
-I${DESTDIR}/${INCLUDEDIR}/edit
|
|
|
|
CLEANFILES+= .version version.c
|
|
|
|
version.c:
|
|
sh -e ${.CURDIR:H}/scripts/mkver ntpq
|
|
|
|
.include <bsd.prog.mk>
|