3 libs = libwayland-server.so libwayland-client.so
9 wayland-server-protocol.h \
11 wayland-client-protocol.h \
14 libwayland-server.so : \
22 libwayland-client.so : \
29 wayland-server.o : wayland-server-protocol.h
30 wayland-client.o : wayland-client-protocol.h
32 wayland-protocol.c : protocol.xml scanner
33 ./scanner code < $< > $@
35 wayland-server-protocol.h : protocol.xml scanner
36 ./scanner server-header < $< > $@
38 wayland-client-protocol.h : protocol.xml scanner
39 ./scanner client-header < $< > $@
41 $(libs) : CFLAGS += -fPIC $(FFI_CFLAGS)
42 $(libs) : LDLIBS += $(FFI_LIBS)
44 gcc -shared $^ $(LDLIBS) -o $@
50 scanner : LDLIBS += $(EXPAT_LIBS)
52 install : $(libs) compositor
53 install -d $(libdir) $(includedir) $(libdir)/pkgconfig
54 install wayland-server.pc wayland-client.pc $(libdir)/pkgconfig
55 install $(libs) $(libdir)
56 install $(headers) $(includedir)
59 rm -f scanner *.o *.so .*.deps
60 rm -f wayland-protocol.c \
61 wayland-server-protocol.h wayland-client-protocol.h