NetBSD/usr.sbin/rpc.pcnfsd/Makefile
thorpej 9c33b55e7c Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

	* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
	  of the infratsructure (libraries, support programs, etc.)

	* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
	  building of support for using the corresponding API
	  in various libraries/programs that can use it.

As discussed on tech-toolchain.
2002-03-22 18:10:19 +00:00

42 lines
962 B
Makefile

# $NetBSD: Makefile,v 1.12 2002/03/22 18:10:26 thorpej Exp $
.include <bsd.own.mk>
PROG= rpc.pcnfsd
MAN= pcnfsd.8
MLINKS= pcnfsd.8 rpc.pcnfsd.8
CPPFLAGS += -DUSER_CACHE -DWTMP -I.
.if (${USE_YP} != "no")
CPPFLAGS+=-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} ${LIBCRYPT}
LDADD= -lrpcsvc -lcrypt
.ifnmake getrpcgen
XRPCGEN != cd ${.CURDIR} && ${MAKE} -B getrpcgen
.endif
getrpcgen:
@set -- X `type ${RPCGEN}` && shift `expr $$# - 1` && echo "$$1"
pcnfsd_svc.c: pcnfsd.x ${XRPCGEN}
${RPCGEN} -C -s udp -s tcp -I ${.CURDIR}/pcnfsd.x -o $@
pcnfsd_xdr.c: pcnfsd.x ${XRPCGEN}
${RPCGEN} -C -c ${.CURDIR}/pcnfsd.x -o $@
pcnfsd.h: pcnfsd.x ${XRPCGEN}
${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 <bsd.prog.mk>
.depend ${OBJS}: pcnfsd.h