build: Move desktop-shell/Makefile.am into toplevel Makefile.am
[platform/upstream/weston.git] / Makefile.am
1 if ENABLE_XWAYLAND
2 xwayland_subdir = xwayland
3 endif
4
5 bin_PROGRAMS =
6 moduledir = $(libdir)/weston
7 module_LTLIBRARIES =
8 BUILT_SOURCES =
9
10 SUBDIRS =                                       \
11         shared                                  \
12         src                                     \
13         $(xwayland_subdir)                      \
14         clients                                 \
15         protocol                                \
16         tests                                   \
17         man
18
19 DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
20
21 EXTRA_DIST = weston.ini.in wayland-scanner.mk
22
23 weston.ini : $(srcdir)/weston.ini.in
24         $(AM_V_GEN)$(SED) \
25                 -e 's|@bindir[@]|$(bindir)|g' \
26                 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
27                 -e 's|@libexecdir[@]|$(libexecdir)|g' \
28                 $< > $@
29
30 all-local : weston.ini
31
32 CLEANFILES = weston.ini $(BUILT_SOURCES)
33
34
35 westondatadir = $(datadir)/weston
36 dist_westondata_DATA =                          \
37         data/wayland.svg                        \
38         data/wayland.png                        \
39         data/pattern.png                        \
40         data/terminal.png                       \
41         data/border.png                         \
42         data/icon_window.png                    \
43         data/sign_close.png                     \
44         data/sign_maximize.png                  \
45         data/sign_minimize.png
46
47
48 if BUILD_WCAP_TOOLS
49 bin_PROGRAMS += wcap-decode
50
51 wcap_decode_SOURCES =                           \
52         wcap/main.c                             \
53         wcap/wcap-decode.c                      \
54         wcap/wcap-decode.h
55
56 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
57 wcap_decode_LDADD = $(WCAP_LIBS)
58 endif
59
60
61 if ENABLE_DESKTOP_SHELL
62
63 module_LTLIBRARIES += desktop-shell.la
64
65 desktop_shell_la_CPPFLAGS =                     \
66         -I$(top_srcdir)/shared                  \
67         -I$(top_srcdir)/src                     \
68         -I$(top_builddir)/src                   \
69         -I$(top_builddir)/desktop-shell         \
70         -DDATADIR='"$(datadir)"'                \
71         -DMODULEDIR='"$(moduledir)"'            \
72         -DLIBEXECDIR='"$(libexecdir)"'          \
73         -DIN_WESTON
74
75 desktop_shell_la_LDFLAGS = -module -avoid-version
76 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS)    \
77         shared/libshared.la
78 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
79 desktop_shell_la_SOURCES =                              \
80         desktop-shell/shell.h                           \
81         desktop-shell/shell.c                           \
82         desktop-shell/exposay.c                         \
83         desktop-shell/input-panel.c                     \
84         desktop-shell/desktop-shell-protocol.c          \
85         desktop-shell/desktop-shell-server-protocol.h   \
86         desktop-shell/xdg-shell-protocol.c              \
87         desktop-shell/xdg-shell-server-protocol.h
88
89 BUILT_SOURCES +=                                        \
90         desktop-shell/desktop-shell-protocol.c          \
91         desktop-shell/desktop-shell-server-protocol.h   \
92         desktop-shell/xdg-shell-protocol.c              \
93         desktop-shell/xdg-shell-server-protocol.h
94 endif
95
96 wayland_protocoldir = $(top_srcdir)/protocol
97 include $(top_srcdir)/wayland-scanner.mk