summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-15 22:52:35 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-15 22:53:14 +0100
commitd3f41be2e29a6ab1570a7159b0775d32b229f88f (patch)
treeeee64a2ffb2a7c4e151ce4e9505555dab1d3d7e9 /Makefile
parentadd curves as parameters to blueshift_randr_apply (diff)
downloadblueshift-d3f41be2e29a6ab1570a7159b0775d32b229f88f.tar.gz
blueshift-d3f41be2e29a6ab1570a7159b0775d32b229f88f.tar.bz2
blueshift-d3f41be2e29a6ab1570a7159b0775d32b229f88f.tar.xz
add makefile
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
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
+