diff options
author | Mattias Andrée <maandree@kth.se> | 2024-08-25 23:28:25 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-08-25 23:28:25 +0200 |
commit | b35cea4b8d82a28994351f3b550e8191ee1d94bf (patch) | |
tree | 24ce0d8728711e55d5532a57db477b53521f8bc4 /mk | |
download | anysum-b35cea4b8d82a28994351f3b550e8191ee1d94bf.tar.gz anysum-b35cea4b8d82a28994351f3b550e8191ee1d94bf.tar.bz2 anysum-b35cea4b8d82a28994351f3b550e8191ee1d94bf.tar.xz |
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'mk')
37 files changed, 134 insertions, 0 deletions
diff --git a/mk/after-config.mk b/mk/after-config.mk new file mode 100644 index 0000000..71a470c --- /dev/null +++ b/mk/after-config.mk @@ -0,0 +1,53 @@ +CPPFLAGS_LIBKECCAK_IF_SUPPORTED = +LDFLAGS_LIBKECCAK_IF_SUPPORTED = + +CPPFLAGS_LIBBLAKE_IF_SUPPORTED = +LDFLAGS_LIBBLAKE_IF_SUPPORTED = + +include mk/md2=$(SUPPORT_MD2).mk +include mk/md4=$(SUPPORT_MD4).mk +include mk/md5=$(SUPPORT_MD5).mk +include mk/ripemd-128=$(SUPPORT_RIPEMD_128).mk +include mk/ripemd-160=$(SUPPORT_RIPEMD_160).mk +include mk/ripemd-256=$(SUPPORT_RIPEMD_256).mk +include mk/ripemd-320=$(SUPPORT_RIPEMD_320).mk +include mk/sha1=$(SUPPORT_SHA1).mk +include mk/sha2=$(SUPPORT_SHA2).mk +include mk/keccak=$(SUPPORT_KECCAK).mk +include mk/sha3=$(SUPPORT_SHA3).mk +include mk/shake=$(SUPPORT_SHAKE).mk +include mk/rawshake=$(SUPPORT_RAWSHAKE).mk +include mk/blake224=$(SUPPORT_SHA3).mk +include mk/blake256=$(SUPPORT_SHA3).mk +include mk/blake384=$(SUPPORT_SHA3).mk +include mk/blake512=$(SUPPORT_SHA3).mk + + +CPPFLAGS_FULL =\ + $(CPPFLAGS)\ + $(CPPFLAGS_MD2)\ + $(CPPFLAGS_MD4)\ + $(CPPFLAGS_MD5)\ + $(CPPFLAGS_RIPEMD_128)\ + $(CPPFLAGS_RIPEMD_160)\ + $(CPPFLAGS_RIPEMD_256)\ + $(CPPFLAGS_RIPEMD_320)\ + $(CPPFLAGS_SHA1)\ + $(CPPFLAGS_SHA2)\ + $(CPPFLAGS_LIBKECCAK_IF_SUPPORTED)\ + $(CPPFLAGS_KECCAK)\ + $(CPPFLAGS_SHA3)\ + $(CPPFLAGS_SHAKE)\ + $(CPPFLAGS_RAWSHAKE)\ + $(CPPFLAGS_LIBBLAKE_IF_SUPPORTED)\ + $(CPPFLAGS_BLAKE224)\ + $(CPPFLAGS_BLAKE256)\ + $(CPPFLAGS_BLAKE384)\ + $(CPPFLAGS_BLAKE512) + +LDFLAGS_FULL =\ + $(LDFLAGS)\ + $(LDFLAGS_SHA1)\ + $(LDFLAGS_SHA2)\ + $(LDFLAGS_LIBKECCAK_IF_SUPPORTED)\ + $(LDFLAGS_LIBBLAKE_IF_SUPPORTED) diff --git a/mk/before-config.mk b/mk/before-config.mk new file mode 100644 index 0000000..c77dd47 --- /dev/null +++ b/mk/before-config.mk @@ -0,0 +1,21 @@ +# This are overwritten in $(CONFIGFILE), however they +# are added so that they are always defined even if +# the use has an out of date version of config.mk +DEFAULT_SUPPORT = yes +SUPPORT_SHA1 = $(DEFAULT_SUPPORT) +SUPPORT_SHA2 = $(DEFAULT_SUPPORT) +SUPPORT_MD2 = $(DEFAULT_SUPPORT) +SUPPORT_MD4 = $(DEFAULT_SUPPORT) +SUPPORT_MD5 = $(DEFAULT_SUPPORT) +SUPPORT_RIPEMD_128 = $(DEFAULT_SUPPORT) +SUPPORT_RIPEMD_160 = $(DEFAULT_SUPPORT) +SUPPORT_RIPEMD_256 = $(DEFAULT_SUPPORT) +SUPPORT_RIPEMD_320 = $(DEFAULT_SUPPORT) +SUPPORT_KECCAK = $(DEFAULT_SUPPORT) +SUPPORT_SHA3 = $(DEFAULT_SUPPORT) +SUPPORT_SHAKE = $(DEFAULT_SUPPORT) +SUPPORT_RAWSHAKE = $(DEFAULT_SUPPORT) +SUPPORT_BLAKE224 = $(DEFAULT_SUPPORT) +SUPPORT_BLAKE256 = $(DEFAULT_SUPPORT) +SUPPORT_BLAKE384 = $(DEFAULT_SUPPORT) +SUPPORT_BLAKE512 = $(DEFAULT_SUPPORT) diff --git a/mk/blake224=no.mk b/mk/blake224=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/blake224=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/blake224=yes.mk b/mk/blake224=yes.mk new file mode 100644 index 0000000..765741c --- /dev/null +++ b/mk/blake224=yes.mk @@ -0,0 +1,4 @@ +CPPFLAGS_BLAKE224 = -DSUPPORT_BLAKE224 + +CPPFLAGS_LIBBLAKE_IF_SUPPORTED = $(CPPFLAGS_LIBBLAKE) +LDFLAGS_LIBBLAKE_IF_SUPPORTED = $(LDFLAGS_LIBBLAKE) diff --git a/mk/blake256=no.mk b/mk/blake256=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/blake256=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/blake256=yes.mk b/mk/blake256=yes.mk new file mode 100644 index 0000000..6098067 --- /dev/null +++ b/mk/blake256=yes.mk @@ -0,0 +1,4 @@ +CPPFLAGS_BLAKE256 = -DSUPPORT_BLAKE256 + +CPPFLAGS_LIBBLAKE_IF_SUPPORTED = $(CPPFLAGS_LIBBLAKE) +LDFLAGS_LIBBLAKE_IF_SUPPORTED = $(LDFLAGS_LIBBLAKE) diff --git a/mk/blake384=no.mk b/mk/blake384=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/blake384=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/blake384=yes.mk b/mk/blake384=yes.mk new file mode 100644 index 0000000..fb66021 --- /dev/null +++ b/mk/blake384=yes.mk @@ -0,0 +1,4 @@ +CPPFLAGS_BLAKE384 = -DSUPPORT_BLAKE384 + +CPPFLAGS_LIBBLAKE_IF_SUPPORTED = $(CPPFLAGS_LIBBLAKE) +LDFLAGS_LIBBLAKE_IF_SUPPORTED = $(LDFLAGS_LIBBLAKE) diff --git a/mk/blake512=no.mk b/mk/blake512=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/blake512=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/blake512=yes.mk b/mk/blake512=yes.mk new file mode 100644 index 0000000..df46eb7 --- /dev/null +++ b/mk/blake512=yes.mk @@ -0,0 +1,4 @@ +CPPFLAGS_BLAKE512 = -DSUPPORT_BLAKE512 + +CPPFLAGS_LIBBLAKE_IF_SUPPORTED = $(CPPFLAGS_LIBBLAKE) +LDFLAGS_LIBBLAKE_IF_SUPPORTED = $(LDFLAGS_LIBBLAKE) diff --git a/mk/keccak=no.mk b/mk/keccak=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/keccak=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/keccak=yes.mk b/mk/keccak=yes.mk new file mode 100644 index 0000000..d35f3e2 --- /dev/null +++ b/mk/keccak=yes.mk @@ -0,0 +1,4 @@ +CPPFLAGS_KECCAK = -DSUPPORT_KECCAK + +CPPFLAGS_LIBKECCAK_IF_SUPPORTED = $(CPPFLAGS_LIBKECCAK) +LDFLAGS_LIBKECCAK_IF_SUPPORTED = $(LDFLAGS_LIBKECCAK) diff --git a/mk/md2=no.mk b/mk/md2=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/md2=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/md2=yes.mk b/mk/md2=yes.mk new file mode 100644 index 0000000..b387519 --- /dev/null +++ b/mk/md2=yes.mk @@ -0,0 +1 @@ +CPPFLAGS_MD2 = -DSUPPORT_MD2 diff --git a/mk/md4=no.mk b/mk/md4=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/md4=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/md4=yes.mk b/mk/md4=yes.mk new file mode 100644 index 0000000..71ea9db --- /dev/null +++ b/mk/md4=yes.mk @@ -0,0 +1 @@ +CPPFLAGS_MD4 = -DSUPPORT_MD4 diff --git a/mk/md5=no.mk b/mk/md5=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/md5=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/md5=yes.mk b/mk/md5=yes.mk new file mode 100644 index 0000000..4a537e7 --- /dev/null +++ b/mk/md5=yes.mk @@ -0,0 +1 @@ +CPPFLAGS_MD5 = -DSUPPORT_MD5 diff --git a/mk/rawshake=no.mk b/mk/rawshake=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/rawshake=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/rawshake=yes.mk b/mk/rawshake=yes.mk new file mode 100644 index 0000000..d41ab71 --- /dev/null +++ b/mk/rawshake=yes.mk @@ -0,0 +1,4 @@ +CPPFLAGS_RAWSHAKE = -DSUPPORT_RAWSHAKE + +CPPFLAGS_LIBKECCAK_IF_SUPPORTED = $(CPPFLAGS_LIBKECCAK) +LDFLAGS_LIBKECCAK_IF_SUPPORTED = $(LDFLAGS_LIBKECCAK) diff --git a/mk/ripemd-128=no.mk b/mk/ripemd-128=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/ripemd-128=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/ripemd-128=yes.mk b/mk/ripemd-128=yes.mk new file mode 100644 index 0000000..20ccc01 --- /dev/null +++ b/mk/ripemd-128=yes.mk @@ -0,0 +1 @@ +CPPFLAGS_RIPEMD_128 = -DSUPPORT_RIPEMD_128 diff --git a/mk/ripemd-160=no.mk b/mk/ripemd-160=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/ripemd-160=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/ripemd-160=yes.mk b/mk/ripemd-160=yes.mk new file mode 100644 index 0000000..a7bdaef --- /dev/null +++ b/mk/ripemd-160=yes.mk @@ -0,0 +1 @@ +CPPFLAGS_RIPEMD_160 = -DSUPPORT_RIPEMD_160 diff --git a/mk/ripemd-256=no.mk b/mk/ripemd-256=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/ripemd-256=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/ripemd-256=yes.mk b/mk/ripemd-256=yes.mk new file mode 100644 index 0000000..5ad2c42 --- /dev/null +++ b/mk/ripemd-256=yes.mk @@ -0,0 +1 @@ +CPPFLAGS_RIPEMD_256 = -DSUPPORT_RIPEMD_256 diff --git a/mk/ripemd-320=no.mk b/mk/ripemd-320=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/ripemd-320=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/ripemd-320=yes.mk b/mk/ripemd-320=yes.mk new file mode 100644 index 0000000..fefe259 --- /dev/null +++ b/mk/ripemd-320=yes.mk @@ -0,0 +1 @@ +CPPFLAGS_RIPEMD_320 = -DSUPPORT_RIPEMD_320 diff --git a/mk/sha1=no.mk b/mk/sha1=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/sha1=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/sha1=yes.mk b/mk/sha1=yes.mk new file mode 100644 index 0000000..c15ebc3 --- /dev/null +++ b/mk/sha1=yes.mk @@ -0,0 +1,2 @@ +CPPFLAGS_SHA1 = $(CPPFLAGS_LIBSHA1) -DSUPPORT_SHA0 -DSUPPORT_SHA1 +LDFLAGS_SHA1 = $(LDFLAGS_LIBSHA1) diff --git a/mk/sha2=no.mk b/mk/sha2=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/sha2=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/sha2=yes.mk b/mk/sha2=yes.mk new file mode 100644 index 0000000..cb26c08 --- /dev/null +++ b/mk/sha2=yes.mk @@ -0,0 +1,2 @@ +CPPFLAGS_SHA2 = $(CPPFLAGS_LIBSHA2) -DSUPPORT_SHA2 +LDFLAGS_SHA2 = $(LDFLAGS_LIBSHA2) diff --git a/mk/sha3=no.mk b/mk/sha3=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/sha3=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/sha3=yes.mk b/mk/sha3=yes.mk new file mode 100644 index 0000000..3d255f5 --- /dev/null +++ b/mk/sha3=yes.mk @@ -0,0 +1,4 @@ +CPPFLAGS_SHA3 = -DSUPPORT_SHA3 + +CPPFLAGS_LIBKECCAK_IF_SUPPORTED = $(CPPFLAGS_LIBKECCAK) +LDFLAGS_LIBKECCAK_IF_SUPPORTED = $(LDFLAGS_LIBKECCAK) diff --git a/mk/shake=no.mk b/mk/shake=no.mk new file mode 120000 index 0000000..54299a4 --- /dev/null +++ b/mk/shake=no.mk @@ -0,0 +1 @@ +no
\ No newline at end of file diff --git a/mk/shake=yes.mk b/mk/shake=yes.mk new file mode 100644 index 0000000..b3f1fbc --- /dev/null +++ b/mk/shake=yes.mk @@ -0,0 +1,4 @@ +CPPFLAGS_SHAKE = -DSUPPORT_SHAKE + +CPPFLAGS_LIBKECCAK_IF_SUPPORTED = $(CPPFLAGS_LIBKECCAK) +LDFLAGS_LIBKECCAK_IF_SUPPORTED = $(LDFLAGS_LIBKECCAK) |