1 bin_PROGRAMS = weston \
5 -DDATADIR='"$(datadir)"' \
6 -DMODULEDIR='"$(moduledir)"' \
7 -DLIBEXECDIR='"$(libexecdir)"'
9 weston_LDFLAGS = -export-dynamic
10 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
11 weston_LDADD = $(COMPOSITOR_LIBS) $(DLOPEN_LIBS) -lm ../shared/libshared.la
19 screenshooter-protocol.c \
20 screenshooter-server-protocol.h \
31 DIST_SUBDIRS = xwayland
34 if BUILD_WESTON_LAUNCH
35 weston_launch = weston-launch
36 weston_launch_SOURCES = weston-launch.c weston-launch.h
37 weston_launch_CFLAGS= $(GCC_CFLAGS)
38 weston_launch_CPPFLAGS = $(WESTON_LAUNCH_CFLAGS) $(SYSTEMD_LOGIN_CFLAGS) \
39 -DBINDIR='"$(bindir)"'
40 weston_launch_LDADD = $(WESTON_LAUNCH_LIBS) $(SYSTEMD_LOGIN_LIBS)
42 if ENABLE_SETUID_INSTALL
44 chown root $(DESTDIR)$(bindir)/weston-launch
45 chmod u+s $(DESTDIR)$(bindir)/weston-launch
48 else # BUILD_WESTON_LAUNCH
50 if ENABLE_SETUID_INSTALL
52 chown root $(DESTDIR)$(bindir)/weston
53 chmod u+s $(DESTDIR)$(bindir)/weston
56 endif # BUILD_WESTON_LAUNCH
58 moduledir = @libdir@/weston
59 module_LTLIBRARIES = \
67 if ENABLE_X11_COMPOSITOR
68 x11_backend = x11-backend.la
69 x11_backend_la_LDFLAGS = -module -avoid-version
70 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
71 ../shared/libshared.la
72 x11_backend_la_CFLAGS = \
73 $(COMPOSITOR_CFLAGS) \
74 $(X11_COMPOSITOR_CFLAGS) \
76 x11_backend_la_SOURCES = compositor-x11.c
79 if ENABLE_DRM_COMPOSITOR
80 drm_backend = drm-backend.la
81 drm_backend_la_LDFLAGS = -module -avoid-version
82 drm_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(DRM_COMPOSITOR_LIBS) \
83 ../shared/libshared.la
84 drm_backend_la_CFLAGS = \
85 $(COMPOSITOR_CFLAGS) \
86 $(DRM_COMPOSITOR_CFLAGS) \
88 drm_backend_la_SOURCES = \
101 if ENABLE_WAYLAND_COMPOSITOR
102 wayland_backend = wayland-backend.la
103 wayland_backend_la_LDFLAGS = -module -avoid-version
104 wayland_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(WAYLAND_COMPOSITOR_LIBS) \
105 ../shared/libshared.la
106 wayland_backend_la_CFLAGS = \
107 $(COMPOSITOR_CFLAGS) \
108 $(WAYLAND_COMPOSITOR_CFLAGS) \
110 wayland_backend_la_SOURCES = compositor-wayland.c
113 if ENABLE_OPENWFD_COMPOSITOR
114 openwfd_backend = openwfd-backend.la
115 openwfd_backend_la_LDFLAGS = -module -avoid-version
116 openwfd_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(OPENWFD_COMPOSITOR_LIBS)
117 openwfd_backend_la_CFLAGS = $(OPENWFD_COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
118 openwfd_backend_la_SOURCES = compositor-openwfd.c tty.c evdev.c evdev.h
121 if ENABLE_DESKTOP_SHELL
122 desktop_shell = desktop-shell.la
123 desktop_shell_la_LDFLAGS = -module -avoid-version
124 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
125 ../shared/libshared.la
126 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
127 desktop_shell_la_SOURCES = \
129 desktop-shell-protocol.c \
130 desktop-shell-server-protocol.h
133 if ENABLE_TABLET_SHELL
134 tablet_shell = tablet-shell.la
135 tablet_shell_la_LDFLAGS = -module -avoid-version
136 tablet_shell_la_LIBADD = $(COMPOSITOR_LIBS)
137 tablet_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
138 tablet_shell_la_SOURCES = \
140 tablet-shell-protocol.c \
141 tablet-shell-server-protocol.h
145 screenshooter-server-protocol.h \
146 screenshooter-protocol.c \
147 tablet-shell-protocol.c \
148 tablet-shell-server-protocol.h \
149 desktop-shell-protocol.c \
150 desktop-shell-server-protocol.h
152 CLEANFILES = $(BUILT_SOURCES)
154 @wayland_scanner_rules@