1 1.33 tv # $NetBSD: Makefile,v 1.33 2001/11/01 15:03:07 tv Exp $ 2 1.4 brezak 3 1.10 cgd RPCSRCS= bootparam_prot.x klm_prot.x mount.x nfs_prot.x\ 4 1.8 jtc nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\ 5 1.8 jtc sm_inter.x spray.x yp.x yppasswd.x 6 1.21 mycroft SRCS= ${RPCSRCS:.x=.c} ${HDRS} 7 1.21 mycroft HDRS= ${RPCSRCS:.x=.h} 8 1.8 jtc CLEANFILES+= ${SRCS} ${HDRS} 9 1.8 jtc 10 1.21 mycroft INCS= ${HDRS} ${RPCSRCS} 11 1.21 mycroft INCSDIR= /usr/include/rpcsvc 12 1.19 christos 13 1.8 jtc LIB= rpcsvc 14 1.24 lukem MKMAN= no 15 1.24 lukem MKPIC= no 16 1.8 jtc 17 1.32 tv .include <bsd.lib.mk> 18 1.26 erh 19 1.33 tv # Resolve rpcgen's path, to allow it to be a dependency. 20 1.33 tv _RPCGEN:= ${RPCGEN} 21 1.33 tv .if ${_RPCGEN:M/*} == "" 22 1.33 tv _RPCGEN!= type ${RPCGEN} | awk '{print $$NF}' 23 1.33 tv .endif 24 1.33 tv 25 1.19 christos # We don't use explicit suffix rules here to avoid dependencies in the 26 1.19 christos # Installed files. 27 1.19 christos 28 1.19 christos .for I in ${RPCSRCS} 29 1.33 tv ${I:.x=.c}: $I ${_RPCGEN} 30 1.31 mycroft ${RPCGEN} -C -c ${.CURDIR}/$I -o ${.TARGET} 31 1.26 erh 32 1.33 tv ${I:.x=.h}: $I ${_RPCGEN} 33 1.31 mycroft ${RPCGEN} -C -h ${.CURDIR}/$I -o ${.TARGET} 34 1.19 christos .endfor 35