Makefile revision 1.34
11.34Stv# $NetBSD: Makefile,v 1.34 2001/12/12 00:51:05 tv Exp $ 21.4Sbrezak 31.10ScgdRPCSRCS= bootparam_prot.x klm_prot.x mount.x nfs_prot.x\ 41.8Sjtc nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\ 51.8Sjtc sm_inter.x spray.x yp.x yppasswd.x 61.21SmycroftSRCS= ${RPCSRCS:.x=.c} ${HDRS} 71.21SmycroftHDRS= ${RPCSRCS:.x=.h} 81.8SjtcCLEANFILES+= ${SRCS} ${HDRS} 91.8Sjtc 101.21SmycroftINCS= ${HDRS} ${RPCSRCS} 111.21SmycroftINCSDIR= /usr/include/rpcsvc 121.19Schristos 131.8SjtcLIB= rpcsvc 141.34StvNOMAN= # defined 151.34StvNOPIC= # defined 161.8Sjtc 171.32Stv.include <bsd.lib.mk> 181.26Serh 191.33Stv# Resolve rpcgen's path, to allow it to be a dependency. 201.33Stv_RPCGEN:= ${RPCGEN} 211.33Stv.if ${_RPCGEN:M/*} == "" 221.33Stv_RPCGEN!= type ${RPCGEN} | awk '{print $$NF}' 231.33Stv.endif 241.33Stv 251.19Schristos# We don't use explicit suffix rules here to avoid dependencies in the 261.19Schristos# Installed files. 271.19Schristos 281.19Schristos.for I in ${RPCSRCS} 291.33Stv${I:.x=.c}: $I ${_RPCGEN} 301.31Smycroft ${RPCGEN} -C -c ${.CURDIR}/$I -o ${.TARGET} 311.26Serh 321.33Stv${I:.x=.h}: $I ${_RPCGEN} 331.31Smycroft ${RPCGEN} -C -h ${.CURDIR}/$I -o ${.TARGET} 341.19Schristos.endfor 35