forked from renesas-rcar/wayland-wsegl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
94 lines (73 loc) · 2.08 KB
/
Makefile.am
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
AM_CFLAGS = \
-Wall -DLINUX
if DEBUG
AM_CFLAGS += -DDEBUG -O2 -g
else
AM_CFLAGS += -O3
endif
if HAVE_GCOV
AM_CFLAGS += -fprofile-arcs -ftest-coverage
endif
if NATIVE_FENCE_SYNC
AM_CFLAGS += -DSUPPORT_NATIVE_FENCE_SYNC
endif
if STANDALONE_BUILD
AM_CFLAGS += -DREL_STANDALONE_BUILD
endif
TARGET_WSEGL = libpvrWAYLAND_WSEGL.la
AM_CFLAGS += \
-I$(top_srcdir)/include \
-I$(top_srcdir)/../../hwdefs
lib_LTLIBRARIES = $(TARGET_WSEGL)
WSEGL_CORE_SOURCES = \
src/waylandws.c \
src/waylandws_server.c \
src/waylandws_client.c \
linux-dmabuf-unstable-v1-protocol.c
WSEGL_CORE_CFLAGS = \
$(AM_CFLAGS) \
@POWERVR_CFLAGS@ \
@WAYLAND_SERVER_CFLAGS@ \
@WAYLAND_CLIENT_CFLAGS@ \
@WAYLAND_KMS_CFLAGS@ \
@LIBGBM_CFLAGS@ \
@LIBKMS_CFLAGS@ \
@LIBDRM_CFLAGS@ \
@LIBEGL_CFLAGS@
WSEGL_CORE_LIBADD = \
@WAYLAND_CLIENT_LIBS@ \
@WAYLAND_SERVER_LIBS@ \
@WAYLAND_KMS_LIBS@ \
@LIBGBM_LIBS@ \
@LIBKMS_LIBS@ \
@LIBDRM_LIBS@
libpvrWAYLAND_WSEGL_la_SOURCES = \
$(WSEGL_CORE_SOURCES) \
src/waylandws_pvrsrv.c
libpvrWAYLAND_WSEGL_la_CFLAGS = \
$(WSEGL_CORE_CFLAGS)
libpvrWAYLAND_WSEGL_la_LIBADD = \
$(WSEGL_CORE_LIBADD) \
-lsrv_um
noinst_HEADERS = \
src/waylandws.h \
src/waylandws_client.h \
src/waylandws_server.h \
src/waylandws_pvr.h \
linux-dmabuf-unstable-v1-client-protocol.h
EXTRA_DIST = linux-dmabuf-unstable-v1.xml
CLEANFILES = linux-dmabuf-unstable-v1-protocol.c linux-dmabuf-unstable-v1-client-protocol.h
src/waylandws_client.c: linux-dmabuf-unstable-v1-client-protocol.h
.SECONDEXPANSION:
define protostability
$(if $(findstring unstable,$1),unstable,stable)
endef
define protoname
$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
endef
%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
$(WAYLAND_SCANNER) code < $< > $@
%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
$(WAYLAND_SCANNER) server-header < $< > $@
%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
$(WAYLAND_SCANNER) client-header < $< > $@