1# $NetBSD: Makefile,v 1.12 2000/08/07 16:23:31 thorpej Exp $ 2# $FreeBSD$ 3 4PACKAGE= nfs 5 6PROG= rpc.lockd 7MAN= rpc.lockd.8 8MLINKS= rpc.lockd.8 lockd.8 9SRCS= kern.c nlm_prot_svc.c lockd.c lock_proc.c lockd_lock.c 10 11CFLAGS+= -I. -I${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc 12WARNS?= 3 13 14LIBADD= rpcsvc 15 16CLEANFILES= nlm_prot_svc.c nlm_prot.h test 17 18RPCSRC= ${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc/nlm_prot.x 19RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C 20 21nlm_prot_svc.c: ${RPCSRC} 22 ${RPCGEN} -m -o ${.TARGET} ${.ALLSRC} 23 24nlm_prot.h: ${RPCSRC} 25 ${RPCGEN} -h -o ${.TARGET} ${.ALLSRC} 26 27test: ${.CURDIR}/test.c 28 cc -o test ${.CURDIR}/test.c -lrpcsvc 29 30.include <bsd.prog.mk> 31