CFLAGS = @GCC_CFLAGS@ prefix = @prefix@ exec_prefix = @exec_prefix@ udev_rules_dir = @sysconfdir@/udev/rules.d libs = libwayland-server.so libwayland.so clients = flower gears screenshot terminal compositors = wayland-system-compositor all : $(libs) $(compositors) $(clients) libwayland-server.so : \ wayland.o \ event-loop.o \ connection.o \ wayland-util.o \ wayland-protocol.o libwayland.so : \ wayland-client.o \ connection.o \ wayland-util.o \ wayland-protocol.o $(libs) : CFLAGS += -fPIC @FFI_CFLAGS@ $(libs) : LDLIBS += @FFI_LIBS@ $(libs) : gcc -shared $^ $(LDLIBS) -o $@ wayland-system-compositor : \ wayland-system-compositor.o \ evdev.o \ cairo-util.o \ wayland-util.o wayland-system-compositor : CFLAGS += @EGL_COMPOSITOR_CFLAGS@ wayland-system-compositor : LDLIBS += -L. -lwayland-server @EGL_COMPOSITOR_LIBS@ -rdynamic -lrt flower : flower.o wayland-glib.o gears : gears.o window.o wayland-glib.o cairo-util.o screenshot : screenshot.o wayland-glib.o terminal : terminal.o window.o wayland-glib.o cairo-util.o terminal : LDLIBS += -lutil $(clients) : CFLAGS += @CLIENT_CFLAGS@ $(clients) : LDLIBS += -L. -lwayland @CLIENT_LIBS@ -lrt install : $(libs) $(compositors) install -d @libdir@ @libdir@/pkgconfig ${udev_rules_dir} install $(libs) @libdir@ install wayland-server.pc wayland.pc @libdir@/pkgconfig install wayland-client.h @includedir@ install 70-wayland.rules ${udev_rules_dir} clean : rm -f $(clients) $(compositors) *.o *.so Makefile : Makefile.in ./config.status