aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-10-14 12:15:35 +0200
committerMattias Andrée <maandree@kth.se>2017-10-14 12:25:36 +0200
commit9e821d21b1a6462b6d6fad288599e76eaa273603 (patch)
tree8e2e024c43bffcbb78aceb0a9ebc01d7b831e92c /config.mk
parentDo not use texman (diff)
downloadsha3sum-9e821d21b1a6462b6d6fad288599e76eaa273603.tar.gz
sha3sum-9e821d21b1a6462b6d6fad288599e76eaa273603.tar.bz2
sha3sum-9e821d21b1a6462b6d6fad288599e76eaa273603.tar.xz
Simplify makefile
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..e581aee
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,15 @@
+PREFIX = /usr/local
+MANPREFIX = $(PREFIX)/share/man
+
+WARN = -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 -Wlogical-op \
+ -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
+
+CFLAGS = -std=c99 -Wall -Wextra $(WARN) -O3
+CPPFLAGS =
+LDFLAGS = -s -lkeccak -largparser