diff options
author | Mattias Andrée <maandree@kth.se> | 2024-08-24 11:26:42 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-08-24 11:26:42 +0200 |
commit | 3a73ab675a19e2ea29b4cb1385db0188ce4997f8 (patch) | |
tree | b010de454a833b01fe2ed469fd4f0fd699c59e50 /config.mk | |
parent | Test partial byte support in SHA1 and SHA-224 (diff) | |
download | libhashsum-3a73ab675a19e2ea29b4cb1385db0188ce4997f8.tar.gz libhashsum-3a73ab675a19e2ea29b4cb1385db0188ce4997f8.tar.bz2 libhashsum-3a73ab675a19e2ea29b4cb1385db0188ce4997f8.tar.xz |
Make algorithms optional
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 41 |
1 files changed, 40 insertions, 1 deletions
@@ -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 |