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.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_token.c \ 27 ${GGEN} \ 28 ${GGENI} 29 30# The gssapi subdir is only needed should we want an app to be able to 31# build using the MIT KRB5 GSSAPI library. 32# XXX We may wish to either comment this out or use a knob to enable/disable 33# XXX it. 34 35INCSGROUPS= GSSAPI_INCS 36GSSAPI_INCS= gssapi.h 37INCS+= ${GENI} 38GSSAPI_INCSDIR= ${INCLUDEDIR}/gssapi 39 40CLEANFILES+= gssapi.h ${GGEN} ${GGENI} 41 42INCLUDE_XOM= echo "/* no xom.h */" 43 44gssapi.h: gssapi.hin 45 echo "Creating gssapi.h" ; \ 46 h=gss$$$$; rm -f $$h; \ 47 (echo "/* This is the gssapi.h prologue. */"; \ 48 ${INCLUDE_XOM} && \ 49 echo "/* End of gssapi.h prologue. */"&& \ 50 cat ${KRB5_DIR}/lib/gssapi/generic/gssapi.hin )> $$h && \ 51 (set -x; mv $$h ${.TARGET}) ; e=$$?; rm -f $$h; exit $$e 52 53PFX= generic 54.include "Makefile.et" 55