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.PATH: ${KRB5_DIR}/lib/gssapi/generic \ 11 ${KRB5_SRCTOP}/lib/gssapi/generic \ 12 ${KRB5_SRCTOP}/include 13 14SRCS+= disp_com_err_status.c \ 15 disp_major_status.c \ 16 errmap.h \ 17 gssapi.h \ 18 gssapi_generic.c \ 19 oid_ops.c \ 20 rel_buffer.c \ 21 rel_oid_set.c \ 22 util_buffer.c \ 23 util_buffer_set.c \ 24 util_errmap.c \ 25 util_seqstate.c \ 26 util_set.c \ 27 util_token.c \ 28 ${GGEN} \ 29 ${GGENI} 30 31# The gssapi subdir is only needed should we want an app to be able to 32# build using the MIT KRB5 GSSAPI library. 33# XXX We may wish to either comment this out or use a knob to enable/disable 34# XXX it. 35 36INCSGROUPS= GSSAPI_INCS 37GSSAPI_INCS= gssapi.h 38INCS+= ${GENI} 39GSSAPI_INCSDIR= ${INCLUDEDIR}/gssapi_krb5/gssapi 40 41CLEANFILES+= gssapi.h ${GGEN} ${GGENI} 42 43INCLUDE_XOM= echo "/* no xom.h */" 44 45gssapi.h: gssapi.hin 46 echo "Creating gssapi.h" ; \ 47 h=gss$$$$; rm -f $$h; \ 48 (echo "/* This is the gssapi.h prologue. */"; \ 49 ${INCLUDE_XOM} && \ 50 echo "/* End of gssapi.h prologue. */"&& \ 51 cat ${KRB5_DIR}/lib/gssapi/generic/gssapi.hin )> $$h && \ 52 (set -x; mv $$h ${.TARGET}) ; e=$$?; rm -f $$h; exit $$e 53 54PFX= generic 55.include "Makefile.et" 56