summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 9a4a7f417ab3dbb7b608ffa7287d03ceb0afe75a (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
lib_LTLIBRARIES = libico-uxf-weston-plugin.la

pkginclude_HEADERS =               \
	desktop-shell-client-protocol.h		\
	input-method-client-protocol.h		\
	workspaces-client-protocol.h		\
	ico_window_mgr-client-protocol.h	\
	ico_input_mgr-client-protocol.h		\
	ico_input_mgr.h

libico_uxf_weston_plugin_la_LIBADD = -lrt -lm
libico_uxf_weston_plugin_la_LDFLAGS = -version-info 0:9:0
libico_uxf_weston_plugin_la_SOURCES =          \
	desktop-shell-protocol.c		\
	input-method-protocol.c			\
	workspaces-protocol.c			\
	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_ivi_shell)		\
	$(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.h

# IVI-Shell
ico_ivi_shell = ico_ivi_shell.la
ico_ivi_shell_la_LDFLAGS = -module -avoid-version
ico_ivi_shell_la_LIBADD = $(PLUGIN_LIBS)
ico_ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
ico_ivi_shell_la_SOURCES =			\
	ico_ivi_shell.c					\
	ico_ivi_shell.h					\
	ico_ivi_common.h				\
	desktop-shell-protocol.c		\
	input-method-protocol.c			\
	workspaces-protocol.c			\
	desktop-shell-server-protocol.h	\
	input-method-server-protocol.h	\
	workspaces-server-protocol.h

# Multi Window Manager
ico_window_mgr = ico_window_mgr.la
ico_window_mgr_la_LDFLAGS = -module -avoid-version
ico_window_mgr_la_LIBADD = $(PLUGIN_LIBS) $(AUL_LIBS)
ico_window_mgr_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
ico_window_mgr_la_SOURCES =			\
	ico_window_mgr.c				\
	ico_window_mgr.h				\
	ico_ivi_common.h				\
	ico_ivi_shell.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.h				\
	ico_ivi_common.h

# 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.h				\
	ico_ivi_common.h				\
	ico_input_mgr-protocol.c		\
	ico_input_mgr-server-protocol.h

# Wayland protocol(Build by wayland-scanner)
BUILT_SOURCES =						\
	desktop-shell-protocol.c		\
	desktop-shell-server-protocol.h	\
	desktop-shell-client-protocol.h	\
	input-method-protocol.c			\
	input-method-server-protocol.h	\
	input-method-client-protocol.h	\
	workspaces-protocol.c			\
	workspaces-server-protocol.h	\
	workspaces-client-protocol.h	\
	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@