e01fe39f04
sntp includes a copy of libopts in itself in vendor code, rewrite the Makefile to compile and use only one copy. It is an internal library, not installed. MFC after: 2 weeks
33 lines
665 B
Makefile
33 lines
665 B
Makefile
# $FreeBSD$
|
|
|
|
NO_MAN=
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.PATH: ${.CURDIR}/../../../contrib/ntp/ntpq
|
|
|
|
BINDIR= /usr/bin
|
|
|
|
PROG= ntpq
|
|
SRCS= ntpq.c ntpq-opts.c ntpq-subs.c version.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../ \
|
|
-I${.CURDIR}/../../../contrib/ntp/libopts
|
|
|
|
DPADD= ${LIBNTP} ${LIBM} ${LIBMD} ${LIBOPTS}
|
|
LDADD= ${LIBNTP} -lm -lmd ${LIBOPTS}
|
|
|
|
.if ${MK_GNU_SUPPORT} != "no"
|
|
DPADD+= ${LIBREADLINE} ${LIBTERMCAP}
|
|
LDADD+= -lreadline -ltermcap
|
|
CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_HISTORY_H \
|
|
-DHAVE_READLINE_READLINE_H
|
|
.endif
|
|
|
|
CLEANFILES+= .version version.c
|
|
|
|
version.c:
|
|
sh -e ${.CURDIR}/../scripts/mkver ntpq
|
|
|
|
.include <bsd.prog.mk>
|