NetBSD/lib/librpcsvc/Makefile

33 lines
689 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.19 1997/03/24 22:11:57 christos Exp $
1993-06-02 23:51:29 +04:00
1994-06-14 06:45:56 +04:00
RPCSRCS= bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\
sm_inter.x spray.x yp.x yppasswd.x
SRCS= ${RPCSRCS:R:S/$/.c/g}
HDRS= ${RPCSRCS:R:S/$/.h/g}
CLEANFILES+= ${SRCS} ${HDRS}
INCS=${HDRS} ${RPCSRCS}
INCSDIR=/usr/include/rpcsvc
LIB= rpcsvc
NOMAN=
NOPIC=
all: ${HDRS}
beforedepend: ${HDRS}
# We don't use explicit suffix rules here to avoid dependencies in the
# Installed files.
.for I in ${RPCSRCS}
${I:S/.x/.c/}: $I
rpcgen -c ${.ALLSRC} -o ${.TARGET}
${I:S/.x/.h/}: $I
rpcgen -h ${.ALLSRC} -o ${.TARGET}
.endfor
.include <bsd.lib.mk>