1 # $NetBSD: Makefile,v 1.12 2000/08/07 16:23:31 thorpej Exp $
2 # $FreeBSD: src/usr.sbin/rpc.lockd/Makefile,v 1.17 2002/03/22 19:50:58 alfred Exp $
6 MLINKS= rpc.lockd.8 lockd.8
7 SRCS= kern.c nlm_prot_svc.c lockd.c lock_proc.c lockd_lock.c
11 CFLAGS+= -I. -I${DESTDIR}/usr/include/rpcsvc
13 DPADD= ${LIBRPCSVC} ${LIBUTIL}
14 LDADD= -lrpcsvc -lutil
16 CLEANFILES= nlm_prot_svc.c nlm_prot.h test
18 RPCSRC= ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x
21 nlm_prot_svc.c: ${RPCSRC}
22 ${RPCGEN} -m -o ${.TARGET} ${RPCSRC}
25 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
27 test: ${.CURDIR}/test.c
28 cc -o test ${.CURDIR}/test.c -lrpcsvc
32 .include <bsd.prog.mk>