xref: /freebsd/sys/contrib/openzfs/lib/libicp/Makefile.am (revision 13ec1e3155c7e9bf037b12af186351b7fa9b9450)
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_digest.c \
31	api/kcf_cipher.c \
32	api/kcf_miscapi.c \
33	api/kcf_mac.c \
34	algs/aes/aes_impl_aesni.c \
35	algs/aes/aes_impl_generic.c \
36	algs/aes/aes_impl_x86-64.c \
37	algs/aes/aes_impl.c \
38	algs/aes/aes_modes.c \
39	algs/edonr/edonr.c \
40	algs/modes/modes.c \
41	algs/modes/cbc.c \
42	algs/modes/gcm_generic.c \
43	algs/modes/gcm_pclmulqdq.c \
44	algs/modes/gcm.c \
45	algs/modes/ctr.c \
46	algs/modes/ccm.c \
47	algs/modes/ecb.c \
48	algs/sha2/sha2.c \
49	algs/skein/skein.c \
50	algs/skein/skein_block.c \
51	algs/skein/skein_iv.c \
52	illumos-crypto.c \
53	io/aes.c \
54	io/sha2_mod.c \
55	io/skein_mod.c \
56	os/modhash.c \
57	core/kcf_sched.c \
58	core/kcf_prov_lib.c \
59	core/kcf_callprov.c \
60	core/kcf_mech_tabs.c \
61	core/kcf_prov_tabs.c \
62	$(ASM_SOURCES_C)
63
64KERNEL_ASM = $(ASM_SOURCES_AS)
65
66nodist_libicp_la_SOURCES = \
67	$(KERNEL_C) \
68	$(KERNEL_ASM)
69
70include $(top_srcdir)/config/CppCheck.am
71