From 22a8f1164897132f22644864d179313f4e353502 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 10 Nov 2015 00:36:14 +0100 Subject: add ability to select clock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d1ac213..1accbd7 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,10 @@ PKGNAME = sleep-until COMMAND = sleep-until +# The https://github.com/maandree/gpp command. +GPP = gpp + + WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissing-include-dirs \ -Wtrampolines -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \ -Wno-variadic-macros -Wsync-nand -Wunsafe-loop-optimizations -Wcast-align \ @@ -62,10 +66,13 @@ bin/sleep-until: obj/sleep-until.o @mkdir -p bin $(CC) $(FLAGS) -o $@ $^ $(LDFLAGS) -obj/sleep-until.o: src/sleep-until.c - @mkdir -p obj +obj/sleep-until.o: obj/sleep-until.c $(CC) $(FLAGS) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) +obj/sleep-until.c: src/sleep-until.c + @mkdir -p obj + gpp -s '$$' -i $< -o $@ + # Build rules for documentation. .PHONY: doc -- cgit v1.2.3-70-g09d2