mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-17 06:59:46 -05:00
Bunch of new stuff: simple compositor, cairo+gem use in client, events.
This commit is contained in:
parent
33bea964ca
commit
a67a71a7cf
9 changed files with 714 additions and 182 deletions
21
Makefile
21
Makefile
|
|
@ -1,17 +1,24 @@
|
|||
CFLAGS = -Wall -g $(shell pkg-config --cflags libffi)
|
||||
LDLIBS = $(shell pkg-config --libs libffi)
|
||||
CFLAGS += -Wall -g $(shell pkg-config --cflags libffi libdrm)
|
||||
LDLIBS += $(shell pkg-config --libs libffi libdrm)
|
||||
|
||||
all : wayland client
|
||||
|
||||
wayland_objs = wayland.o event-loop.o hash.o
|
||||
wayland_objs = wayland.o event-loop.o hash.o compositor.o
|
||||
|
||||
wayland : $(wayland_objs)
|
||||
gcc -o $@ $(wayland_objs) $(LDLIBS)
|
||||
|
||||
client_objs = client.o
|
||||
libwayland_objs = wayland-client.o
|
||||
|
||||
client : $(client_objs)
|
||||
gcc -o $@ $(client_objs)
|
||||
libwayland.so : $(libwayland_objs)
|
||||
gcc -o $@ $(libwayland_objs) -shared
|
||||
|
||||
client_objs = client.o
|
||||
client : CFLAGS += $(shell pkg-config --cflags cairo)
|
||||
client : LDLIBS += $(shell pkg-config --libs cairo)
|
||||
|
||||
client : $(client_objs) libwayland.so
|
||||
gcc -o $@ -L. -lwayland $(LDLIBS) $(client_objs)
|
||||
|
||||
clean :
|
||||
rm client wayland *.o
|
||||
rm -f client wayland *.o libwayland.so
|
||||
Loading…
Add table
Add a link
Reference in a new issue