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