configure: Only check dependencies for the enabled compositor backends
[profile/ivi/weston-ivi-shell.git] / clients / Makefile.am
1 noinst_PROGRAMS =                               \
2         gears                                   \
3         flower                                  \
4         screenshot                              \
5         terminal                                \
6         image                                   \
7         $(poppler_programs)                     \
8         dnd                                     \
9         smoke                                   \
10         resizor                                 \
11         simple-client                           \
12         eventdemo
13
14 noinst_LIBRARIES = libtoytoolkit.a
15
16 AM_CFLAGS = $(GCC_CFLAGS)
17 AM_CPPFLAGS =                                   \
18         -DDATADIR='"$(datadir)"'                \
19         $(CLIENT_CFLAGS)
20
21 libtoytoolkit_a_SOURCES =                       \
22         window.c                                \
23         window.h                                \
24         wayland-glib.c                          \
25         wayland-glib.h                          \
26         cairo-util.c                            \
27         cairo-util.h
28
29 toolkit_libs =                                  \
30         libtoytoolkit.a                         \
31         $(CLIENT_LIBS) -lrt -lm
32
33 gears_SOURCES = gears.c
34 gears_LDADD = $(toolkit_libs)
35
36 flower_SOURCES = flower.c
37 flower_LDADD = $(toolkit_libs)
38
39 screenshot_SOURCES = screenshot.c screenshooter-protocol.c
40 screenshot_LDADD = $(toolkit_libs)
41
42 terminal_SOURCES = terminal.c
43 terminal_LDADD = $(toolkit_libs) -lutil
44
45 image_SOURCES = image.c
46 image_LDADD = $(toolkit_libs)
47
48 dnd_SOURCES = dnd.c
49 dnd_LDADD = $(toolkit_libs)
50
51 smoke_SOURCES = smoke.c
52 smoke_LDADD = $(toolkit_libs)
53
54 resizor_SOURCES = resizor.c
55 resizor_LDADD = $(toolkit_libs)
56
57 simple_client_SOURCES = simple-client.c
58 simple_client_LDADD = $(SIMPLE_CLIENT_LIBS) -lm
59
60 eventdemo_SOURCES = eventdemo.c
61 eventdemo_LDADD = $(toolkit_libs)
62
63 BUILT_SOURCES =                                 \
64         screenshooter-client-protocol.h         \
65         screenshooter-protocol.c
66
67 CLEANFILES = $(BUILT_SOURCES)
68
69 @wayland_scanner_rules@
70
71 if HAVE_POPPLER
72 poppler_programs = view
73 view_SOURCES = view.c
74 view_LDADD = $(toolkit_libs) $(POPPLER_LIBS)
75 view_CPPFLAGS = $(AM_CPPFLAGS) $(POPPLER_CFLAGS)
76 endif