1 bin_PROGRAMS = weston \
5 -I$(top_srcdir)/shared \
6 -DDATADIR='"$(datadir)"' \
7 -DMODULEDIR='"$(moduledir)"' \
8 -DLIBEXECDIR='"$(libexecdir)"' \
11 weston_LDFLAGS = -export-dynamic
12 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
13 weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
14 $(DLOPEN_LIBS) -lm ../shared/libshared.la
26 screenshooter-protocol.c \
27 screenshooter-server-protocol.h \
29 text-cursor-position-protocol.c \
30 text-cursor-position-server-protocol.h \
34 text-server-protocol.h \
35 input-method-protocol.c \
36 input-method-server-protocol.h \
37 workspaces-protocol.c \
38 workspaces-server-protocol.h \
39 subsurface-protocol.c \
40 subsurface-server-protocol.h \
58 git-version.h : .FORCE
59 $(AM_V_GEN)(echo "#define BUILD_ID \"$(shell git --git-dir=$(top_srcdir)/.git describe --always --dirty) $(shell git --git-dir=$(top_srcdir)/.git log -1 --format='%s (%ci)')\"" > $@-new; \
60 cmp -s $@ $@-new || cp $@-new $@; \
69 DIST_SUBDIRS = xwayland
72 if BUILD_WESTON_LAUNCH
73 weston_launch = weston-launch
74 weston_launch_SOURCES = weston-launch.c weston-launch.h
75 weston_launch_CFLAGS= $(GCC_CFLAGS)
76 weston_launch_CPPFLAGS = $(WESTON_LAUNCH_CFLAGS) $(SYSTEMD_LOGIN_CFLAGS) \
77 -DBINDIR='"$(bindir)"'
78 weston_launch_LDADD = $(WESTON_LAUNCH_LIBS) $(SYSTEMD_LOGIN_LIBS)
80 if ENABLE_SETUID_INSTALL
82 chown root $(DESTDIR)$(bindir)/weston-launch
83 chmod u+s $(DESTDIR)$(bindir)/weston-launch
86 endif # BUILD_WESTON_LAUNCH
88 pkgconfigdir = $(libdir)/pkgconfig
89 pkgconfig_DATA = weston.pc
91 westonincludedir = $(includedir)/weston
92 westoninclude_HEADERS = \
96 ../shared/config-parser.h \
99 moduledir = $(libdir)/weston
100 module_LTLIBRARIES = \
108 $(headless_backend) \
114 if INSTALL_RPI_COMPOSITOR
115 module_LTLIBRARIES += $(rpi_backend)
117 noinst_LTLIBRARIES += $(rpi_backend)
120 if ENABLE_X11_COMPOSITOR
121 x11_backend = x11-backend.la
122 x11_backend_la_LDFLAGS = -module -avoid-version
123 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
124 ../shared/libshared-cairo.la
125 x11_backend_la_CFLAGS = \
126 $(COMPOSITOR_CFLAGS) \
129 $(X11_COMPOSITOR_CFLAGS) \
131 x11_backend_la_SOURCES = compositor-x11.c
134 if ENABLE_DRM_COMPOSITOR
135 drm_backend = drm-backend.la
136 drm_backend_la_LDFLAGS = -module -avoid-version
137 drm_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(DRM_COMPOSITOR_LIBS) \
138 ../shared/libshared.la -lrt
139 drm_backend_la_CFLAGS = \
140 $(COMPOSITOR_CFLAGS) \
141 $(DRM_COMPOSITOR_CFLAGS) \
143 drm_backend_la_SOURCES = \
157 if ENABLE_WAYLAND_COMPOSITOR
158 wayland_backend = wayland-backend.la
159 wayland_backend_la_LDFLAGS = -module -avoid-version
160 wayland_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(WAYLAND_COMPOSITOR_LIBS) \
161 ../shared/libshared-cairo.la
162 wayland_backend_la_CFLAGS = \
163 $(COMPOSITOR_CFLAGS) \
166 $(WAYLAND_COMPOSITOR_CFLAGS) \
168 wayland_backend_la_SOURCES = compositor-wayland.c
171 if ENABLE_RPI_COMPOSITOR
172 rpi_backend = rpi-backend.la
173 rpi_backend_la_LDFLAGS = -module -avoid-version
174 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
175 $(RPI_COMPOSITOR_LIBS) \
176 $(RPI_BCM_HOST_LIBS) \
177 ../shared/libshared.la
178 rpi_backend_la_CFLAGS = \
180 $(COMPOSITOR_CFLAGS) \
181 $(RPI_COMPOSITOR_CFLAGS) \
182 $(RPI_BCM_HOST_CFLAGS)
183 rpi_backend_la_SOURCES = \
194 if ENABLE_HEADLESS_COMPOSITOR
195 headless_backend = headless-backend.la
196 headless_backend_la_LDFLAGS = -module -avoid-version
197 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
198 ../shared/libshared.la
199 headless_backend_la_CFLAGS = \
200 $(COMPOSITOR_CFLAGS) \
202 headless_backend_la_SOURCES = compositor-headless.c
205 if ENABLE_FBDEV_COMPOSITOR
206 fbdev_backend = fbdev-backend.la
207 fbdev_backend_la_LDFLAGS = -module -avoid-version
208 fbdev_backend_la_LIBADD = \
210 $(FBDEV_COMPOSITOR_LIBS) \
211 ../shared/libshared.la
212 fbdev_backend_la_CFLAGS = \
213 $(COMPOSITOR_CFLAGS) \
214 $(FBDEV_COMPOSITOR_CFLAGS) \
217 fbdev_backend_la_SOURCES = \
228 if ENABLE_RDP_COMPOSITOR
229 rdp_backend = rdp-backend.la
230 rdp_backend_la_LDFLAGS = -module -avoid-version
231 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
232 $(RDP_COMPOSITOR_LIBS) \
233 ../shared/libshared.la
234 rdp_backend_la_CFLAGS = \
235 $(COMPOSITOR_CFLAGS) \
236 $(RDP_COMPOSITOR_CFLAGS) \
238 rdp_backend_la_SOURCES = compositor-rdp.c
241 if ENABLE_DESKTOP_SHELL
242 desktop_shell = desktop-shell.la
243 desktop_shell_la_LDFLAGS = -module -avoid-version
244 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
245 ../shared/libshared.la
246 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
247 desktop_shell_la_SOURCES = \
249 desktop-shell-protocol.c \
250 desktop-shell-server-protocol.h
253 if ENABLE_TABLET_SHELL
254 tablet_shell = tablet-shell.la
255 tablet_shell_la_LDFLAGS = -module -avoid-version
256 tablet_shell_la_LIBADD = $(COMPOSITOR_LIBS)
257 tablet_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
258 tablet_shell_la_SOURCES = \
260 tablet-shell-protocol.c \
261 tablet-shell-server-protocol.h
265 cms_static = cms-static.la
266 cms_static_la_LDFLAGS = -module -avoid-version
267 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) ../shared/libshared.la
268 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
269 cms_static_la_SOURCES = \
274 cms_colord = cms-colord.la
275 cms_colord_la_LDFLAGS = -module -avoid-version
276 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
277 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
278 cms_colord_la_SOURCES = \
285 noinst_PROGRAMS = spring-tool
287 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
288 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
289 spring_tool_SOURCES = \
297 screenshooter-server-protocol.h \
298 screenshooter-protocol.c \
299 text-cursor-position-server-protocol.h \
300 text-cursor-position-protocol.c \
301 tablet-shell-protocol.c \
302 tablet-shell-server-protocol.h \
303 desktop-shell-protocol.c \
304 desktop-shell-server-protocol.h \
306 text-server-protocol.h \
307 input-method-protocol.c \
308 input-method-server-protocol.h \
309 workspaces-server-protocol.h \
310 workspaces-protocol.c \
311 subsurface-server-protocol.h \
312 subsurface-protocol.c \
315 CLEANFILES = $(BUILT_SOURCES)
317 wayland_protocoldir = $(top_srcdir)/protocol
318 include $(top_srcdir)/wayland-scanner.mk