Makefile revision 1.6
1# $NetBSD: Makefile,v 1.6 2012/02/01 07:46:21 kardel Exp $ 2 3# NOGCCERROR=yes 4 5.include <bsd.own.mk> 6 7PROG= ntpq 8MAN= ntpq.8 9BINDIR= /usr/sbin 10 11SRCS= ntpq.c \ 12 ntpq-subs.c \ 13 ntpq-opts.c 14 15LDADD+= -L${LIBNTP} -lntp -L${LIBOPTS} -lopts -L${LIBISC} -liscntp -ledit -lterminfo -lm 16#DPADD+= ${LIBISC}/libiscntp.a ${LIBOPTS}/libopts.a ${LIBNTP}/libntp.a ${LIBEDIT} ${LIBTERMINFO} ${LIBM} 17 18.include "${.CURDIR}/../Makefile.inc" 19 20DIST=${IDIST}/ntpq 21 22CPPFLAGS+=-I${IDIST}/include -I${IDIST}/sntp/libopts 23 24.PATH: ${DIST} 25 26ntpq.8: ntpq.1 27 ${_MKTARGET_BUILD} 28 ${TOOL_SED} -e "s,NTPQ 1,NTPQ 8," $? > $@ 29 30CLEANFILES+=ntpq.8 31 32.include <bsd.prog.mk> 33