2008-10-07 18:10:36 +04:00
|
|
|
CFLAGS += -Wall -g $(shell pkg-config --cflags libffi libdrm)
|
|
|
|
LDLIBS += $(shell pkg-config --libs libffi libdrm)
|
2008-09-30 17:46:10 +04:00
|
|
|
|
|
|
|
all : wayland client
|
|
|
|
|
2008-10-08 20:48:46 +04:00
|
|
|
wayland_objs = wayland.o event-loop.o connection.o hash.o compositor.o
|
2008-09-30 17:46:10 +04:00
|
|
|
|
|
|
|
wayland : $(wayland_objs)
|
|
|
|
gcc -o $@ $(wayland_objs) $(LDLIBS)
|
|
|
|
|
2008-10-08 21:32:07 +04:00
|
|
|
libwayland_objs = wayland-client.o connection.o
|
2008-10-07 18:10:36 +04:00
|
|
|
|
|
|
|
libwayland.so : $(libwayland_objs)
|
|
|
|
gcc -o $@ $(libwayland_objs) -shared
|
|
|
|
|
2008-09-30 17:46:10 +04:00
|
|
|
client_objs = client.o
|
2008-10-07 18:10:36 +04:00
|
|
|
client : CFLAGS += $(shell pkg-config --cflags cairo)
|
|
|
|
client : LDLIBS += $(shell pkg-config --libs cairo)
|
2008-09-30 17:46:10 +04:00
|
|
|
|
2008-10-07 18:10:36 +04:00
|
|
|
client : $(client_objs) libwayland.so
|
|
|
|
gcc -o $@ -L. -lwayland $(LDLIBS) $(client_objs)
|
2008-09-30 17:46:10 +04:00
|
|
|
|
|
|
|
clean :
|
2008-10-07 18:10:36 +04:00
|
|
|
rm -f client wayland *.o libwayland.so
|