aboutsummaryrefslogtreecommitdiffstats
path: root/applets/notify/Makefile.am
blob: 53e79465dc2f6b5b03e806c3cfbfe8ce884df5e7 (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
AM_CPPFLAGS=-DPKGDATADIR=\"$(pkgdatadir)\" \
            -DGETTEXT_PACKAGE=\"matchbox-panel\" \
            $(MATCHBOX_PANEL_CFLAGS) $(DBUS_CFLAGS) \
	    -I$(top_srcdir) -I$(top_builddir)
AM_CFLAGS = $(WARN_CFLAGS)

appletdir = $(pkglibdir)
applet_LTLIBRARIES = libnotify.la

libnotify_la_SOURCES = applet.c \
	notify-store.c notify-store.h \
	mb-notification.c mb-notification.h \
	$(DBUS_GLUE) \
	$(MARSHALS)

libnotify_la_LDFLAGS = -avoid-version -Wl,--no-undefined
libnotify_la_LIBADD = $(MATCHBOX_PANEL_LIBS) $(DBUS_LIBS)

DBUS_GLUE=notification-manager-glue.h
%-glue.h: %.xml
	$(AM_V_GEN) dbus-binding-tool --mode=glib-server --output=$@ --prefix=$(subst -,_,$*) $^

MARSHALS = marshal.c marshal.h
%.c: %.list
	$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=mb_marshal $^ --body > $@
%.h: %.list
	$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=mb_marshal $^ --header > $@

BUILT_SOURCES = $(DBUS_GLUE) $(MARSHALS)
CLEANFILES = $(BUILT_SOURCES)
MAINTAINERCLEANFILES = Makefile.in