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