summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 48eaf76ca00cbf352e2bcdab325af6e2f6903e75 (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
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
lib_LTLIBRARIES = libico-uxf-weston-plugin.la

pkginclude_HEADERS =               \
	ico_window_mgr-client-protocol.h	\
	ico_input_mgr-client-protocol.h		\
	ico_input_mgr.h

libico_uxf_weston_plugin_la_LIBADD = -ldrm_intel -lrt -lm
libico_uxf_weston_plugin_la_LDFLAGS = -version-info 0:9:0
libico_uxf_weston_plugin_la_SOURCES =          \
	ico_window_mgr-protocol.c		\
	ico_input_mgr-protocol.c

AM_CPPFLAGS =					\
	-DDATADIR='"$(datadir)"'		\
	-DMODULEDIR='"$(moduledir)"'		\
	-DLIBEXECDIR='"$(libexecdir)"'

EXT_CFLAGS =

git-version.h : .FORCE
	$(AM_V_GEN)(echo "#define BUILD_ID \"$(shell git --work-tree=$(top_srcdir) describe --always --dirty) $(shell git --work-tree=$(top_srcdir) log -1 --format='%s (%ci)')\"" > $@-new; \
	cmp -s $@ $@-new || cp $@-new $@; \
	rm $@-new)

.FORCE :

moduledir = @libdir@/weston
module_LTLIBRARIES =		\
	$(ico_plugin_loader)	\
	$(ico_window_mgr)		\
	$(ico_window_animation)	\
	$(ico_input_mgr)

# Weston Plugin Loader
ico_plugin_loader = ico_plugin_loader.la
ico_plugin_loader_la_LDFLAGS = -module -avoid-version
ico_plugin_loader_la_LIBADD = $(PLUGIN_LIBS)
ico_plugin_loader_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
ico_plugin_loader_la_SOURCES =		\
	ico_plugin_loader.c				\
	ico_ivi_common_private.h		\
	ico_plugin_version.h

# Multi Window Manager
ico_window_mgr = ico_window_mgr.la
ico_window_mgr_la_LDFLAGS = -module -avoid-version
ico_window_mgr_la_LIBADD = -ldrm_intel $(PLUGIN_LIBS) $(AUL_LIBS)
ico_window_mgr_la_CFLAGS = -I/usr/include/libdrm $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
ico_window_mgr_la_SOURCES =			\
	ico_window_mgr.c				\
	ico_window_mgr_private.h		\
	ico_ivi_common_private.h		\
	ico_window_mgr-protocol.c		\
	ico_window_mgr-server-protocol.h
#
# Window Animation
ico_window_animation = ico_window_animation.la
ico_window_animation_la_LDFLAGS = -module -avoid-version
ico_window_animation_la_LIBADD = $(PLUGIN_LIBS) $(AUL_LIBS)
ico_window_animation_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
ico_window_animation_la_SOURCES =	\
	ico_window_animation.c			\
	ico_window_mgr_private.h		\
	ico_ivi_common._privateh

# Multi Input Manager
ico_input_mgr = ico_input_mgr.la
ico_input_mgr_la_LDFLAGS = -module -avoid-version
ico_input_mgr_la_LIBADD = $(PLUGIN_LIBS)
ico_input_mgr_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
ico_input_mgr_la_SOURCES =			\
	ico_input_mgr.c					\
	ico_input_mgr.h					\
	ico_window_mgr_private.h		\
	ico_ivi_common._privateh		\
	ico_input_mgr-protocol.c		\
	ico_input_mgr-server-protocol.h

# Wayland protocol(Build by wayland-scanner)
BUILT_SOURCES =						\
	ico_window_mgr-protocol.c		\
	ico_window_mgr-server-protocol.h	\
	ico_window_mgr-client-protocol.h	\
	ico_input_mgr-protocol.c		\
	ico_input_mgr-server-protocol.h	\
	ico_input_mgr-client-protocol.h

CLEANFILES = $(BUILT_SOURCES)

@wayland_scanner_rules@