Move background drawing to a client.

This commit is contained in:
Kristian Høgsberg 2008-11-02 17:11:51 -05:00
parent 1b2f4390f5
commit 6b5e7626f5
4 changed files with 165 additions and 11 deletions

View file

@ -1,7 +1,7 @@
CFLAGS += -Wall -g $(shell pkg-config --cflags libffi libdrm)
LDLIBS += $(shell pkg-config --libs libffi libdrm)
clients = flower pointer
clients = flower pointer background
all : wayland $(clients)
@ -19,9 +19,13 @@ libwayland.so : $(libwayland_objs)
flower_objs = flower.o
pointer_objs = pointer.o
background_objs = background.o
$(clients) : CFLAGS += $(shell pkg-config --cflags cairo)
$(clients) : LDLIBS += $(shell pkg-config --libs cairo) -lrt
$(clients) : LDLIBS += $(shell pkg-config --libs cairo gdk-pixbuf-2.0) -lrt
background : CFLAGS += $(shell pkg-config --cflags gdk-pixbuf-2.0)
background : LDLIBS += $(shell pkg-config --libs gdk-pixbuf-2.0)
define client_template
$(1): $$($(1)_objs) libwayland.so