xref: /freebsd/sys/contrib/openzfs/lib/libicp/Makefile.am (revision d9a42747950146bf03cda7f6e25d219253f8a57a)
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/cbc.c \
22	module/icp/algs/modes/gcm_generic.c \
23	module/icp/algs/modes/gcm_pclmulqdq.c \
24	module/icp/algs/modes/gcm.c \
25	module/icp/algs/modes/ctr.c \
26	module/icp/algs/modes/ccm.c \
27	module/icp/algs/modes/ecb.c \
28	module/icp/algs/sha2/sha2_generic.c \
29	module/icp/algs/sha2/sha256_impl.c \
30	module/icp/algs/sha2/sha512_impl.c \
31	module/icp/algs/skein/skein.c \
32	module/icp/algs/skein/skein_block.c \
33	module/icp/algs/skein/skein_iv.c \
34	module/icp/illumos-crypto.c \
35	module/icp/io/aes.c \
36	module/icp/io/sha2_mod.c \
37	module/icp/io/skein_mod.c \
38	module/icp/core/kcf_sched.c \
39	module/icp/core/kcf_prov_lib.c \
40	module/icp/core/kcf_callprov.c \
41	module/icp/core/kcf_mech_tabs.c \
42	module/icp/core/kcf_prov_tabs.c \
43	module/zfs/zfs_impl.c
44
45if TARGET_CPU_AARCH64
46nodist_libicp_la_SOURCES += \
47	module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S \
48	module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S \
49	module/icp/asm-aarch64/sha2/sha256-armv8.S \
50	module/icp/asm-aarch64/sha2/sha512-armv8.S
51endif
52
53if TARGET_CPU_ARM
54nodist_libicp_la_SOURCES += \
55	module/icp/asm-arm/sha2/sha256-armv7.S \
56	module/icp/asm-arm/sha2/sha512-armv7.S
57endif
58
59if TARGET_CPU_POWERPC
60nodist_libicp_la_SOURCES += \
61	module/icp/asm-ppc64/blake3/b3_ppc64le_sse2.S \
62	module/icp/asm-ppc64/blake3/b3_ppc64le_sse41.S \
63	module/icp/asm-ppc64/sha2/sha256-ppc.S \
64	module/icp/asm-ppc64/sha2/sha512-ppc.S \
65	module/icp/asm-ppc64/sha2/sha256-p8.S \
66	module/icp/asm-ppc64/sha2/sha512-p8.S
67endif
68
69if TARGET_CPU_X86_64
70nodist_libicp_la_SOURCES += \
71	module/icp/asm-x86_64/aes/aeskey.c \
72	module/icp/asm-x86_64/aes/aes_amd64.S \
73	module/icp/asm-x86_64/aes/aes_aesni.S \
74	module/icp/asm-x86_64/modes/gcm_pclmulqdq.S \
75	module/icp/asm-x86_64/modes/aesni-gcm-x86_64.S \
76	module/icp/asm-x86_64/modes/ghash-x86_64.S \
77	module/icp/asm-x86_64/sha2/sha256-x86_64.S \
78	module/icp/asm-x86_64/sha2/sha512-x86_64.S \
79	module/icp/asm-x86_64/blake3/blake3_avx2.S \
80	module/icp/asm-x86_64/blake3/blake3_avx512.S \
81	module/icp/asm-x86_64/blake3/blake3_sse2.S \
82	module/icp/asm-x86_64/blake3/blake3_sse41.S
83endif
84
85