From d3f41be2e29a6ab1570a7159b0775d32b229f88f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 15 Feb 2014 22:52:35 +0100 Subject: add makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..97133b3 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +PKGCONFIG = pkg-config +OPTIMISE = -Og -g +WARN = -Wall -Wextra -pedantic +LIBS = xcb-randr +STD = c90 + +FLAGS = $$($(PKGCONFIG) --cflags --libs $(LIBS)) -std=$(STD) $(WARN) $(OPTIMISE) + + +.PHONY: all +all: bin/blueshift_randr + + +bin/blueshift_randr: obj/blueshift_randr.o + @mkdir -p bin + $(CC) $(FLAGS) -o $@ $^ + +obj/%.o: src/%.c + @mkdir -p obj + $(CC) $(FLAGS) -c -o $@ $< + + +.PHONY: all +clean: + -rm -r bin obj + -- cgit v1.2.3-70-g09d2