1999-12-13 14:09:56 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-04-13 05:21:56 +00:00
|
|
|
MAN=
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2015-03-30 13:30:15 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2001-07-20 06:20:32 +00:00
|
|
|
.PATH: ${.CURDIR}/../../../contrib/ntp/ntpq
|
1999-12-13 14:09:56 +00:00
|
|
|
|
2001-07-20 06:20:32 +00:00
|
|
|
BINDIR= /usr/bin
|
1999-12-13 14:09:56 +00:00
|
|
|
|
2001-07-20 06:20:32 +00:00
|
|
|
PROG= ntpq
|
2008-08-22 16:00:48 +00:00
|
|
|
SRCS= ntpq.c ntpq-opts.c ntpq-subs.c version.c
|
1999-12-13 14:09:56 +00:00
|
|
|
|
2015-03-30 13:30:15 +00:00
|
|
|
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}/../
|
|
|
|
|
2015-05-25 20:27:46 +00:00
|
|
|
LIBADD+= edit ntp opts m pthread
|
2015-03-30 13:30:15 +00:00
|
|
|
|
|
|
|
.if ${MK_OPENSSL} != "no"
|
2015-05-25 20:27:46 +00:00
|
|
|
LIBADD+= crypto
|
|
|
|
.else
|
|
|
|
LIBADD+= md
|
2015-03-30 13:30:15 +00:00
|
|
|
.endif
|
2000-01-01 23:58:01 +00:00
|
|
|
|
2011-04-05 18:41:01 +00:00
|
|
|
CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \
|
|
|
|
-I${DESTDIR}/${INCLUDEDIR}/edit
|
2000-01-01 23:58:01 +00:00
|
|
|
|
|
|
|
CLEANFILES+= .version version.c
|
|
|
|
|
2011-04-05 18:41:01 +00:00
|
|
|
version.c:
|
1999-12-13 14:09:56 +00:00
|
|
|
sh -e ${.CURDIR}/../scripts/mkver ntpq
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|