| 1 |
# Makefile for cipher modules |
| 2 |
# Copyright (C) 1998, 1999, 2000, 2001, 2002, |
| 3 |
# 2003, 2009 Free Software Foundation, Inc. |
| 4 |
# |
| 5 |
# This file is part of Libgcrypt. |
| 6 |
# |
| 7 |
# Libgcrypt is free software; you can redistribute it and/or modify |
| 8 |
# it under the terms of the GNU Lesser General Public License as |
| 9 |
# published by the Free Software Foundation; either version 2.1 of |
| 10 |
# the License, or (at your option) any later version. |
| 11 |
# |
| 12 |
# Libgcrypt is distributed in the hope that it will be useful, |
| 13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
# GNU Lesser General Public License for more details. |
| 16 |
# |
| 17 |
# You should have received a copy of the GNU Lesser General Public |
| 18 |
# License along with this program; if not, see <http://www.gnu.org/licenses/>. |
| 19 |
|
| 20 |
# Process this file with automake to produce Makefile.in |
| 21 |
|
| 22 |
# Need to include ../src in addition to top_srcdir because gcrypt.h is |
| 23 |
# a built header. |
| 24 |
AM_CPPFLAGS = -I../src -I$(top_srcdir)/src -I../mpi -I$(top_srcdir)/mpi |
| 25 |
AM_CFLAGS = $(GPG_ERROR_CFLAGS) |
| 26 |
|
| 27 |
AM_CCASFLAGS = $(NOEXECSTACK_FLAGS) |
| 28 |
|
| 29 |
EXTRA_DIST = gost-s-box.c kyber-common.c kyber-kdep.c \ |
| 30 |
dilithium-common.c dilithium-dep.c |
| 31 |
|
| 32 |
CLEANFILES = gost-s-box$(EXEEXT_FOR_BUILD) |
| 33 |
DISTCLEANFILES = gost-sb.h |
| 34 |
|
| 35 |
noinst_LTLIBRARIES = libcipher.la |
| 36 |
|
| 37 |
GCRYPT_MODULES = @GCRYPT_CIPHERS@ @GCRYPT_PUBKEY_CIPHERS@ \ |
| 38 |
@GCRYPT_DIGESTS@ @GCRYPT_KDFS@ |
| 39 |
|
| 40 |
libcipher_la_DEPENDENCIES = $(GCRYPT_MODULES) |
| 41 |
libcipher_la_LIBADD = $(GCRYPT_MODULES) |
| 42 |
|
| 43 |
libcipher_la_SOURCES = \ |
| 44 |
cipher.c cipher-internal.h \ |
| 45 |
cipher-cbc.c \ |
| 46 |
cipher-cfb.c \ |
| 47 |
cipher-ofb.c \ |
| 48 |
cipher-ctr.c \ |
| 49 |
cipher-aeswrap.c \ |
| 50 |
cipher-ccm.c \ |
| 51 |
cipher-cmac.c \ |
| 52 |
cipher-gcm.c \ |
| 53 |
cipher-poly1305.c \ |
| 54 |
cipher-ocb.c \ |
| 55 |
cipher-xts.c \ |
| 56 |
cipher-eax.c \ |
| 57 |
cipher-siv.c \ |
| 58 |
cipher-gcm-siv.c \ |
| 59 |
pubkey.c pubkey-internal.h pubkey-util.c \ |
| 60 |
md.c \ |
| 61 |
mac.c mac-internal.h \ |
| 62 |
mac-hmac.c mac-cmac.c mac-gmac.c mac-poly1305.c \ |
| 63 |
poly1305.c poly1305-internal.h \ |
| 64 |
kem.c sntrup761.c sntrup761.h kem-ecc.c kem-ecc.h \ |
| 65 |
mceliece6688128f.c mceliece6688128f.h \ |
| 66 |
kdf.c kdf-internal.h \ |
| 67 |
bithelp.h \ |
| 68 |
bufhelp.h \ |
| 69 |
bulkhelp.h \ |
| 70 |
primegen.c \ |
| 71 |
hash-common.c hash-common.h \ |
| 72 |
dsa-common.c rsa-common.c \ |
| 73 |
sha1.h |
| 74 |
|
| 75 |
EXTRA_libcipher_la_SOURCES = \ |
| 76 |
asm-common-aarch64.h \ |
| 77 |
asm-common-amd64.h \ |
| 78 |
asm-common-i386.h \ |
| 79 |
asm-common-s390x.h \ |
| 80 |
asm-inline-s390x.h \ |
| 81 |
asm-poly1305-aarch64.h \ |
| 82 |
asm-poly1305-amd64.h \ |
| 83 |
asm-poly1305-s390x.h \ |
| 84 |
aria.c aria-aesni-avx-amd64.S aria-aesni-avx2-amd64.S \ |
| 85 |
aria-gfni-avx512-amd64.S \ |
| 86 |
arcfour.c arcfour-amd64.S \ |
| 87 |
blowfish.c blowfish-amd64.S blowfish-arm.S \ |
| 88 |
cast5.c cast5-amd64.S cast5-arm.S \ |
| 89 |
chacha20.c chacha20-amd64-ssse3.S chacha20-amd64-avx2.S \ |
| 90 |
chacha20-amd64-avx512.S chacha20-armv7-neon.S chacha20-aarch64.S \ |
| 91 |
chacha20-ppc.c chacha20-s390x.S chacha20-p10le-8x.s \ |
| 92 |
chacha20-riscv-v.c \ |
| 93 |
cipher-gcm-ppc.c cipher-gcm-intel-pclmul.c \ |
| 94 |
cipher-gcm-aarch64-simd.c cipher-gcm-armv7-neon.S \ |
| 95 |
cipher-gcm-armv8-aarch32-ce.S cipher-gcm-armv8-aarch64-ce.S \ |
| 96 |
cipher-gcm-riscv-zbb-zbc.c cipher-gcm-riscv-zvkg.c \ |
| 97 |
crc.c crc-intel-pclmul.c crc-armv8-ce.c \ |
| 98 |
crc-armv8-aarch64-ce.S \ |
| 99 |
crc-ppc.c \ |
| 100 |
crc-riscv-zbb-zbc.c \ |
| 101 |
des.c des-amd64.S \ |
| 102 |
dilithium.c dilithium.h pubkey-dilithium.c \ |
| 103 |
dsa.c \ |
| 104 |
elgamal.c \ |
| 105 |
ecc.c ecc-curves.c ecc-misc.c ecc-common.h \ |
| 106 |
ecc-ecdh.c ecc-ecdsa.c ecc-eddsa.c ecc-gost.c ecc-sm2.c \ |
| 107 |
kyber.c kyber.h \ |
| 108 |
idea.c \ |
| 109 |
gost28147.c gost.h \ |
| 110 |
gostr3411-94.c \ |
| 111 |
md4.c \ |
| 112 |
md5.c \ |
| 113 |
poly1305-s390x.S poly1305-amd64-avx512.S \ |
| 114 |
poly1305-p10le.s \ |
| 115 |
rijndael.c rijndael-internal.h rijndael-tables.h \ |
| 116 |
rijndael-aesni.c rijndael-padlock.c \ |
| 117 |
rijndael-amd64.S rijndael-arm.S \ |
| 118 |
rijndael-ssse3-amd64.c rijndael-ssse3-amd64-asm.S \ |
| 119 |
rijndael-vaes.c rijndael-vaes-avx2-amd64.S \ |
| 120 |
rijndael-vaes-avx512-amd64.S \ |
| 121 |
rijndael-vaes-i386.c rijndael-vaes-avx2-i386.S \ |
| 122 |
rijndael-armv8-ce.c rijndael-armv8-aarch32-ce.S \ |
| 123 |
rijndael-armv8-aarch64-ce.S rijndael-aarch64.S \ |
| 124 |
rijndael-ppc.c rijndael-ppc9le.c \ |
| 125 |
rijndael-p10le.c rijndael-gcm-p10le.s \ |
| 126 |
rijndael-ppc-common.h rijndael-ppc-functions.h \ |
| 127 |
rijndael-riscv-zvkned.c \ |
| 128 |
rijndael-s390x.c \ |
| 129 |
rijndael-vp-aarch64.c rijndael-vp-riscv.c \ |
| 130 |
rijndael-vp-simd128.h \ |
| 131 |
rmd160.c \ |
| 132 |
rsa.c \ |
| 133 |
salsa20.c salsa20-amd64.S salsa20-armv7-neon.S \ |
| 134 |
scrypt.c \ |
| 135 |
seed.c \ |
| 136 |
serpent.c serpent-sse2-amd64.S serpent-avx2-amd64.S \ |
| 137 |
serpent-avx512-x86.c serpent-armv7-neon.S \ |
| 138 |
simd-common-aarch64.h simd-common-ppc.h simd-common-riscv.h \ |
| 139 |
sm4.c sm4-aesni-avx-amd64.S sm4-aesni-avx2-amd64.S \ |
| 140 |
sm4-gfni-avx2-amd64.S sm4-gfni-avx512-amd64.S \ |
| 141 |
sm4-aarch64.S sm4-armv8-aarch64-ce.S sm4-armv9-aarch64-sve-ce.S \ |
| 142 |
sm4-ppc.c \ |
| 143 |
sha1.c sha1-ssse3-amd64.S sha1-avx-amd64.S sha1-avx-bmi2-amd64.S \ |
| 144 |
sha1-avx2-bmi2-amd64.S sha1-armv7-neon.S sha1-armv8-aarch32-ce.S \ |
| 145 |
sha1-armv8-aarch64-ce.S sha1-intel-shaext.c \ |
| 146 |
sha256.c sha256-ssse3-amd64.S sha256-avx-amd64.S \ |
| 147 |
sha256-avx2-bmi2-amd64.S \ |
| 148 |
sha256-armv8-aarch32-ce.S sha256-armv8-aarch64-ce.S \ |
| 149 |
sha256-intel-shaext.c sha256-ppc.c sha256-riscv-zvknha-zvkb.c \ |
| 150 |
sha512.c sha512-ssse3-amd64.S sha512-avx-amd64.S \ |
| 151 |
sha512-avx2-bmi2-amd64.S sha512-avx512-amd64.S \ |
| 152 |
sha512-armv7-neon.S sha512-armv8-aarch64-ce.S sha512-arm.S \ |
| 153 |
sha512-ppc.c sha512-riscv-zvknhb-zvkb.c sha512-ssse3-i386.c \ |
| 154 |
sm3.c sm3-avx-bmi2-amd64.S sm3-aarch64.S sm3-armv8-aarch64-ce.S \ |
| 155 |
keccak.c keccak_permute_32.h keccak_permute_64.h \ |
| 156 |
keccak-armv7-neon.S keccak-amd64-avx512.S \ |
| 157 |
stribog.c \ |
| 158 |
tiger.c \ |
| 159 |
whirlpool.c whirlpool-sse2-amd64.S \ |
| 160 |
twofish.c twofish-amd64.S twofish-arm.S twofish-aarch64.S \ |
| 161 |
twofish-avx2-amd64.S \ |
| 162 |
rfc2268.c \ |
| 163 |
camellia.c camellia.h camellia-glue.c camellia-aesni-avx-amd64.S \ |
| 164 |
camellia-aesni-avx2-amd64.h \ |
| 165 |
camellia-gfni-avx2-amd64.S camellia-gfni-avx512-amd64.S \ |
| 166 |
camellia-vaes-avx2-amd64.S camellia-aesni-avx2-amd64.S \ |
| 167 |
camellia-arm.S camellia-aarch64.S camellia-aarch64-ce.c \ |
| 168 |
camellia-simd128.h camellia-ppc8le.c camellia-ppc9le.c \ |
| 169 |
blake2.c \ |
| 170 |
blake2b-amd64-avx2.S blake2b-amd64-avx512.S \ |
| 171 |
blake2s-amd64-avx.S blake2s-amd64-avx512.S |
| 172 |
|
| 173 |
gost28147.lo: gost-sb.h |
| 174 |
gost-sb.h: gost-s-box$(EXEEXT_FOR_BUILD) |
| 175 |
./gost-s-box$(EXEEXT_FOR_BUILD) $@ |
| 176 |
|
| 177 |
gost-s-box$(EXEEXT_FOR_BUILD): gost-s-box.c |
| 178 |
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \ |
| 179 |
$(CPPFLAGS_FOR_BUILD) -o $@ $(srcdir)/gost-s-box.c |
| 180 |
|
| 181 |
|
| 182 |
if ENABLE_O_FLAG_MUNGING |
| 183 |
o_flag_munging = sed -e 's/[[:blank:]]-O\([2-9sgz][2-9sgz]*\)/ -O1 /g' -e 's/[[:blank:]]-Ofast/ -O1 /g' |
| 184 |
else |
| 185 |
o_flag_munging = cat |
| 186 |
endif |
| 187 |
|
| 188 |
|
| 189 |
# We need to lower the optimization for this module. |
| 190 |
tiger.o: $(srcdir)/tiger.c Makefile |
| 191 |
`echo $(COMPILE) -c $< | $(o_flag_munging) ` |
| 192 |
|
| 193 |
tiger.lo: $(srcdir)/tiger.c Makefile |
| 194 |
`echo $(LTCOMPILE) -c $< | $(o_flag_munging) ` |
| 195 |
|
| 196 |
|
| 197 |
# We need to disable instrumentation for these modules as they use cc as |
| 198 |
# thin assembly front-end and do not tolerate in-between function calls |
| 199 |
# inserted by compiler as those functions may clobber the XMM registers. |
| 200 |
if ENABLE_INSTRUMENTATION_MUNGING |
| 201 |
instrumentation_munging = sed \ |
| 202 |
-e 's/-fsanitize[=,\-][=,a-z,A-Z,0-9,\,,\-]*//g' \ |
| 203 |
-e 's/-fprofile[=,\-][=,a-z,A-Z,0-9,\,,\-]*//g' \ |
| 204 |
-e 's/-fcoverage[=,\-][=,a-z,A-Z,0-9,\,,\-]*//g' |
| 205 |
else |
| 206 |
instrumentation_munging = cat |
| 207 |
endif |
| 208 |
|
| 209 |
rijndael-aesni.o: $(srcdir)/rijndael-aesni.c Makefile |
| 210 |
`echo $(COMPILE) -c $< | $(instrumentation_munging) ` |
| 211 |
|
| 212 |
rijndael-aesni.lo: $(srcdir)/rijndael-aesni.c Makefile |
| 213 |
`echo $(LTCOMPILE) -c $< | $(instrumentation_munging) ` |
| 214 |
|
| 215 |
rijndael-ssse3-amd64.o: $(srcdir)/rijndael-ssse3-amd64.c Makefile |
| 216 |
`echo $(COMPILE) -c $< | $(instrumentation_munging) ` |
| 217 |
|
| 218 |
rijndael-ssse3-amd64.lo: $(srcdir)/rijndael-ssse3-amd64.c Makefile |
| 219 |
`echo $(LTCOMPILE) -c $< | $(instrumentation_munging) ` |
| 220 |
|
| 221 |
cipher-gcm-intel-pclmul.o: $(srcdir)/cipher-gcm-intel-pclmul.c Makefile |
| 222 |
`echo $(COMPILE) -c $< | $(instrumentation_munging) ` |
| 223 |
|
| 224 |
cipher-gcm-intel-pclmul.lo: $(srcdir)/cipher-gcm-intel-pclmul.c Makefile |
| 225 |
`echo $(LTCOMPILE) -c $< | $(instrumentation_munging) ` |
| 226 |
|
| 227 |
sha1-intel-shaext.o: $(srcdir)/sha1-intel-shaext.c Makefile |
| 228 |
`echo $(COMPILE) -c $< | $(instrumentation_munging) ` |
| 229 |
|
| 230 |
sha1-intel-shaext.lo: $(srcdir)/sha1-intel-shaext.c Makefile |
| 231 |
`echo $(LTCOMPILE) -c $< | $(instrumentation_munging) ` |
| 232 |
|
| 233 |
sha256-intel-shaext.o: $(srcdir)/sha256-intel-shaext.c Makefile |
| 234 |
`echo $(COMPILE) -c $< | $(instrumentation_munging) ` |
| 235 |
|
| 236 |
sha256-intel-shaext.lo: $(srcdir)/sha256-intel-shaext.c Makefile |
| 237 |
`echo $(LTCOMPILE) -c $< | $(instrumentation_munging) ` |
| 238 |
|
| 239 |
sha256-ssse3-i386.o: $(srcdir)/sha256-ssse3-i386.c Makefile |
| 240 |
`echo $(COMPILE) -c $< | $(instrumentation_munging) ` |
| 241 |
|
| 242 |
sha256-ssse3-i386.lo: $(srcdir)/sha256-ssse3-i386.c Makefile |
| 243 |
`echo $(LTCOMPILE) -c $< | $(instrumentation_munging) ` |
| 244 |
|
| 245 |
crc-intel-pclmul.o: $(srcdir)/crc-intel-pclmul.c Makefile |
| 246 |
`echo $(COMPILE) -c $< | $(instrumentation_munging) ` |
| 247 |
|
| 248 |
crc-intel-pclmul.lo: $(srcdir)/crc-intel-pclmul.c Makefile |
| 249 |
`echo $(LTCOMPILE) -c $< | $(instrumentation_munging) ` |
| 250 |
|
| 251 |
if ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS |
| 252 |
ppc_vcrypto_cflags = -O2 -maltivec -mvsx -mcrypto |
| 253 |
else |
| 254 |
ppc_vcrypto_cflags = |
| 255 |
endif |
| 256 |
|
| 257 |
rijndael-ppc.o: $(srcdir)/rijndael-ppc.c Makefile |
| 258 |
`echo $(COMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 259 |
|
| 260 |
rijndael-ppc.lo: $(srcdir)/rijndael-ppc.c Makefile |
| 261 |
`echo $(LTCOMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 262 |
|
| 263 |
rijndael-ppc9le.o: $(srcdir)/rijndael-ppc9le.c Makefile |
| 264 |
`echo $(COMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 265 |
|
| 266 |
rijndael-ppc9le.lo: $(srcdir)/rijndael-ppc9le.c Makefile |
| 267 |
`echo $(LTCOMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 268 |
|
| 269 |
rijndael-p10le.o: $(srcdir)/rijndael-p10le.c Makefile |
| 270 |
`echo $(COMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 271 |
|
| 272 |
rijndael-p10le.lo: $(srcdir)/rijndael-p10le.c Makefile |
| 273 |
`echo $(LTCOMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 274 |
|
| 275 |
sha256-ppc.o: $(srcdir)/sha256-ppc.c Makefile |
| 276 |
`echo $(COMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 277 |
|
| 278 |
sha256-ppc.lo: $(srcdir)/sha256-ppc.c Makefile |
| 279 |
`echo $(LTCOMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 280 |
|
| 281 |
sha512-ppc.o: $(srcdir)/sha512-ppc.c Makefile |
| 282 |
`echo $(COMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 283 |
|
| 284 |
sha512-ppc.lo: $(srcdir)/sha512-ppc.c Makefile |
| 285 |
`echo $(LTCOMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 286 |
|
| 287 |
chacha20-ppc.o: $(srcdir)/chacha20-ppc.c Makefile |
| 288 |
`echo $(COMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 289 |
|
| 290 |
chacha20-ppc.lo: $(srcdir)/chacha20-ppc.c Makefile |
| 291 |
`echo $(LTCOMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 292 |
|
| 293 |
crc-ppc.o: $(srcdir)/crc-ppc.c Makefile |
| 294 |
`echo $(COMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 295 |
|
| 296 |
crc-ppc.lo: $(srcdir)/crc-ppc.c Makefile |
| 297 |
`echo $(LTCOMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 298 |
|
| 299 |
cipher-gcm-ppc.o: $(srcdir)/cipher-gcm-ppc.c Makefile |
| 300 |
`echo $(COMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 301 |
|
| 302 |
cipher-gcm-ppc.lo: $(srcdir)/cipher-gcm-ppc.c Makefile |
| 303 |
`echo $(LTCOMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 304 |
|
| 305 |
camellia-ppc8le.o: $(srcdir)/camellia-ppc8le.c Makefile |
| 306 |
`echo $(COMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 307 |
|
| 308 |
camellia-ppc8le.lo: $(srcdir)/camellia-ppc8le.c Makefile |
| 309 |
`echo $(LTCOMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 310 |
|
| 311 |
camellia-ppc9le.o: $(srcdir)/camellia-ppc9le.c Makefile |
| 312 |
`echo $(COMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 313 |
|
| 314 |
camellia-ppc9le.lo: $(srcdir)/camellia-ppc9le.c Makefile |
| 315 |
`echo $(LTCOMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 316 |
|
| 317 |
sm4-ppc.o: $(srcdir)/sm4-ppc.c Makefile |
| 318 |
`echo $(COMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 319 |
|
| 320 |
sm4-ppc.lo: $(srcdir)/sm4-ppc.c Makefile |
| 321 |
`echo $(LTCOMPILE) $(ppc_vcrypto_cflags) -c $< | $(instrumentation_munging) ` |
| 322 |
|
| 323 |
if ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS |
| 324 |
aarch64_crypto_cflags = -O2 -march=armv8-a+simd+crypto |
| 325 |
aarch64_simd_cflags = -O2 -march=armv8-a+simd |
| 326 |
else |
| 327 |
aarch64_crypto_cflags = |
| 328 |
aarch64_simd_cflags = |
| 329 |
endif |
| 330 |
|
| 331 |
camellia-aarch64-ce.o: $(srcdir)/camellia-aarch64-ce.c Makefile |
| 332 |
`echo $(COMPILE) $(aarch64_crypto_cflags) -c $< | $(instrumentation_munging) ` |
| 333 |
|
| 334 |
camellia-aarch64-ce.lo: $(srcdir)/camellia-aarch64-ce.c Makefile |
| 335 |
`echo $(LTCOMPILE) $(aarch64_crypto_cflags) -c $< | $(instrumentation_munging) ` |
| 336 |
|
| 337 |
cipher-gcm-aarch64-simd.o: $(srcdir)/cipher-gcm-aarch64-simd.c Makefile |
| 338 |
`echo $(COMPILE) $(aarch64_simd_cflags) -c $< | $(instrumentation_munging) ` |
| 339 |
|
| 340 |
cipher-gcm-aarch64-simd.lo: $(srcdir)/cipher-gcm-aarch64-simd.c Makefile |
| 341 |
`echo $(LTCOMPILE) $(aarch64_simd_cflags) -c $< | $(instrumentation_munging) ` |
| 342 |
|
| 343 |
rijndael-vp-aarch64.o: $(srcdir)/rijndael-vp-aarch64.c Makefile |
| 344 |
`echo $(COMPILE) $(aarch64_simd_cflags) -c $< | $(instrumentation_munging) ` |
| 345 |
|
| 346 |
rijndael-vp-aarch64.lo: $(srcdir)/rijndael-vp-aarch64.c Makefile |
| 347 |
`echo $(LTCOMPILE) $(aarch64_simd_cflags) -c $< | $(instrumentation_munging) ` |
| 348 |
|
| 349 |
if ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS |
| 350 |
avx512f_cflags = -mavx512f |
| 351 |
else |
| 352 |
avx512f_cflags = |
| 353 |
endif |
| 354 |
|
| 355 |
serpent-avx512-x86.o: $(srcdir)/serpent-avx512-x86.c Makefile |
| 356 |
`echo $(COMPILE) $(avx512f_cflags) -c $< | $(instrumentation_munging) ` |
| 357 |
|
| 358 |
serpent-avx512-x86.lo: $(srcdir)/serpent-avx512-x86.c Makefile |
| 359 |
`echo $(LTCOMPILE) $(avx512f_cflags) -c $< | $(instrumentation_munging) ` |
| 360 |
|
| 361 |
# Note: -mstrict-align needed for GCC-14 bug (disable unaligned vector loads) |
| 362 |
if ENABLE_RISCV_VECTOR_INTRINSICS_EXTRA_CFLAGS |
| 363 |
riscv_vector_cflags = -O2 -march=@MARCH_RVA22U64_WITH_VEC@ -mstrict-align |
| 364 |
else |
| 365 |
if SUPPORT_CC_RISCV_MSTRICT_ALIGN |
| 366 |
riscv_vector_cflags = -O2 -mstrict-align |
| 367 |
else |
| 368 |
riscv_vector_cflags = |
| 369 |
endif |
| 370 |
endif |
| 371 |
|
| 372 |
chacha20-riscv-v.o: $(srcdir)/chacha20-riscv-v.c Makefile |
| 373 |
`echo $(COMPILE) $(riscv_vector_cflags) -c $< | $(instrumentation_munging) ` |
| 374 |
|
| 375 |
chacha20-riscv-v.lo: $(srcdir)/chacha20-riscv-v.c Makefile |
| 376 |
`echo $(LTCOMPILE) $(riscv_vector_cflags) -c $< | $(instrumentation_munging) ` |
| 377 |
|
| 378 |
rijndael-vp-riscv.o: $(srcdir)/rijndael-vp-riscv.c Makefile |
| 379 |
`echo $(COMPILE) $(riscv_vector_cflags) -c $< | $(instrumentation_munging) ` |
| 380 |
|
| 381 |
rijndael-vp-riscv.lo: $(srcdir)/rijndael-vp-riscv.c Makefile |
| 382 |
`echo $(LTCOMPILE) $(riscv_vector_cflags) -c $< | $(instrumentation_munging) ` |
| 383 |
|
| 384 |
# Note: -mstrict-align needed for GCC-14 bug (disable unaligned vector loads) |
| 385 |
if ENABLE_RISCV_VECTOR_CRYPTO_INTRINSICS_EXTRA_CFLAGS |
| 386 |
riscv_vector_crypto_aes_cflags = -O2 -march=@MARCH_RVA23U64_BASE@_zvkned -mstrict-align |
| 387 |
riscv_vector_crypto_sha_cflags = -O2 -march=@MARCH_RVA23U64_BASE@_zvknha_zvknhb_zvkb -mstrict-align |
| 388 |
riscv_vector_crypto_gcm_cflags = -O2 -march=@MARCH_RVA23U64_BASE@_zvkg -mstrict-align |
| 389 |
else |
| 390 |
if SUPPORT_CC_RISCV_MSTRICT_ALIGN |
| 391 |
riscv_vector_crypto_aes_cflags = -O2 -mstrict-align |
| 392 |
riscv_vector_crypto_sha_cflags = -O2 -mstrict-align |
| 393 |
riscv_vector_crypto_gcm_cflags = -O2 -mstrict-align |
| 394 |
else |
| 395 |
riscv_vector_crypto_aes_cflags = |
| 396 |
riscv_vector_crypto_sha_cflags = |
| 397 |
riscv_vector_crypto_gcm_cflags = |
| 398 |
endif |
| 399 |
endif |
| 400 |
|
| 401 |
cipher-gcm-riscv-zvkg.o: $(srcdir)/cipher-gcm-riscv-zvkg.c Makefile |
| 402 |
`echo $(COMPILE) $(riscv_vector_crypto_gcm_cflags) -c $< | $(instrumentation_munging) ` |
| 403 |
|
| 404 |
cipher-gcm-riscv-zvkg.lo: $(srcdir)/cipher-gcm-riscv-zvkg.c Makefile |
| 405 |
`echo $(LTCOMPILE) $(riscv_vector_crypto_gcm_cflags) -c $< | $(instrumentation_munging) ` |
| 406 |
|
| 407 |
rijndael-riscv-zvkned.o: $(srcdir)/rijndael-riscv-zvkned.c Makefile |
| 408 |
`echo $(COMPILE) $(riscv_vector_crypto_aes_cflags) -c $< | $(instrumentation_munging) ` |
| 409 |
|
| 410 |
rijndael-riscv-zvkned.lo: $(srcdir)/rijndael-riscv-zvkned.c Makefile |
| 411 |
`echo $(LTCOMPILE) $(riscv_vector_crypto_aes_cflags) -c $< | $(instrumentation_munging) ` |
| 412 |
|
| 413 |
sha256-riscv-zvknha-zvkb.o: $(srcdir)/sha256-riscv-zvknha-zvkb.c Makefile |
| 414 |
`echo $(COMPILE) $(riscv_vector_crypto_sha_cflags) -c $< | $(instrumentation_munging) ` |
| 415 |
|
| 416 |
sha256-riscv-zvknha-zvkb.lo: $(srcdir)/sha256-riscv-zvknha-zvkb.c Makefile |
| 417 |
`echo $(LTCOMPILE) $(riscv_vector_crypto_sha_cflags) -c $< | $(instrumentation_munging) ` |
| 418 |
|
| 419 |
sha512-riscv-zvknhb-zvkb.o: $(srcdir)/sha512-riscv-zvknhb-zvkb.c Makefile |
| 420 |
`echo $(COMPILE) $(riscv_vector_crypto_sha_cflags) -c $< | $(instrumentation_munging) ` |
| 421 |
|
| 422 |
sha512-riscv-zvknhb-zvkb.lo: $(srcdir)/sha512-riscv-zvknhb-zvkb.c Makefile |
| 423 |
`echo $(LTCOMPILE) $(riscv_vector_crypto_sha_cflags) -c $< | $(instrumentation_munging) ` |