d060ebf7b2
larger patchset to get a GNU-free world. Patch rewritten to cope with the 4.2.0 changes. Submitted by: des
29 lines
546 B
Makefile
29 lines
546 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../../contrib/ntp/ntpq
|
|
|
|
BINDIR= /usr/bin
|
|
|
|
PROG= ntpq
|
|
NOMAN= yes
|
|
SRCS= ntpq.c ntpq_ops.c version.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
|
|
|
|
DPADD= ${LIBNTP} ${LIBMD}
|
|
LDADD= ${LIBNTP} -lmd
|
|
|
|
+ .if !defined(NO_GNU)
|
|
DPADD+= ${LIBREADLINE} ${LIBTERMCAP}
|
|
LDADD+= -lreadline -ltermcap
|
|
CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_HISTORY_H \
|
|
i -DHAVE_READLINE_READLINE_H
|
|
.endif
|
|
|
|
CLEANFILES+= .version version.c
|
|
|
|
version.c:
|
|
sh -e ${.CURDIR}/../scripts/mkver ntpq
|
|
|
|
.include <bsd.prog.mk>
|