# $OpenBSD: Makefile,v 1.9 2003/06/19 20:31:41 deraadt Exp $ .include PROG= rpc.pcnfsd MAN= pcnfsd.8 MLINKS= pcnfsd.8 rpc.pcnfsd.8 CFLAGS += -I${.OBJDIR} .if (${YP:L} == "yes") CFLAGS+=-DUSE_YP .endif SRCS= pcnfsd_v1.c pcnfsd_v2.c pcnfsd_misc.c \ pcnfsd_cache.c pcnfsd_print.c pcnfsd_svc.c pcnfsd_xdr.c DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc pcnfsd_svc.c: pcnfsd.x rpcgen -C -s udp -s tcp -I ${.CURDIR}/pcnfsd.x -o $@ pcnfsd_xdr.c: pcnfsd.x rpcgen -C -c ${.CURDIR}/pcnfsd.x -o $@ pcnfsd.h: pcnfsd.x rpcgen -C -h ${.CURDIR}/pcnfsd.x -o $@ CLEANFILES += pcnfsd_svc.c pcnfsd_xdr.c pcnfsd.h CLEANFILES += clnt.pcnfsd pcnfsd_test.o pcnfsd_test.ln pcnfsd_clnt.* .include .depend ${OBJS}: pcnfsd.h