|
|
@ -1,7 +1,9 @@ |
|
|
|
CFLAGS += -Wall -g $(shell pkg-config --cflags libffi libdrm)
|
|
|
|
CFLAGS += -Wall -g $(shell pkg-config --cflags libffi libdrm)
|
|
|
|
LDLIBS += $(shell pkg-config --libs libffi libdrm)
|
|
|
|
LDLIBS += $(shell pkg-config --libs libffi libdrm)
|
|
|
|
|
|
|
|
|
|
|
|
all : wayland client |
|
|
|
clients = flower
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
all : wayland $(clients) |
|
|
|
|
|
|
|
|
|
|
|
wayland_objs = wayland.o event-loop.o connection.o hash.o input.o egl-compositor.o
|
|
|
|
wayland_objs = wayland.o event-loop.o connection.o hash.o input.o egl-compositor.o
|
|
|
|
wayland : CFLAGS += -I../eagle |
|
|
|
wayland : CFLAGS += -I../eagle |
|
|
@ -15,12 +17,19 @@ libwayland_objs = wayland-client.o connection.o |
|
|
|
libwayland.so : $(libwayland_objs) |
|
|
|
libwayland.so : $(libwayland_objs) |
|
|
|
gcc -o $@ $(libwayland_objs) -shared
|
|
|
|
gcc -o $@ $(libwayland_objs) -shared
|
|
|
|
|
|
|
|
|
|
|
|
client_objs = client.o
|
|
|
|
flower_objs = flower.o
|
|
|
|
client : CFLAGS += $(shell pkg-config --cflags cairo) |
|
|
|
|
|
|
|
client : LDLIBS += $(shell pkg-config --libs cairo) |
|
|
|
$(clients) : CFLAGS += $(shell pkg-config --cflags cairo) |
|
|
|
|
|
|
|
$(clients) : LDLIBS += $(shell pkg-config --libs cairo) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define client_template |
|
|
|
|
|
|
|
$(1): $$($(1)_objs) libwayland.so |
|
|
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(foreach c,$(clients),$(eval $(call client_template,$(c)))) |
|
|
|
|
|
|
|
|
|
|
|
client : $(client_objs) libwayland.so |
|
|
|
$(clients) : |
|
|
|
gcc -o $@ -L. -lwayland $(LDLIBS) $(client_objs)
|
|
|
|
gcc -o $@ -L. -lwayland $(LDLIBS) $^
|
|
|
|
|
|
|
|
|
|
|
|
clean : |
|
|
|
clean : |
|
|
|
rm -f client wayland *.o libwayland.so
|
|
|
|
rm -f $(clients) wayland *.o libwayland.so
|