]> git.proxmox.com Git - ceph.git/blame - ceph/src/crypto/isa-l/isa-l_crypto/sm3_mb/Makefile.am
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / crypto / isa-l / isa-l_crypto / sm3_mb / Makefile.am
CommitLineData
1e59de90
TL
1########################################################################
2# Copyright(c) 2011-2020 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
30lsrc_x86_64 += sm3_mb/sm3_ctx_base.c \
31 sm3_mb/sm3_multibinary.asm
32
33lsrc_base_aliases += sm3_mb/sm3_ctx_base.c \
34 sm3_mb/sm3_ctx_base_aliases.c
35
36lsrc_aarch64 += sm3_mb/sm3_ctx_base.c \
37 sm3_mb/aarch64/sm3_mb_aarch64_dispatcher.c \
38 sm3_mb/aarch64/sm3_mb_multibinary_aarch64.S \
39 sm3_mb/aarch64/sm3_mb_mgr_sm_aarch64.c \
40 sm3_mb/aarch64/sm3_mb_ctx_sm_aarch64.c \
41 sm3_mb/aarch64/sm3_mb_sm_x1.S \
42 sm3_mb/aarch64/sm3_mb_sm_x2.S \
43 sm3_mb/aarch64/sm3_mb_sm_x3.S \
44 sm3_mb/aarch64/sm3_mb_sm_x4.S \
45 sm3_mb/aarch64/sm3_mb_mgr_asimd_aarch64.c \
46 sm3_mb/aarch64/sm3_mb_ctx_asimd_aarch64.c \
47 sm3_mb/aarch64/sm3_mb_asimd_x1.S \
48 sm3_mb/aarch64/sm3_mb_asimd_x4.S
49
50
51src_include += -I $(srcdir)/sm3_mb
52
53extern_hdrs += include/sm3_mb.h \
54 include/multi_buffer.h
55
56lsrc_x86_64 += sm3_mb/sm3_ctx_avx512.c \
57 sm3_mb/sm3_mb_mgr_submit_avx512.asm \
58 sm3_mb/sm3_mb_mgr_flush_avx512.asm \
59 sm3_mb/sm3_mb_x16_avx512.asm
60
61lsrc_x86_64 += sm3_mb/sm3_ctx_avx2.c \
62 sm3_mb/sm3_mb_mgr_submit_avx2.asm \
63 sm3_mb/sm3_mb_mgr_flush_avx2.asm \
64 sm3_mb/sm3_mb_x8_avx2.asm
65
66other_src += include/datastruct.asm \
67 include/multibinary.asm \
68 include/reg_sizes.asm \
69 include/memcpy_inline.h \
70 include/memcpy.asm \
71 include/intrinreg.h \
72 sm3_mb/sm3_job.asm \
73 sm3_mb/sm3_mb_mgr_datastruct.asm \
74 sm3_mb/sm3_test_helper.c
75
76check_tests += sm3_mb/sm3_ref_test
77
78unit_tests += sm3_mb/sm3_mb_rand_ssl_test \
79 sm3_mb/sm3_mb_rand_test \
80 sm3_mb/sm3_mb_rand_update_test \
81 sm3_mb/sm3_mb_flush_test \
82 sm3_mb/sm3_mb_test
83
84perf_tests += sm3_mb/sm3_mb_vs_ossl_perf \
85 sm3_mb/sm3_mb_vs_ossl_shortage_perf
86
87sm3_mb_rand_ssl_test: LDLIBS += -lcrypto
88sm3_mb_sm3_mb_rand_ssl_test_LDFLAGS = -lcrypto
89
90sm3_mb_rand_ssl_test: sm3_test_helper.o
91sm3_mb_sm3_mb_rand_ssl_test_LDADD = sm3_mb/sm3_test_helper.lo libisal_crypto.la
92
93sm3_mb_rand_update_test: LDLIBS += -lcrypto
94sm3_mb_sm3_mb_rand_update_test_LDFLAGS = -lcrypto
95
96sm3_mb_rand_update_test: sm3_test_helper.o
97sm3_mb_sm3_mb_rand_update_test_LDADD = sm3_mb/sm3_test_helper.lo libisal_crypto.la
98
99sm3_mb_flush_test: LDLIBS += -lcrypto
100sm3_mb_sm3_mb_flush_test_LDFLAGS = -lcrypto
101
102sm3_mb_flush_test: sm3_test_helper.o
103sm3_mb_sm3_mb_flush_test_LDADD = sm3_mb/sm3_test_helper.lo libisal_crypto.la
104
105sm3_mb_rand_test: LDLIBS += -lcrypto
106sm3_mb_sm3_mb_rand_test_LDFLAGS = -lcrypto
107
108sm3_mb_rand_test: sm3_test_helper.o
109sm3_mb_sm3_mb_rand_test_LDADD = sm3_mb/sm3_test_helper.lo libisal_crypto.la
110
111sm3_mb_vs_ossl_perf: LDLIBS += -lcrypto
112sm3_mb_sm3_mb_vs_ossl_perf_LDFLAGS = -lcrypto
113
114sm3_mb_vs_ossl_perf: sm3_test_helper.o
115sm3_mb_sm3_mb_vs_ossl_perf_LDADD = sm3_mb/sm3_test_helper.lo libisal_crypto.la
116
117sm3_mb_vs_ossl_shortage_perf: LDLIBS += -lcrypto
118sm3_mb_sm3_mb_vs_ossl_shortage_perf_LDFLAGS = -lcrypto
119
120sm3_mb_vs_ossl_shortage_perf: sm3_test_helper.o
121sm3_mb_sm3_mb_vs_ossl_shortage_perf_LDADD = sm3_mb/sm3_test_helper.lo libisal_crypto.la