mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-28 11:57:28 +00:00
271c3a9060
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>
|