NetBSD/usr.sbin/rpc.lockd/Makefile
1997-10-25 06:57:53 +00:00

26 lines
593 B
Makefile

# $NetBSD: Makefile,v 1.6 1997/10/25 06:58:37 lukem Exp $
PROG= rpc.lockd
SRCS= nlm_prot_svc.c lockd.c lock_proc.c
MAN= rpc.lockd.8
MLINKS= rpc.lockd.8 lockd.8
CPPFLAGS+= -I.
DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc
CLEANFILES= nlm_prot_svc.c nlm_prot.x nlm_prot.h test
nlm_prot_svc.c: ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x
rm -f nlm_prot.x
ln -s ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x .
rm -f nlm_prot.h
ln -s ${DESTDIR}/usr/include/rpcsvc/nlm_prot.h .
rpcgen -C -L -m -o ${.TARGET} nlm_prot.x
test: ${.CURDIR}/test.c
cc -o test ${.CURDIR}/test.c -lrpcsvc
.include <bsd.prog.mk>