From 0ab50d5887cb94138239bb1991b86adcabe3c3d2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 1 Apr 2014 12:37:14 +0200 Subject: enable more warnings and add .h files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 $@ $< -- cgit v1.2.3-70-g09d2