From e1d86a327945111b99148650dc536c9ad8598cc1 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 26 Oct 2012 20:24:55 +0200 Subject: use libxkbcommon for input handling Thanks to Ran Benita and Daniel Stone (the libxkbcommon authors) for answering my questions and reviewing this code. With this commit, input handling should be more correct with using less code (in i3lock, that is). --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a917d6c..c82328e 100644 --- a/Makefile +++ b/Makefile @@ -11,17 +11,16 @@ CFLAGS += -std=c99 CFLAGS += -pipe CFLAGS += -Wall CPPFLAGS += -D_GNU_SOURCE +CFLAGS += $(shell pkg-config --cflags xcb-dpms xcb-xinerama xkbcommon xkbfile x11 x11-xcb) +LIBS += $(shell pkg-config --libs xcb-dpms xcb-xinerama xcb-image xkbcommon xkbfile x11 x11-xcb) ifndef NOLIBCAIRO -CFLAGS += $(shell pkg-config --cflags cairo xcb-keysyms xcb-dpms xcb-xinerama) -LIBS += $(shell pkg-config --libs cairo xcb-keysyms xcb-dpms xcb-xinerama xcb-image) +CFLAGS += $(shell pkg-config --cflags cairo) +LIBS += $(shell pkg-config --libs cairo) else CPPFLAGS += -DNOLIBCAIRO -CFLAGS += $(shell pkg-config --cflags xcb-keysyms xcb-dpms xcb-xinerama) -LIBS += $(shell pkg-config --libs xcb-keysyms xcb-dpms xcb-image xcb-xinerama) endif LIBS += -lpam LIBS += -lev -LIBS += -lX11 FILES:=$(wildcard *.c) FILES:=$(FILES:.c=.o) -- cgit v1.1