summaryrefslogtreecommitdiff
path: root/src/nullbackend/Makefile.am
blob: 2a81ec163c2129000b1a2ebc6bfe5837635cabcf (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
45
46
47
48
49

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)

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

libnullbackend_la_SOURCES = 						\
	nullbackend.c							\
	polkitbackendnullauthority.c	polkitbackendnullauthority.h	\
	$(NULL)

libnullbackend_la_CFLAGS =                             			\
	-DPOLKIT_BACKEND_I_KNOW_API_IS_SUBJECT_TO_CHANGE		\
	-DG_LOG_DOMAIN=\"PolkitNullBackend\"				\
	$(GLIB_CFLAGS)							\
	$(NULL)

libnullbackend_la_LDFLAGS =  	                      			\
	$(module_flags)               					\
	$(GLIB_LDADD)							\
	$(top_builddir)/src/polkitbackend/libpolkit-backend-1.la	\
	$(NULL)

libnullbackend_la_LIBADD =  	                      			\
	$(NULL)

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

EXTRA_DIST = $(nullconfig_DATA)

clean-local :
	rm -f *~