2001-01-16 05:42:39 +03:00
|
|
|
# $NetBSD: Makefile,v 1.9 2001/01/16 02:42:40 cgd Exp $
|
1995-07-24 08:02:44 +04:00
|
|
|
|
|
|
|
PROG= rpc.pcnfsd
|
|
|
|
MAN= pcnfsd.8
|
|
|
|
MLINKS= pcnfsd.8 rpc.pcnfsd.8
|
1997-10-25 10:57:53 +04:00
|
|
|
CPPFLAGS += -DUSER_CACHE -DWTMP -DUSE_YP -I${.OBJDIR}
|
1995-07-24 23:12:18 +04:00
|
|
|
|
|
|
|
SRCS= pcnfsd_v1.c pcnfsd_v2.c pcnfsd_misc.c \
|
|
|
|
pcnfsd_cache.c pcnfsd_print.c pcnfsd_svc.c pcnfsd_xdr.c
|
1995-07-24 08:02:44 +04:00
|
|
|
|
1997-03-25 01:02:40 +03:00
|
|
|
DPADD= ${LIBRPCSVC} ${LIBCRYPT}
|
1995-07-24 08:02:44 +04:00
|
|
|
LDADD= -lrpcsvc -lcrypt
|
|
|
|
|
2000-09-11 03:21:49 +04:00
|
|
|
.ifnmake getrpcgen
|
|
|
|
XRPCGEN != (cd ${.CURDIR} && ${MAKE} getrpcgen)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
getrpcgen:
|
2001-01-16 05:42:39 +03:00
|
|
|
@set -- X `type ${RPCGEN}` && shift `expr $$# - 1` && echo "$$1"
|
2000-09-11 03:21:49 +04:00
|
|
|
|
|
|
|
pcnfsd_svc.c: pcnfsd.x ${XRPCGEN}
|
2000-07-25 10:29:44 +04:00
|
|
|
${RPCGEN} -C -s udp -s tcp -I ${.CURDIR}/pcnfsd.x -o $@
|
1995-07-24 08:02:44 +04:00
|
|
|
|
2000-09-11 03:21:49 +04:00
|
|
|
pcnfsd_xdr.c: pcnfsd.x ${XRPCGEN}
|
2000-07-25 10:29:44 +04:00
|
|
|
${RPCGEN} -C -c ${.CURDIR}/pcnfsd.x -o $@
|
1995-07-24 08:02:44 +04:00
|
|
|
|
2000-09-11 03:21:49 +04:00
|
|
|
pcnfsd.h: pcnfsd.x ${XRPCGEN}
|
2000-07-25 10:29:44 +04:00
|
|
|
${RPCGEN} -C -h ${.CURDIR}/pcnfsd.x -o $@
|
1995-07-24 08:02:44 +04:00
|
|
|
|
1995-07-24 23:12:18 +04:00
|
|
|
CLEANFILES += pcnfsd_svc.c pcnfsd_xdr.c pcnfsd.h
|
|
|
|
CLEANFILES += clnt.pcnfsd pcnfsd_test.o pcnfsd_test.ln pcnfsd_clnt.*
|
1995-07-24 08:02:44 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
1995-07-24 23:12:18 +04:00
|
|
|
|
|
|
|
.depend ${OBJS}: pcnfsd.h
|