]> git.proxmox.com Git - ceph.git/blob - ceph/src/crypto/isa-l/isa-l_crypto/sha512_mb/Makefile.am
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / crypto / isa-l / isa-l_crypto / sha512_mb / Makefile.am
1 ########################################################################
2 # Copyright(c) 2011-2016 Intel Corporation All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions
6 # are met:
7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above copyright
10 # notice, this list of conditions and the following disclaimer in
11 # the documentation and/or other materials provided with the
12 # distribution.
13 # * Neither the name of Intel Corporation nor the names of its
14 # contributors may be used to endorse or promote products derived
15 # from this software without specific prior written permission.
16 #
17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 ########################################################################
29
30 lsrc_x86_64 += sha512_mb/sha512_ctx_sse.c \
31 sha512_mb/sha512_ctx_avx.c \
32 sha512_mb/sha512_ctx_avx2.c \
33 sha512_mb/sha512_ctx_sb_sse4.c \
34 sha512_mb/sha512_ctx_base.c
35
36 lsrc_x86_64 += sha512_mb/sha512_mb_mgr_init_sse.c \
37 sha512_mb/sha512_mb_mgr_init_avx2.c \
38 sha512_mb/sha512_sb_mgr_init_sse4.c
39
40 lsrc_x86_32 += $(lsrc_x86_64)
41
42 lsrc_x86_64 += sha512_mb/sha512_mb_mgr_submit_sse.asm \
43 sha512_mb/sha512_mb_mgr_submit_avx.asm \
44 sha512_mb/sha512_mb_mgr_submit_avx2.asm \
45 sha512_mb/sha512_mb_mgr_flush_sse.asm \
46 sha512_mb/sha512_mb_mgr_flush_avx.asm \
47 sha512_mb/sha512_mb_mgr_flush_avx2.asm \
48 sha512_mb/sha512_mb_x2_sse.asm \
49 sha512_mb/sha512_mb_x2_avx.asm \
50 sha512_mb/sha512_mb_x4_avx2.asm \
51 sha512_mb/sha512_multibinary.asm \
52 sha512_mb/sha512_sb_mgr_submit_sse4.c \
53 sha512_mb/sha512_sb_mgr_flush_sse4.c \
54 sha512_mb/sha512_sse4.asm
55
56 lsrc_x86_64 += sha512_mb/sha512_ctx_avx512.c \
57 sha512_mb/sha512_mb_mgr_init_avx512.c \
58 sha512_mb/sha512_mb_mgr_submit_avx512.asm \
59 sha512_mb/sha512_mb_mgr_flush_avx512.asm \
60 sha512_mb/sha512_mb_x8_avx512.asm
61
62 lsrc_x86_32 += $(lsrc_x86_64)
63
64 lsrc_aarch64 += sha512_mb/sha512_ctx_base.c \
65 sha512_mb/aarch64/sha512_mb_multibinary.S \
66 sha512_mb/aarch64/sha512_mb_aarch64_dispatcher.c \
67 sha512_mb/aarch64/sha512_ctx_ce.c \
68 sha512_mb/aarch64/sha512_mb_mgr_ce.c \
69 sha512_mb/aarch64/sha512_mb_x1_ce.S \
70 sha512_mb/aarch64/sha512_mb_x2_ce.S
71
72 lsrc_base_aliases += sha512_mb/sha512_ctx_base.c \
73 sha512_mb/sha512_ctx_base_aliases.c
74
75 src_include += -I $(srcdir)/sha512_mb
76
77 extern_hdrs += include/sha512_mb.h \
78 include/multi_buffer.h
79
80 other_src += include/datastruct.asm \
81 sha512_mb/sha512_job.asm \
82 sha512_mb/sha512_mb_mgr_datastruct.asm \
83 include/reg_sizes.asm \
84 sha512_mb/sha512_ref.c \
85 include/memcpy_inline.h \
86 include/memcpy.asm \
87 include/intrinreg.h
88
89 check_tests += sha512_mb/sha512_mb_test \
90 sha512_mb/sha512_mb_rand_test \
91 sha512_mb/sha512_mb_rand_update_test
92
93 unit_tests += sha512_mb/sha512_mb_rand_ssl_test
94
95 perf_tests += sha512_mb/sha512_mb_vs_ossl_perf
96
97 sha512_mb_rand_test: sha512_ref.o
98 sha512_mb_sha512_mb_rand_test_LDADD = sha512_mb/sha512_ref.lo libisal_crypto.la
99
100 sha512_mb_rand_update_test: sha512_ref.o
101 sha512_mb_sha512_mb_rand_update_test_LDADD = sha512_mb/sha512_ref.lo libisal_crypto.la
102
103 sha512_mb_rand_ssl_test: LDLIBS += -lcrypto
104 sha512_mb_sha512_mb_rand_ssl_test_LDFLAGS = -lcrypto
105
106 sha512_mb_vs_ossl_perf: LDLIBS += -lcrypto
107 sha512_mb_sha512_mb_vs_ossl_perf_LDFLAGS = -lcrypto
108