2feb112fb350438006553ec5e1751895792a3449
[profile/ivi/gsignond.git] / src / daemon / Makefile.am
1 SUBDIRS = db dbus plugins
2 NULL=
3
4 bin_PROGRAMS = gsignond
5
6 BUILT_SOURCES = \
7     gsignond-identity-enum-types.h \
8     gsignond-identity-enum-types.c \
9     $(NULL)
10
11 gsignond-identity-enum-types.h: $(top_srcdir)/src/common/gsignond-enum.h.template gsignond-identity.h
12         $(GLIB_MKENUMS) --template $(top_srcdir)/src/common/gsignond-enum.h.template \
13                     --fhead "#ifndef GSIGNOND_IDENTITY_ENUM_TYPES_H_\n#define GSIGNOND_IDENTITY_ENUM_TYPES_H_\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS" \
14                     --identifier-prefix GSignond \
15                     --ftail "\nG_END_DECLS\n\n#endif\n" \
16                     $(srcdir)/gsignond-identity.h > $@
17
18 gsignond-identity-enum-types.c: $(top_srcdir)/src/common/gsignond-enum.c.template gsignond-identity.h
19         $(GLIB_MKENUMS) --template $(top_srcdir)/src/common/gsignond-enum.c.template \
20                     --fhead "#include \"gsignond-identity-enum-types.h\"\n" \
21                     --identifier-prefix GSignond \
22                     $(srcdir)/gsignond-identity.h > $@
23
24 gsignond_includedir = $(includedir)/gsignond
25 gsignond_pubhdr = ../../include/gsignond
26 gsignond_include_HEADERS = \
27         $(gsignond_pubhdr)/gsignond-access-control-manager.h \
28         $(gsignond_pubhdr)/gsignond-config-db.h \
29         $(gsignond_pubhdr)/gsignond-config-dbus.h \
30         $(gsignond_pubhdr)/gsignond-config-general.h \
31         $(gsignond_pubhdr)/gsignond-config.h \
32         $(gsignond_pubhdr)/gsignond-credentials.h \
33         $(gsignond_pubhdr)/gsignond-dictionary.h \
34         $(gsignond_pubhdr)/gsignond-error.h \
35         $(gsignond_pubhdr)/gsignond-extension-interface.h \
36         $(gsignond_pubhdr)/gsignond-log.h \
37         $(gsignond_pubhdr)/gsignond-plugin-interface.h \
38         $(gsignond_pubhdr)/gsignond-secret-storage.h \
39         $(gsignond_pubhdr)/gsignond-security-context.h \
40         $(gsignond_pubhdr)/gsignond-session-data.h \
41         $(gsignond_pubhdr)/gsignond-signonui-data.h \
42         $(gsignond_pubhdr)/gsignond-storage-manager.h \
43         $(gsignond_pubhdr)/gsignond-utils.h
44
45 gsignond_SOURCES = \
46     main.c \
47     gsignond-auth-session.c \
48     gsignond-auth-session.h \
49     gsignond-daemon.c \
50     gsignond-daemon.h \
51     gsignond-identity.c \
52     gsignond-identity.h \
53     gsignond-signonui-proxy.c \
54     gsignond-signonui-proxy.h \
55     gsignond-types.h \
56     $(BUILT_SOURCES) \
57     $(NULL)
58
59 gsignond_CPPFLAGS = \
60     -I. \
61     $(NULL)
62
63 gsignond_CFLAGS = \
64     -I$(top_builddir) \
65     -I$(top_srcdir)/include/ \
66     -I$(top_srcdir)/src/ \
67     $(GSIGNOND_CFLAGS) \
68     $(NULL)
69
70 gsignond_LDADD = \
71     $(top_builddir)/src/common/libgsignond-common.la \
72     $(top_builddir)/src/daemon/db/libgsignond-db.la \
73     $(top_builddir)/src/daemon/dbus/libgsignond-dbus.la \
74     $(top_builddir)/src/daemon/plugins/libgsignond-plugins.la \
75     $(GSIGNOND_LIBS) \
76     $(NULL)
77
78 if SET_PERMISSIONS
79 install-exec-hook:
80         chown root $(DESTDIR)$(bindir)/gsignond || true
81         chmod u+s $(DESTDIR)$(bindir)/gsignond || true
82 endif
83
84 CLEANFILES = \
85     gsignond-identity-enum-types.h \
86     gsignond-identity-enum-types.c \
87     $(NULL)