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 4 WARNS=0 5 RPCSRCS= 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 8 SRCS= ${RPCSRCS:.x=.c} ${HDRS} 9 HDRS= ${RPCSRCS:.x=.h} 10 CLEANFILES+= ${SRCS} ${HDRS} 11 12 INCS= ${HDRS} ${RPCSRCS} 13 INCSDIR= /usr/include/rpcsvc 14 15 LIB= rpcsvc 16 NOMAN= 17 NOPIC= 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