1999-12-13 14:09:56 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
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
|
2004-12-21 08:47:35 +00:00
|
|
|
NO_MAN=
|
1999-12-13 14:09:56 +00:00
|
|
|
SRCS= ntpq.c ntpq_ops.c version.c
|
|
|
|
|
2000-01-01 23:58:01 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
|
|
|
|
|
2004-07-22 08:14:37 +00:00
|
|
|
DPADD= ${LIBNTP} ${LIBMD}
|
|
|
|
LDADD= ${LIBNTP} -lmd
|
|
|
|
|
2004-07-22 08:32:17 +00:00
|
|
|
.if !defined(NO_GNU)
|
2004-07-22 08:14:37 +00:00
|
|
|
DPADD+= ${LIBREADLINE} ${LIBTERMCAP}
|
|
|
|
LDADD+= -lreadline -ltermcap
|
|
|
|
CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_HISTORY_H \
|
2004-07-22 08:38:14 +00:00
|
|
|
-DHAVE_READLINE_READLINE_H
|
2004-07-22 08:14:37 +00:00
|
|
|
.endif
|
2000-01-01 23:58:01 +00:00
|
|
|
|
|
|
|
CLEANFILES+= .version version.c
|
|
|
|
|
1999-12-13 14:09:56 +00:00
|
|
|
version.c:
|
|
|
|
sh -e ${.CURDIR}/../scripts/mkver ntpq
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|