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