clients: Make poppler-glib optional
[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
12 noinst_LTLIBRARIES = libtoytoolkit.la
13
14 INCLUDES =                                      \
15         -I$(top_srcdir)/wayland                 \
16         -I$(top_builddir)/wayland                       \
17         $(CLIENT_CFLAGS)
18
19 LDADD = libtoytoolkit.la                                \
20         $(top_builddir)/wayland/libwayland-client.la    \
21         $(CLIENT_LIBS) -lrt -lm
22
23 AM_CFLAGS = $(GCC_CFLAGS)
24 AM_CPPFLAGS = -DDATADIR='"$(datadir)"'
25
26 libtoytoolkit_la_SOURCES =                      \
27         window.c                                \
28         window.h                                \
29         wayland-glib.c                          \
30         wayland-glib.h                          \
31         cairo-util.c                            \
32         cairo-util.h
33
34 flower_SOURCES = flower.c
35 smoke_SOURCES = smoke.c
36 gears_SOURCES = gears.c
37 screenshot_SOURCES = screenshot.c screenshooter-protocol.c
38 terminal_SOURCES = terminal.c
39 image_SOURCES = image.c
40 dnd_SOURCES = dnd.c
41 resizor_SOURCES = resizor.c
42
43 BUILT_SOURCES =                                 \
44         screenshooter-client-protocol.h         \
45         screenshooter-protocol.c
46
47 CLEANFILES = $(BUILT_SOURCES)
48
49 include $(top_srcdir)/wayland/scanner.mk
50
51 terminal_LDADD = $(LDADD) -lutil
52
53 if HAVE_POPPLER
54 poppler_programs = view
55 view_SOURCES = view.c
56 view_LDADD = $(LDADD) $(POPPLER_LIBS)
57 view_CPPFLAGS = $(POPPLER_CFLAGS)
58 endif