diff options
author | Thorsten Töpper <atsutane@freethoughts.de> | 2010-10-02 21:50:50 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2010-10-06 23:37:31 +0200 |
commit | c643bb8e2f1d59408a02d874611a3534ef81ad5b (patch) | |
tree | 78a4a21744bc39d95401efc1ab6f5e5600cece55 /Makefile | |
parent | bdf6c6b45d3622c9cd6456fb3a8da4752d7d836f (diff) |
Make it possible to build i3lock without cairo.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |