aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config.mk41
1 files changed, 40 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index ff855ca..5b5e94f 100644
--- a/config.mk
+++ b/config.mk
@@ -5,4 +5,43 @@ CC = c99
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE
CFLAGS =
-LDFLAGS = -lsha1 -lsha2
+LDFLAGS =
+
+
+LDFLAGS_LIBSHA1 = -lsha1
+CPPFLAGS_LIBSHA1 =
+
+LDFLAGS_LIBSHA2 = -lsha2
+CPPFLAGS_LIBSHA2 =
+
+
+DEFAULT_SUPPORT = yes
+# Shall either be "yes" or "no", the same applies below where this macro is used
+
+
+SUPPORT_SHA1 = $(DEFAULT_SUPPORT)
+# Includes SHA0 and SHA1, requires libsha1
+
+SUPPORT_SHA2 = $(DEFAULT_SUPPORT)
+# Includes SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256, requires libsha2
+
+SUPPORT_MD2 = $(DEFAULT_SUPPORT)
+# Support is built in
+
+SUPPORT_MD4 = $(DEFAULT_SUPPORT)
+# Support is built in
+
+SUPPORT_MD5 = $(DEFAULT_SUPPORT)
+# Support is built in
+
+SUPPORT_RIPEMD_128 = $(DEFAULT_SUPPORT)
+# Support is built in
+
+SUPPORT_RIPEMD_160 = $(DEFAULT_SUPPORT)
+# Support is built in
+
+SUPPORT_RIPEMD_256 = $(DEFAULT_SUPPORT)
+# Support is built in
+
+SUPPORT_RIPEMD_320 = $(DEFAULT_SUPPORT)
+# Support is built in