release.sh: restore -jJAILDIR option
[minix.git] / share / mk / bsd.rpc.mk
blobedfd6a12622ff5dc044f48a4809ccedc6d57387d
1 # $NetBSD: bsd.rpc.mk,v 1.12 2011/09/10 16:57:35 apb Exp $
3 .include <bsd.init.mk>
5 RPC_XDIR?= ${.CURDIR}/
7 # We don't use implicit suffix rules here to avoid dependencies in the
8 # Installed files.
10 .if defined(RPC_INCS) # {
12 .for I in ${RPC_INCS}
13 ${I}: ${I:.h=.x}
14 ${_MKTARGET_CREATE}
15 ${TOOL_RPCGEN} -C -h ${RPC_XDIR}${I:.h=.x} -o ${.TARGET}
16 .endfor
18 DPSRCS+= ${RPC_INCS}
19 CLEANFILES+= ${RPC_INCS}
21 .endif # }
24 .if defined(RPC_XDRFILES) # {
26 .for I in ${RPC_XDRFILES}
27 ${I}: ${RPC_XDIR}${I:_xdr.c=.x}
28 ${_MKTARGET_CREATE}
29 ${TOOL_RPCGEN} -C -c ${RPC_XDIR}${I:_xdr.c=.x} -o ${.TARGET}
30 .endfor
32 DPSRCS+= ${RPC_XDRFILES}
33 CLEANFILES+= ${RPC_XDRFILES}
35 .endif # }
38 .if defined(RPC_SVCFILES) # {
40 .for I in ${RPC_SVCCLASS}
41 _RPCS += -s ${I}
42 .endfor
44 .for I in ${RPC_SVCFILES}
46 ${I}: ${RPC_XDIR}${I:_svc.c=.x}
47 ${_MKTARGET_CREATE}
48 ${TOOL_RPCGEN} -C ${_RPCS} ${RPC_SVCFLAGS} ${RPC_XDIR}${I:_svc.c=.x} \
49 -o ${.TARGET}
50 .endfor
52 DPSRCS+= ${RPC_SVCFILES}
53 CLEANFILES+= ${RPC_SVCFILES}
55 .endif # }
57 .if defined(RPC_CLNTFILES) # {
59 .for I in ${RPC_CLNTFILES}
61 ${I}: ${RPC_XDIR}${I:_clnt.c=.x}
62 ${_MKTARGET_CREATE}
63 ${TOOL_RPCGEN} -C -l ${_RPCS} ${RPC_CLNTFLAGS} \
64 ${RPC_XDIR}${I:_clnt.c=.x} -o ${.TARGET}
65 .endfor
67 DPSRCS+= ${RPC_CLNTFILES}
68 CLEANFILES+= ${RPC_CLNTFILES}
70 .endif # }
72 ##### Pull in related .mk logic
73 .include <bsd.obj.mk>
74 .include <bsd.sys.mk>
75 .include <bsd.clean.mk>