summaryrefslogtreecommitdiff
path: root/krb5/lib/crypto/Makefile
blob: a130a858cfa4c53d105ce04d1429878cd1d2772d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2025 FreeBSD Foundation
#
# This sofware was developed by Cy Schubert <cy@FreeBSD.org>
# under sponsorship from the FreeBSD Foundation.
#

.include <src.opts.mk>

.include "../Makefile.inc"

LIB=		k5crypto
# SHLIB_MAJOR=	3
LDFLAGS=-Wl,--no-undefined
LIBADD=	com_err krb5support crypto
VERSION_MAP=	${.CURDIR}/version.map

# 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/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 \
	-I${KRB5_OBJTOP}/util/profile

.include <bsd.lib.mk>