9c62355c0e6f4ef44a0427bde564fa988dea0392
[profile/ivi/weston.git] / compositor / Makefile.am
1 noinst_PROGRAMS = compositor
2
3 AM_CPPFLAGS =                                   \
4         -DDATADIR='"$(datadir)"'                \
5         -I$(top_builddir)/wayland               \
6         -I$(top_srcdir)/wayland                 \
7         $(COMPOSITOR_CFLAGS)
8
9 AM_CFLAGS = $(GCC_CFLAGS)
10
11 compositor_LDADD =                              \
12         $(COMPOSITOR_LIBS)
13
14 if ENABLE_DRM_COMPOSITOR
15 drm_compositor_sources = compositor-drm.c tty.c evdev.c
16 endif
17
18 if ENABLE_X11_COMPOSITOR
19 x11_compositor_sources = compositor-x11.c
20 endif
21
22 if ENABLE_WAYLAND_COMPOSITOR
23 wayland_compositor_sources = compositor-wayland.c
24 endif
25
26 if ENABLE_OPENWFD_COMPOSITOR
27 openwfd_compositor_sources = compositor-openwfd.c
28 AM_CPPFLAGS += $(OPENWFD_CFLAGS)
29 compositor_LDADD += $(OPENWFD_LIBS)
30 endif
31
32 compositor_SOURCES =                            \
33         compositor.c                            \
34         compositor.h                            \
35         shell.c                                 \
36         switcher.c                              \
37         screenshooter.c                         \
38         screenshooter-protocol.c                \
39         screenshooter-server-protocol.h         \
40         shm.c                                   \
41         $(drm_compositor_sources)               \
42         $(openwfd_compositor_sources)           \
43         $(x11_compositor_sources)               \
44         $(wayland_compositor_sources)
45
46 udevrulesddir = $(sysconfdir)/udev/rules.d
47
48 dist_udevrulesd_DATA =                          \
49         70-wayland.rules
50
51 BUILT_SOURCES =                                 \
52         screenshooter-server-protocol.h         \
53         screenshooter-protocol.c
54
55 CLEANFILES = $(BUILT_SOURCES)
56
57 @wayland_scanner_rules@