xref: /freebsd/sys/contrib/openzfs/lib/libicp/Makefile.am (revision 5e801ac66d24704442eba426ed13c3effb8a34e7)
1include $(top_srcdir)/config/Rules.am
2
3VPATH = \
4	$(top_srcdir)/module/icp \
5	$(top_srcdir)/lib/libicp
6
7# Includes kernel code, generate warnings for large stack frames
8AM_CFLAGS += $(FRAME_LARGER_THAN)
9
10noinst_LTLIBRARIES = libicp.la
11
12if TARGET_CPU_X86_64
13ASM_SOURCES_C = asm-x86_64/aes/aeskey.c
14ASM_SOURCES_AS = \
15	asm-x86_64/aes/aes_amd64.S \
16	asm-x86_64/aes/aes_aesni.S \
17	asm-x86_64/modes/gcm_pclmulqdq.S \
18	asm-x86_64/modes/aesni-gcm-x86_64.S \
19	asm-x86_64/modes/ghash-x86_64.S \
20	asm-x86_64/sha2/sha256_impl.S \
21	asm-x86_64/sha2/sha512_impl.S
22else
23ASM_SOURCES_C =
24ASM_SOURCES_AS =
25endif
26
27KERNEL_C = \
28	spi/kcf_spi.c \
29	api/kcf_ctxops.c \
30	api/kcf_cipher.c \
31	api/kcf_mac.c \
32	algs/aes/aes_impl_aesni.c \
33	algs/aes/aes_impl_generic.c \
34	algs/aes/aes_impl_x86-64.c \
35	algs/aes/aes_impl.c \
36	algs/aes/aes_modes.c \
37	algs/edonr/edonr.c \
38	algs/modes/modes.c \
39	algs/modes/cbc.c \
40	algs/modes/gcm_generic.c \
41	algs/modes/gcm_pclmulqdq.c \
42	algs/modes/gcm.c \
43	algs/modes/ctr.c \
44	algs/modes/ccm.c \
45	algs/modes/ecb.c \
46	algs/sha2/sha2.c \
47	algs/skein/skein.c \
48	algs/skein/skein_block.c \
49	algs/skein/skein_iv.c \
50	illumos-crypto.c \
51	io/aes.c \
52	io/sha2_mod.c \
53	io/skein_mod.c \
54	core/kcf_sched.c \
55	core/kcf_prov_lib.c \
56	core/kcf_callprov.c \
57	core/kcf_mech_tabs.c \
58	core/kcf_prov_tabs.c \
59	$(ASM_SOURCES_C)
60
61KERNEL_ASM = $(ASM_SOURCES_AS)
62
63nodist_libicp_la_SOURCES = \
64	$(KERNEL_C) \
65	$(KERNEL_ASM)
66
67include $(top_srcdir)/config/CppCheck.am
68