aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-04 20:18:16 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-04 20:18:16 +0100
commit0d701311af17fa683e042e6d60920af02a86f641 (patch)
treeb7737b8c2ba496204a40d6da585bdc87673b30b2 /Makefile
parentm (diff)
downloadlibkeccak-0d701311af17fa683e042e6d60920af02a86f641.tar.gz
libkeccak-0d701311af17fa683e042e6d60920af02a86f641.tar.bz2
libkeccak-0d701311af17fa683e042e6d60920af02a86f641.tar.xz
add and fix more warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3878841..dc91329 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,14 @@
-FLAGS = -std=gnu99
+WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissing-include-dirs \
+ -Wtrampolines -Wfloat-equal -Wshadow -Wmissing-prototypes -Wmissing-declarations \
+ -Wredundant-decls -Wnested-externs -Winline -Wno-variadic-macros -Wswitch-default \
+ -Wpadded -Wsync-nand -Wunsafe-loop-optimizations -Wcast-align -Wstrict-overflow \
+ -Wdeclaration-after-statement -Wundef -Wbad-function-cast -Wcast-qual -Wwrite-strings \
+ -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wpacked \
+ -Wvector-operation-performance -Wunsuffixed-float-constants -Wsuggest-attribute=const \
+ -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wsuggest-attribute=format \
+ -Wnormalized=nfkc
+
+FLAGS = -std=gnu99 $(WARN)
OBJ = digest files generalised-spec hex state
@@ -11,3 +21,8 @@ obj/libkeccak/%.o: src/libkeccak/%.c src/libkeccak.h src/libkeccak/*.h
@mkdir -p obj/libkeccak
$(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+
+.PHONY: clean
+clean:
+ -rm -r obj bin
+