Makefile revision 1.32
1#	$NetBSD: Makefile,v 1.32 2001/10/31 20:56:09 tv Exp $
2
3RPCSRCS=	bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
4		nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\
5		sm_inter.x spray.x yp.x yppasswd.x
6SRCS=		${RPCSRCS:.x=.c} ${HDRS}
7HDRS=           ${RPCSRCS:.x=.h}
8CLEANFILES+=	${SRCS} ${HDRS}
9
10INCS=		${HDRS} ${RPCSRCS}
11INCSDIR=	/usr/include/rpcsvc
12
13LIB=		rpcsvc
14MKMAN=		no
15MKPIC=		no
16
17.include <bsd.lib.mk>
18
19# We don't use explicit suffix rules here to avoid dependencies in the
20# Installed files.
21
22.for I in ${RPCSRCS}
23${I:.x=.c}: $I ${RPCGEN}
24	${RPCGEN} -C -c ${.CURDIR}/$I -o ${.TARGET}
25
26${I:.x=.h}: $I ${RPCGEN}
27	${RPCGEN} -C -h ${.CURDIR}/$I -o ${.TARGET}
28.endfor
29