summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-01 12:37:14 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-01 12:37:20 +0200
commit0ab50d5887cb94138239bb1991b86adcabe3c3d2 (patch)
treebbac43b8dd5f35d10637c5aa8b74e29f5e011274 /Makefile
parentRANDR => RandR (diff)
downloadblueshift-0ab50d5887cb94138239bb1991b86adcabe3c3d2.tar.gz
blueshift-0ab50d5887cb94138239bb1991b86adcabe3c3d2.tar.bz2
blueshift-0ab50d5887cb94138239bb1991b86adcabe3c3d2.tar.xz
enable more warnings and add .h files
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b9143b1..bba7c92 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,10 @@ PKGCONFIG ?= pkg-config
# Optimisation settings for C code compilation
OPTIMISE ?= -Og -g
# Warnings settings for C code compilation
-WARN = -Wall -Wextra -pedantic
+WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissing-include-dirs \
+ -Wtrampolines -Wfloat-equal -Wmissing-prototypes
+# Warnings violated by Cython and therefore excluded: (TODO)
+# -Wswitch-default -Wshadow
# The C standard for C code compilation
STD = c99
LIBS_idcrtc = xcb-randr
@@ -104,7 +107,7 @@ bin/%.so: obj/%.o obj/%_c.o
@mkdir -p bin
$(CC) $(FLAGS) $$($(PKGCONFIG) --libs $($(LIBS_))) -shared -o $@ $^
-obj/%.o: src/%.c
+obj/%.o: src/%.c src/%.h
@mkdir -p obj
$(CC) $(FLAGS) -c -o $@ $<