From c643bb8e2f1d59408a02d874611a3534ef81ad5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20T=C3=B6pper?= Date: Sat, 2 Oct 2010 21:50:50 +0200 Subject: Make it possible to build i3lock without cairo. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') 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) -- cgit v1.1