f9bc795a7d
Just pointer motion and button clicks for now, broadcast to all clients.
26 lines
749 B
Makefile
26 lines
749 B
Makefile
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 connection.o hash.o input.o egl-compositor.o
|
|
wayland : CFLAGS += -I../eagle
|
|
wayland : LDLIBS += -L../eagle -leagle -ldl
|
|
|
|
wayland : $(wayland_objs)
|
|
gcc -o $@ $(LDLIBS) $(wayland_objs)
|
|
|
|
libwayland_objs = wayland-client.o connection.o
|
|
|
|
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 -f client wayland *.o libwayland.so
|