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