summaryrefslogtreecommitdiff
path: root/libdbus/Makefile.am
blob: 986c9e3dd9716d6ce883e06d15553a1227d87212 (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
noinst_LTLIBRARIES = 			\
	libxfpmdbus.la

libxfpmdbus_la_SOURCES =		\
	xfpm-dbus.c			\
	xfpm-dbus.h			\
	xfpm-dbus-monitor.c		\
	xfpm-dbus-monitor.h		\
	xfpm-dbus-marshal.c		\
	xfpm-dbus-marshal.h
	
libxfpmdbus_la_CFLAGS =			\
	$(GLIB_CFLAGS)			\
	$(LIBXFCE4UTIL_CFLAGS)		\
	$(DBUS_GLIB_CFLAGS)

libxfpmdbus_la_LIBADD =			\
	$(GLIB_LIBS)			\
	$(DBUS_GLIB_LIBS)		\
	$(DBUS_LIBS)

if MAINTAINER_MODE

BUILT_SOURCES =				\
	xfpm-dbus-marshal.c		\
	xfpm-dbus-marshal.h

xfpm-dbus-marshal.c: xfpm-dbus-marshal.list
	echo "#include \"xfpm-dbus-marshal.h\"" > $@ && \
	glib-genmarshal $< --prefix=_xfpm_dbus_marshal --body >> $@

xfpm-dbus-marshal.h: xfpm-dbus-marshal.list
	glib-genmarshal $< --prefix=_xfpm_dbus_marshal --header > $@

endif

EXTRA_DIST =				\
	xfpm-dbus-marshal.list

DISTCLEANFILES =			\
	$(BUILT_SOURCES)