1AM_CFLAGS = -I$(top_srcdir)/src/egl/main \
2	    -I$(top_srcdir)/include \
3	    $(DEFINES) \
4	    $(WAYLAND_CFLAGS)
5
6noinst_LTLIBRARIES = libwayland-drm.la
7libwayland_drm_la_SOURCES = wayland-drm.c wayland-drm-protocol.c
8noinst_HEADERS = wayland-drm.h
9
10BUILT_SOURCES = wayland-drm-protocol.c \
11		wayland-drm-client-protocol.h \
12		wayland-drm-server-protocol.h
13CLEANFILES = $(BUILT_SOURCES)
14
15%-protocol.c : %.xml
16	$(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@
17
18%-server-protocol.h : %.xml
19	$(AM_V_GEN)$(WAYLAND_SCANNER) server-header < $< > $@
20
21%-client-protocol.h : %.xml
22	$(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@
23