Thierry Reding | 0e6d9a7 | 2014-05-27 09:07:54 +0200 | [diff] [blame] | 1 | ACLOCAL_AMFLAGS = -I m4 |
| 2 | |
Kristian Høgsberg | e895f14 | 2014-01-27 21:46:30 -0800 | [diff] [blame] | 3 | bin_PROGRAMS = |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 4 | noinst_PROGRAMS = |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 5 | libexec_PROGRAMS = |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 6 | moduledir = $(libdir)/weston |
| 7 | module_LTLIBRARIES = |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 8 | noinst_LTLIBRARIES = |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 9 | BUILT_SOURCES = |
Kristian Høgsberg | e895f14 | 2014-01-27 21:46:30 -0800 | [diff] [blame] | 10 | |
Derek Foreman | 2ef9e81 | 2015-02-09 09:57:29 -0600 | [diff] [blame] | 11 | AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install |
Kristian Høgsberg | 24639cc | 2013-02-25 13:03:15 -0500 | [diff] [blame] | 12 | |
Nobuhiko Tanibata | 45d4cbf | 2014-11-27 13:24:16 +0900 | [diff] [blame] | 13 | EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in |
Neil Roberts | e3de16e | 2013-11-22 16:46:00 +0000 | [diff] [blame] | 14 | |
| 15 | weston.ini : $(srcdir)/weston.ini.in |
| 16 | $(AM_V_GEN)$(SED) \ |
| 17 | -e 's|@bindir[@]|$(bindir)|g' \ |
| 18 | -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \ |
| 19 | -e 's|@libexecdir[@]|$(libexecdir)|g' \ |
| 20 | $< > $@ |
| 21 | |
Nobuhiko Tanibata | 45d4cbf | 2014-11-27 13:24:16 +0900 | [diff] [blame] | 22 | ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in |
| 23 | $(AM_V_GEN)$(SED) \ |
| 24 | -e 's|@bindir[@]|$(bindir)|g' \ |
| 25 | -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \ |
| 26 | -e 's|@libexecdir[@]|$(libexecdir)|g' \ |
| 27 | $< > $@ |
| 28 | |
| 29 | all-local : weston.ini ivi-shell/weston.ini |
Kristian Høgsberg | 9846374 | 2013-12-16 23:12:46 -0800 | [diff] [blame] | 30 | |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 31 | AM_CFLAGS = $(GCC_CFLAGS) |
| 32 | |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 33 | AM_CPPFLAGS = \ |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 34 | -I$(top_srcdir)/src \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 35 | -I$(top_builddir)/src \ |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 36 | -I$(top_builddir)/clients \ |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 37 | -I$(top_builddir)/tests \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 38 | -I$(top_srcdir)/shared \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 39 | -I$(top_builddir)/protocol \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 40 | -DDATADIR='"$(datadir)"' \ |
| 41 | -DMODULEDIR='"$(moduledir)"' \ |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 42 | -DLIBEXECDIR='"$(libexecdir)"' \ |
| 43 | -DBINDIR='"$(bindir)"' |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 44 | |
Nobuhiko Tanibata | 45d4cbf | 2014-11-27 13:24:16 +0900 | [diff] [blame] | 45 | CLEANFILES = weston.ini ivi-shell/weston.ini $(BUILT_SOURCES) |
Kristian Høgsberg | 5b9f9f8 | 2014-01-27 21:40:28 -0800 | [diff] [blame] | 46 | |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 47 | bin_PROGRAMS += weston |
| 48 | |
| 49 | weston_LDFLAGS = -export-dynamic |
| 50 | weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON |
| 51 | weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS) |
| 52 | weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 53 | $(DLOPEN_LIBS) -lm libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 54 | |
| 55 | weston_SOURCES = \ |
| 56 | src/git-version.h \ |
| 57 | src/log.c \ |
| 58 | src/compositor.c \ |
| 59 | src/compositor.h \ |
| 60 | src/input.c \ |
| 61 | src/data-device.c \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 62 | src/screenshooter.c \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 63 | src/clipboard.c \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 64 | src/zoom.c \ |
| 65 | src/text-backend.c \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 66 | src/bindings.c \ |
| 67 | src/animation.c \ |
| 68 | src/noop-renderer.c \ |
| 69 | src/pixman-renderer.c \ |
| 70 | src/pixman-renderer.h \ |
Pekka Paalanen | b502654 | 2014-11-12 15:09:24 +0200 | [diff] [blame] | 71 | src/timeline.c \ |
| 72 | src/timeline.h \ |
| 73 | src/timeline-object.h \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 74 | shared/matrix.c \ |
| 75 | shared/matrix.h \ |
| 76 | shared/zalloc.h \ |
Jonny Lamb | 51a7ae5 | 2015-03-20 15:26:51 +0100 | [diff] [blame^] | 77 | shared/platform.h \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 78 | src/weston-egl-ext.h |
| 79 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 80 | nodist_weston_SOURCES = \ |
| 81 | protocol/screenshooter-protocol.c \ |
| 82 | protocol/screenshooter-server-protocol.h \ |
| 83 | protocol/text-cursor-position-protocol.c \ |
| 84 | protocol/text-cursor-position-server-protocol.h \ |
| 85 | protocol/text-protocol.c \ |
| 86 | protocol/text-server-protocol.h \ |
| 87 | protocol/input-method-protocol.c \ |
| 88 | protocol/input-method-server-protocol.h \ |
| 89 | protocol/workspaces-protocol.c \ |
| 90 | protocol/workspaces-server-protocol.h \ |
Pekka Paalanen | 7e62d25 | 2014-09-23 22:08:42 -0400 | [diff] [blame] | 91 | protocol/presentation_timing-protocol.c \ |
| 92 | protocol/presentation_timing-server-protocol.h \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 93 | protocol/scaler-protocol.c \ |
| 94 | protocol/scaler-server-protocol.h |
| 95 | |
| 96 | BUILT_SOURCES += $(nodist_weston_SOURCES) |
| 97 | |
Kristian Høgsberg | 0aa19e9 | 2014-01-31 16:33:48 -0800 | [diff] [blame] | 98 | # Track this dependency explicitly instead of using BUILT_SOURCES. We |
| 99 | # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h |
| 100 | # in case we're building from tarballs. |
| 101 | |
| 102 | src/compositor.c : $(top_builddir)/src/git-version.h |
| 103 | |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 104 | noinst_LTLIBRARIES += \ |
| 105 | libsession-helper.la |
| 106 | |
| 107 | libsession_helper_la_SOURCES = \ |
| 108 | src/weston-launch.h \ |
| 109 | src/launcher-util.c \ |
| 110 | src/launcher-util.h |
| 111 | libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 112 | libsession_helper_la_LIBADD = $(LIBDRM_LIBS) |
| 113 | |
| 114 | if ENABLE_DBUS |
| 115 | if HAVE_SYSTEMD_LOGIN |
| 116 | libsession_helper_la_SOURCES += \ |
| 117 | src/dbus.h \ |
| 118 | src/dbus.c \ |
| 119 | src/logind-util.h \ |
| 120 | src/logind-util.c |
| 121 | libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS) |
| 122 | libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS) |
| 123 | endif |
| 124 | endif |
| 125 | |
Kristian Høgsberg | 0aa19e9 | 2014-01-31 16:33:48 -0800 | [diff] [blame] | 126 | if HAVE_GIT_REPO |
| 127 | src/git-version.h : $(top_srcdir)/.git/logs/HEAD |
| 128 | $(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øgsberg | 1d2dd07 | 2014-02-03 10:55:51 -0800 | [diff] [blame] | 129 | else |
| 130 | src/git-version.h : |
| 131 | $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@ |
| 132 | |
Kristian Høgsberg | 0aa19e9 | 2014-01-31 16:33:48 -0800 | [diff] [blame] | 133 | endif |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 134 | |
| 135 | .FORCE : |
| 136 | |
| 137 | if BUILD_WESTON_LAUNCH |
| 138 | bin_PROGRAMS += weston-launch |
| 139 | weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h |
| 140 | weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"' |
| 141 | weston_launch_CFLAGS= \ |
| 142 | $(GCC_CFLAGS) \ |
| 143 | $(PAM_CFLAGS) \ |
| 144 | $(SYSTEMD_LOGIN_CFLAGS) \ |
| 145 | $(LIBDRM_CFLAGS) |
| 146 | weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS) |
| 147 | |
| 148 | if ENABLE_SETUID_INSTALL |
| 149 | install-exec-hook: |
| 150 | chown root $(DESTDIR)$(bindir)/weston-launch |
| 151 | chmod u+s $(DESTDIR)$(bindir)/weston-launch |
| 152 | endif |
| 153 | |
| 154 | endif # BUILD_WESTON_LAUNCH |
| 155 | |
| 156 | pkgconfigdir = $(libdir)/pkgconfig |
| 157 | pkgconfig_DATA = src/weston.pc |
| 158 | |
Lubomir Rintel | 4f4b47a | 2014-12-28 14:20:49 +0100 | [diff] [blame] | 159 | wayland_sessiondir = $(datadir)/wayland-sessions |
| 160 | wayland_session_DATA = src/weston.desktop |
Marek Chalupa | 194ca2b | 2015-01-22 10:03:03 +0100 | [diff] [blame] | 161 | dist_wayland_session_DATA = $(wayland_session_DATA) |
Lubomir Rintel | 4f4b47a | 2014-12-28 14:20:49 +0100 | [diff] [blame] | 162 | |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 163 | westonincludedir = $(includedir)/weston |
| 164 | westoninclude_HEADERS = \ |
| 165 | src/version.h \ |
| 166 | src/compositor.h \ |
Pekka Paalanen | b502654 | 2014-11-12 15:09:24 +0200 | [diff] [blame] | 167 | src/timeline-object.h \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 168 | shared/matrix.h \ |
| 169 | shared/config-parser.h \ |
Jonny Lamb | 51a7ae5 | 2015-03-20 15:26:51 +0100 | [diff] [blame^] | 170 | shared/zalloc.h \ |
| 171 | shared/platform.h |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 172 | |
| 173 | if ENABLE_EGL |
| 174 | module_LTLIBRARIES += gl-renderer.la |
| 175 | gl_renderer_la_LDFLAGS = -module -avoid-version |
| 176 | gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS) |
| 177 | gl_renderer_la_CFLAGS = \ |
| 178 | $(COMPOSITOR_CFLAGS) \ |
| 179 | $(EGL_CFLAGS) \ |
| 180 | $(GCC_CFLAGS) |
| 181 | gl_renderer_la_SOURCES = \ |
| 182 | src/gl-renderer.h \ |
| 183 | src/gl-renderer.c \ |
| 184 | src/vertex-clipping.c \ |
| 185 | src/vertex-clipping.h |
| 186 | endif |
| 187 | |
| 188 | if ENABLE_X11_COMPOSITOR |
| 189 | module_LTLIBRARIES += x11-backend.la |
| 190 | x11_backend_la_LDFLAGS = -module -avoid-version |
| 191 | x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 192 | libshared-cairo.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 193 | x11_backend_la_CFLAGS = \ |
| 194 | $(COMPOSITOR_CFLAGS) \ |
| 195 | $(EGL_CFLAGS) \ |
| 196 | $(PIXMAN_CFLAGS) \ |
| 197 | $(CAIRO_CFLAGS) \ |
| 198 | $(X11_COMPOSITOR_CFLAGS) \ |
| 199 | $(GCC_CFLAGS) |
| 200 | x11_backend_la_SOURCES = src/compositor-x11.c |
| 201 | endif |
| 202 | |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 203 | INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS) |
Peter Hutterer | 823ad33 | 2014-11-26 07:06:31 +1000 | [diff] [blame] | 204 | INPUT_BACKEND_SOURCES = \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 205 | src/libinput-seat.c \ |
| 206 | src/libinput-seat.h \ |
| 207 | src/libinput-device.c \ |
| 208 | src/libinput-device.h |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 209 | |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 210 | if ENABLE_DRM_COMPOSITOR |
| 211 | module_LTLIBRARIES += drm-backend.la |
| 212 | drm_backend_la_LDFLAGS = -module -avoid-version |
| 213 | drm_backend_la_LIBADD = \ |
| 214 | $(COMPOSITOR_LIBS) \ |
| 215 | $(DRM_COMPOSITOR_LIBS) \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 216 | $(INPUT_BACKEND_LIBS) \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 217 | libshared.la -lrt \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 218 | libsession-helper.la |
| 219 | drm_backend_la_CFLAGS = \ |
| 220 | $(COMPOSITOR_CFLAGS) \ |
| 221 | $(EGL_CFLAGS) \ |
| 222 | $(DRM_COMPOSITOR_CFLAGS) \ |
| 223 | $(GCC_CFLAGS) |
| 224 | drm_backend_la_SOURCES = \ |
| 225 | src/compositor-drm.c \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 226 | $(INPUT_BACKEND_SOURCES) \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 227 | src/libbacklight.c \ |
| 228 | src/libbacklight.h |
| 229 | |
| 230 | if ENABLE_VAAPI_RECORDER |
| 231 | drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h |
| 232 | drm_backend_la_LIBADD += $(LIBVA_LIBS) |
| 233 | drm_backend_la_CFLAGS += $(LIBVA_CFLAGS) |
| 234 | endif |
| 235 | endif |
| 236 | |
| 237 | if ENABLE_WAYLAND_COMPOSITOR |
| 238 | module_LTLIBRARIES += wayland-backend.la |
| 239 | wayland_backend_la_LDFLAGS = -module -avoid-version |
| 240 | wayland_backend_la_LIBADD = \ |
| 241 | $(COMPOSITOR_LIBS) \ |
| 242 | $(WAYLAND_COMPOSITOR_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 243 | libshared-cairo.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 244 | wayland_backend_la_CFLAGS = \ |
| 245 | $(COMPOSITOR_CFLAGS) \ |
| 246 | $(EGL_CFLAGS) \ |
| 247 | $(PIXMAN_CFLAGS) \ |
| 248 | $(CAIRO_CFLAGS) \ |
| 249 | $(WAYLAND_COMPOSITOR_CFLAGS) \ |
| 250 | $(GCC_CFLAGS) |
| 251 | wayland_backend_la_SOURCES = src/compositor-wayland.c |
Jason Ekstrand | 53ee0dc | 2014-04-02 19:53:54 -0500 | [diff] [blame] | 252 | nodist_wayland_backend_la_SOURCES = \ |
| 253 | protocol/fullscreen-shell-protocol.c \ |
| 254 | protocol/fullscreen-shell-client-protocol.h |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 255 | endif |
| 256 | |
| 257 | if ENABLE_RPI_COMPOSITOR |
| 258 | if INSTALL_RPI_COMPOSITOR |
| 259 | module_LTLIBRARIES += rpi-backend.la |
| 260 | else |
| 261 | noinst_LTLIBRARIES += rpi-backend.la |
| 262 | endif |
| 263 | |
| 264 | rpi_backend_la_LDFLAGS = -module -avoid-version |
| 265 | rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \ |
| 266 | $(RPI_COMPOSITOR_LIBS) \ |
| 267 | $(RPI_BCM_HOST_LIBS) \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 268 | $(INPUT_BACKEND_LIBS) \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 269 | libsession-helper.la \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 270 | libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 271 | rpi_backend_la_CFLAGS = \ |
| 272 | $(GCC_CFLAGS) \ |
| 273 | $(COMPOSITOR_CFLAGS) \ |
| 274 | $(RPI_COMPOSITOR_CFLAGS) \ |
| 275 | $(RPI_BCM_HOST_CFLAGS) |
| 276 | rpi_backend_la_SOURCES = \ |
| 277 | src/compositor-rpi.c \ |
| 278 | src/rpi-renderer.c \ |
| 279 | src/rpi-renderer.h \ |
| 280 | src/rpi-bcm-stubs.h \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 281 | $(INPUT_BACKEND_SOURCES) |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 282 | |
| 283 | if ENABLE_EGL |
| 284 | rpi_backend_la_LIBADD += $(EGL_LIBS) |
| 285 | rpi_backend_la_CFLAGS += $(EGL_CFLAGS) |
| 286 | endif |
| 287 | |
| 288 | endif |
| 289 | |
| 290 | if ENABLE_HEADLESS_COMPOSITOR |
| 291 | module_LTLIBRARIES += headless-backend.la |
| 292 | headless_backend_la_LDFLAGS = -module -avoid-version |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 293 | headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
| 294 | headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS) |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 295 | headless_backend_la_SOURCES = src/compositor-headless.c |
| 296 | endif |
| 297 | |
| 298 | if ENABLE_FBDEV_COMPOSITOR |
| 299 | module_LTLIBRARIES += fbdev-backend.la |
| 300 | fbdev_backend_la_LDFLAGS = -module -avoid-version |
| 301 | fbdev_backend_la_LIBADD = \ |
| 302 | $(COMPOSITOR_LIBS) \ |
| 303 | $(FBDEV_COMPOSITOR_LIBS) \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 304 | $(INPUT_BACKEND_LIBS) \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 305 | libsession-helper.la \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 306 | libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 307 | fbdev_backend_la_CFLAGS = \ |
| 308 | $(COMPOSITOR_CFLAGS) \ |
| 309 | $(EGL_CFLAGS) \ |
| 310 | $(FBDEV_COMPOSITOR_CFLAGS) \ |
| 311 | $(PIXMAN_CFLAGS) \ |
| 312 | $(GCC_CFLAGS) |
| 313 | fbdev_backend_la_SOURCES = \ |
| 314 | src/compositor-fbdev.c \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 315 | $(INPUT_BACKEND_SOURCES) |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 316 | endif |
| 317 | |
| 318 | if ENABLE_RDP_COMPOSITOR |
| 319 | module_LTLIBRARIES += rdp-backend.la |
| 320 | rdp_backend_la_LDFLAGS = -module -avoid-version |
| 321 | rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \ |
| 322 | $(RDP_COMPOSITOR_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 323 | libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 324 | rdp_backend_la_CFLAGS = \ |
| 325 | $(COMPOSITOR_CFLAGS) \ |
| 326 | $(RDP_COMPOSITOR_CFLAGS) \ |
| 327 | $(GCC_CFLAGS) |
| 328 | rdp_backend_la_SOURCES = src/compositor-rdp.c |
| 329 | endif |
| 330 | |
| 331 | if HAVE_LCMS |
| 332 | module_LTLIBRARIES += cms-static.la |
| 333 | cms_static_la_LDFLAGS = -module -avoid-version |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 334 | cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 335 | cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS) |
| 336 | cms_static_la_SOURCES = \ |
| 337 | src/cms-static.c \ |
| 338 | src/cms-helper.c \ |
| 339 | src/cms-helper.h |
| 340 | if ENABLE_COLORD |
| 341 | module_LTLIBRARIES += cms-colord.la |
| 342 | cms_colord_la_LDFLAGS = -module -avoid-version |
| 343 | cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS) |
| 344 | cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS) |
| 345 | cms_colord_la_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 346 | src/cms-colord.c \ |
| 347 | src/cms-helper.c \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 348 | src/cms-helper.h |
| 349 | endif |
| 350 | endif |
| 351 | |
| 352 | noinst_PROGRAMS += spring-tool |
| 353 | spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 354 | spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm |
| 355 | spring_tool_SOURCES = \ |
| 356 | src/spring-tool.c \ |
| 357 | src/animation.c \ |
| 358 | shared/matrix.c \ |
| 359 | shared/matrix.h \ |
| 360 | src/compositor.h |
| 361 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 362 | if BUILD_CLIENTS |
| 363 | |
| 364 | bin_PROGRAMS += weston-terminal weston-info |
| 365 | |
| 366 | libexec_PROGRAMS += \ |
| 367 | weston-desktop-shell \ |
| 368 | weston-screenshooter \ |
| 369 | weston-keyboard \ |
| 370 | weston-simple-im |
| 371 | |
Nobuhiko Tanibata | 923bc14 | 2014-11-27 13:23:32 +0900 | [diff] [blame] | 372 | if ENABLE_IVI_SHELL |
| 373 | libexec_PROGRAMS += \ |
| 374 | weston-ivi-shell-user-interface |
| 375 | endif |
| 376 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 377 | demo_clients = \ |
| 378 | weston-flower \ |
| 379 | weston-image \ |
| 380 | weston-cliptest \ |
| 381 | weston-dnd \ |
| 382 | weston-smoke \ |
| 383 | weston-resizor \ |
| 384 | weston-eventdemo \ |
| 385 | weston-clickdot \ |
| 386 | weston-transformed \ |
| 387 | weston-fullscreen \ |
| 388 | weston-stacking \ |
| 389 | weston-calibrator \ |
| 390 | weston-scaler |
| 391 | |
| 392 | if INSTALL_DEMO_CLIENTS |
| 393 | bin_PROGRAMS += $(demo_clients) |
| 394 | else |
| 395 | noinst_PROGRAMS += $(demo_clients) |
| 396 | endif |
| 397 | |
| 398 | |
| 399 | if BUILD_SIMPLE_CLIENTS |
| 400 | demo_clients += \ |
| 401 | weston-simple-shm \ |
Jason Ekstrand | 549a53f | 2014-04-05 09:22:15 -0500 | [diff] [blame] | 402 | weston-simple-damage \ |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 403 | weston-simple-touch \ |
Pekka Paalanen | ef2b592 | 2014-09-23 22:08:49 -0400 | [diff] [blame] | 404 | weston-presentation-shm \ |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 405 | weston-multi-resource |
| 406 | |
Kristian Høgsberg | fe84a97 | 2014-02-11 14:23:19 -0800 | [diff] [blame] | 407 | weston_simple_shm_SOURCES = clients/simple-shm.c |
| 408 | nodist_weston_simple_shm_SOURCES = \ |
Kristian Høgsberg | dfaf65b | 2014-02-07 17:01:57 -0800 | [diff] [blame] | 409 | protocol/xdg-shell-protocol.c \ |
Jason Ekstrand | 428c24e | 2014-04-02 19:53:48 -0500 | [diff] [blame] | 410 | protocol/xdg-shell-client-protocol.h \ |
| 411 | protocol/fullscreen-shell-protocol.c \ |
Nobuhiko Tanibata | fba4ea3 | 2014-11-27 13:24:29 +0900 | [diff] [blame] | 412 | protocol/fullscreen-shell-client-protocol.h \ |
| 413 | protocol/ivi-application-protocol.c \ |
| 414 | protocol/ivi-application-client-protocol.h |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 415 | weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 416 | weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 417 | |
Jason Ekstrand | 549a53f | 2014-04-05 09:22:15 -0500 | [diff] [blame] | 418 | weston_simple_damage_SOURCES = clients/simple-damage.c |
| 419 | nodist_weston_simple_damage_SOURCES = \ |
| 420 | protocol/scaler-protocol.c \ |
| 421 | protocol/scaler-client-protocol.h \ |
| 422 | protocol/xdg-shell-protocol.c \ |
| 423 | protocol/xdg-shell-client-protocol.h \ |
| 424 | protocol/fullscreen-shell-protocol.c \ |
| 425 | protocol/fullscreen-shell-client-protocol.h |
| 426 | weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
| 427 | weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la |
| 428 | |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 429 | weston_simple_touch_SOURCES = clients/simple-touch.c |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 430 | weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 431 | weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 432 | |
Pekka Paalanen | ef2b592 | 2014-09-23 22:08:49 -0400 | [diff] [blame] | 433 | weston_presentation_shm_SOURCES = clients/presentation-shm.c |
| 434 | nodist_weston_presentation_shm_SOURCES = \ |
| 435 | protocol/presentation_timing-protocol.c \ |
| 436 | protocol/presentation_timing-client-protocol.h |
| 437 | weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
| 438 | weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm |
| 439 | |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 440 | weston_multi_resource_SOURCES = clients/multi-resource.c |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 441 | weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
Javier Jardón | c47931e | 2014-10-27 15:13:19 +0000 | [diff] [blame] | 442 | weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 443 | endif |
| 444 | |
| 445 | if BUILD_SIMPLE_EGL_CLIENTS |
| 446 | demo_clients += weston-simple-egl |
Kristian Høgsberg | fe84a97 | 2014-02-11 14:23:19 -0800 | [diff] [blame] | 447 | weston_simple_egl_SOURCES = clients/simple-egl.c |
| 448 | nodist_weston_simple_egl_SOURCES = \ |
Kristian Høgsberg | dfaf65b | 2014-02-07 17:01:57 -0800 | [diff] [blame] | 449 | protocol/xdg-shell-protocol.c \ |
Nobuhiko Tanibata | 4f01a0b | 2014-11-27 13:24:42 +0900 | [diff] [blame] | 450 | protocol/xdg-shell-client-protocol.h \ |
| 451 | protocol/ivi-application-protocol.c \ |
| 452 | protocol/ivi-application-client-protocol.h |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 453 | weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 454 | weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm |
| 455 | endif |
| 456 | |
| 457 | noinst_LTLIBRARIES += libtoytoolkit.la |
| 458 | |
| 459 | libtoytoolkit_la_SOURCES = \ |
| 460 | clients/window.c \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 461 | clients/window.h |
| 462 | |
| 463 | nodist_libtoytoolkit_la_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 464 | protocol/text-cursor-position-protocol.c \ |
| 465 | protocol/text-cursor-position-client-protocol.h \ |
| 466 | protocol/scaler-protocol.c \ |
| 467 | protocol/scaler-client-protocol.h \ |
| 468 | protocol/workspaces-protocol.c \ |
| 469 | protocol/workspaces-client-protocol.h \ |
Pekka Paalanen | 7e62d25 | 2014-09-23 22:08:42 -0400 | [diff] [blame] | 470 | protocol/presentation_timing-protocol.c \ |
| 471 | protocol/presentation_timing-client-protocol.h \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 472 | protocol/xdg-shell-protocol.c \ |
Nobuhiko Tanibata | bff1b4a | 2014-11-27 13:21:34 +0900 | [diff] [blame] | 473 | protocol/xdg-shell-client-protocol.h \ |
| 474 | protocol/ivi-application-protocol.c \ |
| 475 | protocol/ivi-application-client-protocol.h |
Jasper St. Pierre | 0790e39 | 2013-12-09 14:58:00 -0500 | [diff] [blame] | 476 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 477 | BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES) |
| 478 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 479 | |
| 480 | libtoytoolkit_la_LIBADD = \ |
| 481 | $(CLIENT_LIBS) \ |
| 482 | $(CAIRO_EGL_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 483 | libshared-cairo.la -lrt -lm |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 484 | libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 485 | |
| 486 | weston_flower_SOURCES = clients/flower.c |
| 487 | weston_flower_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 488 | weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 489 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 490 | weston_screenshooter_SOURCES = \ |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 491 | clients/screenshot.c |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 492 | nodist_weston_screenshooter_SOURCES = \ |
| 493 | protocol/screenshooter-protocol.c \ |
| 494 | protocol/screenshooter-client-protocol.h |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 495 | weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 496 | weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 497 | |
| 498 | weston_terminal_SOURCES = clients/terminal.c |
| 499 | weston_terminal_LDADD = libtoytoolkit.la -lutil |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 500 | weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 501 | |
| 502 | weston_image_SOURCES = clients/image.c |
| 503 | weston_image_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 504 | weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 505 | |
Pekka Paalanen | 461e93c | 2014-08-20 11:58:47 +0300 | [diff] [blame] | 506 | weston_cliptest_SOURCES = \ |
| 507 | clients/cliptest.c \ |
| 508 | src/vertex-clipping.c \ |
| 509 | src/vertex-clipping.h |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 510 | weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 511 | weston_cliptest_LDADD = libtoytoolkit.la |
| 512 | |
| 513 | weston_dnd_SOURCES = clients/dnd.c |
| 514 | weston_dnd_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 515 | weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 516 | |
| 517 | weston_smoke_SOURCES = clients/smoke.c |
| 518 | weston_smoke_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 519 | weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 520 | |
| 521 | weston_resizor_SOURCES = clients/resizor.c |
| 522 | weston_resizor_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 523 | weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 524 | |
| 525 | weston_scaler_SOURCES = clients/scaler.c |
| 526 | weston_scaler_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 527 | weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 528 | |
| 529 | if HAVE_CAIRO_GLESV2 |
| 530 | demo_clients += weston-nested weston-nested-client |
| 531 | |
| 532 | weston_nested_SOURCES = clients/nested.c |
| 533 | weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS) |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 534 | weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 535 | |
| 536 | weston_nested_client_SOURCES = clients/nested-client.c |
| 537 | weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 538 | weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 539 | endif |
| 540 | |
| 541 | weston_eventdemo_SOURCES = clients/eventdemo.c |
| 542 | weston_eventdemo_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 543 | weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 544 | |
| 545 | weston_clickdot_SOURCES = clients/clickdot.c |
| 546 | weston_clickdot_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 547 | weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 548 | |
| 549 | weston_transformed_SOURCES = clients/transformed.c |
| 550 | weston_transformed_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 551 | weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 552 | |
| 553 | weston_fullscreen_SOURCES = clients/fullscreen.c |
Jason Ekstrand | 2bb72fe | 2014-04-02 19:53:52 -0500 | [diff] [blame] | 554 | nodist_weston_fullscreen_SOURCES = \ |
| 555 | protocol/fullscreen-shell-protocol.c \ |
| 556 | protocol/fullscreen-shell-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 557 | weston_fullscreen_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 558 | weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 559 | |
| 560 | weston_stacking_SOURCES = clients/stacking.c |
| 561 | weston_stacking_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 562 | weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 563 | |
| 564 | weston_calibrator_SOURCES = clients/calibrator.c \ |
| 565 | shared/matrix.c \ |
| 566 | shared/matrix.h |
| 567 | weston_calibrator_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 568 | weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 569 | |
| 570 | if BUILD_SUBSURFACES_CLIENT |
| 571 | demo_clients += weston-subsurfaces |
| 572 | weston_subsurfaces_SOURCES = clients/subsurfaces.c |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 573 | weston_subsurfaces_CFLAGS = \ |
| 574 | $(AM_CFLAGS) \ |
| 575 | $(SIMPLE_EGL_CLIENT_CFLAGS) \ |
| 576 | $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 577 | weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm |
| 578 | endif |
| 579 | |
| 580 | if HAVE_PANGO |
| 581 | demo_clients += weston-editor |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 582 | weston_editor_SOURCES = clients/editor.c |
| 583 | nodist_weston_editor_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 584 | protocol/text-protocol.c \ |
| 585 | protocol/text-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 586 | weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS) |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 587 | weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 588 | endif |
| 589 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 590 | weston_keyboard_SOURCES = clients/keyboard.c |
| 591 | nodist_weston_keyboard_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 592 | protocol/desktop-shell-client-protocol.h \ |
| 593 | protocol/desktop-shell-protocol.c \ |
| 594 | protocol/input-method-protocol.c \ |
| 595 | protocol/input-method-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 596 | weston_keyboard_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 597 | weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 598 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 599 | weston_simple_im_SOURCES = clients/weston-simple-im.c |
| 600 | nodist_weston_simple_im_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 601 | protocol/input-method-protocol.c \ |
| 602 | protocol/input-method-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 603 | weston_simple_im_LDADD = $(CLIENT_LIBS) |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 604 | weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 605 | |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 606 | weston_info_SOURCES = clients/weston-info.c |
Pekka Paalanen | 93a6afd | 2014-09-23 22:08:44 -0400 | [diff] [blame] | 607 | nodist_weston_info_SOURCES = \ |
| 608 | protocol/presentation_timing-protocol.c \ |
| 609 | protocol/presentation_timing-client-protocol.h |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 610 | weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la |
Pekka Paalanen | 5124b53 | 2014-02-03 13:12:34 +0200 | [diff] [blame] | 611 | weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 612 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 613 | weston_desktop_shell_SOURCES = clients/desktop-shell.c |
| 614 | nodist_weston_desktop_shell_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 615 | protocol/desktop-shell-client-protocol.h \ |
| 616 | protocol/desktop-shell-protocol.c |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 617 | weston_desktop_shell_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 618 | weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 619 | |
Nobuhiko Tanibata | 923bc14 | 2014-11-27 13:23:32 +0900 | [diff] [blame] | 620 | if ENABLE_IVI_SHELL |
| 621 | weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c |
| 622 | nodist_weston_ivi_shell_user_interface_SOURCES = \ |
| 623 | protocol/ivi-hmi-controller-client-protocol.h \ |
| 624 | protocol/ivi-hmi-controller-protocol.c \ |
| 625 | protocol/ivi-application-client-protocol.h \ |
| 626 | protocol/ivi-application-protocol.c |
| 627 | weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la |
| 628 | weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
| 629 | endif |
| 630 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 631 | if BUILD_FULL_GL_CLIENTS |
| 632 | demo_clients += weston-gears |
| 633 | weston_gears_SOURCES = clients/gears.c |
| 634 | weston_gears_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 635 | weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 636 | |
| 637 | if HAVE_GLU |
| 638 | libexec_PROGRAMS += weston-screensaver |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 639 | weston_screensaver_SOURCES = \ |
| 640 | clients/wscreensaver.c \ |
| 641 | clients/wscreensaver.h \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 642 | clients/wscreensaver-glue.c \ |
| 643 | clients/wscreensaver-glue.h \ |
| 644 | clients/glmatrix.c \ |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 645 | clients/matrix3.xpm |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 646 | nodist_weston_screensaver_SOURCES = \ |
| 647 | protocol/desktop-shell-client-protocol.h \ |
| 648 | protocol/desktop-shell-protocol.c |
| 649 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 650 | weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS) |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 651 | weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 652 | |
| 653 | endif |
| 654 | |
| 655 | endif |
| 656 | |
| 657 | endif |
| 658 | |
| 659 | BUILT_SOURCES += \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 660 | protocol/screenshooter-protocol.c \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 661 | protocol/screenshooter-client-protocol.h \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 662 | protocol/text-cursor-position-client-protocol.h \ |
| 663 | protocol/text-cursor-position-protocol.c \ |
| 664 | protocol/text-protocol.c \ |
| 665 | protocol/text-client-protocol.h \ |
| 666 | protocol/input-method-protocol.c \ |
| 667 | protocol/input-method-client-protocol.h \ |
| 668 | protocol/desktop-shell-client-protocol.h \ |
| 669 | protocol/desktop-shell-protocol.c \ |
| 670 | protocol/scaler-client-protocol.h \ |
| 671 | protocol/scaler-protocol.c \ |
| 672 | protocol/workspaces-client-protocol.h \ |
| 673 | protocol/workspaces-protocol.c \ |
Jason Ekstrand | 428c24e | 2014-04-02 19:53:48 -0500 | [diff] [blame] | 674 | protocol/fullscreen-shell-protocol.c \ |
| 675 | protocol/fullscreen-shell-client-protocol.h \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 676 | protocol/xdg-shell-protocol.c \ |
Nobuhiko Tanibata | 923bc14 | 2014-11-27 13:23:32 +0900 | [diff] [blame] | 677 | protocol/xdg-shell-client-protocol.h \ |
| 678 | protocol/ivi-hmi-controller-protocol.c \ |
| 679 | protocol/ivi-hmi-controller-client-protocol.h \ |
| 680 | protocol/ivi-application-protocol.c \ |
| 681 | protocol/ivi-application-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 682 | |
Kristian Høgsberg | 5b9f9f8 | 2014-01-27 21:40:28 -0800 | [diff] [blame] | 683 | westondatadir = $(datadir)/weston |
| 684 | dist_westondata_DATA = \ |
| 685 | data/wayland.svg \ |
| 686 | data/wayland.png \ |
| 687 | data/pattern.png \ |
| 688 | data/terminal.png \ |
| 689 | data/border.png \ |
| 690 | data/icon_window.png \ |
| 691 | data/sign_close.png \ |
| 692 | data/sign_maximize.png \ |
Manuel Bachmann | d2c6892 | 2015-02-16 11:00:36 +0100 | [diff] [blame] | 693 | data/sign_minimize.png |
| 694 | |
| 695 | if ENABLE_IVI_SHELL |
| 696 | dist_westondata_DATA += \ |
Nobuhiko Tanibata | 001a543 | 2014-03-11 11:54:45 +0900 | [diff] [blame] | 697 | data/background.png \ |
| 698 | data/tiling.png \ |
| 699 | data/fullscreen.png \ |
| 700 | data/panel.png \ |
| 701 | data/random.png \ |
| 702 | data/sidebyside.png \ |
| 703 | data/home.png \ |
| 704 | data/icon_ivi_clickdot.png \ |
| 705 | data/icon_ivi_flower.png \ |
| 706 | data/icon_ivi_simple-egl.png \ |
| 707 | data/icon_ivi_simple-shm.png \ |
| 708 | data/icon_ivi_smoke.png |
Manuel Bachmann | d2c6892 | 2015-02-16 11:00:36 +0100 | [diff] [blame] | 709 | endif |
Kristian Høgsberg | e895f14 | 2014-01-27 21:46:30 -0800 | [diff] [blame] | 710 | |
| 711 | |
| 712 | if BUILD_WCAP_TOOLS |
| 713 | bin_PROGRAMS += wcap-decode |
| 714 | |
| 715 | wcap_decode_SOURCES = \ |
| 716 | wcap/main.c \ |
| 717 | wcap/wcap-decode.c \ |
| 718 | wcap/wcap-decode.h |
| 719 | |
| 720 | wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS) |
| 721 | wcap_decode_LDADD = $(WCAP_LIBS) |
| 722 | endif |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 723 | |
| 724 | |
| 725 | if ENABLE_DESKTOP_SHELL |
| 726 | |
| 727 | module_LTLIBRARIES += desktop-shell.la |
| 728 | |
| 729 | desktop_shell_la_CPPFLAGS = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 730 | -I$(top_builddir)/protocol \ |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 731 | -I$(top_srcdir)/shared \ |
| 732 | -I$(top_srcdir)/src \ |
| 733 | -I$(top_builddir)/src \ |
| 734 | -I$(top_builddir)/desktop-shell \ |
| 735 | -DDATADIR='"$(datadir)"' \ |
| 736 | -DMODULEDIR='"$(moduledir)"' \ |
| 737 | -DLIBEXECDIR='"$(libexecdir)"' \ |
| 738 | -DIN_WESTON |
| 739 | |
| 740 | desktop_shell_la_LDFLAGS = -module -avoid-version |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 741 | desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 742 | desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 743 | desktop_shell_la_SOURCES = \ |
| 744 | desktop-shell/shell.h \ |
| 745 | desktop-shell/shell.c \ |
| 746 | desktop-shell/exposay.c \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 747 | desktop-shell/input-panel.c |
| 748 | nodist_desktop_shell_la_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 749 | protocol/desktop-shell-protocol.c \ |
| 750 | protocol/desktop-shell-server-protocol.h \ |
| 751 | protocol/xdg-shell-protocol.c \ |
| 752 | protocol/xdg-shell-server-protocol.h |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 753 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 754 | BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES) |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 755 | endif |
| 756 | |
Jason Ekstrand | 946a948 | 2014-04-02 19:53:47 -0500 | [diff] [blame] | 757 | if ENABLE_FULLSCREEN_SHELL |
| 758 | |
| 759 | module_LTLIBRARIES += fullscreen-shell.la |
| 760 | |
| 761 | fullscreen_shell_la_CPPFLAGS = \ |
| 762 | -I$(top_builddir)/protocol \ |
| 763 | -I$(top_srcdir)/shared \ |
| 764 | -I$(top_srcdir)/src \ |
| 765 | -I$(top_builddir)/src \ |
| 766 | -DIN_WESTON |
| 767 | |
| 768 | fullscreen_shell_la_LDFLAGS = -module -avoid-version |
| 769 | fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS) |
| 770 | fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 771 | fullscreen_shell_la_SOURCES = \ |
| 772 | fullscreen-shell/fullscreen-shell.c |
| 773 | nodist_fullscreen_shell_la_SOURCES = \ |
| 774 | protocol/fullscreen-shell-protocol.c \ |
| 775 | protocol/fullscreen-shell-server-protocol.h |
| 776 | |
| 777 | BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES) |
| 778 | endif |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 779 | |
Nobuhiko Tanibata | 6f9df65 | 2014-11-27 13:22:00 +0900 | [diff] [blame] | 780 | if ENABLE_IVI_SHELL |
| 781 | |
| 782 | module_LTLIBRARIES += \ |
Nobuhiko Tanibata | 4f6853b | 2014-11-27 13:23:12 +0900 | [diff] [blame] | 783 | $(ivi_shell) \ |
| 784 | $(hmi_controller) |
Nobuhiko Tanibata | 6f9df65 | 2014-11-27 13:22:00 +0900 | [diff] [blame] | 785 | |
Nobuhiko Tanibata | 487adc4 | 2014-11-27 13:22:37 +0900 | [diff] [blame] | 786 | ivi_shell = ivi-shell.la |
| 787 | ivi_shell_la_LDFLAGS = -module -avoid-version |
| 788 | ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
| 789 | ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 790 | ivi_shell_la_SOURCES = \ |
Nobuhiko Tanibata | 28dc18c | 2014-12-15 13:22:31 +0900 | [diff] [blame] | 791 | ivi-shell/ivi-layout-export.h \ |
| 792 | ivi-shell/ivi-layout-private.h \ |
| 793 | ivi-shell/ivi-layout.c \ |
| 794 | ivi-shell/ivi-layout-transition.c \ |
Nobuhiko Tanibata | 487adc4 | 2014-11-27 13:22:37 +0900 | [diff] [blame] | 795 | ivi-shell/ivi-shell.h \ |
| 796 | ivi-shell/ivi-shell.c \ |
Nobuhiko Tanibata | 0038b73 | 2014-11-27 13:25:34 +0900 | [diff] [blame] | 797 | ivi-shell/input-panel-ivi.c |
Nobuhiko Tanibata | 487adc4 | 2014-11-27 13:22:37 +0900 | [diff] [blame] | 798 | nodist_ivi_shell_la_SOURCES = \ |
| 799 | protocol/ivi-application-protocol.c \ |
| 800 | protocol/ivi-application-server-protocol.h |
| 801 | |
| 802 | BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES) |
| 803 | |
Nobuhiko Tanibata | 4f6853b | 2014-11-27 13:23:12 +0900 | [diff] [blame] | 804 | hmi_controller = hmi-controller.la |
| 805 | hmi_controller_la_LDFLAGS = -module -avoid-version |
| 806 | hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
| 807 | hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 808 | hmi_controller_la_SOURCES = \ |
| 809 | ivi-shell/ivi-layout-export.h \ |
| 810 | ivi-shell/hmi-controller.c |
| 811 | nodist_hmi_controller_la_SOURCES = \ |
| 812 | protocol/ivi-hmi-controller-protocol.c \ |
| 813 | protocol/ivi-hmi-controller-server-protocol.h |
| 814 | |
| 815 | BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES) |
| 816 | |
Nobuhiko Tanibata | 6f9df65 | 2014-11-27 13:22:00 +0900 | [diff] [blame] | 817 | endif |
| 818 | |
| 819 | |
Jason Ekstrand | 47928d8 | 2014-04-02 19:54:01 -0500 | [diff] [blame] | 820 | if ENABLE_SCREEN_SHARING |
| 821 | |
| 822 | module_LTLIBRARIES += screen-share.la |
| 823 | |
| 824 | screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"' |
| 825 | screen_share_la_LDFLAGS = -module -avoid-version |
| 826 | screen_share_la_LIBADD = \ |
| 827 | $(COMPOSITOR_LIBS) \ |
| 828 | $(SCREEN_SHARE_LIBS) \ |
| 829 | libshared-cairo.la |
| 830 | screen_share_la_CFLAGS = \ |
| 831 | $(COMPOSITOR_CFLAGS) \ |
| 832 | $(SCREEN_SHARE_CFLAGS) \ |
| 833 | $(GCC_CFLAGS) |
| 834 | screen_share_la_SOURCES = \ |
| 835 | src/screen-share.c |
| 836 | nodist_screen_share_la_SOURCES = \ |
| 837 | protocol/fullscreen-shell-protocol.c \ |
| 838 | protocol/fullscreen-shell-client-protocol.h |
| 839 | |
| 840 | endif |
| 841 | |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 842 | if ENABLE_XWAYLAND |
| 843 | |
| 844 | module_LTLIBRARIES += xwayland.la |
| 845 | |
| 846 | xwayland_la_CPPFLAGS = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 847 | -I$(top_builddir)/protocol \ |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 848 | -I$(top_srcdir)/shared \ |
| 849 | -I$(top_srcdir)/src \ |
| 850 | -I$(top_builddir)/src \ |
| 851 | -I$(top_builddir)/xwayland \ |
| 852 | -DDATADIR='"$(datadir)"' \ |
| 853 | -DMODULEDIR='"$(moduledir)"' \ |
| 854 | -DLIBEXECDIR='"$(libexecdir)"' \ |
| 855 | -DXSERVER_PATH='"@XSERVER_PATH@"' |
| 856 | |
| 857 | xwayland_la_LDFLAGS = -module -avoid-version |
| 858 | xwayland_la_LIBADD = \ |
| 859 | $(XWAYLAND_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 860 | $(top_builddir)/libshared-cairo.la |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 861 | xwayland_la_CFLAGS = \ |
| 862 | $(GCC_CFLAGS) \ |
| 863 | $(COMPOSITOR_CFLAGS) \ |
| 864 | $(PIXMAN_CFLAGS) \ |
| 865 | $(CAIRO_CFLAGS) |
| 866 | xwayland_la_SOURCES = \ |
| 867 | xwayland/xwayland.h \ |
| 868 | xwayland/window-manager.c \ |
| 869 | xwayland/selection.c \ |
| 870 | xwayland/dnd.c \ |
| 871 | xwayland/launcher.c \ |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 872 | xwayland/hash.c \ |
| 873 | xwayland/hash.h |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 874 | endif |
| 875 | |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 876 | |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 877 | # |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 878 | # Shared utilities |
| 879 | # |
| 880 | |
| 881 | noinst_LTLIBRARIES += libshared.la libshared-cairo.la |
| 882 | |
| 883 | libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 884 | |
| 885 | libshared_la_SOURCES = \ |
| 886 | shared/config-parser.c \ |
| 887 | shared/option-parser.c \ |
| 888 | shared/config-parser.h \ |
Pekka Paalanen | 899b50b | 2015-02-12 12:52:21 +0200 | [diff] [blame] | 889 | shared/file-util.c \ |
| 890 | shared/file-util.h \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 891 | shared/os-compatibility.c \ |
| 892 | shared/os-compatibility.h |
| 893 | |
| 894 | libshared_cairo_la_CFLAGS = \ |
| 895 | -DDATADIR='"$(datadir)"' \ |
| 896 | $(GCC_CFLAGS) \ |
| 897 | $(COMPOSITOR_CFLAGS) \ |
| 898 | $(PIXMAN_CFLAGS) \ |
| 899 | $(CAIRO_CFLAGS) \ |
| 900 | $(PNG_CFLAGS) \ |
| 901 | $(WEBP_CFLAGS) |
| 902 | |
| 903 | libshared_cairo_la_LIBADD = \ |
| 904 | $(PIXMAN_LIBS) \ |
| 905 | $(CAIRO_LIBS) \ |
| 906 | $(PNG_LIBS) \ |
| 907 | $(WEBP_LIBS) \ |
| 908 | $(JPEG_LIBS) |
| 909 | |
| 910 | libshared_cairo_la_SOURCES = \ |
| 911 | $(libshared_la_SOURCES) \ |
| 912 | shared/image-loader.c \ |
| 913 | shared/image-loader.h \ |
| 914 | shared/cairo-util.c \ |
| 915 | shared/frame.c \ |
| 916 | shared/cairo-util.h |
| 917 | |
| 918 | |
| 919 | # |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 920 | # tests subdirectory |
| 921 | # |
| 922 | |
| 923 | TESTS = $(shared_tests) $(module_tests) $(weston_tests) |
| 924 | |
| 925 | shared_tests = \ |
| 926 | config-parser.test \ |
| 927 | vertex-clip.test |
| 928 | |
| 929 | module_tests = \ |
| 930 | surface-test.la \ |
| 931 | surface-global-test.la |
| 932 | |
| 933 | weston_tests = \ |
| 934 | bad_buffer.weston \ |
| 935 | keyboard.weston \ |
| 936 | event.weston \ |
| 937 | button.weston \ |
| 938 | text.weston \ |
Pekka Paalanen | de7f5c8 | 2014-09-23 22:08:48 -0400 | [diff] [blame] | 939 | presentation.weston \ |
Pekka Paalanen | 3c5f1c7 | 2014-10-01 16:34:48 +0300 | [diff] [blame] | 940 | roles.weston \ |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 941 | subsurface.weston |
| 942 | |
| 943 | |
| 944 | AM_TESTS_ENVIRONMENT = \ |
| 945 | abs_builddir='$(abs_builddir)'; export abs_builddir; |
| 946 | |
| 947 | TEST_EXTENSIONS = .la .weston |
| 948 | LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env |
| 949 | WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env |
| 950 | |
| 951 | clean-local: |
Pekka Paalanen | 15f8563 | 2014-05-12 10:08:57 +0300 | [diff] [blame] | 952 | -rm -rf logs |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 953 | |
| 954 | # To remove when automake 1.11 support is dropped |
| 955 | export abs_builddir |
| 956 | |
| 957 | noinst_LTLIBRARIES += \ |
| 958 | weston-test.la \ |
| 959 | $(module_tests) \ |
| 960 | libtest-runner.la \ |
| 961 | libtest-client.la |
| 962 | |
| 963 | noinst_PROGRAMS += \ |
| 964 | $(setbacklight) \ |
| 965 | $(shared_tests) \ |
| 966 | $(weston_tests) \ |
| 967 | matrix-test |
| 968 | |
| 969 | test_module_ldflags = \ |
| 970 | -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS) |
| 971 | |
| 972 | surface_global_test_la_SOURCES = tests/surface-global-test.c |
| 973 | surface_global_test_la_LDFLAGS = $(test_module_ldflags) |
| 974 | surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 975 | |
| 976 | surface_test_la_SOURCES = tests/surface-test.c |
| 977 | surface_test_la_LDFLAGS = $(test_module_ldflags) |
| 978 | surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 979 | |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 980 | weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 981 | weston_test_la_LDFLAGS = $(test_module_ldflags) |
| 982 | weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 983 | weston_test_la_SOURCES = tests/weston-test.c |
| 984 | nodist_weston_test_la_SOURCES = \ |
Derek Foreman | f6a6592 | 2015-02-24 09:32:14 -0600 | [diff] [blame] | 985 | protocol/weston-test-protocol.c \ |
| 986 | protocol/weston-test-server-protocol.h |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 987 | |
| 988 | if ENABLE_EGL |
| 989 | weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS) |
| 990 | weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS) |
| 991 | endif |
| 992 | |
| 993 | libtest_runner_la_SOURCES = \ |
| 994 | tests/weston-test-runner.c \ |
| 995 | tests/weston-test-runner.h |
| 996 | libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 997 | |
| 998 | config_parser_test_SOURCES = tests/config-parser-test.c |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 999 | config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1000 | |
| 1001 | vertex_clip_test_SOURCES = \ |
| 1002 | tests/vertex-clip-test.c \ |
| 1003 | src/vertex-clipping.c \ |
| 1004 | src/vertex-clipping.h |
| 1005 | vertex_clip_test_LDADD = libtest-runner.la -lm -lrt |
| 1006 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 1007 | libtest_client_la_SOURCES = \ |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1008 | tests/weston-test-client-helper.c \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 1009 | tests/weston-test-client-helper.h |
| 1010 | nodist_libtest_client_la_SOURCES = \ |
Derek Foreman | f6a6592 | 2015-02-24 09:32:14 -0600 | [diff] [blame] | 1011 | protocol/weston-test-protocol.c \ |
| 1012 | protocol/weston-test-client-protocol.h |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 1013 | libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 1014 | libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1015 | |
| 1016 | bad_buffer_weston_SOURCES = tests/bad-buffer-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 1017 | bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1018 | bad_buffer_weston_LDADD = libtest-client.la |
| 1019 | |
| 1020 | keyboard_weston_SOURCES = tests/keyboard-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 1021 | keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1022 | keyboard_weston_LDADD = libtest-client.la |
| 1023 | |
| 1024 | event_weston_SOURCES = tests/event-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 1025 | event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1026 | event_weston_LDADD = libtest-client.la |
| 1027 | |
| 1028 | button_weston_SOURCES = tests/button-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 1029 | button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1030 | button_weston_LDADD = libtest-client.la |
| 1031 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 1032 | text_weston_SOURCES = tests/text-test.c |
| 1033 | nodist_text_weston_SOURCES = \ |
| 1034 | protocol/text-protocol.c \ |
| 1035 | protocol/text-client-protocol.h |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 1036 | text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1037 | text_weston_LDADD = libtest-client.la |
| 1038 | |
| 1039 | subsurface_weston_SOURCES = tests/subsurface-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 1040 | subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1041 | subsurface_weston_LDADD = libtest-client.la |
| 1042 | |
Pekka Paalanen | de7f5c8 | 2014-09-23 22:08:48 -0400 | [diff] [blame] | 1043 | presentation_weston_SOURCES = tests/presentation-test.c |
| 1044 | nodist_presentation_weston_SOURCES = \ |
| 1045 | protocol/presentation_timing-protocol.c \ |
| 1046 | protocol/presentation_timing-client-protocol.h |
| 1047 | presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
| 1048 | presentation_weston_LDADD = libtest-client.la |
| 1049 | |
Pekka Paalanen | 3c5f1c7 | 2014-10-01 16:34:48 +0300 | [diff] [blame] | 1050 | roles_weston_SOURCES = tests/roles-test.c |
| 1051 | roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
| 1052 | roles_weston_LDADD = libtest-client.la |
| 1053 | |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1054 | if ENABLE_EGL |
| 1055 | weston_tests += buffer-count.weston |
| 1056 | buffer_count_weston_SOURCES = tests/buffer-count-test.c |
| 1057 | buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS) |
| 1058 | buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS) |
| 1059 | endif |
| 1060 | |
| 1061 | if ENABLE_XWAYLAND_TEST |
Pekka Paalanen | f9a2626 | 2014-05-07 16:26:29 +0300 | [diff] [blame] | 1062 | weston_tests += xwayland-test.weston |
| 1063 | xwayland_test_weston_SOURCES = tests/xwayland-test.c |
| 1064 | xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS) |
| 1065 | xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1066 | endif |
| 1067 | |
| 1068 | matrix_test_SOURCES = \ |
| 1069 | tests/matrix-test.c \ |
| 1070 | shared/matrix.c \ |
| 1071 | shared/matrix.h |
| 1072 | matrix_test_CPPFLAGS = -DUNIT_TEST |
| 1073 | matrix_test_LDADD = -lm -lrt |
| 1074 | |
| 1075 | if BUILD_SETBACKLIGHT |
| 1076 | noinst_PROGRAMS += setbacklight |
| 1077 | setbacklight_SOURCES = \ |
| 1078 | tests/setbacklight.c \ |
| 1079 | src/libbacklight.c \ |
| 1080 | src/libbacklight.h |
| 1081 | setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS) |
| 1082 | setbacklight_LDADD = $(SETBACKLIGHT_LIBS) |
| 1083 | endif |
| 1084 | |
| 1085 | EXTRA_DIST += tests/weston-tests-env |
| 1086 | |
| 1087 | BUILT_SOURCES += \ |
Derek Foreman | f6a6592 | 2015-02-24 09:32:14 -0600 | [diff] [blame] | 1088 | protocol/weston-test-protocol.c \ |
| 1089 | protocol/weston-test-server-protocol.h \ |
| 1090 | protocol/weston-test-client-protocol.h \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 1091 | protocol/text-protocol.c \ |
| 1092 | protocol/text-client-protocol.h |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1093 | |
Kristian Høgsberg | cd31275 | 2014-02-01 00:38:15 -0800 | [diff] [blame] | 1094 | EXTRA_DIST += \ |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 1095 | protocol/desktop-shell.xml \ |
| 1096 | protocol/screenshooter.xml \ |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 1097 | protocol/text.xml \ |
| 1098 | protocol/input-method.xml \ |
| 1099 | protocol/workspaces.xml \ |
| 1100 | protocol/text-cursor-position.xml \ |
Derek Foreman | f6a6592 | 2015-02-24 09:32:14 -0600 | [diff] [blame] | 1101 | protocol/weston-test.xml \ |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 1102 | protocol/xdg-shell.xml \ |
Jason Ekstrand | 27e1167 | 2014-04-02 19:53:44 -0500 | [diff] [blame] | 1103 | protocol/fullscreen-shell.xml \ |
Pekka Paalanen | 7e62d25 | 2014-09-23 22:08:42 -0400 | [diff] [blame] | 1104 | protocol/presentation_timing.xml \ |
Nobuhiko Tanibata | bff1b4a | 2014-11-27 13:21:34 +0900 | [diff] [blame] | 1105 | protocol/scaler.xml \ |
Nobuhiko Tanibata | 68cfabb | 2014-11-27 13:22:53 +0900 | [diff] [blame] | 1106 | protocol/ivi-application.xml \ |
| 1107 | protocol/ivi-hmi-controller.xml |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 1108 | |
Pekka Paalanen | 312fe5f | 2015-02-09 11:23:48 +0200 | [diff] [blame] | 1109 | # |
| 1110 | # manual test modules in tests subdirectory |
| 1111 | # |
| 1112 | |
| 1113 | noinst_LTLIBRARIES += \ |
| 1114 | surface-screenshot.la |
| 1115 | |
| 1116 | surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
| 1117 | surface_screenshot_la_LDFLAGS = $(test_module_ldflags) |
| 1118 | surface_screenshot_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 1119 | surface_screenshot_la_SOURCES = tests/surface-screenshot.c |
| 1120 | |
| 1121 | |
| 1122 | # |
| 1123 | # Documentation |
| 1124 | # |
| 1125 | |
Kristian Høgsberg | 68c5c10 | 2014-01-27 22:33:04 -0800 | [diff] [blame] | 1126 | man_MANS = weston.1 weston.ini.5 |
| 1127 | |
| 1128 | if ENABLE_DRM_COMPOSITOR |
| 1129 | man_MANS += weston-drm.7 |
| 1130 | endif |
| 1131 | |
| 1132 | MAN_SUBSTS = \ |
| 1133 | -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \ |
| 1134 | -e 's|__weston_modules_dir__|$(pkglibdir)|g' \ |
| 1135 | -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \ |
| 1136 | -e 's|__version__|$(PACKAGE_VERSION)|g' |
| 1137 | |
| 1138 | SUFFIXES = .1 .5 .7 .man |
| 1139 | |
| 1140 | %.1 %.5 %.7 : man/%.man |
| 1141 | $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ |
| 1142 | |
| 1143 | EXTRA_DIST += \ |
| 1144 | man/weston.man \ |
| 1145 | man/weston-drm.man \ |
| 1146 | man/weston.ini.man |
| 1147 | |
| 1148 | CLEANFILES += $(man_MANS) |
| 1149 | |
| 1150 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 1151 | protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml |
| 1152 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@ |
Kristian Høgsberg | 0822942 | 2014-02-01 00:33:04 -0800 | [diff] [blame] | 1153 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 1154 | protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml |
| 1155 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@ |
Kristian Høgsberg | 0822942 | 2014-02-01 00:33:04 -0800 | [diff] [blame] | 1156 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 1157 | protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml |
| 1158 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@ |