]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libicp/Makefile.am
Unify target_cpu handling
[FreeBSD/FreeBSD.git] / lib / libicp / Makefile.am
1 include $(top_srcdir)/config/Rules.am
2
3 VPATH = \
4         $(top_srcdir)/module/icp \
5         $(top_srcdir)/lib/libicp
6
7 # Includes kernel code, generate warnings for large stack frames
8 AM_CFLAGS += $(FRAME_LARGER_THAN)
9
10 noinst_LTLIBRARIES = libicp.la
11
12 if TARGET_CPU_X86_64
13 ASM_SOURCES_C = asm-x86_64/aes/aeskey.c
14 ASM_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/sha1/sha1-x86_64.S \
19         asm-x86_64/sha2/sha256_impl.S \
20         asm-x86_64/sha2/sha512_impl.S
21 else
22 ASM_SOURCES_C =
23 ASM_SOURCES_AS =
24 endif
25
26 KERNEL_C = \
27         spi/kcf_spi.c \
28         api/kcf_ctxops.c \
29         api/kcf_digest.c \
30         api/kcf_cipher.c \
31         api/kcf_miscapi.c \
32         api/kcf_mac.c \
33         algs/aes/aes_impl_aesni.c \
34         algs/aes/aes_impl_generic.c \
35         algs/aes/aes_impl_x86-64.c \
36         algs/aes/aes_impl.c \
37         algs/aes/aes_modes.c \
38         algs/edonr/edonr.c \
39         algs/modes/modes.c \
40         algs/modes/cbc.c \
41         algs/modes/gcm_generic.c \
42         algs/modes/gcm_pclmulqdq.c \
43         algs/modes/gcm.c \
44         algs/modes/ctr.c \
45         algs/modes/ccm.c \
46         algs/modes/ecb.c \
47         algs/sha1/sha1.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/edonr_mod.c \
55         io/sha1_mod.c \
56         io/sha2_mod.c \
57         io/skein_mod.c \
58         os/modhash.c \
59         os/modconf.c \
60         core/kcf_sched.c \
61         core/kcf_prov_lib.c \
62         core/kcf_callprov.c \
63         core/kcf_mech_tabs.c \
64         core/kcf_prov_tabs.c \
65         $(ASM_SOURCES_C)
66
67 KERNEL_ASM = $(ASM_SOURCES_AS)
68
69 nodist_libicp_la_SOURCES = \
70         $(KERNEL_C) \
71         $(KERNEL_ASM)
72
73 libicp_la_LIBADD = -lrt