1 2RPCGEN = rpcgen -C 3 4AMQ = amq.h amq_clnt.c amq_svc.c amq_xdr.c 5NFS = nfs_prot.h nfs_prot_svc.c nfs_prot_xdr.c 6 7NFSX = /usr/include/rpcsvc/nfs_prot.x 8 9all: ${AMQ} ${NFS} 10 11.SUFFIXES: 12.SUFFIXES: .x .h _xdr.c _clnt.c .c 13 14.x.h: 15 ${RPCGEN} -o $@ -h $< 16.x_xdr.c: 17 ${RPCGEN} -o $@ -c -i 100 $< 18.x_clnt.c: 19 ${RPCGEN} -o $@ -l $< 20 21amq_svc.c: amq.x $*.ed 22 ${RPCGEN} -o $@.tmp -m amq.x 23 ed -s $@.tmp <$*.ed 24 mv $@.tmp $@ 25 26nfs_prot_svc.c: nfs_prot.x $*.ed 27 ${RPCGEN} -o $@.tmp -m nfs_prot.x 28 ed -s $@.tmp <$*.ed 29 mv $@.tmp $@ 30 31nfs_prot.x: ${NFSX} $*.ed 32 cat ${NFSX} >$@.tmp 33 ed -s $@.tmp <$*.ed 34 mv $@.tmp $@ 35