1 # $NetBSD: Makefile,v 1.21 1997/05/09 14:22:41 mycroft Exp $ 2 3 4 RPCSRCS= bootparam_prot.x klm_prot.x mount.x nfs_prot.x\ 5 nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\ 6 sm_inter.x spray.x yp.x yppasswd.x 7 SRCS= ${RPCSRCS:.x=.c} ${HDRS} 8 HDRS= ${RPCSRCS:.x=.h} 9 CLEANFILES+= ${SRCS} ${HDRS} 10 11 INCS= ${HDRS} ${RPCSRCS} 12 INCSDIR= /usr/include/rpcsvc 13 14 LIB= rpcsvc 15 NOMAN= 16 NOPIC= 17 18 # We don't use explicit suffix rules here to avoid dependencies in the 19 # Installed files. 20 21 .for I in ${RPCSRCS} 22 ${I:.x=.c}: $I 23 rpcgen -c ${.ALLSRC} -o ${.TARGET} 24 25 ${I:.x=.h}: $I 26 rpcgen -h ${.ALLSRC} -o ${.TARGET} 27 .endfor 28 29 .include <bsd.lib.mk> 30