4 libs = libwayland-server.so libwayland.so
5 compositors = wayland-system-compositor
7 all : $(libs) $(compositors) subdirs
9 libwayland-server.so : \
24 $(libs) : CFLAGS += -fPIC $(FFI_CFLAGS)
25 $(libs) : LDLIBS += $(FFI_LIBS)
27 gcc -shared $^ $(LDLIBS) -o $@
29 wayland-system-compositor : \
30 wayland-system-compositor.o \
35 wayland-system-compositor : CFLAGS += $(EGL_COMPOSITOR_CFLAGS)
36 wayland-system-compositor : LDLIBS += ./libwayland-server.so $(EGL_COMPOSITOR_LIBS) -rdynamic -lrt -lEGL
38 subdirs-all subdirs-clean :
39 for f in $(subdirs); do $(MAKE) -C $$f $(@:subdirs-%=%); done
41 install : $(libs) $(compositors)
42 install -d $(libdir) $(libdir)/pkgconfig ${udev_rules_dir}
43 install $(libs) $(libdir)
44 install wayland-server.pc wayland.pc $(libdir)/pkgconfig
45 install wayland-util.h wayland-client.h $(includedir)
46 install 70-wayland.rules ${udev_rules_dir}
49 rm -f $(compositors) *.o *.so
51 config.mk : config.mk.in