xref: /freebsd/sys/modules/krpc/Makefile (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1
2.PATH: ${SRCTOP}/sys/rpc ${SRCTOP}/sys/rpc/rpcsec_tls
3KMOD=	krpc
4SRCS=	auth_none.c \
5	auth_unix.c \
6	authunix_prot.c \
7	clnt_bck.c \
8	clnt_dg.c \
9	clnt_rc.c \
10	clnt_vc.c \
11	getnetconfig.c \
12	rpc_callmsg.c \
13	rpc_generic.c \
14	rpc_prot.c \
15	rpcb_clnt.c \
16	rpcb_prot.c \
17	replay.c \
18	svc.c \
19	svc_auth.c \
20	svc_auth_unix.c \
21	svc_dg.c \
22	svc_generic.c \
23	svc_vc.c
24
25SRCS+=	rpctls_impl.c auth_tls.c
26
27SRCS+=	opt_inet6.h opt_kern_tls.h
28
29SRCS+=		rpctlscd.h rpctlscd_xdr.c rpctlscd_clnt.c
30CLEANFILES=	rpctlscd.h rpctlscd_xdr.c rpctlscd_clnt.c
31
32S=		${SRCTOP}/sys
33
34rpctlscd.h:	$S/rpc/rpcsec_tls/rpctlscd.x
35	RPCGEN_CPP=${CPP:Q} rpcgen -hM $S/rpc/rpcsec_tls/rpctlscd.x | grep -v pthread.h > rpctlscd.h
36
37rpctlscd_xdr.c:	$S/rpc/rpcsec_tls/rpctlscd.x
38	RPCGEN_CPP=${CPP:Q} rpcgen -c $S/rpc/rpcsec_tls/rpctlscd.x -o rpctlscd_xdr.c
39
40rpctlscd_clnt.c:	$S/rpc/rpcsec_tls/rpctlscd.x
41	RPCGEN_CPP=${CPP:Q} rpcgen -lM $S/rpc/rpcsec_tls/rpctlscd.x | grep -v string.h > rpctlscd_clnt.c
42
43SRCS+=		rpctlssd.h rpctlssd_xdr.c rpctlssd_clnt.c
44CLEANFILES=	rpctlssd.h rpctlssd_xdr.c rpctlssd_clnt.c
45
46S=		${SRCTOP}/sys
47
48rpctlssd.h:	$S/rpc/rpcsec_tls/rpctlssd.x
49	RPCGEN_CPP=${CPP:Q} rpcgen -hM $S/rpc/rpcsec_tls/rpctlssd.x | grep -v pthread.h > rpctlssd.h
50
51rpctlssd_xdr.c:	$S/rpc/rpcsec_tls/rpctlssd.x
52	RPCGEN_CPP=${CPP:Q} rpcgen -c $S/rpc/rpcsec_tls/rpctlssd.x -o rpctlssd_xdr.c
53
54rpctlssd_clnt.c:	$S/rpc/rpcsec_tls/rpctlssd.x
55	RPCGEN_CPP=${CPP:Q} rpcgen -lM $S/rpc/rpcsec_tls/rpctlssd.x | grep -v string.h > rpctlssd_clnt.c
56
57EXPORT_SYMS=	YES
58
59.include <bsd.kmod.mk>
60