summaryrefslogtreecommitdiffstats
path: root/src/egl/wayland/wayland-drm/Makefile.am
blob: 40174c6acdd80ed3465112297568be14d6ce0d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
AM_CFLAGS = -I$(top_srcdir)/include \
	    $(DEFINES) \
	    $(VISIBILITY_CFLAGS) \
	    $(WAYLAND_SERVER_CFLAGS)

if HAVE_PLATFORM_WAYLAND
wayland-drm.lo: wayland-drm-client-protocol.h wayland-drm-server-protocol.h
endif

noinst_LTLIBRARIES = libwayland-drm.la

nodist_libwayland_drm_la_SOURCES = \
	wayland-drm-protocol.c \
	wayland-drm-client-protocol.h \
	wayland-drm-server-protocol.h

libwayland_drm_la_SOURCES = \
	wayland-drm.c \
	wayland-drm.h

noinst_HEADERS = wayland-drm.h

EXTRA_DIST = wayland-drm.xml meson.build

CLEANFILES = \
	wayland-drm-protocol.c \
	wayland-drm-client-protocol.h \
	wayland-drm-server-protocol.h

%-protocol.c : %.xml
	$(AM_V_GEN)$(WAYLAND_SCANNER) $(SCANNER_ARG) $< $@

%-server-protocol.h : %.xml
	$(AM_V_GEN)$(WAYLAND_SCANNER) server-header $< $@

%-client-protocol.h : %.xml
	$(AM_V_GEN)$(WAYLAND_SCANNER) client-header $< $@