Merge remote branch 'callum/master'
[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_LTLIBRARIES = libtoytoolkit.la
15
16 AM_CFLAGS = $(GCC_CFLAGS)
17 AM_CPPFLAGS =                                   \
18         -DDATADIR='"$(datadir)"'                \
19         -I$(top_builddir)/wayland               \
20         -I$(top_srcdir)/wayland                 \
21         $(CLIENT_CFLAGS)
22
23 libtoytoolkit_la_SOURCES =                      \
24         window.c                                \
25         window.h                                \
26         wayland-glib.c                          \
27         wayland-glib.h                          \
28         cairo-util.c                            \
29         cairo-util.h
30
31 toolkit_libs =                                          \
32         libtoytoolkit.la                                \
33         $(top_builddir)/wayland/libwayland-client.la    \
34         $(CLIENT_LIBS) -lrt -lm
35
36 gears_SOURCES = gears.c
37 gears_LDADD = $(toolkit_libs)
38
39 flower_SOURCES = flower.c
40 flower_LDADD = $(toolkit_libs)
41
42 screenshot_SOURCES = screenshot.c screenshooter-protocol.c
43 screenshot_LDADD = $(toolkit_libs)
44
45 terminal_SOURCES = terminal.c
46 terminal_LDADD = $(toolkit_libs) -lutil
47
48 image_SOURCES = image.c
49 image_LDADD = $(toolkit_libs)
50
51 dnd_SOURCES = dnd.c
52 dnd_LDADD = $(toolkit_libs)
53
54 smoke_SOURCES = smoke.c
55 smoke_LDADD = $(toolkit_libs)
56
57 resizor_SOURCES = resizor.c
58 resizor_LDADD = $(toolkit_libs)
59
60 simple_client_SOURCES = simple-client.c
61 simple_client_LDADD = \
62         $(top_builddir)/wayland/libwayland-client.la -lm $(GLES2_LIBS)
63
64 eventdemo_SOURCES = eventdemo.c
65 eventdemo_LDADD = $(toolkit_libs)
66
67 BUILT_SOURCES =                                 \
68         screenshooter-client-protocol.h         \
69         screenshooter-protocol.c
70
71 CLEANFILES = $(BUILT_SOURCES)
72
73 include $(top_srcdir)/wayland/scanner.mk
74
75 if HAVE_POPPLER
76 poppler_programs = view
77 view_SOURCES = view.c
78 view_LDADD = $(toolkit_libs) $(POPPLER_LIBS)
79 view_CPPFLAGS = $(AM_CPPFLAGS) $(POPPLER_CFLAGS)
80 endif