diff options
author | Mattias Andrée <maandree@kth.se> | 2024-08-27 21:02:25 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-08-27 21:02:25 +0200 |
commit | 31d9446dc092f1787a19734ae9c30286a9fdba2a (patch) | |
tree | 52f32de3f10992a7f7e079f3b0b517272c349151 /Makefile | |
parent | m fix (diff) | |
download | libhashsum-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 'Makefile')
-rw-r--r-- | Makefile | 82 |
1 files changed, 4 insertions, 78 deletions
@@ -1,28 +1,6 @@ .POSIX: - -# 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) - +include mk/before-config.mk CONFIGFILE = config.mk include $(CONFIGFILE) @@ -33,6 +11,8 @@ OS = linux # Windows: windows include mk/$(OS).mk +include mk/after-config.mk + LIB_MAJOR = 1 LIB_MINOR = 0 @@ -40,63 +20,9 @@ LIB_VERSION = $(LIB_MAJOR).$(LIB_MINOR) LIB_NAME = hashsum -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) - - OBJ =\ libhashsum_init_hasher.o\ + libhashsum_get_algorithm_string.o\ libhashsum_init_hasher_from_string.o\ libhashsum_init_md2_hasher.o\ libhashsum_init_md4_hasher.o\ |