Makefile revision 1.22
1#	$NetBSD: Makefile,v 1.22 1997/10/09 14:36:24 lukem Exp $
2
3# XXX WARNS=0 is temporary until rpcgen(1) is fixed
4WARNS=0
5RPCSRCS=	bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
6		nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\
7		sm_inter.x spray.x yp.x yppasswd.x
8SRCS=		${RPCSRCS:.x=.c} ${HDRS}
9HDRS=           ${RPCSRCS:.x=.h}
10CLEANFILES+=	${SRCS} ${HDRS}
11
12INCS=		${HDRS} ${RPCSRCS}
13INCSDIR=	/usr/include/rpcsvc
14
15LIB=		rpcsvc
16NOMAN=
17NOPIC=
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
24	rpcgen -c ${.ALLSRC} -o ${.TARGET}
25
26${I:.x=.h}: $I
27	rpcgen -h ${.ALLSRC} -o ${.TARGET}
28.endfor
29
30.include <bsd.lib.mk>
31