xref: /freebsd/krb5/lib/crypto/Makefile (revision 18a870751b036f1dc78b36084ccb993d139a11bb)
1ee3960cbSCy Schubert#
2*18a87075SLexi Winter# SPDX-License-Identifier: 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 Schubert.include <src.opts.mk>
11ee3960cbSCy Schubert
12ee3960cbSCy Schubert.include "../Makefile.inc"
13ee3960cbSCy Schubert
14ee3960cbSCy SchubertLIB=		k5crypto
15ee3960cbSCy Schubert# SHLIB_MAJOR=	3
16ee3960cbSCy SchubertLDFLAGS=-Wl,--no-undefined
17ee3960cbSCy SchubertLIBADD=	com_err krb5support crypto
18ae07a580SCy SchubertVERSION_MAP=	${.CURDIR}/version.map
19ee3960cbSCy Schubert
20ee3960cbSCy Schubert# XXX The following doesn't work. Even though the pathnames are the same
21ee3960cbSCy Schubert# XXX we need to use the alternative .include statements.
22ee3960cbSCy Schubert# .include "${KRB5_CRYPTOLIBDIR}/krb/Makefile.inc"
23ee3960cbSCy Schubert# .include "${KRB5_CRYPTOLIBDIR}/builtin/Makefile.inc"
24ee3960cbSCy Schubert# .include "${KRB5_CRYPTOLIBDIR}/openssl/Makefile.inc"
25ee3960cbSCy Schubert
26ee3960cbSCy Schubert.include "${KRB5_SRCTOP}/lib/crypto/krb/Makefile.inc"
27ee3960cbSCy Schubert.include "${KRB5_SRCTOP}/lib/crypto/builtin/Makefile.inc"
28ee3960cbSCy Schubert.include "${KRB5_SRCTOP}/lib/crypto/openssl/Makefile.inc"
29ee3960cbSCy Schubert
30ee3960cbSCy Schubert# Not normally configured to use the openssl provider
31ee3960cbSCy Schubert# .include "${KRB5_SRCTOP}/lib/crypto/openssl/Makefile.inc"
32ee3960cbSCy Schubert
33ee3960cbSCy SchubertCFLAGS+=-I${.CURDIR:H:H}/include \
34ee3960cbSCy Schubert	-I${KRB5_DIR}/include \
35ee3960cbSCy Schubert	-I${KRB5_DIR}/lib/crypto \
36ee3960cbSCy Schubert	-I${KRB5_DIR}/lib/crypto/krb \
37ee3960cbSCy Schubert	-I${KRB5_DIR}/lib/crypto/builtin/aes \
38ee3960cbSCy Schubert	-I${KRB5_DIR}/lib/crypto/builtin/camellia \
39ee3960cbSCy Schubert	-I${KRB5_DIR}/lib/crypto/builtin/des \
40ee3960cbSCy Schubert	-I${KRB5_DIR}/lib/crypto/builtin/md4 \
41ee3960cbSCy Schubert	-I${KRB5_DIR}/lib/crypto/builtin/md5 \
42ee3960cbSCy Schubert	-I${KRB5_DIR}/lib/crypto/builtin/sha1 \
43ee3960cbSCy Schubert	-I${KRB5_DIR}/lib/crypto/builtin/sha2 \
44ee3960cbSCy Schubert	-I${SRCTOP}/crypto/openssl/include
45ee3960cbSCy Schubert
46ee3960cbSCy Schubert.include <bsd.lib.mk>
47