]>
Commit | Line | Data |
---|---|---|
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 | ||
30 | lsrc_x86_64 += sm3_mb/sm3_ctx_base.c \ | |
31 | sm3_mb/sm3_multibinary.asm | |
32 | ||
33 | lsrc_base_aliases += sm3_mb/sm3_ctx_base.c \ | |
34 | sm3_mb/sm3_ctx_base_aliases.c | |
35 | ||
36 | lsrc_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 | ||
51 | src_include += -I $(srcdir)/sm3_mb | |
52 | ||
53 | extern_hdrs += include/sm3_mb.h \ | |
54 | include/multi_buffer.h | |
55 | ||
56 | lsrc_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 | ||
61 | lsrc_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 | ||
66 | other_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 | ||
76 | check_tests += sm3_mb/sm3_ref_test | |
77 | ||
78 | unit_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 | ||
84 | perf_tests += sm3_mb/sm3_mb_vs_ossl_perf \ | |
85 | sm3_mb/sm3_mb_vs_ossl_shortage_perf | |
86 | ||
87 | sm3_mb_rand_ssl_test: LDLIBS += -lcrypto | |
88 | sm3_mb_sm3_mb_rand_ssl_test_LDFLAGS = -lcrypto | |
89 | ||
90 | sm3_mb_rand_ssl_test: sm3_test_helper.o | |
91 | sm3_mb_sm3_mb_rand_ssl_test_LDADD = sm3_mb/sm3_test_helper.lo libisal_crypto.la | |
92 | ||
93 | sm3_mb_rand_update_test: LDLIBS += -lcrypto | |
94 | sm3_mb_sm3_mb_rand_update_test_LDFLAGS = -lcrypto | |
95 | ||
96 | sm3_mb_rand_update_test: sm3_test_helper.o | |
97 | sm3_mb_sm3_mb_rand_update_test_LDADD = sm3_mb/sm3_test_helper.lo libisal_crypto.la | |
98 | ||
99 | sm3_mb_flush_test: LDLIBS += -lcrypto | |
100 | sm3_mb_sm3_mb_flush_test_LDFLAGS = -lcrypto | |
101 | ||
102 | sm3_mb_flush_test: sm3_test_helper.o | |
103 | sm3_mb_sm3_mb_flush_test_LDADD = sm3_mb/sm3_test_helper.lo libisal_crypto.la | |
104 | ||
105 | sm3_mb_rand_test: LDLIBS += -lcrypto | |
106 | sm3_mb_sm3_mb_rand_test_LDFLAGS = -lcrypto | |
107 | ||
108 | sm3_mb_rand_test: sm3_test_helper.o | |
109 | sm3_mb_sm3_mb_rand_test_LDADD = sm3_mb/sm3_test_helper.lo libisal_crypto.la | |
110 | ||
111 | sm3_mb_vs_ossl_perf: LDLIBS += -lcrypto | |
112 | sm3_mb_sm3_mb_vs_ossl_perf_LDFLAGS = -lcrypto | |
113 | ||
114 | sm3_mb_vs_ossl_perf: sm3_test_helper.o | |
115 | sm3_mb_sm3_mb_vs_ossl_perf_LDADD = sm3_mb/sm3_test_helper.lo libisal_crypto.la | |
116 | ||
117 | sm3_mb_vs_ossl_shortage_perf: LDLIBS += -lcrypto | |
118 | sm3_mb_sm3_mb_vs_ossl_shortage_perf_LDFLAGS = -lcrypto | |
119 | ||
120 | sm3_mb_vs_ossl_shortage_perf: sm3_test_helper.o | |
121 | sm3_mb_sm3_mb_vs_ossl_shortage_perf_LDADD = sm3_mb/sm3_test_helper.lo libisal_crypto.la |