1 # $NetBSD: bsd.rpc.mk,v 1.10 2003/10/21 10:01:22 lukem Exp $
7 # We don't use implicit suffix rules here to avoid dependencies in the
10 .if defined
(RPC_INCS
) # {
15 ${TOOL_RPCGEN} -C
-h
${RPC_XDIR}${I
:.h
=.x
} -o
${.TARGET
}
19 CLEANFILES
+= ${RPC_INCS}
24 .if defined
(RPC_XDRFILES
) # {
26 .for I in
${RPC_XDRFILES}
27 ${I}: ${RPC_XDIR}${I
:_xdr.c
=.x
}
29 ${TOOL_RPCGEN} -C
-c
${RPC_XDIR}${I
:_xdr.c
=.x
} -o
${.TARGET
}
32 DPSRCS
+= ${RPC_XDRFILES}
33 CLEANFILES
+= ${RPC_XDRFILES}
38 .if defined
(RPC_SVCFILES
) # {
40 .for I in
${RPC_SVCCLASS}
44 .for I in
${RPC_SVCFILES}
46 ${I}: ${RPC_XDIR}${I
:_svc.c
=.x
}
48 ${TOOL_RPCGEN} -C
${_RPCS} ${RPC_SVCFLAGS} ${RPC_XDIR}${I
:_svc.c
=.x
} \
52 DPSRCS
+= ${RPC_SVCFILES}
53 CLEANFILES
+= ${RPC_SVCFILES}
57 .if defined
(RPC_CLNTFILES
) # {
59 .for I in
${RPC_CLNTFILES}
61 ${I}: ${RPC_XDIR}${I
:_clnt.c
=.x
}
63 ${TOOL_RPCGEN} -C
-l
${_RPCS} ${RPC_CLNTFLAGS} \
64 ${RPC_XDIR}${I
:_clnt.c
=.x
} -o
${.TARGET
}
67 DPSRCS
+= ${RPC_CLNTFILES}
68 CLEANFILES
+= ${RPC_CLNTFILES}
72 ##### Pull in related .mk logic