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