Makefile.am 4.25 KB
Newer Older
David Zeuthen's avatar
David Zeuthen committed
1 2 3 4 5
NULL =

INCLUDES =                                                      \
        -I$(top_builddir)/src                                   \
        -I$(top_srcdir)/src                                     \
David Zeuthen's avatar
David Zeuthen committed
6 7
        -I$(top_builddir)/src/polkit                            \
        -I$(top_srcdir)/src/polkit                              \
8 9
        -I$(top_builddir)/src/polkitlocal                       \
        -I$(top_srcdir)/src/polkitlocal                         \
David Zeuthen's avatar
David Zeuthen committed
10 11 12 13 14 15 16 17 18
        -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                                            \
19
	-DEGG_DBUS_I_KNOW_API_IS_SUBJECT_TO_CHANGE		\
20
	-DPOLKIT_LOCAL_I_KNOW_API_IS_SUBJECT_TO_CHANGE		\
David Zeuthen's avatar
David Zeuthen committed
21 22
        $(NULL)

23 24
BUILT_SOURCES = 						\
	ck-built-sources.stamp					\
25 26
	$(NULL)

27
ck-built-sources.stamp : Makefile.am $(srcdir)/org.freedesktop.ConsoleKit.xml
28 29 30 31
	eggdbus-binding-tool										\
	  --namespace       "Ck"									\
	  --dbus-namespace  "org.freedesktop.ConsoleKit"						\
	  --introspection-xml $(top_srcdir)/src/polkitbackend/org.freedesktop.ConsoleKit.xml		\
32
	  --stamp-file ck-built-sources.stamp								\
33
	  $(NULL)
34 35 36

# keep in sync with contents of ck-built-sources.stamp (Thanks autotools)
#
37
ck_built_sources = ckbindingsmarshal.c ckbindingsmarshal.h ckbindingsmarshal.list ckbindings.c ckbindings.h ckbindingstypes.h cksession.c cksession.h docbook-interface-org.freedesktop.ConsoleKit.Session.xml ckseat.c ckseat.h docbook-interface-org.freedesktop.ConsoleKit.Seat.xml ckmanager.c ckmanager.h docbook-interface-org.freedesktop.ConsoleKit.Manager.xml ckerror.c ckerror.h docbook-enum-Error.xml ckdevice.c ckdevice.h docbook-struct-Device.xml
38

David Zeuthen's avatar
David Zeuthen committed
39 40 41 42 43 44
lib_LTLIBRARIES=libpolkit-backend-1.la

libpolkit_backend_1includedir=$(includedir)/polkit-1/polkitbackend

libpolkit_backend_1include_HEADERS =                        		\
	polkitbackend.h							\
45 46
	polkitbackendtypes.h						\
	polkitbackendauthority.h					\
47 48
	polkitbackendlocalauthority.h					\
	polkitbackendactionpool.h					\
49
	polkitbackendsessionmonitor.h					\
50
	polkitbackendconfigsource.h					\
51
	polkitbackendactionlookup.h					\
David Zeuthen's avatar
David Zeuthen committed
52 53
        $(NULL)

54 55 56 57 58 59 60 61 62 63 64 65
libpolkit_backend_1_la_SOURCES =                                   			\
	$(ck_built_sources)								\
	$(BUILT_SOURCES)								\
        polkitbackend.h									\
	polkitbackendtypes.h								\
	polkitbackendprivate.h								\
	polkitbackendauthority.h		polkitbackendauthority.c		\
	polkitbackendlocalauthority.h		polkitbackendlocalauthority.c		\
	polkitbackendactionpool.h		polkitbackendactionpool.c		\
	polkitbackendsessionmonitor.h		polkitbackendsessionmonitor.c		\
	polkitbackendconfigsource.h		polkitbackendconfigsource.c		\
	polkitbackendactionlookup.h		polkitbackendactionlookup.c		\
David Zeuthen's avatar
David Zeuthen committed
66 67 68
        $(NULL)

libpolkit_backend_1_la_CFLAGS =                                        	\
69
        -D_POLKIT_COMPILATION                                  		\
David Zeuthen's avatar
David Zeuthen committed
70 71 72 73 74 75 76 77 78
        -D_POLKIT_BACKEND_COMPILATION                                  	\
        $(GLIB_CFLAGS)							\
        $(EGG_DBUS_CFLAGS)						\
        $(NULL)

libpolkit_backend_1_la_LIBADD =                               		\
        $(GLIB_LIBS)							\
        $(EGG_DBUS_LIBS)						\
	$(top_builddir)/src/polkit/libpolkit-gobject-1.la		\
79
	$(top_builddir)/src/polkitlocal/libpolkit-local-1.la		\
80
	$(EXPAT_LIBS)							\
David Zeuthen's avatar
David Zeuthen committed
81 82 83 84
        $(NULL)

CLEANFILES = $(BUILT_SOURCES)

85 86 87
localauthorityconfigdir = $(sysconfdir)/polkit-1/localauthority.conf.d
localauthorityconfig_DATA = 50-localauthority.conf

88 89
EXTRA_DIST =								\
	org.freedesktop.ConsoleKit.xml					\
90
	$(localauthorityconfig_DATA)					\
91 92
	$(NULL)

93
dist-hook :
94
	(for i in $(ck_built_sources) $(BUILT_SOURCES) ; do rm -f $(distdir)/$$i ; done)
95

David Zeuthen's avatar
David Zeuthen committed
96
clean-local :
97
	rm -f *~ $(ck_built_sources) $(BUILT_SOURCES)
98 99 100 101

install-exec-hook:
	mkdir -p $(DESTDIR)$(localstatedir)/lib/polkit-1
	-chmod 600 $(DESTDIR)$(localstatedir)/lib/polkit-1
102
	mkdir -p $(DESTDIR)$(libdir)/polkit-1/extensions