4 -DDATADIR='"$(datadir)"' \
5 -DMODULEDIR='"$(moduledir)"' \
6 -DLIBEXECDIR='"$(libexecdir)"' \
7 -DXSERVER_PATH='"@XSERVER_PATH@"' \
10 weston_LDFLAGS = -export-dynamic
11 weston_CFLAGS = $(GCC_CFLAGS)
13 $(COMPOSITOR_LIBS) $(DLOPEN_LIBS) $(XSERVER_LAUNCHER_LIBS) -lm \
14 ../shared/libconfig-parser.la
20 screenshooter-protocol.c \
21 screenshooter-server-protocol.h \
25 $(xserver_launcher_sources)
27 if ENABLE_SETUID_INSTALL
29 chown root $(DESTDIR)$(bindir)/weston
30 chmod u+s $(DESTDIR)$(bindir)/weston
33 if ENABLE_XSERVER_LAUNCHER
34 xserver_launcher_sources = \
37 xserver-server-protocol.h \
42 moduledir = @libdir@/weston
43 module_LTLIBRARIES = \
51 if ENABLE_X11_COMPOSITOR
52 x11_backend = x11-backend.la
53 x11_backend_la_LDFLAGS = -module -avoid-version
54 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
55 ../shared/libconfig-parser.la
56 x11_backend_la_CFLAGS = $(X11_COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
57 x11_backend_la_SOURCES = compositor-x11.c
60 if ENABLE_DRM_COMPOSITOR
61 drm_backend = drm-backend.la
62 drm_backend_la_LDFLAGS = -module -avoid-version
63 drm_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(DRM_COMPOSITOR_LIBS)
64 drm_backend_la_CFLAGS = $(DRM_COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
65 drm_backend_la_SOURCES = \
74 if ENABLE_WAYLAND_COMPOSITOR
75 wayland_backend = wayland-backend.la
76 wayland_backend_la_LDFLAGS = -module -avoid-version
77 wayland_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(WAYLAND_COMPOSITOR_LIBS)
78 wayland_backend_la_CFLAGS = $(WAYLAND_COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
79 wayland_backend_la_SOURCES = compositor-wayland.c
82 if ENABLE_OPENWFD_COMPOSITOR
83 openwfd_backend = openwfd-backend.la
84 openwfd_backend_la_LDFLAGS = -module -avoid-version
85 openwfd_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(OPENWFD_COMPOSITOR_LIBS)
86 openwfd_backend_la_CFLAGS = $(OPENWFD_COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
87 openwfd_backend_la_SOURCES = compositor-openwfd.c tty.c evdev.c evdev.h
90 if ENABLE_DESKTOP_SHELL
91 desktop_shell = desktop-shell.la
92 desktop_shell_la_LDFLAGS = -module -avoid-version
93 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
94 ../shared/libconfig-parser.la
95 desktop_shell_la_CFLAGS = $(GCC_CFLAGS)
96 desktop_shell_la_SOURCES = \
98 desktop-shell-protocol.c \
99 desktop-shell-server-protocol.h
102 if ENABLE_TABLET_SHELL
103 tablet_shell = tablet-shell.la
104 tablet_shell_la_LDFLAGS = -module -avoid-version
105 tablet_shell_la_LIBADD = $(COMPOSITOR_LIBS)
106 tablet_shell_la_CFLAGS = $(GCC_CFLAGS)
107 tablet_shell_la_SOURCES = \
109 tablet-shell-protocol.c \
110 tablet-shell-server-protocol.h
114 screenshooter-server-protocol.h \
115 screenshooter-protocol.c \
116 tablet-shell-protocol.c \
117 tablet-shell-server-protocol.h \
119 xserver-server-protocol.h \
120 desktop-shell-protocol.c \
121 desktop-shell-server-protocol.h
123 CLEANFILES = $(BUILT_SOURCES)
125 @wayland_scanner_rules@