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