aboutsummaryrefslogtreecommitdiffstats
path: root/applets/notify/Makefile.am
blob: d906f43b831e5b6cd32f9ed2706d4342e8b8a17f (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
include ../Makefile.applets

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_CPPFLAGS = $(AM_CPPFLAGS) $(DBUS_CFLAGS)
libnotify_la_LDFLAGS = -avoid-version -module
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) (echo "#include \"marshal.h\""; \
	  $(GLIB_GENMARSHAL) --internal --prefix=mb_marshal $^ --body) > $@
%.h: %.list
	$(AM_V_GEN) $(GLIB_GENMARSHAL) --internal --prefix=mb_marshal $^ --header > $@

BUILT_SOURCES = $(DBUS_GLUE) $(MARSHALS)
CLEANFILES = $(BUILT_SOURCES)

test_linkage_LDADD += libnotify.la