1# from: @(#)Makefile 5.10 (Berkeley) 6/24/90 2# $FreeBSD$ 3 4.PATH: ${DESTDIR}/usr/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 yp_passwd.c yp_update.c 13SECRPCSRCS= secretkey.c xcrypt.c 14 15RPCCOM = rpcgen -C 16 17INCDIRS= -I${DESTDIR}/usr/include/rpcsvc 18 19CFLAGS+= -DYP ${INCDIRS} 20 21GENSRCS= ${RPCSRCS:R:S/$/_xdr.c/g} 22SRCS+= ${GENSRCS} ${OTHERSRCS} ${SECRPCSRCS} 23 24CLEANFILES+= ${GENSRCS} 25 26NOMAN= noman 27 28.include <bsd.lib.mk> 29 30.SUFFIXES: .x _xdr.c 31 32.x_xdr.c: 33 ${RPCCOM} -c ${.IMPSRC} -o ${.TARGET} 34 35OBJS= ${RPCSRCS:R:S/$/_xdr.o/g} ${SECRPCSRCS:R:S/$/.o/g} \ 36 ${OTHERSRCS:R:S/$/.o/g} 37