summaryrefslogtreecommitdiff
path: root/src/daemon/Makefile.am
blob: 1cd972e94230d694fb64c6c084130570c8225a75 (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
libexec_PROGRAMS = mate-notification-daemon

mate_notification_daemon_SOURCES = \
	$(mate_notification_daemon_built_sources) \
	daemon.c \
	daemon.h \
	engines.c \
	engines.h \
	stack.c \
	stack.h \
	sound.c \
	sound.h \
	mnd-daemon.c

if ENABLE_WAYLAND
mate_notification_daemon_SOURCES += \
	wayland.c
endif

mate_notification_daemon_LDADD = $(NOTIFICATION_DAEMON_LIBS)

mate_notification_daemon_CFLAGS = $(WARN_CFLAGS)

mate_notification_daemon_built_sources =	\
	mnd-dbus-generated.h	\
	mnd-dbus-generated.c	\
	$(NULL)

$(mate_notification_daemon_built_sources) : Makefile.am $(srcdir)/notificationdaemon.xml
	$(AM_V_GEN) gdbus-codegen \
		--interface-prefix org.freedesktop. \
		--c-namespace NotifyDaemon \
		--generate-c-code mnd-dbus-generated \
		$(srcdir)/notificationdaemon.xml

AM_CPPFLAGS = \
	-I$(top_srcdir) \
	$(NOTIFICATION_DAEMON_CFLAGS) \
	-DENGINES_DIR=\"$(libdir)/mate-notification-daemon/engines\"

EXTRA_DIST = notificationdaemon.xml
DISTCLEANFILES = \
	$(mate_notification_daemon_built_sources)

-include $(top_srcdir)/git.mk