Makefile.am 1.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

NULL =

module_flags = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'

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	                                	\
	$(NULL)

20
polkitmodulesdir = $(libdir)/polkit-1/extensions
21
polkitmodules_LTLIBRARIES = libnullbackend.la
22

23
libnullbackend_la_SOURCES = 						\
24 25 26 27
	nullbackend.c							\
	polkitbackendnullauthority.c	polkitbackendnullauthority.h	\
	$(NULL)

28
libnullbackend_la_CFLAGS =                             			\
29
	-DPOLKIT_BACKEND_I_KNOW_API_IS_SUBJECT_TO_CHANGE		\
30
	-DPOLKIT_LOCAL_I_KNOW_API_IS_SUBJECT_TO_CHANGE			\
31 32 33 34
	-DG_LOG_DOMAIN=\"PolkitNullBackend\"				\
	$(GLIB_CFLAGS)							\
	$(NULL)

35
libnullbackend_la_LDFLAGS =  	                      			\
36 37 38 39 40
	$(module_flags)               					\
	$(GLIB_LDADD)							\
	$(top_builddir)/src/polkitbackend/libpolkit-backend-1.la	\
	$(NULL)

41
libnullbackend_la_LIBADD =  	                      			\
42 43 44 45 46
	$(NULL)

nullconfigdir = $(sysconfdir)/polkit-1/nullbackend.conf.d
nullconfig_DATA = 50-nullbackend.conf

47 48
EXTRA_DIST = $(nullconfig_DATA)

49 50
clean-local :
	rm -f *~