1# $MirOS: src/lib/librpcsvc/Makefile,v 1.3 2007/05/17 18:38:34 tg Exp $ 2# $OpenBSD: Makefile,v 1.7 2003/06/23 18:50:53 mickey Exp $ 3 4RPCSRCS= bootparam_prot.x klm_prot.x mount.x nfs_prot.x \ 5 nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x \ 6 sm_inter.x spray.x 7SRCS= ${RPCSRCS:R:S/$/.c/g} 8CLEANFILES+= ${SRCS} ${RPCSRCS:R:S/$/.h/g} 9 10LIB= rpcsvc 11NOMAN= yes 12NOPIC= yes 13 14all: ${RPCSRCS:R:S/$/.h/g} 15beforedepend: ${RPCSRCS:R:S/$/.h/g} 16prereq: ${RPCSRCS:R:S/$/.h/g} 17 18HDRDST= ${DESTDIR}/usr/include/rpcsvc 19HDRS= ${RPCSRCS} ${RPCSRCS:R:S/$/.h/g:S!^!${.OBJDIR}/!} 20 21# new suffixes have to go afterwards, because bsd.lib.mk clears them 22.include <bsd.lib.mk> 23.SUFFIXES: .x .c .h 24 25.x.c: 26 rpcgen -C -c ${.IMPSRC} -o ${.TARGET} 27 28.x.h: 29 rpcgen -C -h ${.IMPSRC} -o ${.TARGET} 30