Makefile revision 1.19
1#	$NetBSD: Makefile,v 1.19 1997/03/24 22:11:57 christos 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:R:S/$/.c/g}
8HDRS=           ${RPCSRCS:R:S/$/.h/g}
9CLEANFILES+=	${SRCS} ${HDRS}
10
11INCS=${HDRS} ${RPCSRCS}
12INCSDIR=/usr/include/rpcsvc
13
14LIB=		rpcsvc
15NOMAN=
16NOPIC=
17
18all:		${HDRS}
19beforedepend:	${HDRS}
20
21# We don't use explicit suffix rules here to avoid dependencies in the
22# Installed files.
23
24.for I in ${RPCSRCS}
25${I:S/.x/.c/}: $I
26	rpcgen -c ${.ALLSRC} -o ${.TARGET}
27
28${I:S/.x/.h/}: $I
29	rpcgen -h ${.ALLSRC} -o ${.TARGET}
30.endfor
31
32.include <bsd.lib.mk>
33