ee3960cba1
Add tne necessary Makefiles and header files to facilitate building MIT KRB5 as part of buildworld. Nothing will build until the WITH_MITKRB5/MK_MITKRB5 option has been plumbed in Makefile.inc1. Before any changes to Makefile.inc1 are made to enable MIT KRB5, additional commits to other affected software will need to be committed. krb5/Makefile was inspired by kerberos5/Makefile. The Makefiles in krb5/util and krb5/lib were inspired by those in lib/libc and in lib/ncurses. Differential revision: https://reviews.freebsd.org/D50695 Sponsored by: The FreeBSD Foundation
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
#
|
|
# SPDX-License-Idendifier: BSD-2-Clause
|
|
#
|
|
# Copyright (c) 2025 FreeBSD Foundation
|
|
#
|
|
# This sofware was developed by Cy Schubert <cy@FreeBSD.org>
|
|
# under sponsorship from the FreeBSD Foundation.
|
|
#
|
|
|
|
PACKAGE= krb5
|
|
|
|
.include <src.opts.mk>
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
LIB= k5crypto
|
|
# SHLIB_MAJOR= 3
|
|
LDFLAGS=-Wl,--no-undefined
|
|
LIBADD= com_err krb5support crypto
|
|
|
|
# XXX The following doesn't work. Even though the pathnames are the same
|
|
# XXX we need to use the alternative .include statements.
|
|
# .include "${KRB5_CRYPTOLIBDIR}/krb/Makefile.inc"
|
|
# .include "${KRB5_CRYPTOLIBDIR}/builtin/Makefile.inc"
|
|
# .include "${KRB5_CRYPTOLIBDIR}/openssl/Makefile.inc"
|
|
|
|
.include "${KRB5_SRCTOP}/lib/krb5/error_tables/Makefile.inc"
|
|
|
|
SRCS+= ${GEN_ET}
|
|
|
|
.include "${KRB5_SRCTOP}/lib/crypto/krb/Makefile.inc"
|
|
.include "${KRB5_SRCTOP}/lib/crypto/builtin/Makefile.inc"
|
|
.include "${KRB5_SRCTOP}/lib/crypto/openssl/Makefile.inc"
|
|
|
|
# Not normally configured to use the openssl provider
|
|
# .include "${KRB5_SRCTOP}/lib/crypto/openssl/Makefile.inc"
|
|
|
|
CFLAGS+=-I${.CURDIR:H:H}/include \
|
|
-I${KRB5_DIR}/include \
|
|
-I${KRB5_DIR}/lib/crypto \
|
|
-I${KRB5_DIR}/lib/crypto/krb \
|
|
-I${KRB5_DIR}/lib/crypto/builtin/aes \
|
|
-I${KRB5_DIR}/lib/crypto/builtin/camellia \
|
|
-I${KRB5_DIR}/lib/crypto/builtin/des \
|
|
-I${KRB5_DIR}/lib/crypto/builtin/md4 \
|
|
-I${KRB5_DIR}/lib/crypto/builtin/md5 \
|
|
-I${KRB5_DIR}/lib/crypto/builtin/sha1 \
|
|
-I${KRB5_DIR}/lib/crypto/builtin/sha2 \
|
|
-I${SRCTOP}/crypto/openssl/include
|
|
|
|
.include <bsd.lib.mk>
|