xref: /freebsd/sys/contrib/openzfs/lib/libicp/Makefile.am (revision 5b56413d04e608379c9a306373554a8e4d321bc0)
1libicp_la_CCASFLAGS = $(AM_CCASFLAGS)
2libicp_la_CFLAGS    = $(AM_CFLAGS) $(KERNEL_CFLAGS) $(LIBRARY_CFLAGS)
3
4noinst_LTLIBRARIES += libicp.la
5
6nodist_libicp_la_SOURCES = \
7	module/icp/spi/kcf_spi.c \
8	module/icp/api/kcf_ctxops.c \
9	module/icp/api/kcf_cipher.c \
10	module/icp/api/kcf_mac.c \
11	module/icp/algs/aes/aes_impl_aesni.c \
12	module/icp/algs/aes/aes_impl_generic.c \
13	module/icp/algs/aes/aes_impl_x86-64.c \
14	module/icp/algs/aes/aes_impl.c \
15	module/icp/algs/aes/aes_modes.c \
16	module/icp/algs/blake3/blake3.c \
17	module/icp/algs/blake3/blake3_generic.c \
18	module/icp/algs/blake3/blake3_impl.c \
19	module/icp/algs/edonr/edonr.c \
20	module/icp/algs/modes/modes.c \
21	module/icp/algs/modes/gcm_generic.c \
22	module/icp/algs/modes/gcm_pclmulqdq.c \
23	module/icp/algs/modes/gcm.c \
24	module/icp/algs/modes/ccm.c \
25	module/icp/algs/sha2/sha2_generic.c \
26	module/icp/algs/sha2/sha256_impl.c \
27	module/icp/algs/sha2/sha512_impl.c \
28	module/icp/algs/skein/skein.c \
29	module/icp/algs/skein/skein_block.c \
30	module/icp/algs/skein/skein_iv.c \
31	module/icp/illumos-crypto.c \
32	module/icp/io/aes.c \
33	module/icp/io/sha2_mod.c \
34	module/icp/core/kcf_sched.c \
35	module/icp/core/kcf_prov_lib.c \
36	module/icp/core/kcf_callprov.c \
37	module/icp/core/kcf_mech_tabs.c \
38	module/icp/core/kcf_prov_tabs.c \
39	module/zfs/zfs_impl.c
40
41if TARGET_CPU_AARCH64
42nodist_libicp_la_SOURCES += \
43	module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S \
44	module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S \
45	module/icp/asm-aarch64/sha2/sha256-armv8.S \
46	module/icp/asm-aarch64/sha2/sha512-armv8.S
47endif
48
49if TARGET_CPU_ARM
50nodist_libicp_la_SOURCES += \
51	module/icp/asm-arm/sha2/sha256-armv7.S \
52	module/icp/asm-arm/sha2/sha512-armv7.S
53endif
54
55if TARGET_CPU_POWERPC
56nodist_libicp_la_SOURCES += \
57	module/icp/asm-ppc64/blake3/b3_ppc64le_sse2.S \
58	module/icp/asm-ppc64/blake3/b3_ppc64le_sse41.S \
59	module/icp/asm-ppc64/sha2/sha256-ppc.S \
60	module/icp/asm-ppc64/sha2/sha512-ppc.S \
61	module/icp/asm-ppc64/sha2/sha256-p8.S \
62	module/icp/asm-ppc64/sha2/sha512-p8.S
63endif
64
65if TARGET_CPU_X86_64
66nodist_libicp_la_SOURCES += \
67	module/icp/asm-x86_64/aes/aeskey.c \
68	module/icp/asm-x86_64/aes/aes_amd64.S \
69	module/icp/asm-x86_64/aes/aes_aesni.S \
70	module/icp/asm-x86_64/modes/gcm_pclmulqdq.S \
71	module/icp/asm-x86_64/modes/aesni-gcm-x86_64.S \
72	module/icp/asm-x86_64/modes/ghash-x86_64.S \
73	module/icp/asm-x86_64/sha2/sha256-x86_64.S \
74	module/icp/asm-x86_64/sha2/sha512-x86_64.S \
75	module/icp/asm-x86_64/blake3/blake3_avx2.S \
76	module/icp/asm-x86_64/blake3/blake3_avx512.S \
77	module/icp/asm-x86_64/blake3/blake3_sse2.S \
78	module/icp/asm-x86_64/blake3/blake3_sse41.S
79endif
80
81