aboutsummaryrefslogtreecommitdiffstats
path: root/mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-27 21:02:25 +0200
committerMattias Andrée <maandree@kth.se>2024-08-27 21:02:25 +0200
commit31d9446dc092f1787a19734ae9c30286a9fdba2a (patch)
tree52f32de3f10992a7f7e079f3b0b517272c349151 /mk
parentm fix (diff)
downloadlibhashsum-31d9446dc092f1787a19734ae9c30286a9fdba2a.tar.gz
libhashsum-31d9446dc092f1787a19734ae9c30286a9fdba2a.tar.bz2
libhashsum-31d9446dc092f1787a19734ae9c30286a9fdba2a.tar.xz
m misc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--mk/after-config.mk53
-rw-r--r--mk/before-config.mk21
2 files changed, 74 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)