blob: 4991c947a2ce1a8e2ab1e5a74cc4afef53a7f91d [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)')\"" > $@
Kristian Høgsberg1d2dd072014-02-03 10:55:51 -0800116else
117src/git-version.h :
118 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
119
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800120endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800121
122.FORCE :
123
124if BUILD_WESTON_LAUNCH
125bin_PROGRAMS += weston-launch
126weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
127weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
128weston_launch_CFLAGS= \
129 $(GCC_CFLAGS) \
130 $(PAM_CFLAGS) \
131 $(SYSTEMD_LOGIN_CFLAGS) \
132 $(LIBDRM_CFLAGS)
133weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
134
135if ENABLE_SETUID_INSTALL
136install-exec-hook:
137 chown root $(DESTDIR)$(bindir)/weston-launch
138 chmod u+s $(DESTDIR)$(bindir)/weston-launch
139endif
140
141endif # BUILD_WESTON_LAUNCH
142
143pkgconfigdir = $(libdir)/pkgconfig
144pkgconfig_DATA = src/weston.pc
145
146westonincludedir = $(includedir)/weston
147westoninclude_HEADERS = \
148 src/version.h \
149 src/compositor.h \
150 shared/matrix.h \
151 shared/config-parser.h \
152 shared/zalloc.h
153
154if ENABLE_EGL
155module_LTLIBRARIES += gl-renderer.la
156gl_renderer_la_LDFLAGS = -module -avoid-version
157gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
158gl_renderer_la_CFLAGS = \
159 $(COMPOSITOR_CFLAGS) \
160 $(EGL_CFLAGS) \
161 $(GCC_CFLAGS)
162gl_renderer_la_SOURCES = \
163 src/gl-renderer.h \
164 src/gl-renderer.c \
165 src/vertex-clipping.c \
166 src/vertex-clipping.h
167endif
168
169if ENABLE_X11_COMPOSITOR
170module_LTLIBRARIES += x11-backend.la
171x11_backend_la_LDFLAGS = -module -avoid-version
172x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800173 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800174x11_backend_la_CFLAGS = \
175 $(COMPOSITOR_CFLAGS) \
176 $(EGL_CFLAGS) \
177 $(PIXMAN_CFLAGS) \
178 $(CAIRO_CFLAGS) \
179 $(X11_COMPOSITOR_CFLAGS) \
180 $(GCC_CFLAGS)
181x11_backend_la_SOURCES = src/compositor-x11.c
182endif
183
184if ENABLE_DRM_COMPOSITOR
185module_LTLIBRARIES += drm-backend.la
186drm_backend_la_LDFLAGS = -module -avoid-version
187drm_backend_la_LIBADD = \
188 $(COMPOSITOR_LIBS) \
189 $(DRM_COMPOSITOR_LIBS) \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100190 libshared.la -lrt \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800191 libsession-helper.la
192drm_backend_la_CFLAGS = \
193 $(COMPOSITOR_CFLAGS) \
194 $(EGL_CFLAGS) \
195 $(DRM_COMPOSITOR_CFLAGS) \
196 $(GCC_CFLAGS)
197drm_backend_la_SOURCES = \
198 src/compositor-drm.c \
199 src/udev-seat.c \
200 src/udev-seat.h \
201 src/evdev.c \
202 src/evdev.h \
203 src/evdev-touchpad.c \
204 src/libbacklight.c \
205 src/libbacklight.h
206
207if ENABLE_VAAPI_RECORDER
208drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
209drm_backend_la_LIBADD += $(LIBVA_LIBS)
210drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
211endif
212endif
213
214if ENABLE_WAYLAND_COMPOSITOR
215module_LTLIBRARIES += wayland-backend.la
216wayland_backend_la_LDFLAGS = -module -avoid-version
217wayland_backend_la_LIBADD = \
218 $(COMPOSITOR_LIBS) \
219 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800220 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800221wayland_backend_la_CFLAGS = \
222 $(COMPOSITOR_CFLAGS) \
223 $(EGL_CFLAGS) \
224 $(PIXMAN_CFLAGS) \
225 $(CAIRO_CFLAGS) \
226 $(WAYLAND_COMPOSITOR_CFLAGS) \
227 $(GCC_CFLAGS)
228wayland_backend_la_SOURCES = src/compositor-wayland.c
229endif
230
231if ENABLE_RPI_COMPOSITOR
232if INSTALL_RPI_COMPOSITOR
233module_LTLIBRARIES += rpi-backend.la
234else
235noinst_LTLIBRARIES += rpi-backend.la
236endif
237
238rpi_backend_la_LDFLAGS = -module -avoid-version
239rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
240 $(RPI_COMPOSITOR_LIBS) \
241 $(RPI_BCM_HOST_LIBS) \
242 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800243 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800244rpi_backend_la_CFLAGS = \
245 $(GCC_CFLAGS) \
246 $(COMPOSITOR_CFLAGS) \
247 $(RPI_COMPOSITOR_CFLAGS) \
248 $(RPI_BCM_HOST_CFLAGS)
249rpi_backend_la_SOURCES = \
250 src/compositor-rpi.c \
251 src/rpi-renderer.c \
252 src/rpi-renderer.h \
253 src/rpi-bcm-stubs.h \
254 src/udev-seat.c \
255 src/udev-seat.h \
256 src/evdev.c \
257 src/evdev.h \
258 src/evdev-touchpad.c
259
260if ENABLE_EGL
261rpi_backend_la_LIBADD += $(EGL_LIBS)
262rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
263endif
264
265endif
266
267if ENABLE_HEADLESS_COMPOSITOR
268module_LTLIBRARIES += headless-backend.la
269headless_backend_la_LDFLAGS = -module -avoid-version
270headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800271 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800272headless_backend_la_CFLAGS = \
273 $(COMPOSITOR_CFLAGS) \
274 $(GCC_CFLAGS)
275headless_backend_la_SOURCES = src/compositor-headless.c
276endif
277
278if ENABLE_FBDEV_COMPOSITOR
279module_LTLIBRARIES += fbdev-backend.la
280fbdev_backend_la_LDFLAGS = -module -avoid-version
281fbdev_backend_la_LIBADD = \
282 $(COMPOSITOR_LIBS) \
283 $(FBDEV_COMPOSITOR_LIBS) \
284 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800285 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800286fbdev_backend_la_CFLAGS = \
287 $(COMPOSITOR_CFLAGS) \
288 $(EGL_CFLAGS) \
289 $(FBDEV_COMPOSITOR_CFLAGS) \
290 $(PIXMAN_CFLAGS) \
291 $(GCC_CFLAGS)
292fbdev_backend_la_SOURCES = \
293 src/compositor-fbdev.c \
294 src/udev-seat.c \
295 src/udev-seat.h \
296 src/evdev.c \
297 src/evdev.h \
298 src/evdev-touchpad.c
299endif
300
301if ENABLE_RDP_COMPOSITOR
302module_LTLIBRARIES += rdp-backend.la
303rdp_backend_la_LDFLAGS = -module -avoid-version
304rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
305 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800306 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800307rdp_backend_la_CFLAGS = \
308 $(COMPOSITOR_CFLAGS) \
309 $(RDP_COMPOSITOR_CFLAGS) \
310 $(GCC_CFLAGS)
311rdp_backend_la_SOURCES = src/compositor-rdp.c
312endif
313
314if HAVE_LCMS
315module_LTLIBRARIES += cms-static.la
316cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800317cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800318cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
319cms_static_la_SOURCES = \
320 src/cms-static.c \
321 src/cms-helper.c \
322 src/cms-helper.h
323if ENABLE_COLORD
324module_LTLIBRARIES += cms-colord.la
325cms_colord_la_LDFLAGS = -module -avoid-version
326cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
327cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
328cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100329 src/cms-colord.c \
330 src/cms-helper.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800331 src/cms-helper.h
332endif
333endif
334
335noinst_PROGRAMS += spring-tool
336spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
337spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
338spring_tool_SOURCES = \
339 src/spring-tool.c \
340 src/animation.c \
341 shared/matrix.c \
342 shared/matrix.h \
343 src/compositor.h
344
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800345if BUILD_CLIENTS
346
347bin_PROGRAMS += weston-terminal weston-info
348
349libexec_PROGRAMS += \
350 weston-desktop-shell \
351 weston-screenshooter \
352 weston-keyboard \
353 weston-simple-im
354
355demo_clients = \
356 weston-flower \
357 weston-image \
358 weston-cliptest \
359 weston-dnd \
360 weston-smoke \
361 weston-resizor \
362 weston-eventdemo \
363 weston-clickdot \
364 weston-transformed \
365 weston-fullscreen \
366 weston-stacking \
367 weston-calibrator \
368 weston-scaler
369
370if INSTALL_DEMO_CLIENTS
371bin_PROGRAMS += $(demo_clients)
372else
373noinst_PROGRAMS += $(demo_clients)
374endif
375
376
377if BUILD_SIMPLE_CLIENTS
378demo_clients += \
379 weston-simple-shm \
380 weston-simple-touch \
381 weston-multi-resource
382
383weston_simple_shm_SOURCES = \
384 clients/simple-shm.c \
385 shared/os-compatibility.c \
386 shared/os-compatibility.h
387weston_simple_shm_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
388weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS)
389
390weston_simple_touch_SOURCES = \
391 clients/simple-touch.c \
392 shared/os-compatibility.c \
393 shared/os-compatibility.h
394weston_simple_touch_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
395weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS)
396
397weston_multi_resource_SOURCES = \
398 clients/multi-resource.c \
399 shared/os-compatibility.c \
400 shared/os-compatibility.h
401weston_multi_resource_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
402weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) -lm
403endif
404
405if BUILD_SIMPLE_EGL_CLIENTS
406demo_clients += weston-simple-egl
407weston_simple_egl_SOURCES = clients/simple-egl.c
408weston_simple_egl_CPPFLAGS = $(SIMPLE_EGL_CLIENT_CFLAGS)
409weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
410endif
411
412noinst_LTLIBRARIES += libtoytoolkit.la
413
414libtoytoolkit_la_SOURCES = \
415 clients/window.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800416 clients/window.h
417
418nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100419 protocol/text-cursor-position-protocol.c \
420 protocol/text-cursor-position-client-protocol.h \
421 protocol/scaler-protocol.c \
422 protocol/scaler-client-protocol.h \
423 protocol/workspaces-protocol.c \
424 protocol/workspaces-client-protocol.h \
425 protocol/xdg-shell-protocol.c \
426 protocol/xdg-shell-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500427
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800428BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
429
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800430
431libtoytoolkit_la_LIBADD = \
432 $(CLIENT_LIBS) \
433 $(CAIRO_EGL_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800434 libshared-cairo.la -lrt -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800435libtoytoolkit_la_CFLAGS = $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
436
437weston_flower_SOURCES = clients/flower.c
438weston_flower_LDADD = libtoytoolkit.la
439weston_flower_CFLAGS = $(CLIENT_CFLAGS)
440
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100441weston_screenshooter_SOURCES = \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800442 clients/screenshot.c \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100443 shared/os-compatibility.c \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800444 shared/os-compatibility.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800445nodist_weston_screenshooter_SOURCES = \
446 protocol/screenshooter-protocol.c \
447 protocol/screenshooter-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800448weston_screenshooter_LDADD = $(CLIENT_LIBS)
449weston_screenshooter_CFLAGS = $(CLIENT_CFLAGS)
450
451weston_terminal_SOURCES = clients/terminal.c
452weston_terminal_LDADD = libtoytoolkit.la -lutil
453weston_terminal_CFLAGS = $(CLIENT_CFLAGS)
454
455weston_image_SOURCES = clients/image.c
456weston_image_LDADD = libtoytoolkit.la
457weston_image_CFLAGS = $(CLIENT_CFLAGS)
458
459weston_cliptest_SOURCES = clients/cliptest.c
460weston_cliptest_CFLAGS = $(AM_CPPFLAGS) $(CLIENT_CFLAGS)
461weston_cliptest_LDADD = libtoytoolkit.la
462
463weston_dnd_SOURCES = clients/dnd.c
464weston_dnd_LDADD = libtoytoolkit.la
465weston_dnd_CFLAGS = $(CLIENT_CFLAGS)
466
467weston_smoke_SOURCES = clients/smoke.c
468weston_smoke_LDADD = libtoytoolkit.la
469weston_smoke_CFLAGS = $(CLIENT_CFLAGS)
470
471weston_resizor_SOURCES = clients/resizor.c
472weston_resizor_LDADD = libtoytoolkit.la
473weston_resizor_CFLAGS = $(CLIENT_CFLAGS)
474
475weston_scaler_SOURCES = clients/scaler.c
476weston_scaler_LDADD = libtoytoolkit.la
477weston_scaler_CFLAGS = $(CLIENT_CFLAGS)
478
479if HAVE_CAIRO_GLESV2
480demo_clients += weston-nested weston-nested-client
481
482weston_nested_SOURCES = clients/nested.c
483weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
484weston_nested_CFLAGS = $(CLIENT_CFLAGS)
485
486weston_nested_client_SOURCES = clients/nested-client.c
487weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
488endif
489
490weston_eventdemo_SOURCES = clients/eventdemo.c
491weston_eventdemo_LDADD = libtoytoolkit.la
492weston_eventdemo_CFLAGS = $(CLIENT_CFLAGS)
493
494weston_clickdot_SOURCES = clients/clickdot.c
495weston_clickdot_LDADD = libtoytoolkit.la
496weston_clickdot_CFLAGS = $(CLIENT_CFLAGS)
497
498weston_transformed_SOURCES = clients/transformed.c
499weston_transformed_LDADD = libtoytoolkit.la
500weston_transformed_CFLAGS = $(CLIENT_CFLAGS)
501
502weston_fullscreen_SOURCES = clients/fullscreen.c
503weston_fullscreen_LDADD = libtoytoolkit.la
504weston_fullscreen_CFLAGS = $(CLIENT_CFLAGS)
505
506weston_stacking_SOURCES = clients/stacking.c
507weston_stacking_LDADD = libtoytoolkit.la
508weston_stacking_CFLAGS = $(CLIENT_CFLAGS)
509
510weston_calibrator_SOURCES = clients/calibrator.c \
511 shared/matrix.c \
512 shared/matrix.h
513weston_calibrator_LDADD = libtoytoolkit.la
514weston_calibrator_CFLAGS = $(CLIENT_CFLAGS)
515
516if BUILD_SUBSURFACES_CLIENT
517demo_clients += weston-subsurfaces
518weston_subsurfaces_SOURCES = clients/subsurfaces.c
519weston_subsurfaces_CFLAGS = $(SIMPLE_EGL_CLIENT_CFLAGS) $(CLIENT_CFLAGS)
520weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
521endif
522
523if HAVE_PANGO
524demo_clients += weston-editor
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800525weston_editor_SOURCES = clients/editor.c
526nodist_weston_editor_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100527 protocol/text-protocol.c \
528 protocol/text-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800529weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
530weston_editor_CFLAGS = $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
531endif
532
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800533weston_keyboard_SOURCES = clients/keyboard.c
534nodist_weston_keyboard_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100535 protocol/desktop-shell-client-protocol.h \
536 protocol/desktop-shell-protocol.c \
537 protocol/input-method-protocol.c \
538 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800539weston_keyboard_LDADD = libtoytoolkit.la
540weston_keyboard_CFLAGS = $(CLIENT_CFLAGS)
541
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800542weston_simple_im_SOURCES = clients/weston-simple-im.c
543nodist_weston_simple_im_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100544 protocol/input-method-protocol.c \
545 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800546weston_simple_im_LDADD = $(CLIENT_LIBS)
547weston_simple_im_CFLAGS = $(CLIENT_CFLAGS)
548
549weston_info_SOURCES = \
550 clients/weston-info.c \
551 shared/os-compatibility.c \
552 shared/os-compatibility.h
553weston_info_LDADD = $(WESTON_INFO_LIBS)
Pekka Paalanen5124b532014-02-03 13:12:34 +0200554weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800555
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800556weston_desktop_shell_SOURCES = clients/desktop-shell.c
557nodist_weston_desktop_shell_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100558 protocol/desktop-shell-client-protocol.h \
559 protocol/desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800560weston_desktop_shell_LDADD = libtoytoolkit.la
561weston_desktop_shell_CFLAGS = $(CLIENT_CFLAGS)
562
563if BUILD_FULL_GL_CLIENTS
564demo_clients += weston-gears
565weston_gears_SOURCES = clients/gears.c
566weston_gears_LDADD = libtoytoolkit.la
567weston_gears_CFLAGS = $(CLIENT_CFLAGS)
568
569if HAVE_GLU
570libexec_PROGRAMS += weston-screensaver
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100571weston_screensaver_SOURCES = \
572 clients/wscreensaver.c \
573 clients/wscreensaver.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100574 clients/wscreensaver-glue.c \
575 clients/wscreensaver-glue.h \
576 clients/glmatrix.c \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800577 clients/matrix3.xpm
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800578nodist_weston_screensaver_SOURCES = \
579 protocol/desktop-shell-client-protocol.h \
580 protocol/desktop-shell-protocol.c
581
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800582weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
583weston_screensaver_CFLAGS = $(GLU_CFLAGS) $(CLIENT_CFLAGS)
584
585endif
586
587endif
588
589endif
590
591BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100592 protocol/screenshooter-protocol.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800593 protocol/screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100594 protocol/text-cursor-position-client-protocol.h \
595 protocol/text-cursor-position-protocol.c \
596 protocol/text-protocol.c \
597 protocol/text-client-protocol.h \
598 protocol/input-method-protocol.c \
599 protocol/input-method-client-protocol.h \
600 protocol/desktop-shell-client-protocol.h \
601 protocol/desktop-shell-protocol.c \
602 protocol/scaler-client-protocol.h \
603 protocol/scaler-protocol.c \
604 protocol/workspaces-client-protocol.h \
605 protocol/workspaces-protocol.c \
606 protocol/xdg-shell-protocol.c \
607 protocol/xdg-shell-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800608
609
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800610westondatadir = $(datadir)/weston
611dist_westondata_DATA = \
612 data/wayland.svg \
613 data/wayland.png \
614 data/pattern.png \
615 data/terminal.png \
616 data/border.png \
617 data/icon_window.png \
618 data/sign_close.png \
619 data/sign_maximize.png \
620 data/sign_minimize.png
Kristian Høgsberge895f142014-01-27 21:46:30 -0800621
622
623if BUILD_WCAP_TOOLS
624bin_PROGRAMS += wcap-decode
625
626wcap_decode_SOURCES = \
627 wcap/main.c \
628 wcap/wcap-decode.c \
629 wcap/wcap-decode.h
630
631wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
632wcap_decode_LDADD = $(WCAP_LIBS)
633endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800634
635
636if ENABLE_DESKTOP_SHELL
637
638module_LTLIBRARIES += desktop-shell.la
639
640desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100641 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800642 -I$(top_srcdir)/shared \
643 -I$(top_srcdir)/src \
644 -I$(top_builddir)/src \
645 -I$(top_builddir)/desktop-shell \
646 -DDATADIR='"$(datadir)"' \
647 -DMODULEDIR='"$(moduledir)"' \
648 -DLIBEXECDIR='"$(libexecdir)"' \
649 -DIN_WESTON
650
651desktop_shell_la_LDFLAGS = -module -avoid-version
652desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800653 libshared.la
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800654desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
655desktop_shell_la_SOURCES = \
656 desktop-shell/shell.h \
657 desktop-shell/shell.c \
658 desktop-shell/exposay.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800659 desktop-shell/input-panel.c
660nodist_desktop_shell_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100661 protocol/desktop-shell-protocol.c \
662 protocol/desktop-shell-server-protocol.h \
663 protocol/xdg-shell-protocol.c \
664 protocol/xdg-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800665
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800666BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800667endif
668
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800669
670if ENABLE_XWAYLAND
671
672module_LTLIBRARIES += xwayland.la
673
674xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100675 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800676 -I$(top_srcdir)/shared \
677 -I$(top_srcdir)/src \
678 -I$(top_builddir)/src \
679 -I$(top_builddir)/xwayland \
680 -DDATADIR='"$(datadir)"' \
681 -DMODULEDIR='"$(moduledir)"' \
682 -DLIBEXECDIR='"$(libexecdir)"' \
683 -DXSERVER_PATH='"@XSERVER_PATH@"'
684
685xwayland_la_LDFLAGS = -module -avoid-version
686xwayland_la_LIBADD = \
687 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800688 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800689xwayland_la_CFLAGS = \
690 $(GCC_CFLAGS) \
691 $(COMPOSITOR_CFLAGS) \
692 $(PIXMAN_CFLAGS) \
693 $(CAIRO_CFLAGS)
694xwayland_la_SOURCES = \
695 xwayland/xwayland.h \
696 xwayland/window-manager.c \
697 xwayland/selection.c \
698 xwayland/dnd.c \
699 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800700 xwayland/hash.c \
701 xwayland/hash.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800702nodist_xwayland_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100703 protocol/xserver-protocol.c \
704 protocol/xserver-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800705
706BUILT_SOURCES += $(nodist_xwayland_la_SOURCES)
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800707endif
708
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800709
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800710#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800711# Shared utilities
712#
713
714noinst_LTLIBRARIES += libshared.la libshared-cairo.la
715
716libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
717
718libshared_la_SOURCES = \
719 shared/config-parser.c \
720 shared/option-parser.c \
721 shared/config-parser.h \
722 shared/os-compatibility.c \
723 shared/os-compatibility.h
724
725libshared_cairo_la_CFLAGS = \
726 -DDATADIR='"$(datadir)"' \
727 $(GCC_CFLAGS) \
728 $(COMPOSITOR_CFLAGS) \
729 $(PIXMAN_CFLAGS) \
730 $(CAIRO_CFLAGS) \
731 $(PNG_CFLAGS) \
732 $(WEBP_CFLAGS)
733
734libshared_cairo_la_LIBADD = \
735 $(PIXMAN_LIBS) \
736 $(CAIRO_LIBS) \
737 $(PNG_LIBS) \
738 $(WEBP_LIBS) \
739 $(JPEG_LIBS)
740
741libshared_cairo_la_SOURCES = \
742 $(libshared_la_SOURCES) \
743 shared/image-loader.c \
744 shared/image-loader.h \
745 shared/cairo-util.c \
746 shared/frame.c \
747 shared/cairo-util.h
748
749
750#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800751# tests subdirectory
752#
753
754TESTS = $(shared_tests) $(module_tests) $(weston_tests)
755
756shared_tests = \
757 config-parser.test \
758 vertex-clip.test
759
760module_tests = \
761 surface-test.la \
762 surface-global-test.la
763
764weston_tests = \
765 bad_buffer.weston \
766 keyboard.weston \
767 event.weston \
768 button.weston \
769 text.weston \
770 subsurface.weston
771
772
773AM_TESTS_ENVIRONMENT = \
774 abs_builddir='$(abs_builddir)'; export abs_builddir;
775
776TEST_EXTENSIONS = .la .weston
777LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
778WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
779
780clean-local:
781 -rm -rf tests/logs
782
783# To remove when automake 1.11 support is dropped
784export abs_builddir
785
786noinst_LTLIBRARIES += \
787 weston-test.la \
788 $(module_tests) \
789 libtest-runner.la \
790 libtest-client.la
791
792noinst_PROGRAMS += \
793 $(setbacklight) \
794 $(shared_tests) \
795 $(weston_tests) \
796 matrix-test
797
798test_module_ldflags = \
799 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
800
801surface_global_test_la_SOURCES = tests/surface-global-test.c
802surface_global_test_la_LDFLAGS = $(test_module_ldflags)
803surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
804
805surface_test_la_SOURCES = tests/surface-test.c
806surface_test_la_LDFLAGS = $(test_module_ldflags)
807surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
808
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800809weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800810weston_test_la_LDFLAGS = $(test_module_ldflags)
811weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800812weston_test_la_SOURCES = tests/weston-test.c
813nodist_weston_test_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100814 protocol/wayland-test-protocol.c \
815 protocol/wayland-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800816
817if ENABLE_EGL
818weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
819weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
820endif
821
822libtest_runner_la_SOURCES = \
823 tests/weston-test-runner.c \
824 tests/weston-test-runner.h
825libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
826
827config_parser_test_SOURCES = tests/config-parser-test.c
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800828config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800829
830vertex_clip_test_SOURCES = \
831 tests/vertex-clip-test.c \
832 src/vertex-clipping.c \
833 src/vertex-clipping.h
834vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
835
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100836libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800837 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800838 tests/weston-test-client-helper.h
839nodist_libtest_client_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100840 protocol/wayland-test-protocol.c \
841 protocol/wayland-test-client-protocol.h
Pekka Paalanencca3a062014-02-03 13:12:33 +0200842libtest_client_la_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800843libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800844
845bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Pekka Paalanencca3a062014-02-03 13:12:33 +0200846bad_buffer_weston_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800847bad_buffer_weston_LDADD = libtest-client.la
848
849keyboard_weston_SOURCES = tests/keyboard-test.c
Pekka Paalanencca3a062014-02-03 13:12:33 +0200850keyboard_weston_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800851keyboard_weston_LDADD = libtest-client.la
852
853event_weston_SOURCES = tests/event-test.c
Pekka Paalanencca3a062014-02-03 13:12:33 +0200854event_weston_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800855event_weston_LDADD = libtest-client.la
856
857button_weston_SOURCES = tests/button-test.c
Pekka Paalanencca3a062014-02-03 13:12:33 +0200858button_weston_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800859button_weston_LDADD = libtest-client.la
860
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800861text_weston_SOURCES = tests/text-test.c
862nodist_text_weston_SOURCES = \
863 protocol/text-protocol.c \
864 protocol/text-client-protocol.h
Pekka Paalanencca3a062014-02-03 13:12:33 +0200865text_weston_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800866text_weston_LDADD = libtest-client.la
867
868subsurface_weston_SOURCES = tests/subsurface-test.c
Pekka Paalanencca3a062014-02-03 13:12:33 +0200869subsurface_weston_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800870subsurface_weston_LDADD = libtest-client.la
871
872if ENABLE_EGL
873weston_tests += buffer-count.weston
874buffer_count_weston_SOURCES = tests/buffer-count-test.c
875buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
876buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
877endif
878
879if ENABLE_XWAYLAND_TEST
880weston_tests += xwayland.weston
881xwayland_weston_SOURCES = tests/xwayland-test.c
882xwayland_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
883xwayland_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
884endif
885
886matrix_test_SOURCES = \
887 tests/matrix-test.c \
888 shared/matrix.c \
889 shared/matrix.h
890matrix_test_CPPFLAGS = -DUNIT_TEST
891matrix_test_LDADD = -lm -lrt
892
893if BUILD_SETBACKLIGHT
894noinst_PROGRAMS += setbacklight
895setbacklight_SOURCES = \
896 tests/setbacklight.c \
897 src/libbacklight.c \
898 src/libbacklight.h
899setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
900setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
901endif
902
903EXTRA_DIST += tests/weston-tests-env
904
905BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100906 protocol/wayland-test-protocol.c \
907 protocol/wayland-test-server-protocol.h \
908 protocol/wayland-test-client-protocol.h \
909 protocol/text-protocol.c \
910 protocol/text-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800911
Kristian Høgsbergcd312752014-02-01 00:38:15 -0800912EXTRA_DIST += \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800913 protocol/desktop-shell.xml \
914 protocol/screenshooter.xml \
915 protocol/xserver.xml \
916 protocol/text.xml \
917 protocol/input-method.xml \
918 protocol/workspaces.xml \
919 protocol/text-cursor-position.xml \
920 protocol/wayland-test.xml \
921 protocol/xdg-shell.xml \
922 protocol/scaler.xml
923
Kristian Høgsberg68c5c102014-01-27 22:33:04 -0800924man_MANS = weston.1 weston.ini.5
925
926if ENABLE_DRM_COMPOSITOR
927man_MANS += weston-drm.7
928endif
929
930MAN_SUBSTS = \
931 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
932 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
933 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
934 -e 's|__version__|$(PACKAGE_VERSION)|g'
935
936SUFFIXES = .1 .5 .7 .man
937
938%.1 %.5 %.7 : man/%.man
939 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
940
941EXTRA_DIST += \
942 man/weston.man \
943 man/weston-drm.man \
944 man/weston.ini.man
945
946CLEANFILES += $(man_MANS)
947
948
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100949protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
950 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -0800951
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100952protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
953 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -0800954
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100955protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
956 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@