summaryrefslogtreecommitdiff
path: root/wayland-scanner.mk
diff options
context:
space:
mode:
Diffstat (limited to 'wayland-scanner.mk')
-rw-r--r--wayland-scanner.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/wayland-scanner.mk b/wayland-scanner.mk
new file mode 100644
index 00000000..0a72062b
--- /dev/null
+++ b/wayland-scanner.mk
@@ -0,0 +1,8 @@
+%-protocol.c : $(wayland_protocoldir)/%.xml
+ $(AM_V_GEN)$(wayland_scanner) code < $< > $@
+
+%-server-protocol.h : $(wayland_protocoldir)/%.xml
+ $(AM_V_GEN)$(wayland_scanner) server-header < $< > $@
+
+%-client-protocol.h : $(wayland_protocoldir)/%.xml
+ $(AM_V_GEN)$(wayland_scanner) client-header < $< > $@