aboutsummaryrefslogtreecommitdiff
path: root/src/wld/protocol/local.mk
blob: 216a4dde77c48af08a57e975b81593e4645e6f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# wld: protocol/local.mk

dir := protocol

PROTOCOL_EXTENSIONS = $(dir)/wayland-drm.xml

$(dir)/%-protocol.c: $(dir)/%.xml
	$(call quiet,GEN,$(WAYLAND_SCANNER)) code < $< > $@

$(dir)/%-client-protocol.h: $(dir)/%.xml
	$(call quiet,GEN,$(WAYLAND_SCANNER)) client-header < $< > $@

CLEAN_FILES +=                                          \
    $(PROTOCOL_EXTENSIONS:%.xml=%-protocol.c)           \
    $(PROTOCOL_EXTENSIONS:%.xml=%-client-protocol.h)

include common.mk