aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-11-03 15:31:30 -0500
committerKristian Høgsberg <krh@redhat.com>2008-11-06 10:53:03 -0500
commit8a9cda8cfb25d1dc41ed3864ee0b9ee637495b24 (patch)
tree2db67029607abbbf99f1aec11a9a48e5e07e9ff2 /Makefile
parentAdd README for the adventurous, allow evdev override from getenv(). (diff)
downloadwayland-8a9cda8cfb25d1dc41ed3864ee0b9ee637495b24.tar
wayland-8a9cda8cfb25d1dc41ed3864ee0b9ee637495b24.tar.gz
wayland-8a9cda8cfb25d1dc41ed3864ee0b9ee637495b24.tar.bz2
wayland-8a9cda8cfb25d1dc41ed3864ee0b9ee637495b24.tar.lz
wayland-8a9cda8cfb25d1dc41ed3864ee0b9ee637495b24.tar.xz
wayland-8a9cda8cfb25d1dc41ed3864ee0b9ee637495b24.tar.zst
wayland-8a9cda8cfb25d1dc41ed3864ee0b9ee637495b24.zip
Add the gears from glxgears.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a335cb1..a533f61 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,16 @@
CFLAGS += -Wall -g $(shell pkg-config --cflags libffi libdrm)
LDLIBS += $(shell pkg-config --libs libffi libdrm)
+EAGLE_CFLAGS = -I../eagle
+EAGLE_LDLIBS = -L../eagle -leagle
+
clients = flower pointer background window
all : wayland $(clients)
wayland_objs = wayland.o event-loop.o connection.o hash.o input.o egl-compositor.o
-wayland : CFLAGS += -I../eagle
-wayland : LDLIBS += -L../eagle -leagle -ldl
+wayland : CFLAGS += $(EAGLE_CFLAGS)
+wayland : LDLIBS += $(EAGLE_LDLIBS)
wayland : $(wayland_objs)
gcc -o $@ $(LDLIBS) $(wayland_objs)
@@ -20,7 +23,7 @@ libwayland.so : $(libwayland_objs)
flower_objs = flower.o
pointer_objs = pointer.o
background_objs = background.o
-window_objs = window.o
+window_objs = window.o gears.o
$(clients) : CFLAGS += $(shell pkg-config --cflags cairo)
$(clients) : LDLIBS += $(shell pkg-config --libs cairo gdk-pixbuf-2.0) -lrt
@@ -28,6 +31,9 @@ $(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)
+window : CFLAGS += $(EAGLE_CFLAGS)
+window : LDLIBS += $(EAGLE_LDLIBS)
+
define client_template
$(1): $$($(1)_objs) libwayland.so
endef