xref: /freebsd/sys/contrib/openzfs/lib/libicp/Makefile.am (revision 9d54812421274e490dc5f0fe4722ab8d35d9b258)
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/blake3/blake3_x86-64.c \
20	module/icp/algs/edonr/edonr.c \
21	module/icp/algs/modes/modes.c \
22	module/icp/algs/modes/cbc.c \
23	module/icp/algs/modes/gcm_generic.c \
24	module/icp/algs/modes/gcm_pclmulqdq.c \
25	module/icp/algs/modes/gcm.c \
26	module/icp/algs/modes/ctr.c \
27	module/icp/algs/modes/ccm.c \
28	module/icp/algs/modes/ecb.c \
29	module/icp/algs/sha2/sha2.c \
30	module/icp/algs/skein/skein.c \
31	module/icp/algs/skein/skein_block.c \
32	module/icp/algs/skein/skein_iv.c \
33	module/icp/illumos-crypto.c \
34	module/icp/io/aes.c \
35	module/icp/io/sha2_mod.c \
36	module/icp/io/skein_mod.c \
37	module/icp/core/kcf_sched.c \
38	module/icp/core/kcf_prov_lib.c \
39	module/icp/core/kcf_callprov.c \
40	module/icp/core/kcf_mech_tabs.c \
41	module/icp/core/kcf_prov_tabs.c
42
43if TARGET_CPU_AARCH64
44nodist_libicp_la_SOURCES += \
45	module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S \
46	module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S
47endif
48
49if TARGET_CPU_POWERPC
50nodist_libicp_la_SOURCES += \
51	module/icp/asm-ppc64/blake3/b3_ppc64le_sse2.S \
52	module/icp/asm-ppc64/blake3/b3_ppc64le_sse41.S
53endif
54
55if TARGET_CPU_X86_64
56nodist_libicp_la_SOURCES += \
57	module/icp/asm-x86_64/aes/aeskey.c \
58	module/icp/asm-x86_64/aes/aes_amd64.S \
59	module/icp/asm-x86_64/aes/aes_aesni.S \
60	module/icp/asm-x86_64/modes/gcm_pclmulqdq.S \
61	module/icp/asm-x86_64/modes/aesni-gcm-x86_64.S \
62	module/icp/asm-x86_64/modes/ghash-x86_64.S \
63	module/icp/asm-x86_64/sha2/sha256_impl.S \
64	module/icp/asm-x86_64/sha2/sha512_impl.S \
65	module/icp/asm-x86_64/blake3/blake3_avx2.S \
66	module/icp/asm-x86_64/blake3/blake3_avx512.S \
67	module/icp/asm-x86_64/blake3/blake3_sse2.S \
68	module/icp/asm-x86_64/blake3/blake3_sse41.S
69endif
70