xref: /freebsd/krb5/lib/rpc/Makefile (revision 4757b351ea9d59d71d4a38b82506d2d16fcd560d)
1#
2# SPDX-License-Idendifier: BSD-2-Clause
3#
4# Copyright (c) 2025 FreeBSD Foundation
5#
6# This sofware was developed by Cy Schubert <cy@FreeBSD.org>
7# under sponsorship from the FreeBSD Foundation.
8#
9
10.include <src.opts.mk>
11
12.include "../Makefile.inc"
13
14LIB=		gssrpc
15# SHLIB_MAJOR=	4
16LDFLAGS=-Wl,--no-undefined
17LIBADD=	gssapi_krb5 krb5 k5crypto com_err krb5support
18VERSION_MAP=	${.CURDIR}/version.map
19
20SRCS=	auth_gss.c \
21	auth_gssapi.c \
22	auth_gssapi_misc.c \
23	auth_none.c \
24	auth_unix.c \
25	authgss_prot.c \
26	authunix_prot.c \
27	bindresvport.c \
28	clnt_generic.c \
29	clnt_perror.c \
30	clnt_raw.c \
31	clnt_simple.c \
32	clnt_tcp.c \
33	clnt_udp.c \
34	dyn.c \
35	get_myaddress.c \
36	getrpcport.c \
37	pmap_clnt.c \
38	pmap_getmaps.c \
39	pmap_getport.c \
40	pmap_prot.c \
41	pmap_prot2.c \
42	pmap_rmt.c \
43	rpc_callmsg.c \
44	rpc_commondata.c \
45	rpc_dtablesize.c \
46	rpc_prot.c \
47	svc.c \
48	svc_auth.c \
49	svc_auth_gss.c \
50	svc_auth_gssapi.c \
51	svc_auth_none.c \
52	svc_auth_unix.c \
53	svc_raw.c \
54	svc_run.c \
55	svc_simple.c \
56	svc_tcp.c \
57	svc_udp.c \
58	xdr.c \
59	xdr_alloc.c \
60	xdr_array.c \
61	xdr_float.c \
62	xdr_mem.c \
63	xdr_rec.c \
64	xdr_reference.c \
65	xdr_sizeof.c \
66	xdr_stdio.c
67
68CFLAGS+=-I${KRB5_DIR}/lib/rpc \
69	-I${KRB5_DIR}/include \
70	-I${KRB5_SRCTOP}/include \
71	-I${KRB5_OBJTOP}/lib \
72	-DGSSAPI_KRB5 \
73	-DDEBUG_GSSAPI=0 \
74	-DGSSRPC__IMPL
75
76.include <bsd.lib.mk>
77
78.PATH:	${KRB5_DIR}/lib/rpc
79