summaryrefslogtreecommitdiff
path: root/clients/Makefile.am
blob: 9839b84e49cea3a1179dba0f8aabde3c1290029b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
noinst_PROGRAMS =				\
	gears					\
	flower					\
	screenshot				\
	terminal				\
	image					\
	$(poppler_programs)			\
	dnd					\
	smoke					\
	resizor					\
	simple-client				\
	eventdemo

noinst_LTLIBRARIES = libtoytoolkit.la

AM_CFLAGS = $(GCC_CFLAGS)
AM_CPPFLAGS =					\
	-DDATADIR='"$(datadir)"'		\
	-I$(top_builddir)/wayland		\
	-I$(top_srcdir)/wayland			\
	$(CLIENT_CFLAGS)

libtoytoolkit_la_SOURCES =			\
	window.c				\
	window.h				\
	wayland-glib.c				\
	wayland-glib.h				\
	cairo-util.c				\
	cairo-util.h

toolkit_libs =						\
	libtoytoolkit.la				\
	$(top_builddir)/wayland/libwayland-client.la	\
	$(CLIENT_LIBS) -lrt -lm

gears_SOURCES = gears.c
gears_LDADD = $(toolkit_libs)

flower_SOURCES = flower.c
flower_LDADD = $(toolkit_libs)

screenshot_SOURCES = screenshot.c screenshooter-protocol.c
screenshot_LDADD = $(toolkit_libs)

terminal_SOURCES = terminal.c
terminal_LDADD = $(toolkit_libs) -lutil

image_SOURCES = image.c
image_LDADD = $(toolkit_libs)

dnd_SOURCES = dnd.c
dnd_LDADD = $(toolkit_libs)

smoke_SOURCES = smoke.c
smoke_LDADD = $(toolkit_libs)

resizor_SOURCES = resizor.c
resizor_LDADD = $(toolkit_libs)

simple_client_SOURCES = simple-client.c
simple_client_LDADD = \
	$(top_builddir)/wayland/libwayland-client.la -lm $(GLES2_LIBS)

eventdemo_SOURCES = eventdemo.c
eventdemo_LDADD = $(toolkit_libs)

BUILT_SOURCES =					\
	screenshooter-client-protocol.h		\
	screenshooter-protocol.c

CLEANFILES = $(BUILT_SOURCES)

include $(top_srcdir)/wayland/scanner.mk

if HAVE_POPPLER
poppler_programs = view
view_SOURCES = view.c
view_LDADD = $(toolkit_libs) $(POPPLER_LIBS)
view_CPPFLAGS = $(AM_CPPFLAGS) $(POPPLER_CFLAGS)
endif