1# from: @(#)Makefile 5.10 (Berkeley) 6/24/90 2 3.include <src.opts.mk> 4 5.PATH: ${SRCTOP}/include/rpcsvc 6 7PACKAGE= runtime 8 9LIB= rpcsvc 10 11RPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \ 12 rquota.x rstat.x rwall.x sm_inter.x spray.x yppasswd.x ypxfrd.x \ 13 ypupdate_prot.x 14 15OTHERSRCS= rnusers.c rstat.c rwall.c 16SECRPCSRCS= secretkey.c xcrypt.c 17 18.if ${MK_NIS} != "no" 19OTHERSRCS+= yp_passwd.c yp_update.c 20.endif 21 22RPCCOM= RPCGEN_CPP=${CPP:Q} rpcgen -C 23 24INCDIRS= -I${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc 25 26CFLAGS+= -DYP ${INCDIRS} 27 28GENSRCS= ${RPCSRCS:R:S/$/_xdr.c/g} 29SRCS+= ${GENSRCS} ${OTHERSRCS} ${SECRPCSRCS} 30 31CLEANFILES+= ${GENSRCS} 32 33WARNS?= 1 34 35.include <bsd.lib.mk> 36 37.SUFFIXES: .x _xdr.c 38 39.x_xdr.c: 40 ${RPCCOM} -c ${.IMPSRC} -o ${.TARGET} 41 42OBJS= ${RPCSRCS:R:S/$/_xdr.o/g} ${SECRPCSRCS:R:S/$/.o/g} \ 43 ${OTHERSRCS:R:S/$/.o/g} 44