f4c1dbafc615b4e7ed74560c9401008c764c185e
[profile/ivi/ico-uxf-weston-plugin.git] / src / Makefile.am
1 lib_LTLIBRARIES = libico-uxf-weston-plugin.la
2
3 pkginclude_HEADERS =               \
4         desktop-shell-client-protocol.h         \
5         input-method-client-protocol.h          \
6         workspaces-client-protocol.h            \
7         ico_window_mgr-client-protocol.h        \
8         ico_input_mgr-client-protocol.h         \
9         ico_input_mgr.h
10
11 libico_uxf_weston_plugin_la_LIBADD = -ldrm_intel -lrt -lm
12 libico_uxf_weston_plugin_la_LDFLAGS = -version-info 0:9:0
13 libico_uxf_weston_plugin_la_SOURCES =          \
14         desktop-shell-protocol.c                \
15         input-method-protocol.c                 \
16         workspaces-protocol.c                   \
17         ico_window_mgr-protocol.c               \
18         ico_input_mgr-protocol.c
19
20 AM_CPPFLAGS =                                   \
21         -DDATADIR='"$(datadir)"'                \
22         -DMODULEDIR='"$(moduledir)"'            \
23         -DLIBEXECDIR='"$(libexecdir)"'
24
25 EXT_CFLAGS =
26
27 git-version.h : .FORCE
28         $(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; \
29         cmp -s $@ $@-new || cp $@-new $@; \
30         rm $@-new)
31
32 .FORCE :
33
34 moduledir = @libdir@/weston
35 module_LTLIBRARIES =            \
36         $(ico_plugin_loader)    \
37         $(ico_ivi_shell)                \
38         $(ico_window_mgr)               \
39         $(ico_window_animation) \
40         $(ico_input_mgr)
41
42 # Weston Plugin Loader
43 ico_plugin_loader = ico_plugin_loader.la
44 ico_plugin_loader_la_LDFLAGS = -module -avoid-version
45 ico_plugin_loader_la_LIBADD = $(PLUGIN_LIBS)
46 ico_plugin_loader_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
47 ico_plugin_loader_la_SOURCES =          \
48         ico_plugin_loader.c                             \
49         ico_ivi_common.h
50
51 # IVI-Shell
52 ico_ivi_shell = ico_ivi_shell.la
53 ico_ivi_shell_la_LDFLAGS = -module -avoid-version
54 ico_ivi_shell_la_LIBADD = $(PLUGIN_LIBS)
55 ico_ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
56 ico_ivi_shell_la_SOURCES =                      \
57         ico_ivi_shell.c                                 \
58         ico_ivi_shell.h                                 \
59         ico_ivi_common.h                                \
60         desktop-shell-protocol.c                \
61         input-method-protocol.c                 \
62         workspaces-protocol.c                   \
63         desktop-shell-server-protocol.h \
64         input-method-server-protocol.h  \
65         workspaces-server-protocol.h
66
67 # Multi Window Manager
68 ico_window_mgr = ico_window_mgr.la
69 ico_window_mgr_la_LDFLAGS = -module -avoid-version
70 ico_window_mgr_la_LIBADD = -ldrm_intel $(PLUGIN_LIBS) $(AUL_LIBS)
71 ico_window_mgr_la_CFLAGS = -I/usr/include/libdrm $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
72 ico_window_mgr_la_SOURCES =                     \
73         ico_window_mgr.c                                \
74         ico_window_mgr.h                                \
75         ico_ivi_common.h                                \
76         ico_ivi_shell.h                                 \
77         ico_window_mgr-protocol.c               \
78         ico_window_mgr-server-protocol.h
79 #
80 # Window Animation
81 ico_window_animation = ico_window_animation.la
82 ico_window_animation_la_LDFLAGS = -module -avoid-version
83 ico_window_animation_la_LIBADD = $(PLUGIN_LIBS) $(AUL_LIBS)
84 ico_window_animation_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
85 ico_window_animation_la_SOURCES =       \
86         ico_window_animation.c                  \
87         ico_window_mgr.h                                \
88         ico_ivi_common.h
89
90 # Multi Input Manager
91 ico_input_mgr = ico_input_mgr.la
92 ico_input_mgr_la_LDFLAGS = -module -avoid-version
93 ico_input_mgr_la_LIBADD = $(PLUGIN_LIBS)
94 ico_input_mgr_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
95 ico_input_mgr_la_SOURCES =                      \
96         ico_input_mgr.c                                 \
97         ico_input_mgr.h                                 \
98         ico_window_mgr.h                                \
99         ico_ivi_common.h                                \
100         ico_input_mgr-protocol.c                \
101         ico_input_mgr-server-protocol.h
102
103 # Wayland protocol(Build by wayland-scanner)
104 BUILT_SOURCES =                                         \
105         desktop-shell-protocol.c                \
106         desktop-shell-server-protocol.h \
107         desktop-shell-client-protocol.h \
108         input-method-protocol.c                 \
109         input-method-server-protocol.h  \
110         input-method-client-protocol.h  \
111         workspaces-protocol.c                   \
112         workspaces-server-protocol.h    \
113         workspaces-client-protocol.h    \
114         ico_window_mgr-protocol.c               \
115         ico_window_mgr-server-protocol.h        \
116         ico_window_mgr-client-protocol.h        \
117         ico_input_mgr-protocol.c                \
118         ico_input_mgr-server-protocol.h \
119         ico_input_mgr-client-protocol.h
120
121 CLEANFILES = $(BUILT_SOURCES)
122
123 @wayland_scanner_rules@