1 # $NetBSD: bsd.rpc.mk,v 1.13 2013/12/15 00:28:45 christos Exp $
8 # We don't use implicit suffix rules here to avoid dependencies in the
11 .if defined
(RPC_INCS
) # {
16 ${TOOL_RPCGEN} ${RPCGEN_FLAGS} -h
${RPC_XDIR}${I
:.h
=.x
} -o
${.TARGET
}
20 CLEANFILES
+= ${RPC_INCS}
25 .if defined
(RPC_XDRFILES
) # {
27 .for I in
${RPC_XDRFILES}
28 ${I}: ${RPC_XDIR}${I
:_xdr.c
=.x
}
30 ${TOOL_RPCGEN} ${RPCGEN_FLAGS} -c
${RPC_XDIR}${I
:_xdr.c
=.x
} -o
${.TARGET
}
33 DPSRCS
+= ${RPC_XDRFILES}
34 CLEANFILES
+= ${RPC_XDRFILES}
39 .if defined
(RPC_SVCFILES
) # {
41 .for I in
${RPC_SVCCLASS}
45 .for I in
${RPC_SVCFILES}
47 ${I}: ${RPC_XDIR}${I
:_svc.c
=.x
}
49 ${TOOL_RPCGEN} ${RPCGEN_FLAGS} ${_RPCS} ${RPC_SVCFLAGS} ${RPC_XDIR}${I
:_svc.c
=.x
} \
53 DPSRCS
+= ${RPC_SVCFILES}
54 CLEANFILES
+= ${RPC_SVCFILES}
58 .if defined
(RPC_CLNTFILES
) # {
60 .for I in
${RPC_CLNTFILES}
62 ${I}: ${RPC_XDIR}${I
:_clnt.c
=.x
}
64 ${TOOL_RPCGEN} ${RPCGEN_FLAGS} -l
${_RPCS} ${RPC_CLNTFLAGS} \
65 ${RPC_XDIR}${I
:_clnt.c
=.x
} -o
${.TARGET
}
68 DPSRCS
+= ${RPC_CLNTFILES}
69 CLEANFILES
+= ${RPC_CLNTFILES}
73 ##### Pull in related .mk logic
76 .
include <bsd.
clean.mk
>