summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-20 14:55:30 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-20 14:55:30 +0100
commita9bba3eb2d280c8926e8a50c1e95063ae7be565b (patch)
tree1524e5036631ef901b2e8c512c4f217a49a529bd
parent003654186baa47bc2ee86761bd27004a0ec33981 (diff)
Compile fixes
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 726c5cf..64fdabe 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
SOURCES:=demo.c
-REQUIRES:=
+REQUIRES:=cairo
DRM:=0
ifneq ($(DRM),0)
@@ -10,7 +10,7 @@ else
DEFINES+=-DHAVE_DRM=0
endif
-XLIB:=$(shell pkg-config --exists cairo-xcb && echo 1 || echo 0)
+XLIB:=$(shell pkg-config --exists cairo-xlib && echo 1 || echo 0)
ifneq ($(XLIB),0)
DEFINES+=-DHAVE_XLIB=1 -DHAVE_XIMAGE=1
SOURCES+=xlib.c ximage.c
@@ -60,7 +60,7 @@ DEFINES+=-DHAVE_GDK_PIXBUF
endif
CFLAGS:=$(shell pkg-config --cflags $(REQUIRES)) -Wall -g3
-LIBS:=$(shell pkg-config --libs $(REQUIRES))
+LIBS:=$(shell pkg-config --libs $(REQUIRES)) -lm
spinner-demo: spinner-demo.c $(SOURCES) demo.h Makefile
$(CC) $(DEFINES) $(CFLAGS) -o $@ spinner-demo.c $(SOURCES) $(LIBS)