1 # $NetBSD: Makefile,v 1.19 1997/03/24 22:11:57 christos 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:R:S/$/.c/g} 8 HDRS= ${RPCSRCS:R:S/$/.h/g} 9 CLEANFILES+= ${SRCS} ${HDRS} 10 11 INCS=${HDRS} ${RPCSRCS} 12 INCSDIR=/usr/include/rpcsvc 13 14 LIB= rpcsvc 15 NOMAN= 16 NOPIC= 17 18 all: ${HDRS} 19 beforedepend: ${HDRS} 20 21 # We don't use explicit suffix rules here to avoid dependencies in the 22 # Installed files. 23 24 .for I in ${RPCSRCS} 25 ${I:S/.x/.c/}: $I 26 rpcgen -c ${.ALLSRC} -o ${.TARGET} 27 28 ${I:S/.x/.h/}: $I 29 rpcgen -h ${.ALLSRC} -o ${.TARGET} 30 .endfor 31 32 .include <bsd.lib.mk> 33