summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 87588261cde1b5d7fc04b67b042fbc33a55e4578 (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
INCLUDES = 			\
	-DLOCALSTATEDIR=\""$(localstatedir)"\" \
	-DDATADIR=\""$(datadir)"\" \
	$(DBUS_GLIB_CFLAGS) 	\
	$(GIO_CFLAGS)	 	\
	$(GLIB_CFLAGS)		\
	$(POLKIT_CFLAGS)	\
	$(WARN_CFLAGS)

BUILT_SOURCES = 		\
	daemon-glue.h		\
	user-glue.h

daemon-glue.h: $(top_srcdir)/data/org.freedesktop.Accounts.xml Makefile
	dbus-binding-tool --prefix=daemon --mode=glib-server --output=daemon-glue.h $(top_srcdir)/data/org.freedesktop.Accounts.xml

user-glue.h: $(top_srcdir)/data/org.freedesktop.Accounts.User.xml Makefile
	dbus-binding-tool --prefix=user --mode=glib-server --output=user-glue.h $(top_srcdir)/data/org.freedesktop.Accounts.User.xml

libexec_PROGRAMS = accounts-daemon

accounts_daemon_SOURCES = 	\
	$(enums_h_sources)	\
	$(BUILT_SOURCES)	\
	types.h			\
	daemon.h		\
	daemon.c		\
	user.h			\
	user.c			\
	util.h			\
	util.c			\
	main.c

accounts_daemon_LDADD = 	\
	$(DBUS_GLIB_LIBS) 	\
	$(GIO_LIBS)		\
	$(GLIB_LIBS)		\
	$(POLKIT_LIBS)

CLEANFILES = $(BUILT_SOURCES)

install-data-hook:
	$(MKDIR_P) "$(DESTDIR)$(localstatedir)/lib/AccountsService/users"
	$(MKDIR_P) "$(DESTDIR)$(localstatedir)/lib/AccountsService/icons"