aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-11 09:40:46 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-11 09:40:46 +0100
commit443d2a176017cba5ec3c38f0e0ebc8d0aa458c74 (patch)
tree99ec5a0651dd2014a90b1cb30202bf36592e46f1 /Makefile
parentadd thread support (diff)
downloadsha3sum-443d2a176017cba5ec3c38f0e0ebc8d0aa458c74.tar.gz
sha3sum-443d2a176017cba5ec3c38f0e0ebc8d0aa458c74.tar.bz2
sha3sum-443d2a176017cba5ec3c38f0e0ebc8d0aa458c74.tar.xz
c version: make with WITH_WIPE=yes to wipe the state and message buffer before freeing
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e9130aa..ab950c5 100644
--- a/Makefile
+++ b/Makefile
@@ -20,12 +20,16 @@ JAVADIRS=-s "java" -d "bin/java" -cp "java"
JAVAFLAGS=-Xlint $(JAVA_OPTIMISE)
JAVA_FLAGS=$(JAVADIRS) $(JAVAFLAGS)
+WITH_WIPE=yes
CFLAGS=-W{all,extra} -pedantic $(C_OPTIMISE) -fPIC
ifeq ($(WITH_C99),yes)
CFLAGS+=-std=c99 -DWITH_C99
endif
ifeq ($(WITH_THREADLOCAL),yes)
- CFLAGS+=-DWITH_THREADLOCAL
+ CFLAGS+=-DWITH_THREADLOCAL -DWITH_WIPE
+endif
+ifeq ($(WITH_WIPE),yes)
+ CFLAGS+=-DWITH_WIPE
endif
SOFLAGS=-W{all,extra} -pedantic $(C_OPTIMISE) -shared
CPPFLAGS=