xref: /freebsd/sys/contrib/openzfs/lib/libicp/Makefile.am (revision 43a5ec4eb41567cc92586503212743d89686d78f)
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/sha1/sha1-x86_64.S \
21	asm-x86_64/sha2/sha256_impl.S \
22	asm-x86_64/sha2/sha512_impl.S
23else
24ASM_SOURCES_C =
25ASM_SOURCES_AS =
26endif
27
28KERNEL_C = \
29	spi/kcf_spi.c \
30	api/kcf_ctxops.c \
31	api/kcf_digest.c \
32	api/kcf_cipher.c \
33	api/kcf_miscapi.c \
34	api/kcf_mac.c \
35	algs/aes/aes_impl_aesni.c \
36	algs/aes/aes_impl_generic.c \
37	algs/aes/aes_impl_x86-64.c \
38	algs/aes/aes_impl.c \
39	algs/aes/aes_modes.c \
40	algs/edonr/edonr.c \
41	algs/modes/modes.c \
42	algs/modes/cbc.c \
43	algs/modes/gcm_generic.c \
44	algs/modes/gcm_pclmulqdq.c \
45	algs/modes/gcm.c \
46	algs/modes/ctr.c \
47	algs/modes/ccm.c \
48	algs/modes/ecb.c \
49	algs/sha1/sha1.c \
50	algs/sha2/sha2.c \
51	algs/skein/skein.c \
52	algs/skein/skein_block.c \
53	algs/skein/skein_iv.c \
54	illumos-crypto.c \
55	io/aes.c \
56	io/edonr_mod.c \
57	io/sha1_mod.c \
58	io/sha2_mod.c \
59	io/skein_mod.c \
60	os/modhash.c \
61	os/modconf.c \
62	core/kcf_sched.c \
63	core/kcf_prov_lib.c \
64	core/kcf_callprov.c \
65	core/kcf_mech_tabs.c \
66	core/kcf_prov_tabs.c \
67	$(ASM_SOURCES_C)
68
69KERNEL_ASM = $(ASM_SOURCES_AS)
70
71nodist_libicp_la_SOURCES = \
72	$(KERNEL_C) \
73	$(KERNEL_ASM)
74
75include $(top_srcdir)/config/CppCheck.am
76