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