Makefile.am 4.62 KB
Newer Older
David Zeuthen's avatar
David Zeuthen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
NULL =

INCLUDES =                                                      \
        -I$(top_builddir)/src                                   \
        -I$(top_srcdir)/src                                     \
        -DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\"               \
        -DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\"               \
        -DPACKAGE_DATA_DIR=\""$(datadir)"\"                     \
        -DPACKAGE_BIN_DIR=\""$(bindir)"\"                       \
        -DPACKAGE_LOCALSTATE_DIR=\""$(localstatedir)"\"         \
        -DPACKAGE_LOCALE_DIR=\""$(localedir)"\"                 \
        -DPACKAGE_LIB_DIR=\""$(libdir)"\"                       \
        -D_POSIX_PTHREAD_SEMANTICS                              \
        -D_REENTRANT                                            \
15
	-DEGG_DBUS_I_KNOW_API_IS_SUBJECT_TO_CHANGE		\
David Zeuthen's avatar
David Zeuthen committed
16 17
        $(NULL)

18
BUILT_SOURCES = 						\
19
	polkit-built-sources.stamp				\
20
	$(NULL)
David Zeuthen's avatar
David Zeuthen committed
21

22 23 24
# Build all the PolicyKit D-Bus code here, even the code we
# only in the daemon for agent interaction
#
25
polkit-built-sources.stamp : Makefile.am $(top_srcdir)/data/org.freedesktop.PolicyKit1.Authority.xml $(top_srcdir)/data/org.freedesktop.PolicyKit1.LocalAuthority.xml
26 27 28 29
	eggdbus-binding-tool											\
		--namespace "_Polkit"										\
		--dbus-namespace "org.freedesktop.PolicyKit1"							\
		--introspection-xml $(top_srcdir)/data/org.freedesktop.PolicyKit1.Authority.xml 		\
30
		--introspection-xml $(top_srcdir)/data/org.freedesktop.PolicyKit1.LocalAuthority.xml		\
31
		--introspection-xml $(top_srcdir)/data/org.freedesktop.PolicyKit1.AuthenticationAgent.xml	\
32
		--stamp-file polkit-built-sources.stamp								\
33 34
	$(NULL)

35
# keep in sync with contents of polkit-built-sources.stamp (Thanks autotools)
36
#
37
polkit_built_sources = _polkitbindingsmarshal.c _polkitbindingsmarshal.h _polkitbindingsmarshal.list _polkitbindings.c _polkitbindings.h _polkitbindingstypes.h _polkitauthenticationagent.c _polkitauthenticationagent.h docbook-interface-org.freedesktop.PolicyKit1.AuthenticationAgent.xml _polkitlocalauthority.c _polkitlocalauthority.h docbook-interface-org.freedesktop.PolicyKit1.LocalAuthority.xml _polkitauthority.c _polkitauthority.h docbook-interface-org.freedesktop.PolicyKit1.Authority.xml _polkiterror.c _polkiterror.h _polkitimplicitauthorization.c _polkitimplicitauthorization.h _polkitauthorizationresult.c _polkitauthorizationresult.h _polkitcheckauthorizationflags.c _polkitcheckauthorizationflags.h _polkitlocalauthorization.c _polkitlocalauthorization.h _polkitactiondescription.c _polkitactiondescription.h _polkitidentity.c _polkitidentity.h _polkitsubject.c _polkitsubject.h
David Zeuthen's avatar
David Zeuthen committed
38 39 40 41 42

lib_LTLIBRARIES=libpolkit-gobject-1.la

libpolkit_gobject_1includedir=$(includedir)/polkit-1/polkit

43 44
libpolkit_gobject_1include_HEADERS =                        				\
        polkit.h									\
David Zeuthen's avatar
David Zeuthen committed
45
        polkitprivate.h									\
46
        polkittypes.h									\
47
	polkitactiondescription.h							\
48
	polkitdetails.h									\
49 50
	polkitauthority.h								\
	polkiterror.h									\
51 52
	polkitsubject.h									\
	polkitunixprocess.h								\
53
	polkitunixsession.h								\
54
	polkitsystembusname.h								\
55 56 57
	polkitidentity.h								\
	polkitunixuser.h								\
	polkitunixgroup.h								\
58
	polkitauthorizationresult.h							\
59
	polkitcheckauthorizationflags.h							\
60
	polkitimplicitauthorization.h							\
David Zeuthen's avatar
David Zeuthen committed
61 62
        $(NULL)

63
libpolkit_gobject_1_la_SOURCES =                                   			\
64
	$(BUILT_SOURCES)								\
65
	$(polkit_built_sources)								\
66 67
        polkit.h									\
	polkitactiondescription.c		polkitactiondescription.h		\
68
	polkitdetails.c				polkitdetails.h				\
69 70
	polkitauthority.c			polkitauthority.h			\
	polkiterror.c				polkiterror.h				\
71 72
	polkitsubject.c				polkitsubject.h				\
	polkitunixprocess.c			polkitunixprocess.h			\
73
	polkitunixsession.c			polkitunixsession.h			\
74
	polkitsystembusname.c			polkitsystembusname.h			\
75 76 77
	polkitidentity.c			polkitidentity.h			\
	polkitunixuser.c			polkitunixuser.h			\
	polkitunixgroup.c			polkitunixgroup.h			\
78
	polkitauthorizationresult.c		polkitauthorizationresult.h		\
79
	polkitcheckauthorizationflags.c		polkitcheckauthorizationflags.h		\
80
	polkitimplicitauthorization.c		polkitimplicitauthorization.h		\
David Zeuthen's avatar
David Zeuthen committed
81 82 83 84 85
        $(NULL)

libpolkit_gobject_1_la_CFLAGS =                                        	\
        -D_POLKIT_COMPILATION                                  		\
        $(GLIB_CFLAGS)							\
David Zeuthen's avatar
David Zeuthen committed
86
        $(EGG_DBUS_CFLAGS)						\
David Zeuthen's avatar
David Zeuthen committed
87 88 89 90
        $(NULL)

libpolkit_gobject_1_la_LIBADD =                               		\
        $(GLIB_LIBS)							\
David Zeuthen's avatar
David Zeuthen committed
91
        $(EGG_DBUS_LIBS)						\
David Zeuthen's avatar
David Zeuthen committed
92 93
        $(NULL)

94
dist-hook :
95
	(for i in $(polkit_built_sources) $(BUILT_SOURCES) ; do rm -f $(distdir)/$$i ; done)
David Zeuthen's avatar
David Zeuthen committed
96 97

clean-local :
98
	rm -f *~ $(polkit_built_sources) $(BUILT_SOURCES)
99