blob: 6eab511b8b1aa204a679769eb5fbb5718465bab5 [file] [log] [blame]
Kristian Høgsberge895f142014-01-27 21:46:30 -08001bin_PROGRAMS =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -08002noinst_PROGRAMS =
Kristian Høgsberge73eccd2014-01-31 16:15:11 -08003libexec_PROGRAMS =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08004moduledir = $(libdir)/weston
5module_LTLIBRARIES =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -08006noinst_LTLIBRARIES =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08007BUILT_SOURCES =
Kristian Høgsberge895f142014-01-27 21:46:30 -08008
Kristian Høgsberg850f24c2012-02-09 09:20:44 -05009DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050010
Kristian Høgsberg08229422014-02-01 00:33:04 -080011EXTRA_DIST = weston.ini.in
Neil Robertse3de16e2013-11-22 16:46:00 +000012
13weston.ini : $(srcdir)/weston.ini.in
14 $(AM_V_GEN)$(SED) \
15 -e 's|@bindir[@]|$(bindir)|g' \
16 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
17 -e 's|@libexecdir[@]|$(libexecdir)|g' \
18 $< > $@
19
Kristian Høgsbergcd312752014-02-01 00:38:15 -080020all-local : weston.ini
Kristian Høgsberg98463742013-12-16 23:12:46 -080021
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080022AM_CFLAGS = $(GCC_CFLAGS)
23
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080024AM_CPPFLAGS = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080025 -I$(top_srcdir)/src \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080026 -I$(top_builddir)/src \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080027 -I$(top_builddir)/clients \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080028 -I$(top_builddir)/tests \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080029 -I$(top_srcdir)/shared \
Quentin Glidic088ba5e2014-02-01 21:39:12 +010030 -I$(top_builddir)/protocol \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080031 -DDATADIR='"$(datadir)"' \
32 -DMODULEDIR='"$(moduledir)"' \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080033 -DLIBEXECDIR='"$(libexecdir)"' \
34 -DBINDIR='"$(bindir)"'
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080035
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -080036CLEANFILES = weston.ini $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080037
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080038bin_PROGRAMS += weston
39
40weston_LDFLAGS = -export-dynamic
41weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
42weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
43weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -080044 $(DLOPEN_LIBS) -lm libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080045
46weston_SOURCES = \
47 src/git-version.h \
48 src/log.c \
49 src/compositor.c \
50 src/compositor.h \
51 src/input.c \
52 src/data-device.c \
53 src/filter.c \
54 src/filter.h \
55 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080056 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080057 src/zoom.c \
58 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080059 src/bindings.c \
60 src/animation.c \
61 src/noop-renderer.c \
62 src/pixman-renderer.c \
63 src/pixman-renderer.h \
64 shared/matrix.c \
65 shared/matrix.h \
66 shared/zalloc.h \
67 src/weston-egl-ext.h
68
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -080069nodist_weston_SOURCES = \
70 protocol/screenshooter-protocol.c \
71 protocol/screenshooter-server-protocol.h \
72 protocol/text-cursor-position-protocol.c \
73 protocol/text-cursor-position-server-protocol.h \
74 protocol/text-protocol.c \
75 protocol/text-server-protocol.h \
76 protocol/input-method-protocol.c \
77 protocol/input-method-server-protocol.h \
78 protocol/workspaces-protocol.c \
79 protocol/workspaces-server-protocol.h \
80 protocol/scaler-protocol.c \
81 protocol/scaler-server-protocol.h
82
83BUILT_SOURCES += $(nodist_weston_SOURCES)
84
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -080085# Track this dependency explicitly instead of using BUILT_SOURCES. We
86# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
87# in case we're building from tarballs.
88
89src/compositor.c : $(top_builddir)/src/git-version.h
90
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080091noinst_LTLIBRARIES += \
92 libsession-helper.la
93
94libsession_helper_la_SOURCES = \
95 src/weston-launch.h \
96 src/launcher-util.c \
97 src/launcher-util.h
98libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
99libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
100
101if ENABLE_DBUS
102if HAVE_SYSTEMD_LOGIN
103libsession_helper_la_SOURCES += \
104 src/dbus.h \
105 src/dbus.c \
106 src/logind-util.h \
107 src/logind-util.c
108libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
109libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
110endif
111endif
112
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800113if HAVE_GIT_REPO
114src/git-version.h : $(top_srcdir)/.git/logs/HEAD
115 $(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)')\"" > $@
116endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800117
118.FORCE :
119
120if BUILD_WESTON_LAUNCH
121bin_PROGRAMS += weston-launch
122weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
123weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
124weston_launch_CFLAGS= \
125 $(GCC_CFLAGS) \
126 $(PAM_CFLAGS) \
127 $(SYSTEMD_LOGIN_CFLAGS) \
128 $(LIBDRM_CFLAGS)
129weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
130
131if ENABLE_SETUID_INSTALL
132install-exec-hook:
133 chown root $(DESTDIR)$(bindir)/weston-launch
134 chmod u+s $(DESTDIR)$(bindir)/weston-launch
135endif
136
137endif # BUILD_WESTON_LAUNCH
138
139pkgconfigdir = $(libdir)/pkgconfig
140pkgconfig_DATA = src/weston.pc
141
142westonincludedir = $(includedir)/weston
143westoninclude_HEADERS = \
144 src/version.h \
145 src/compositor.h \
146 shared/matrix.h \
147 shared/config-parser.h \
148 shared/zalloc.h
149
150if ENABLE_EGL
151module_LTLIBRARIES += gl-renderer.la
152gl_renderer_la_LDFLAGS = -module -avoid-version
153gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
154gl_renderer_la_CFLAGS = \
155 $(COMPOSITOR_CFLAGS) \
156 $(EGL_CFLAGS) \
157 $(GCC_CFLAGS)
158gl_renderer_la_SOURCES = \
159 src/gl-renderer.h \
160 src/gl-renderer.c \
161 src/vertex-clipping.c \
162 src/vertex-clipping.h
163endif
164
165if ENABLE_X11_COMPOSITOR
166module_LTLIBRARIES += x11-backend.la
167x11_backend_la_LDFLAGS = -module -avoid-version
168x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800169 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800170x11_backend_la_CFLAGS = \
171 $(COMPOSITOR_CFLAGS) \
172 $(EGL_CFLAGS) \
173 $(PIXMAN_CFLAGS) \
174 $(CAIRO_CFLAGS) \
175 $(X11_COMPOSITOR_CFLAGS) \
176 $(GCC_CFLAGS)
177x11_backend_la_SOURCES = src/compositor-x11.c
178endif
179
180if ENABLE_DRM_COMPOSITOR
181module_LTLIBRARIES += drm-backend.la
182drm_backend_la_LDFLAGS = -module -avoid-version
183drm_backend_la_LIBADD = \
184 $(COMPOSITOR_LIBS) \
185 $(DRM_COMPOSITOR_LIBS) \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100186 libshared.la -lrt \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800187 libsession-helper.la
188drm_backend_la_CFLAGS = \
189 $(COMPOSITOR_CFLAGS) \
190 $(EGL_CFLAGS) \
191 $(DRM_COMPOSITOR_CFLAGS) \
192 $(GCC_CFLAGS)
193drm_backend_la_SOURCES = \
194 src/compositor-drm.c \
195 src/udev-seat.c \
196 src/udev-seat.h \
197 src/evdev.c \
198 src/evdev.h \
199 src/evdev-touchpad.c \
200 src/libbacklight.c \
201 src/libbacklight.h
202
203if ENABLE_VAAPI_RECORDER
204drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
205drm_backend_la_LIBADD += $(LIBVA_LIBS)
206drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
207endif
208endif
209
210if ENABLE_WAYLAND_COMPOSITOR
211module_LTLIBRARIES += wayland-backend.la
212wayland_backend_la_LDFLAGS = -module -avoid-version
213wayland_backend_la_LIBADD = \
214 $(COMPOSITOR_LIBS) \
215 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800216 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800217wayland_backend_la_CFLAGS = \
218 $(COMPOSITOR_CFLAGS) \
219 $(EGL_CFLAGS) \
220 $(PIXMAN_CFLAGS) \
221 $(CAIRO_CFLAGS) \
222 $(WAYLAND_COMPOSITOR_CFLAGS) \
223 $(GCC_CFLAGS)
224wayland_backend_la_SOURCES = src/compositor-wayland.c
225endif
226
227if ENABLE_RPI_COMPOSITOR
228if INSTALL_RPI_COMPOSITOR
229module_LTLIBRARIES += rpi-backend.la
230else
231noinst_LTLIBRARIES += rpi-backend.la
232endif
233
234rpi_backend_la_LDFLAGS = -module -avoid-version
235rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
236 $(RPI_COMPOSITOR_LIBS) \
237 $(RPI_BCM_HOST_LIBS) \
238 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800239 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800240rpi_backend_la_CFLAGS = \
241 $(GCC_CFLAGS) \
242 $(COMPOSITOR_CFLAGS) \
243 $(RPI_COMPOSITOR_CFLAGS) \
244 $(RPI_BCM_HOST_CFLAGS)
245rpi_backend_la_SOURCES = \
246 src/compositor-rpi.c \
247 src/rpi-renderer.c \
248 src/rpi-renderer.h \
249 src/rpi-bcm-stubs.h \
250 src/udev-seat.c \
251 src/udev-seat.h \
252 src/evdev.c \
253 src/evdev.h \
254 src/evdev-touchpad.c
255
256if ENABLE_EGL
257rpi_backend_la_LIBADD += $(EGL_LIBS)
258rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
259endif
260
261endif
262
263if ENABLE_HEADLESS_COMPOSITOR
264module_LTLIBRARIES += headless-backend.la
265headless_backend_la_LDFLAGS = -module -avoid-version
266headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800267 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800268headless_backend_la_CFLAGS = \
269 $(COMPOSITOR_CFLAGS) \
270 $(GCC_CFLAGS)
271headless_backend_la_SOURCES = src/compositor-headless.c
272endif
273
274if ENABLE_FBDEV_COMPOSITOR
275module_LTLIBRARIES += fbdev-backend.la
276fbdev_backend_la_LDFLAGS = -module -avoid-version
277fbdev_backend_la_LIBADD = \
278 $(COMPOSITOR_LIBS) \
279 $(FBDEV_COMPOSITOR_LIBS) \
280 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800281 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800282fbdev_backend_la_CFLAGS = \
283 $(COMPOSITOR_CFLAGS) \
284 $(EGL_CFLAGS) \
285 $(FBDEV_COMPOSITOR_CFLAGS) \
286 $(PIXMAN_CFLAGS) \
287 $(GCC_CFLAGS)
288fbdev_backend_la_SOURCES = \
289 src/compositor-fbdev.c \
290 src/udev-seat.c \
291 src/udev-seat.h \
292 src/evdev.c \
293 src/evdev.h \
294 src/evdev-touchpad.c
295endif
296
297if ENABLE_RDP_COMPOSITOR
298module_LTLIBRARIES += rdp-backend.la
299rdp_backend_la_LDFLAGS = -module -avoid-version
300rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
301 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800302 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800303rdp_backend_la_CFLAGS = \
304 $(COMPOSITOR_CFLAGS) \
305 $(RDP_COMPOSITOR_CFLAGS) \
306 $(GCC_CFLAGS)
307rdp_backend_la_SOURCES = src/compositor-rdp.c
308endif
309
310if HAVE_LCMS
311module_LTLIBRARIES += cms-static.la
312cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800313cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800314cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
315cms_static_la_SOURCES = \
316 src/cms-static.c \
317 src/cms-helper.c \
318 src/cms-helper.h
319if ENABLE_COLORD
320module_LTLIBRARIES += cms-colord.la
321cms_colord_la_LDFLAGS = -module -avoid-version
322cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
323cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
324cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100325 src/cms-colord.c \
326 src/cms-helper.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800327 src/cms-helper.h
328endif
329endif
330
331noinst_PROGRAMS += spring-tool
332spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
333spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
334spring_tool_SOURCES = \
335 src/spring-tool.c \
336 src/animation.c \
337 shared/matrix.c \
338 shared/matrix.h \
339 src/compositor.h
340
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800341if BUILD_CLIENTS
342
343bin_PROGRAMS += weston-terminal weston-info
344
345libexec_PROGRAMS += \
346 weston-desktop-shell \
347 weston-screenshooter \
348 weston-keyboard \
349 weston-simple-im
350
351demo_clients = \
352 weston-flower \
353 weston-image \
354 weston-cliptest \
355 weston-dnd \
356 weston-smoke \
357 weston-resizor \
358 weston-eventdemo \
359 weston-clickdot \
360 weston-transformed \
361 weston-fullscreen \
362 weston-stacking \
363 weston-calibrator \
364 weston-scaler
365
366if INSTALL_DEMO_CLIENTS
367bin_PROGRAMS += $(demo_clients)
368else
369noinst_PROGRAMS += $(demo_clients)
370endif
371
372
373if BUILD_SIMPLE_CLIENTS
374demo_clients += \
375 weston-simple-shm \
376 weston-simple-touch \
377 weston-multi-resource
378
379weston_simple_shm_SOURCES = \
380 clients/simple-shm.c \
381 shared/os-compatibility.c \
382 shared/os-compatibility.h
383weston_simple_shm_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
384weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS)
385
386weston_simple_touch_SOURCES = \
387 clients/simple-touch.c \
388 shared/os-compatibility.c \
389 shared/os-compatibility.h
390weston_simple_touch_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
391weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS)
392
393weston_multi_resource_SOURCES = \
394 clients/multi-resource.c \
395 shared/os-compatibility.c \
396 shared/os-compatibility.h
397weston_multi_resource_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
398weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) -lm
399endif
400
401if BUILD_SIMPLE_EGL_CLIENTS
402demo_clients += weston-simple-egl
403weston_simple_egl_SOURCES = clients/simple-egl.c
404weston_simple_egl_CPPFLAGS = $(SIMPLE_EGL_CLIENT_CFLAGS)
405weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
406endif
407
408noinst_LTLIBRARIES += libtoytoolkit.la
409
410libtoytoolkit_la_SOURCES = \
411 clients/window.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800412 clients/window.h
413
414nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100415 protocol/text-cursor-position-protocol.c \
416 protocol/text-cursor-position-client-protocol.h \
417 protocol/scaler-protocol.c \
418 protocol/scaler-client-protocol.h \
419 protocol/workspaces-protocol.c \
420 protocol/workspaces-client-protocol.h \
421 protocol/xdg-shell-protocol.c \
422 protocol/xdg-shell-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500423
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800424BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
425
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800426
427libtoytoolkit_la_LIBADD = \
428 $(CLIENT_LIBS) \
429 $(CAIRO_EGL_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800430 libshared-cairo.la -lrt -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800431libtoytoolkit_la_CFLAGS = $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
432
433weston_flower_SOURCES = clients/flower.c
434weston_flower_LDADD = libtoytoolkit.la
435weston_flower_CFLAGS = $(CLIENT_CFLAGS)
436
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100437weston_screenshooter_SOURCES = \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800438 clients/screenshot.c \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100439 shared/os-compatibility.c \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800440 shared/os-compatibility.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800441nodist_weston_screenshooter_SOURCES = \
442 protocol/screenshooter-protocol.c \
443 protocol/screenshooter-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800444weston_screenshooter_LDADD = $(CLIENT_LIBS)
445weston_screenshooter_CFLAGS = $(CLIENT_CFLAGS)
446
447weston_terminal_SOURCES = clients/terminal.c
448weston_terminal_LDADD = libtoytoolkit.la -lutil
449weston_terminal_CFLAGS = $(CLIENT_CFLAGS)
450
451weston_image_SOURCES = clients/image.c
452weston_image_LDADD = libtoytoolkit.la
453weston_image_CFLAGS = $(CLIENT_CFLAGS)
454
455weston_cliptest_SOURCES = clients/cliptest.c
456weston_cliptest_CFLAGS = $(AM_CPPFLAGS) $(CLIENT_CFLAGS)
457weston_cliptest_LDADD = libtoytoolkit.la
458
459weston_dnd_SOURCES = clients/dnd.c
460weston_dnd_LDADD = libtoytoolkit.la
461weston_dnd_CFLAGS = $(CLIENT_CFLAGS)
462
463weston_smoke_SOURCES = clients/smoke.c
464weston_smoke_LDADD = libtoytoolkit.la
465weston_smoke_CFLAGS = $(CLIENT_CFLAGS)
466
467weston_resizor_SOURCES = clients/resizor.c
468weston_resizor_LDADD = libtoytoolkit.la
469weston_resizor_CFLAGS = $(CLIENT_CFLAGS)
470
471weston_scaler_SOURCES = clients/scaler.c
472weston_scaler_LDADD = libtoytoolkit.la
473weston_scaler_CFLAGS = $(CLIENT_CFLAGS)
474
475if HAVE_CAIRO_GLESV2
476demo_clients += weston-nested weston-nested-client
477
478weston_nested_SOURCES = clients/nested.c
479weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
480weston_nested_CFLAGS = $(CLIENT_CFLAGS)
481
482weston_nested_client_SOURCES = clients/nested-client.c
483weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
484endif
485
486weston_eventdemo_SOURCES = clients/eventdemo.c
487weston_eventdemo_LDADD = libtoytoolkit.la
488weston_eventdemo_CFLAGS = $(CLIENT_CFLAGS)
489
490weston_clickdot_SOURCES = clients/clickdot.c
491weston_clickdot_LDADD = libtoytoolkit.la
492weston_clickdot_CFLAGS = $(CLIENT_CFLAGS)
493
494weston_transformed_SOURCES = clients/transformed.c
495weston_transformed_LDADD = libtoytoolkit.la
496weston_transformed_CFLAGS = $(CLIENT_CFLAGS)
497
498weston_fullscreen_SOURCES = clients/fullscreen.c
499weston_fullscreen_LDADD = libtoytoolkit.la
500weston_fullscreen_CFLAGS = $(CLIENT_CFLAGS)
501
502weston_stacking_SOURCES = clients/stacking.c
503weston_stacking_LDADD = libtoytoolkit.la
504weston_stacking_CFLAGS = $(CLIENT_CFLAGS)
505
506weston_calibrator_SOURCES = clients/calibrator.c \
507 shared/matrix.c \
508 shared/matrix.h
509weston_calibrator_LDADD = libtoytoolkit.la
510weston_calibrator_CFLAGS = $(CLIENT_CFLAGS)
511
512if BUILD_SUBSURFACES_CLIENT
513demo_clients += weston-subsurfaces
514weston_subsurfaces_SOURCES = clients/subsurfaces.c
515weston_subsurfaces_CFLAGS = $(SIMPLE_EGL_CLIENT_CFLAGS) $(CLIENT_CFLAGS)
516weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
517endif
518
519if HAVE_PANGO
520demo_clients += weston-editor
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800521weston_editor_SOURCES = clients/editor.c
522nodist_weston_editor_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100523 protocol/text-protocol.c \
524 protocol/text-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800525weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
526weston_editor_CFLAGS = $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
527endif
528
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800529weston_keyboard_SOURCES = clients/keyboard.c
530nodist_weston_keyboard_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100531 protocol/desktop-shell-client-protocol.h \
532 protocol/desktop-shell-protocol.c \
533 protocol/input-method-protocol.c \
534 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800535weston_keyboard_LDADD = libtoytoolkit.la
536weston_keyboard_CFLAGS = $(CLIENT_CFLAGS)
537
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800538weston_simple_im_SOURCES = clients/weston-simple-im.c
539nodist_weston_simple_im_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100540 protocol/input-method-protocol.c \
541 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800542weston_simple_im_LDADD = $(CLIENT_LIBS)
543weston_simple_im_CFLAGS = $(CLIENT_CFLAGS)
544
545weston_info_SOURCES = \
546 clients/weston-info.c \
547 shared/os-compatibility.c \
548 shared/os-compatibility.h
549weston_info_LDADD = $(WESTON_INFO_LIBS)
Pekka Paalanen5124b532014-02-03 13:12:34 +0200550weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800551
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800552weston_desktop_shell_SOURCES = clients/desktop-shell.c
553nodist_weston_desktop_shell_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100554 protocol/desktop-shell-client-protocol.h \
555 protocol/desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800556weston_desktop_shell_LDADD = libtoytoolkit.la
557weston_desktop_shell_CFLAGS = $(CLIENT_CFLAGS)
558
559if BUILD_FULL_GL_CLIENTS
560demo_clients += weston-gears
561weston_gears_SOURCES = clients/gears.c
562weston_gears_LDADD = libtoytoolkit.la
563weston_gears_CFLAGS = $(CLIENT_CFLAGS)
564
565if HAVE_GLU
566libexec_PROGRAMS += weston-screensaver
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100567weston_screensaver_SOURCES = \
568 clients/wscreensaver.c \
569 clients/wscreensaver.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100570 clients/wscreensaver-glue.c \
571 clients/wscreensaver-glue.h \
572 clients/glmatrix.c \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800573 clients/matrix3.xpm
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800574nodist_weston_screensaver_SOURCES = \
575 protocol/desktop-shell-client-protocol.h \
576 protocol/desktop-shell-protocol.c
577
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800578weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
579weston_screensaver_CFLAGS = $(GLU_CFLAGS) $(CLIENT_CFLAGS)
580
581endif
582
583endif
584
585endif
586
587BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100588 protocol/screenshooter-protocol.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800589 protocol/screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100590 protocol/text-cursor-position-client-protocol.h \
591 protocol/text-cursor-position-protocol.c \
592 protocol/text-protocol.c \
593 protocol/text-client-protocol.h \
594 protocol/input-method-protocol.c \
595 protocol/input-method-client-protocol.h \
596 protocol/desktop-shell-client-protocol.h \
597 protocol/desktop-shell-protocol.c \
598 protocol/scaler-client-protocol.h \
599 protocol/scaler-protocol.c \
600 protocol/workspaces-client-protocol.h \
601 protocol/workspaces-protocol.c \
602 protocol/xdg-shell-protocol.c \
603 protocol/xdg-shell-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800604
605
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800606westondatadir = $(datadir)/weston
607dist_westondata_DATA = \
608 data/wayland.svg \
609 data/wayland.png \
610 data/pattern.png \
611 data/terminal.png \
612 data/border.png \
613 data/icon_window.png \
614 data/sign_close.png \
615 data/sign_maximize.png \
616 data/sign_minimize.png
Kristian Høgsberge895f142014-01-27 21:46:30 -0800617
618
619if BUILD_WCAP_TOOLS
620bin_PROGRAMS += wcap-decode
621
622wcap_decode_SOURCES = \
623 wcap/main.c \
624 wcap/wcap-decode.c \
625 wcap/wcap-decode.h
626
627wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
628wcap_decode_LDADD = $(WCAP_LIBS)
629endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800630
631
632if ENABLE_DESKTOP_SHELL
633
634module_LTLIBRARIES += desktop-shell.la
635
636desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100637 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800638 -I$(top_srcdir)/shared \
639 -I$(top_srcdir)/src \
640 -I$(top_builddir)/src \
641 -I$(top_builddir)/desktop-shell \
642 -DDATADIR='"$(datadir)"' \
643 -DMODULEDIR='"$(moduledir)"' \
644 -DLIBEXECDIR='"$(libexecdir)"' \
645 -DIN_WESTON
646
647desktop_shell_la_LDFLAGS = -module -avoid-version
648desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800649 libshared.la
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800650desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
651desktop_shell_la_SOURCES = \
652 desktop-shell/shell.h \
653 desktop-shell/shell.c \
654 desktop-shell/exposay.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800655 desktop-shell/input-panel.c
656nodist_desktop_shell_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100657 protocol/desktop-shell-protocol.c \
658 protocol/desktop-shell-server-protocol.h \
659 protocol/xdg-shell-protocol.c \
660 protocol/xdg-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800661
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800662BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800663endif
664
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800665
666if ENABLE_XWAYLAND
667
668module_LTLIBRARIES += xwayland.la
669
670xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100671 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800672 -I$(top_srcdir)/shared \
673 -I$(top_srcdir)/src \
674 -I$(top_builddir)/src \
675 -I$(top_builddir)/xwayland \
676 -DDATADIR='"$(datadir)"' \
677 -DMODULEDIR='"$(moduledir)"' \
678 -DLIBEXECDIR='"$(libexecdir)"' \
679 -DXSERVER_PATH='"@XSERVER_PATH@"'
680
681xwayland_la_LDFLAGS = -module -avoid-version
682xwayland_la_LIBADD = \
683 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800684 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800685xwayland_la_CFLAGS = \
686 $(GCC_CFLAGS) \
687 $(COMPOSITOR_CFLAGS) \
688 $(PIXMAN_CFLAGS) \
689 $(CAIRO_CFLAGS)
690xwayland_la_SOURCES = \
691 xwayland/xwayland.h \
692 xwayland/window-manager.c \
693 xwayland/selection.c \
694 xwayland/dnd.c \
695 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800696 xwayland/hash.c \
697 xwayland/hash.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800698nodist_xwayland_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100699 protocol/xserver-protocol.c \
700 protocol/xserver-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800701
702BUILT_SOURCES += $(nodist_xwayland_la_SOURCES)
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800703endif
704
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800705
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800706#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800707# Shared utilities
708#
709
710noinst_LTLIBRARIES += libshared.la libshared-cairo.la
711
712libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
713
714libshared_la_SOURCES = \
715 shared/config-parser.c \
716 shared/option-parser.c \
717 shared/config-parser.h \
718 shared/os-compatibility.c \
719 shared/os-compatibility.h
720
721libshared_cairo_la_CFLAGS = \
722 -DDATADIR='"$(datadir)"' \
723 $(GCC_CFLAGS) \
724 $(COMPOSITOR_CFLAGS) \
725 $(PIXMAN_CFLAGS) \
726 $(CAIRO_CFLAGS) \
727 $(PNG_CFLAGS) \
728 $(WEBP_CFLAGS)
729
730libshared_cairo_la_LIBADD = \
731 $(PIXMAN_LIBS) \
732 $(CAIRO_LIBS) \
733 $(PNG_LIBS) \
734 $(WEBP_LIBS) \
735 $(JPEG_LIBS)
736
737libshared_cairo_la_SOURCES = \
738 $(libshared_la_SOURCES) \
739 shared/image-loader.c \
740 shared/image-loader.h \
741 shared/cairo-util.c \
742 shared/frame.c \
743 shared/cairo-util.h
744
745
746#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800747# tests subdirectory
748#
749
750TESTS = $(shared_tests) $(module_tests) $(weston_tests)
751
752shared_tests = \
753 config-parser.test \
754 vertex-clip.test
755
756module_tests = \
757 surface-test.la \
758 surface-global-test.la
759
760weston_tests = \
761 bad_buffer.weston \
762 keyboard.weston \
763 event.weston \
764 button.weston \
765 text.weston \
766 subsurface.weston
767
768
769AM_TESTS_ENVIRONMENT = \
770 abs_builddir='$(abs_builddir)'; export abs_builddir;
771
772TEST_EXTENSIONS = .la .weston
773LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
774WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
775
776clean-local:
777 -rm -rf tests/logs
778
779# To remove when automake 1.11 support is dropped
780export abs_builddir
781
782noinst_LTLIBRARIES += \
783 weston-test.la \
784 $(module_tests) \
785 libtest-runner.la \
786 libtest-client.la
787
788noinst_PROGRAMS += \
789 $(setbacklight) \
790 $(shared_tests) \
791 $(weston_tests) \
792 matrix-test
793
794test_module_ldflags = \
795 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
796
797surface_global_test_la_SOURCES = tests/surface-global-test.c
798surface_global_test_la_LDFLAGS = $(test_module_ldflags)
799surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
800
801surface_test_la_SOURCES = tests/surface-test.c
802surface_test_la_LDFLAGS = $(test_module_ldflags)
803surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
804
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800805weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800806weston_test_la_LDFLAGS = $(test_module_ldflags)
807weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800808weston_test_la_SOURCES = tests/weston-test.c
809nodist_weston_test_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100810 protocol/wayland-test-protocol.c \
811 protocol/wayland-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800812
813if ENABLE_EGL
814weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
815weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
816endif
817
818libtest_runner_la_SOURCES = \
819 tests/weston-test-runner.c \
820 tests/weston-test-runner.h
821libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
822
823config_parser_test_SOURCES = tests/config-parser-test.c
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800824config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800825
826vertex_clip_test_SOURCES = \
827 tests/vertex-clip-test.c \
828 src/vertex-clipping.c \
829 src/vertex-clipping.h
830vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
831
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100832libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800833 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800834 tests/weston-test-client-helper.h
835nodist_libtest_client_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100836 protocol/wayland-test-protocol.c \
837 protocol/wayland-test-client-protocol.h
Pekka Paalanencca3a062014-02-03 13:12:33 +0200838libtest_client_la_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800839libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800840
841bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Pekka Paalanencca3a062014-02-03 13:12:33 +0200842bad_buffer_weston_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800843bad_buffer_weston_LDADD = libtest-client.la
844
845keyboard_weston_SOURCES = tests/keyboard-test.c
Pekka Paalanencca3a062014-02-03 13:12:33 +0200846keyboard_weston_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800847keyboard_weston_LDADD = libtest-client.la
848
849event_weston_SOURCES = tests/event-test.c
Pekka Paalanencca3a062014-02-03 13:12:33 +0200850event_weston_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800851event_weston_LDADD = libtest-client.la
852
853button_weston_SOURCES = tests/button-test.c
Pekka Paalanencca3a062014-02-03 13:12:33 +0200854button_weston_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800855button_weston_LDADD = libtest-client.la
856
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800857text_weston_SOURCES = tests/text-test.c
858nodist_text_weston_SOURCES = \
859 protocol/text-protocol.c \
860 protocol/text-client-protocol.h
Pekka Paalanencca3a062014-02-03 13:12:33 +0200861text_weston_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800862text_weston_LDADD = libtest-client.la
863
864subsurface_weston_SOURCES = tests/subsurface-test.c
Pekka Paalanencca3a062014-02-03 13:12:33 +0200865subsurface_weston_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800866subsurface_weston_LDADD = libtest-client.la
867
868if ENABLE_EGL
869weston_tests += buffer-count.weston
870buffer_count_weston_SOURCES = tests/buffer-count-test.c
871buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
872buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
873endif
874
875if ENABLE_XWAYLAND_TEST
876weston_tests += xwayland.weston
877xwayland_weston_SOURCES = tests/xwayland-test.c
878xwayland_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
879xwayland_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
880endif
881
882matrix_test_SOURCES = \
883 tests/matrix-test.c \
884 shared/matrix.c \
885 shared/matrix.h
886matrix_test_CPPFLAGS = -DUNIT_TEST
887matrix_test_LDADD = -lm -lrt
888
889if BUILD_SETBACKLIGHT
890noinst_PROGRAMS += setbacklight
891setbacklight_SOURCES = \
892 tests/setbacklight.c \
893 src/libbacklight.c \
894 src/libbacklight.h
895setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
896setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
897endif
898
899EXTRA_DIST += tests/weston-tests-env
900
901BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100902 protocol/wayland-test-protocol.c \
903 protocol/wayland-test-server-protocol.h \
904 protocol/wayland-test-client-protocol.h \
905 protocol/text-protocol.c \
906 protocol/text-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800907
Kristian Høgsbergcd312752014-02-01 00:38:15 -0800908EXTRA_DIST += \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800909 protocol/desktop-shell.xml \
910 protocol/screenshooter.xml \
911 protocol/xserver.xml \
912 protocol/text.xml \
913 protocol/input-method.xml \
914 protocol/workspaces.xml \
915 protocol/text-cursor-position.xml \
916 protocol/wayland-test.xml \
917 protocol/xdg-shell.xml \
918 protocol/scaler.xml
919
Kristian Høgsberg68c5c102014-01-27 22:33:04 -0800920man_MANS = weston.1 weston.ini.5
921
922if ENABLE_DRM_COMPOSITOR
923man_MANS += weston-drm.7
924endif
925
926MAN_SUBSTS = \
927 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
928 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
929 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
930 -e 's|__version__|$(PACKAGE_VERSION)|g'
931
932SUFFIXES = .1 .5 .7 .man
933
934%.1 %.5 %.7 : man/%.man
935 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
936
937EXTRA_DIST += \
938 man/weston.man \
939 man/weston-drm.man \
940 man/weston.ini.man
941
942CLEANFILES += $(man_MANS)
943
944
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100945protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
946 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -0800947
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100948protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
949 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -0800950
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100951protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
952 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@