1# from: @(#)Makefile 5.10 (Berkeley) 6/24/90 2# $Id: Makefile,v 1.3 1994/08/28 17:48:43 bde Exp $ 3 4.PATH: ${DESTDIR}/usr/include/rpcsvc 5 6LIB= rpcsvc 7 8RPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \ 9 rquota.x rstat.x rwall.x sm_inter.x spray.x yppasswd.x 10 11RPCCOM = rpcgen 12 13INCDIRS= -I/usr/include/rpcsvc 14CFLAGS+= ${INCDIRS} 15 16SRCS= ${RPCSRCS:R:S/$/_xdr.c/g} 17 18CLEANFILES+= ${SRCS} ${RPCSRCS} 19 20NOMAN= noman 21 22.include <bsd.lib.mk> 23 24.SUFFIXES: .x _xdr.c 25 26.x_xdr.c: 27 @${ECHO} generating ${.TARGET}... 28 @PWD=`pwd` ; cd ${.CURDIR} ; \ 29 if cmp -s ${.IMPSRC} ${*F}.x > /dev/null 2>/dev/null; then \ 30 true; \ 31 else \ 32 cp -f ${.IMPSRC} $$PWD/${*F}.x ; \ 33 fi 34 @${RPCCOM} -c ${*F}.x -o ${.TARGET} 35 36OBJS= ${RPCSRCS:R:S/$/_xdr.o/g} 37