summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 979a0c6d27130f1b1b5c04191ecddf4d9b186754 (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
lib_LTLIBRARIES = libwayland-server.la libwayland-client.la
noinst_LTLIBRARIES = libwayland-util.la

include_HEADERS =				\
	wayland-util.h				\
	wayland-server-protocol.h		\
	wayland-server.h			\
	wayland-client-protocol.h		\
	wayland-client.h			\
	wayland-egl.h

libwayland_util_la_SOURCES =			\
	connection.c				\
	connection.h				\
	wayland-util.c				\
	wayland-util.h				\
	wayland-private.h			\
	wayland-hash.c

libwayland_server_la_LIBADD = $(FFI_LIBS) libwayland-util.la -lrt
libwayland_server_la_SOURCES =			\
	wayland-protocol.c			\
	wayland-server.c			\
	wayland-shm.c				\
	event-loop.c

libwayland_client_la_LIBADD = $(FFI_LIBS) libwayland-util.la -lrt
libwayland_client_la_SOURCES =			\
	wayland-protocol.c			\
	wayland-client.c

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = wayland-client.pc wayland-server.pc

AM_CPPFLAGS = $(FFI_CFLAGS)
AM_CFLAGS = $(GCC_CFLAGS)

protocoldir = $(top_srcdir)/protocol

if ENABLE_SCANNER
wayland_scanner = $(top_builddir)/src/wayland-scanner
else
wayland_scanner = wayland-scanner
endif

include $(top_srcdir)/src/scanner.mk

if ENABLE_SCANNER
bin_PROGRAMS = wayland-scanner

wayland_scanner_SOURCES =				\
	scanner.c

wayland_scanner_LDADD = $(EXPAT_LIBS) libwayland-util.la

$(BUILT_SOURCES) : wayland-scanner
endif

BUILT_SOURCES =					\
	wayland-server-protocol.h		\
	wayland-client-protocol.h		\
	wayland-protocol.c

CLEANFILES = $(BUILT_SOURCES)