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