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