aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-07 19:03:50 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-07 19:03:50 +0200
commit39b6bfd22de5aa737310010dc110b82e3e2ade04 (patch)
treee706de729ccb213f10521fa7a3ca7080c98c7b79 /Makefile
parentadd got-diminished-cerberus (diff)
downloadgot-diminished-39b6bfd22de5aa737310010dc110b82e3e2ade04.tar.gz
got-diminished-39b6bfd22de5aa737310010dc110b82e3e2ade04.tar.bz2
got-diminished-39b6bfd22de5aa737310010dc110b82e3e2ade04.tar.xz
m + add warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5b5b0d7..4c2efbf 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,12 @@ DATA = /share
LICENSES = $(PREFIX)$(DATA)/licenses
OPTIMISE = -Os
+WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissing-include-dirs \
+ -Wfloat-equal -Wmissing-prototypes -Wmissing-declarations -Wtrampolines -Wnested-externs \
+ -Wno-variadic-macros -Wdeclaration-after-statement -Wundef -Wpacked -Wunsafe-loop-optimizations \
+ -Wbad-function-cast -Wwrite-strings -Wlogical-op -Wstrict-prototypes -Wold-style-definition \
+ -Wvector-operation-performance -Wstack-protector -Wunsuffixed-float-constants -Wcast-align \
+ -Wsync-nand -Wshadow -Wredundant-decls -Winline -Wcast-qual -Wsign-conversion -Wstrict-overflow
BINS = login ssh cerberus
_BINS = $(foreach B, $(BINS), bin/got-diminished-$(B))
@@ -25,7 +31,7 @@ got-diminished: src/got-diminished
bin/%: src/%.c
@mkdir -p bin
- gcc $(OPTIMISE) -o "$@" "$<"
+ gcc $(OPTIMISE) $(WARN) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o "$@" "$<"
.PHONY: install