]> git.proxmox.com Git - ceph.git/blob - ceph/src/crypto/isa-l/isa-l_crypto/md5_mb/Makefile.am
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / crypto / isa-l / isa-l_crypto / md5_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 += md5_mb/md5_ctx_sse.c \
31 md5_mb/md5_ctx_avx.c \
32 md5_mb/md5_ctx_avx2.c \
33 md5_mb/md5_ctx_base.c
34
35 lsrc_x86_64 += md5_mb/md5_mb_mgr_init_sse.c \
36 md5_mb/md5_mb_mgr_init_avx2.c \
37 md5_mb/md5_mb_mgr_init_avx512.c
38
39 lsrc_x86_64 += md5_mb/md5_mb_mgr_submit_sse.asm \
40 md5_mb/md5_mb_mgr_submit_avx.asm \
41 md5_mb/md5_mb_mgr_submit_avx2.asm \
42 md5_mb/md5_mb_mgr_flush_sse.asm \
43 md5_mb/md5_mb_mgr_flush_avx.asm \
44 md5_mb/md5_mb_mgr_flush_avx2.asm \
45 md5_mb/md5_mb_x4x2_sse.asm \
46 md5_mb/md5_mb_x4x2_avx.asm \
47 md5_mb/md5_mb_x8x2_avx2.asm \
48 md5_mb/md5_multibinary.asm
49
50 lsrc_x86_64 += md5_mb/md5_mb_mgr_submit_avx512.asm \
51 md5_mb/md5_mb_mgr_flush_avx512.asm \
52 md5_mb/md5_mb_x16x2_avx512.asm \
53 md5_mb/md5_ctx_avx512.c
54
55 lsrc_x86_32 += $(lsrc_x86_64)
56
57 lsrc_aarch64 += md5_mb/md5_ctx_base.c \
58 md5_mb/aarch64/md5_ctx_aarch64_asimd.c \
59 md5_mb/aarch64/md5_mb_aarch64_dispatcher.c \
60 md5_mb/aarch64/md5_mb_mgr_aarch64_asimd.c \
61 md5_mb/aarch64/md5_mb_asimd_x4.S \
62 md5_mb/aarch64/md5_mb_asimd_x1.S \
63 md5_mb/aarch64/md5_mb_multibinary.S
64
65
66 lsrc_base_aliases += md5_mb/md5_ctx_base.c \
67 md5_mb/md5_ctx_base_aliases.c
68 src_include += -I $(srcdir)/md5_mb
69 extern_hdrs += include/md5_mb.h \
70 include/multi_buffer.h
71
72 other_src += include/datastruct.asm \
73 md5_mb/md5_job.asm \
74 md5_mb/md5_mb_mgr_datastruct.asm \
75 md5_mb/md5_ref.c \
76 include/reg_sizes.asm \
77 include/multibinary.asm \
78 include/memcpy_inline.h \
79 include/intrinreg.h
80
81 check_tests += md5_mb/md5_mb_test \
82 md5_mb/md5_mb_rand_test \
83 md5_mb/md5_mb_rand_update_test
84
85 unit_tests += md5_mb/md5_mb_rand_ssl_test
86
87 perf_tests += md5_mb/md5_mb_vs_ossl_perf
88
89
90 md5_mb_rand_test: md5_ref.o
91 md5_mb_md5_mb_rand_test_LDADD = md5_mb/md5_ref.lo libisal_crypto.la
92 md5_mb_rand_update_test: md5_ref.o
93 md5_mb_md5_mb_rand_update_test_LDADD = md5_mb/md5_ref.lo libisal_crypto.la
94 md5_mb_rand_ssl_test: LDLIBS += -lcrypto
95 md5_mb_md5_mb_rand_ssl_test_LDFLAGS = -lcrypto
96 md5_mb_vs_ossl_perf: LDLIBS += -lcrypto
97 md5_mb_md5_mb_vs_ossl_perf_LDFLAGS = -lcrypto
98