summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2010-10-02 21:50:50 +0200
committerMichael Stapelberg <michael@stapelberg.de>2010-10-06 23:37:31 +0200
commitc643bb8e2f1d59408a02d874611a3534ef81ad5b (patch)
tree78a4a21744bc39d95401efc1ab6f5e5600cece55 /Makefile
parentbdf6c6b45d3622c9cd6456fb3a8da4752d7d836f (diff)
Make it possible to build i3lock without cairo.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6b00e9a..fc855e3 100644
--- a/Makefile
+++ b/Makefile
@@ -10,8 +10,14 @@ CFLAGS += -std=c99
CFLAGS += -pipe
CFLAGS += -Wall
CFLAGS += -D_GNU_SOURCE
+ifndef NOLIBCAIRO
CFLAGS += $(shell pkg-config --cflags cairo xcb-keysyms xcb-dpms)
LDFLAGS += $(shell pkg-config --libs cairo xcb-keysyms xcb-dpms xcb-image)
+else
+CFLAGS += -DNOLIBCAIRO
+CFLAGS += $(shell pkg-config --cflags xcb-keysyms xcb-dpms)
+LDFLAGS += $(shell pkg-config --libs xcb-keysyms xcb-dpms xcb-image)
+endif
LDFLAGS += -lpam
FILES:=$(wildcard *.c)