diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-01 12:37:14 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-01 12:37:20 +0200 |
commit | 0ab50d5887cb94138239bb1991b86adcabe3c3d2 (patch) | |
tree | bbac43b8dd5f35d10637c5aa8b74e29f5e011274 /Makefile | |
parent | RANDR => RandR (diff) | |
download | blueshift-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-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 $@ $< |