4 exec_prefix = @exec_prefix@
5 udev_rules_dir = @sysconfdir@/udev/rules.d
7 libs = libwayland-server.so libwayland.so
8 clients = flower gears screenshot terminal
9 compositors = wayland-system-compositor
11 all : $(libs) $(compositors) $(clients)
13 libwayland-server.so : \
26 $(libs) : CFLAGS += -fPIC @FFI_CFLAGS@
27 $(libs) : LDLIBS += @FFI_LIBS@
29 gcc -shared $^ $(LDLIBS) -o $@
31 wayland-system-compositor : \
32 wayland-system-compositor.o \
37 wayland-system-compositor : CFLAGS += @EGL_COMPOSITOR_CFLAGS@
38 wayland-system-compositor : LDLIBS += -L. -lwayland-server @EGL_COMPOSITOR_LIBS@ -rdynamic -lrt
40 flower : flower.o wayland-glib.o
41 gears : gears.o window.o wayland-glib.o cairo-util.o
42 screenshot : screenshot.o wayland-glib.o
43 terminal : terminal.o window.o wayland-glib.o cairo-util.o
45 terminal : LDLIBS += -lutil
47 $(clients) : CFLAGS += @CLIENT_CFLAGS@
48 $(clients) : LDLIBS += -L. -lwayland @CLIENT_LIBS@ -lrt
51 install -d @libdir@ @libdir@/pkgconfig ${udev_rules_dir}
52 install $(libs) @libdir@
53 install wayland-server.pc wayland.pc @libdir@/pkgconfig
54 install wayland-client.h @includedir@
55 install 70-wayland.rules ${udev_rules_dir}
58 rm -f $(clients) $(compositors) *.o *.so
60 Makefile : Makefile.in