1*ee3960cbSCy Schubert# 2*ee3960cbSCy Schubert# SPDX-License-Idendifier: BSD-2-Clause 3*ee3960cbSCy Schubert# 4*ee3960cbSCy Schubert# Copyright (c) 2025 FreeBSD Foundation 5*ee3960cbSCy Schubert# 6*ee3960cbSCy Schubert# This sofware was developed by Cy Schubert <cy@FreeBSD.org> 7*ee3960cbSCy Schubert# under sponsorship from the FreeBSD Foundation. 8*ee3960cbSCy Schubert# 9*ee3960cbSCy Schubert 10*ee3960cbSCy SchubertPACKAGE= krb5 11*ee3960cbSCy Schubert 12*ee3960cbSCy Schubert.include <src.opts.mk> 13*ee3960cbSCy Schubert 14*ee3960cbSCy Schubert.include "../Makefile.inc" 15*ee3960cbSCy Schubert 16*ee3960cbSCy SchubertLIB= k5crypto 17*ee3960cbSCy Schubert# SHLIB_MAJOR= 3 18*ee3960cbSCy SchubertLDFLAGS=-Wl,--no-undefined 19*ee3960cbSCy SchubertLIBADD= com_err krb5support crypto 20*ee3960cbSCy Schubert 21*ee3960cbSCy Schubert# XXX The following doesn't work. Even though the pathnames are the same 22*ee3960cbSCy Schubert# XXX we need to use the alternative .include statements. 23*ee3960cbSCy Schubert# .include "${KRB5_CRYPTOLIBDIR}/krb/Makefile.inc" 24*ee3960cbSCy Schubert# .include "${KRB5_CRYPTOLIBDIR}/builtin/Makefile.inc" 25*ee3960cbSCy Schubert# .include "${KRB5_CRYPTOLIBDIR}/openssl/Makefile.inc" 26*ee3960cbSCy Schubert 27*ee3960cbSCy Schubert.include "${KRB5_SRCTOP}/lib/krb5/error_tables/Makefile.inc" 28*ee3960cbSCy Schubert 29*ee3960cbSCy SchubertSRCS+= ${GEN_ET} 30*ee3960cbSCy Schubert 31*ee3960cbSCy Schubert.include "${KRB5_SRCTOP}/lib/crypto/krb/Makefile.inc" 32*ee3960cbSCy Schubert.include "${KRB5_SRCTOP}/lib/crypto/builtin/Makefile.inc" 33*ee3960cbSCy Schubert.include "${KRB5_SRCTOP}/lib/crypto/openssl/Makefile.inc" 34*ee3960cbSCy Schubert 35*ee3960cbSCy Schubert# Not normally configured to use the openssl provider 36*ee3960cbSCy Schubert# .include "${KRB5_SRCTOP}/lib/crypto/openssl/Makefile.inc" 37*ee3960cbSCy Schubert 38*ee3960cbSCy SchubertCFLAGS+=-I${.CURDIR:H:H}/include \ 39*ee3960cbSCy Schubert -I${KRB5_DIR}/include \ 40*ee3960cbSCy Schubert -I${KRB5_DIR}/lib/crypto \ 41*ee3960cbSCy Schubert -I${KRB5_DIR}/lib/crypto/krb \ 42*ee3960cbSCy Schubert -I${KRB5_DIR}/lib/crypto/builtin/aes \ 43*ee3960cbSCy Schubert -I${KRB5_DIR}/lib/crypto/builtin/camellia \ 44*ee3960cbSCy Schubert -I${KRB5_DIR}/lib/crypto/builtin/des \ 45*ee3960cbSCy Schubert -I${KRB5_DIR}/lib/crypto/builtin/md4 \ 46*ee3960cbSCy Schubert -I${KRB5_DIR}/lib/crypto/builtin/md5 \ 47*ee3960cbSCy Schubert -I${KRB5_DIR}/lib/crypto/builtin/sha1 \ 48*ee3960cbSCy Schubert -I${KRB5_DIR}/lib/crypto/builtin/sha2 \ 49*ee3960cbSCy Schubert -I${SRCTOP}/crypto/openssl/include 50*ee3960cbSCy Schubert 51*ee3960cbSCy Schubert.include <bsd.lib.mk> 52