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