Makefile revision 1.23
1#	$NetBSD: Makefile,v 1.23 1997/10/09 22:26:17 lukem 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
14NOMAN=
15NOPIC=
16
17# We don't use explicit suffix rules here to avoid dependencies in the
18# Installed files.
19
20.for I in ${RPCSRCS}
21${I:.x=.c}: $I
22	rpcgen -c ${.ALLSRC} -o ${.TARGET}
23
24${I:.x=.h}: $I
25	rpcgen -h ${.ALLSRC} -o ${.TARGET}
26.endfor
27
28.include <bsd.lib.mk>
29