Home | History | Annotate | Line # | Download | only in librpcsvc
Makefile revision 1.31
      1  1.31   mycroft #	$NetBSD: Makefile,v 1.31 2001/03/21 20:14:10 mycroft Exp $
      2   1.4    brezak 
      3  1.10       cgd RPCSRCS=	bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
      4   1.8       jtc 		nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\
      5   1.8       jtc 		sm_inter.x spray.x yp.x yppasswd.x
      6  1.21   mycroft SRCS=		${RPCSRCS:.x=.c} ${HDRS}
      7  1.21   mycroft HDRS=           ${RPCSRCS:.x=.h}
      8   1.8       jtc CLEANFILES+=	${SRCS} ${HDRS}
      9   1.8       jtc 
     10  1.21   mycroft INCS=		${HDRS} ${RPCSRCS}
     11  1.21   mycroft INCSDIR=	/usr/include/rpcsvc
     12  1.19  christos 
     13   1.8       jtc LIB=		rpcsvc
     14  1.24     lukem MKMAN=		no
     15  1.24     lukem MKPIC=		no
     16   1.8       jtc 
     17  1.26       erh # This little dance is necessary because RPCGEN doesn't get set until
     18  1.26       erh # bsd.lib.mk is included at the end of the makefile.  Unfortunately
     19  1.26       erh # that's after make has figured out dependencies using the (lack of) values
     20  1.26       erh # of variables at the time it parses the dependency line.
     21  1.26       erh .ifnmake getrpcgen
     22  1.30     enami XRPCGEN != cd ${.CURDIR} && ${MAKE} -B ${MAKEFLAGS} getrpcgen
     23  1.26       erh .endif
     24  1.26       erh 
     25  1.26       erh getrpcgen:
     26  1.29       cgd 	@set -- X `type ${RPCGEN}` && shift `expr $$# - 1` && echo "$$1"
     27  1.26       erh 
     28  1.19  christos # We don't use explicit suffix rules here to avoid dependencies in the
     29  1.19  christos # Installed files.
     30  1.19  christos 
     31  1.19  christos .for I in ${RPCSRCS}
     32  1.19  christos 
     33  1.26       erh ${I:.x=.c}: $I ${XRPCGEN}
     34  1.31   mycroft 	${RPCGEN} -C -c ${.CURDIR}/$I -o ${.TARGET}
     35  1.26       erh 
     36  1.26       erh ${I:.x=.h}: $I ${XRPCGEN}
     37  1.31   mycroft 	${RPCGEN} -C -h ${.CURDIR}/$I -o ${.TARGET}
     38  1.19  christos .endfor
     39   1.8       jtc 
     40   1.8       jtc .include <bsd.lib.mk>
     41