1 1.3 cjs # $NetBSD: Makefile,v 1.3 1997/05/26 03:59:53 cjs Exp $ 2 1.1 scottr 3 1.1 scottr PROG= rpc.lockd 4 1.1 scottr SRCS= nlm_prot_svc.c lockd.c lock_proc.c 5 1.1 scottr MAN= rpc.lockd.8 6 1.1 scottr MLINKS= rpc.lockd.8 lockd.8 7 1.1 scottr 8 1.1 scottr CFLAGS+= -I. 9 1.1 scottr 10 1.1 scottr DPADD= ${LIBRPCSVC} 11 1.1 scottr LDADD= -lrpcsvc 12 1.1 scottr 13 1.1 scottr CLEANFILES= nlm_prot_svc.c nlm_prot.x nlm_prot.h test 14 1.1 scottr 15 1.3 cjs .include <bsd.own.mk> # for BUILDDIR 16 1.3 cjs 17 1.3 cjs nlm_prot_svc.c: ${BUILDDIR}/usr/include/rpcsvc/nlm_prot.x 18 1.1 scottr rm -f nlm_prot.x 19 1.3 cjs ln -s ${BUILDDIR}/usr/include/rpcsvc/nlm_prot.x . 20 1.1 scottr rm -f nlm_prot.h 21 1.3 cjs ln -s ${BUILDDIR}/usr/include/rpcsvc/nlm_prot.h . 22 1.1 scottr rpcgen -m -o $@ nlm_prot.x 23 1.1 scottr 24 1.1 scottr test: ${.CURDIR}/test.c 25 1.1 scottr cc -o test ${.CURDIR}/test.c -lrpcsvc 26 1.1 scottr 27 1.1 scottr .include <bsd.prog.mk> 28