]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - cddl/lib/libicp/Makefile
Add 'contrib/pnglite/' from commit 'a70c2a23d0d84dfc63a1d9413a7f4aaede7313aa'
[FreeBSD/FreeBSD.git] / cddl / lib / libicp / Makefile
1 # $FreeBSD$
2
3 .PATH: ${SRCTOP}/sys/contrib/openzfs/module/icp
4
5 PACKAGE=        runtime
6 LIB=    icp
7 LIBADD=
8
9
10 .if ${MACHINE_ARCH} == "amd64"
11 ASM_SOURCES_C = asm-x86_64/aes/aeskey.c
12 ASM_SOURCES_AS = \
13         asm-x86_64/aes/aes_amd64.S \
14         asm-x86_64/aes/aes_aesni.S \
15         asm-x86_64/modes/gcm_pclmulqdq.S \
16         asm-x86_64/modes/aesni-gcm-x86_64.S \
17         asm-x86_64/modes/ghash-x86_64.S \
18         asm-x86_64/sha1/sha1-x86_64.S \
19         asm-x86_64/sha2/sha256_impl.S \
20         asm-x86_64/sha2/sha512_impl.S
21
22 CFLAGS+= -D__amd64 -D_SYS_STACK_H -UHAVE_AES
23 .else
24 ASM_SOURCES_C =
25 ASM_SOURCES_AS =
26 .endif
27
28
29 KERNEL_C = \
30         spi/kcf_spi.c \
31         api/kcf_ctxops.c \
32         api/kcf_digest.c \
33         api/kcf_cipher.c \
34         api/kcf_miscapi.c \
35         api/kcf_mac.c \
36         algs/aes/aes_impl_aesni.c \
37         algs/aes/aes_impl_generic.c \
38         algs/aes/aes_impl_x86-64.c \
39         algs/aes/aes_impl.c \
40         algs/aes/aes_modes.c \
41         algs/edonr/edonr.c \
42         algs/modes/modes.c \
43         algs/modes/cbc.c \
44         algs/modes/gcm_generic.c \
45         algs/modes/gcm_pclmulqdq.c \
46         algs/modes/gcm.c \
47         algs/modes/ctr.c \
48         algs/modes/ccm.c \
49         algs/modes/ecb.c \
50         algs/sha1/sha1.c \
51         algs/sha2/sha2.c \
52         algs/skein/skein.c \
53         algs/skein/skein_block.c \
54         algs/skein/skein_iv.c \
55         illumos-crypto.c \
56         io/aes.c \
57         io/edonr_mod.c \
58         io/sha1_mod.c \
59         io/sha2_mod.c \
60         io/skein_mod.c \
61         os/modhash.c \
62         os/modconf.c \
63         core/kcf_sched.c \
64         core/kcf_prov_lib.c \
65         core/kcf_callprov.c \
66         core/kcf_mech_tabs.c \
67         core/kcf_prov_tabs.c \
68         $(ASM_SOURCES_C)
69
70
71
72
73
74
75 SRCS= $(ASM_SOURCES_AS) $(KERNEL_C)
76
77 WARNS?= 2
78 SHLIB_MAJOR= 3
79 CSTD=   c99
80 CFLAGS+= -DIN_BASE
81 CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
82 CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/
83 CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
84 CFLAGS+= -I${SRCTOP}/sys
85 CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
86 CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include
87 CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
88 CFLAGS+= -DHAVE_ISSETUGID
89 CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h
90
91
92 CFLAGS.aes_amd64.S+= -DLOCORE
93 CFLAGS.aes_aesni.S+= -DLOCORE
94 CFLAGS.gcm_pclmulqdq.S+= -DLOCORE
95 CFLAGS.aesni-gcm-x86_64.S+= -DLOCORE
96 CFLAGS.ghash-x86_64.S+= -DLOCORE
97 CFLAGS.sha1-x86_64.S+= -DLOCORE
98 CFLAGS.sha256_impl.S+= -DLOCORE
99 CFLAGS.sha512_impl.S+= -DLOCORE
100
101 .include <bsd.lib.mk>