tablet-shell: Add a stub tablet-shell client
[profile/ivi/weston-ivi-shell.git] / clients / Makefile.am
1 noinst_PROGRAMS = $(clients_programs)           \
2         $(poppler_programs)                     \
3         $(simple_clients_programs)
4
5 libexec_PROGRAMS = $(desktop_shell) $(tablet_shell)
6
7 if BUILD_SIMPLE_CLIENTS
8 simple_clients_programs = simple-egl simple-shm
9 simple_egl_SOURCES = simple-egl.c
10 simple_egl_LDADD = $(SIMPLE_CLIENT_LIBS) -lm
11
12 simple_shm_SOURCES = simple-shm.c
13 simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS)
14 endif
15
16 if BUILD_CLIENTS
17 clients_programs =                              \
18         gears                                   \
19         flower                                  \
20         screenshot                              \
21         terminal                                \
22         image                                   \
23         dnd                                     \
24         smoke                                   \
25         resizor                                 \
26         wscreensaver                            \
27         eventdemo
28
29 desktop_shell = wayland-desktop-shell
30 tablet_shell = wayland-tablet-shell
31
32 noinst_LIBRARIES = libtoytoolkit.a
33
34 AM_CFLAGS = $(GCC_CFLAGS)
35 AM_CPPFLAGS =                                   \
36         -DDATADIR='"$(datadir)"'                \
37         $(CLIENT_CFLAGS)
38
39 libtoytoolkit_a_SOURCES =                       \
40         window.c                                \
41         window.h                                \
42         cairo-util.c                            \
43         cairo-util.h                            \
44         config.c
45
46 toolkit_libs =                                  \
47         libtoytoolkit.a                         \
48         $(CLIENT_LIBS) -lrt -lm
49
50 gears_SOURCES = gears.c
51 gears_LDADD = $(toolkit_libs)
52
53 flower_SOURCES = flower.c
54 flower_LDADD = $(toolkit_libs)
55
56 screenshot_SOURCES = screenshot.c screenshooter-protocol.c
57 screenshot_LDADD = $(toolkit_libs)
58
59 terminal_SOURCES = terminal.c
60 terminal_LDADD = $(toolkit_libs) -lutil
61
62 image_SOURCES = image.c
63 image_LDADD = $(toolkit_libs)
64
65 dnd_SOURCES = dnd.c
66 dnd_LDADD = $(toolkit_libs)
67
68 smoke_SOURCES = smoke.c
69 smoke_LDADD = $(toolkit_libs)
70
71 resizor_SOURCES = resizor.c
72 resizor_LDADD = $(toolkit_libs)
73
74 wscreensaver_SOURCES = wscreensaver.c wscreensaver-glue.c glmatrix.c
75 wscreensaver_LDADD = $(toolkit_libs) -lGLU
76
77 eventdemo_SOURCES = eventdemo.c
78 eventdemo_LDADD = $(toolkit_libs)
79
80 wayland_desktop_shell_SOURCES =                 \
81         desktop-shell.c                         \
82         desktop-shell-client-protocol.h         \
83         desktop-shell-protocol.c
84 wayland_desktop_shell_LDADD = $(toolkit_libs)
85
86 wayland_tablet_shell_SOURCES =                  \
87         tablet-shell.c                          \
88         tablet-shell-client-protocol.h          \
89         tablet-shell-protocol.c
90 wayland_tablet_shell_LDADD = $(toolkit_libs)
91
92 BUILT_SOURCES =                                 \
93         screenshooter-client-protocol.h         \
94         screenshooter-protocol.c                \
95         desktop-shell-client-protocol.h         \
96         desktop-shell-protocol.c                \
97         tablet-shell-client-protocol.h          \
98         tablet-shell-protocol.c
99
100 CLEANFILES = $(BUILT_SOURCES)
101 endif
102
103 @wayland_scanner_rules@
104
105 if HAVE_POPPLER
106 poppler_programs = view
107 view_SOURCES = view.c
108 view_LDADD = $(toolkit_libs) $(POPPLER_LIBS)
109 view_CPPFLAGS = $(AM_CPPFLAGS) $(POPPLER_CFLAGS)
110 endif