blob: 0cf30e6317d205a950c810e49c91730eec015b3d [file] [log] [blame]
Kristian Høgsberge895f142014-01-27 21:46:30 -08001bin_PROGRAMS =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08002moduledir = $(libdir)/weston
3module_LTLIBRARIES =
4BUILT_SOURCES =
Kristian Høgsberge895f142014-01-27 21:46:30 -08005
Kristian Høgsberg2ba10df2013-12-03 16:38:15 -08006SUBDIRS = \
7 shared \
8 src \
Kristian Høgsberg2ba10df2013-12-03 16:38:15 -08009 clients \
Kristian Høgsberg2ba10df2013-12-03 16:38:15 -080010 protocol \
11 tests \
Kristian Høgsberg2ba10df2013-12-03 16:38:15 -080012 man
Kristian Høgsberg61cfa662012-05-26 13:19:22 -040013
Kristian Høgsberg850f24c2012-02-09 09:20:44 -050014DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050015
Neil Robertse3de16e2013-11-22 16:46:00 +000016EXTRA_DIST = weston.ini.in wayland-scanner.mk
17
18weston.ini : $(srcdir)/weston.ini.in
19 $(AM_V_GEN)$(SED) \
20 -e 's|@bindir[@]|$(bindir)|g' \
21 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
22 -e 's|@libexecdir[@]|$(libexecdir)|g' \
23 $< > $@
24
25all-local : weston.ini
Kristian Høgsberg98463742013-12-16 23:12:46 -080026
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -080027CLEANFILES = weston.ini $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080028
29
30westondatadir = $(datadir)/weston
31dist_westondata_DATA = \
32 data/wayland.svg \
33 data/wayland.png \
34 data/pattern.png \
35 data/terminal.png \
36 data/border.png \
37 data/icon_window.png \
38 data/sign_close.png \
39 data/sign_maximize.png \
40 data/sign_minimize.png
Kristian Høgsberge895f142014-01-27 21:46:30 -080041
42
43if BUILD_WCAP_TOOLS
44bin_PROGRAMS += wcap-decode
45
46wcap_decode_SOURCES = \
47 wcap/main.c \
48 wcap/wcap-decode.c \
49 wcap/wcap-decode.h
50
51wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
52wcap_decode_LDADD = $(WCAP_LIBS)
53endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -080054
55
56if ENABLE_DESKTOP_SHELL
57
58module_LTLIBRARIES += desktop-shell.la
59
60desktop_shell_la_CPPFLAGS = \
61 -I$(top_srcdir)/shared \
62 -I$(top_srcdir)/src \
63 -I$(top_builddir)/src \
64 -I$(top_builddir)/desktop-shell \
65 -DDATADIR='"$(datadir)"' \
66 -DMODULEDIR='"$(moduledir)"' \
67 -DLIBEXECDIR='"$(libexecdir)"' \
68 -DIN_WESTON
69
70desktop_shell_la_LDFLAGS = -module -avoid-version
71desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
72 shared/libshared.la
73desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
74desktop_shell_la_SOURCES = \
75 desktop-shell/shell.h \
76 desktop-shell/shell.c \
77 desktop-shell/exposay.c \
78 desktop-shell/input-panel.c \
79 desktop-shell/desktop-shell-protocol.c \
80 desktop-shell/desktop-shell-server-protocol.h \
81 desktop-shell/xdg-shell-protocol.c \
82 desktop-shell/xdg-shell-server-protocol.h
83
84BUILT_SOURCES += \
85 desktop-shell/desktop-shell-protocol.c \
86 desktop-shell/desktop-shell-server-protocol.h \
87 desktop-shell/xdg-shell-protocol.c \
88 desktop-shell/xdg-shell-server-protocol.h
89endif
90
Kristian Høgsberg058bd322014-01-27 21:59:55 -080091
92if ENABLE_XWAYLAND
93
94module_LTLIBRARIES += xwayland.la
95
96xwayland_la_CPPFLAGS = \
97 -I$(top_srcdir)/shared \
98 -I$(top_srcdir)/src \
99 -I$(top_builddir)/src \
100 -I$(top_builddir)/xwayland \
101 -DDATADIR='"$(datadir)"' \
102 -DMODULEDIR='"$(moduledir)"' \
103 -DLIBEXECDIR='"$(libexecdir)"' \
104 -DXSERVER_PATH='"@XSERVER_PATH@"'
105
106xwayland_la_LDFLAGS = -module -avoid-version
107xwayland_la_LIBADD = \
108 $(XWAYLAND_LIBS) \
109 $(top_builddir)/shared/libshared-cairo.la
110xwayland_la_CFLAGS = \
111 $(GCC_CFLAGS) \
112 $(COMPOSITOR_CFLAGS) \
113 $(PIXMAN_CFLAGS) \
114 $(CAIRO_CFLAGS)
115xwayland_la_SOURCES = \
116 xwayland/xwayland.h \
117 xwayland/window-manager.c \
118 xwayland/selection.c \
119 xwayland/dnd.c \
120 xwayland/launcher.c \
121 xwayland/xserver-protocol.c \
122 xwayland/xserver-server-protocol.h \
123 xwayland/hash.c \
124 xwayland/hash.h
125
126BUILT_SOURCES += \
127 xwayland/xserver-protocol.c \
128 xwayland/xserver-server-protocol.h
129endif
130
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800131wayland_protocoldir = $(top_srcdir)/protocol
132include $(top_srcdir)/wayland-scanner.mk