30 lines
484 B
Makefile
30 lines
484 B
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
CFLAGS+= -I${.CURDIR}/../include
|
|
|
|
.if exists(${.OBJDIR}/../lib)
|
|
LDADD+= -L${.OBJDIR}/../lib
|
|
DPADD+= ${.OBJDIR}/../lib/libntp.a
|
|
.else
|
|
LDADD+= -L${.CURDIR}/../lib
|
|
DPADD+= ${.CURDIR}/../lib/libntp.a
|
|
.endif
|
|
|
|
LDADD+= -lntp
|
|
|
|
PROG= ntpq
|
|
MAN8= ${.CURDIR}/../doc/ntpq.8
|
|
CLEANFILES+= .version version.c
|
|
BINDIR= /usr/bin
|
|
|
|
SRCS= ntpq.c ntpq_ops.c version.c
|
|
|
|
beforedepend: version.c
|
|
|
|
version.c: ${.CURDIR}/../VERSION
|
|
sh -e ${.CURDIR}/../scripts/mkversion ntpq
|
|
|
|
.include <bsd.prog.mk>
|