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