1# $NetBSD: Makefile,v 1.12 2000/08/07 16:23:31 thorpej Exp $ 2# $FreeBSD: src/usr.sbin/rpc.lockd/Makefile,v 1.19 2003/10/26 06:10:44 peter Exp $ 3# $DragonFly: src/usr.sbin/rpc.lockd/Makefile,v 1.2 2003/06/17 04:30:02 dillon Exp $ 4 5PROG= rpc.lockd 6MAN= rpc.lockd.8 7MLINKS= rpc.lockd.8 lockd.8 8SRCS= nlm_prot_svc.c lockd.c lock_proc.c lockd_lock.c 9 10CFLAGS+= -I. -I${DESTDIR}/usr/include/rpcsvc 11#WARNS?= 2 12 13DPADD= ${LIBRPCSVC} ${LIBUTIL} 14LDADD= -lrpcsvc -lutil 15 16CLEANFILES= nlm_prot_svc.c nlm_prot.h test 17 18RPCSRC= ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x 19RPCGEN= rpcgen -L -C 20 21nlm_prot_svc.c: ${RPCSRC} 22 ${RPCGEN} -m -o ${.TARGET} ${RPCSRC} 23 24nlm_prot.h: ${RPCSRC} 25 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 26 27test: ${.CURDIR}/test.c 28 cc -o test ${.CURDIR}/test.c -lrpcsvc 29 30.include <bsd.prog.mk> 31