mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-23 06:59:47 -05:00
Add the gears from glxgears.
This commit is contained in:
parent
33a52bd07d
commit
8a9cda8cfb
4 changed files with 298 additions and 9 deletions
12
Makefile
12
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue