NetBSD/lib/librpcsvc/Makefile

36 lines
871 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.36 2002/08/19 14:55:16 lukem Exp $
NOMAN= # defined
NOPIC= # defined
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
1997-05-09 18:22:41 +04:00
SRCS= ${RPCSRCS:.x=.c} ${HDRS}
HDRS= ${RPCSRCS:.x=.h}
CLEANFILES+= ${SRCS} ${HDRS}
1997-05-09 18:22:41 +04:00
INCS= ${HDRS} ${RPCSRCS}
INCSDIR= /usr/include/rpcsvc
LIB= rpcsvc
.include <bsd.lib.mk>
# Resolve rpcgen's path, to allow it to be a dependency.
_RPCGEN:= ${RPCGEN:M*rpcgen}
.if ${_RPCGEN:M/*} == ""
_RPCGEN!= type ${RPCGEN} | awk '{print $$NF}'
.endif
# We don't use explicit suffix rules here to avoid dependencies in the
# Installed files.
.for I in ${RPCSRCS}
${I:.x=.c}: $I ${_RPCGEN}
2001-03-21 23:14:10 +03:00
${RPCGEN} -C -c ${.CURDIR}/$I -o ${.TARGET}
${I:.x=.h}: $I ${_RPCGEN}
2001-03-21 23:14:10 +03:00
${RPCGEN} -C -h ${.CURDIR}/$I -o ${.TARGET}
.endfor