1# 2# SPDX-License-Identifier: 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.include "${KRB5_SRCTOP}/Makefile.pc" 14 15LIB= gssrpc 16LDFLAGS= -Wl,--no-undefined 17LIBADD= gssapi_krb5 krb5 k5crypto com_err krb5support 18VERSION_MAP= ${.CURDIR}/version.map 19PCFILES= gssrpc.pc 20CLEANFILES+= ${PCFILES} 21 22SRCS= auth_gss.c \ 23 auth_gssapi.c \ 24 auth_gssapi_misc.c \ 25 auth_none.c \ 26 auth_unix.c \ 27 authgss_prot.c \ 28 authunix_prot.c \ 29 bindresvport.c \ 30 clnt_generic.c \ 31 clnt_perror.c \ 32 clnt_raw.c \ 33 clnt_simple.c \ 34 clnt_tcp.c \ 35 clnt_udp.c \ 36 dyn.c \ 37 get_myaddress.c \ 38 getrpcport.c \ 39 pmap_clnt.c \ 40 pmap_getmaps.c \ 41 pmap_getport.c \ 42 pmap_prot.c \ 43 pmap_prot2.c \ 44 pmap_rmt.c \ 45 rpc_callmsg.c \ 46 rpc_commondata.c \ 47 rpc_dtablesize.c \ 48 rpc_prot.c \ 49 svc.c \ 50 svc_auth.c \ 51 svc_auth_gss.c \ 52 svc_auth_gssapi.c \ 53 svc_auth_none.c \ 54 svc_auth_unix.c \ 55 svc_raw.c \ 56 svc_run.c \ 57 svc_simple.c \ 58 svc_tcp.c \ 59 svc_udp.c \ 60 xdr.c \ 61 xdr_alloc.c \ 62 xdr_array.c \ 63 xdr_float.c \ 64 xdr_mem.c \ 65 xdr_rec.c \ 66 xdr_reference.c \ 67 xdr_sizeof.c \ 68 xdr_stdio.c 69 70CFLAGS+=-I${KRB5_DIR}/lib/rpc \ 71 -I${KRB5_DIR}/include \ 72 -I${KRB5_SRCTOP}/include \ 73 -I${KRB5_OBJTOP}/lib \ 74 -DGSSAPI_KRB5 \ 75 -DDEBUG_GSSAPI=0 \ 76 -DGSSRPC__IMPL 77 78.include <bsd.lib.mk> 79 80all: ${PCFILES} 81 82.PATH: ${KRB5_DIR}/build-tools \ 83 ${KRB5_DIR}/lib/rpc 84