Makefile.am 3.13 KB
Newer Older
David Zeuthen's avatar
David Zeuthen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

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

David Zeuthen's avatar
David Zeuthen committed
18 19
# ----------------------------------------------------------------------------------------------------

20
bin_PROGRAMS = pkexec pkcheck pkaction pklalockdown
David Zeuthen's avatar
David Zeuthen committed
21 22 23 24 25 26 27

# ----------------------------------------------------------------------------------------------------

pkexec_SOURCES = pkexec.c

pkexec_CFLAGS =                             				\
	$(GLIB_CFLAGS)							\
David Zeuthen's avatar
David Zeuthen committed
28 29
	$(NULL)

David Zeuthen's avatar
David Zeuthen committed
30 31 32
pkexec_LDADD =  	                      				\
	$(GLIB_LDADD)							\
	$(top_builddir)/src/polkit/libpolkit-gobject-1.la		\
David Zeuthen's avatar
David Zeuthen committed
33 34
	$(NULL)

35
polkitmodulesdir = $(libdir)/polkit-1/extensions
36
polkitmodules_LTLIBRARIES = libpkexec-action-lookup.la
David Zeuthen's avatar
David Zeuthen committed
37

38
libpkexec_action_lookup_la_SOURCES =                    		\
David Zeuthen's avatar
David Zeuthen committed
39 40 41
	pkexec-action-lookup.c                             		\
        $(NULL)

42
libpkexec_action_lookup_la_CFLAGS =                      		\
David Zeuthen's avatar
David Zeuthen committed
43 44 45 46 47
        -DPOLKIT_BACKEND_I_KNOW_API_IS_SUBJECT_TO_CHANGE    		\
        -DG_LOG_DOMAIN=\"pkexec-action-lookup\"        			\
	$(GLIB_CFLAGS)							\
        $(NULL)

48
libpkexec_action_lookup_la_LDFLAGS =                  			\
David Zeuthen's avatar
David Zeuthen committed
49 50 51 52
	-export_dynamic -avoid-version -module -no-undefined 		\
	-export-symbols-regex '^g_io_module_(load|unload)' 		\
        $(NULL)

53
libpkexec_action_lookup_la_LIBADD =                 			\
David Zeuthen's avatar
David Zeuthen committed
54 55 56 57 58
	$(top_builddir)/src/polkitbackend/libpolkit-backend-1.la	\
        $(NULL)

# ----------------------------------------------------------------------------------------------------

59 60 61 62 63 64 65 66 67 68 69 70 71
pkcheck_SOURCES = pkcheck.c

pkcheck_CFLAGS =                             				\
	$(GLIB_CFLAGS)							\
	$(NULL)

pkcheck_LDADD =  	                      				\
	$(GLIB_LDADD)							\
	$(top_builddir)/src/polkit/libpolkit-gobject-1.la		\
	$(NULL)

# ----------------------------------------------------------------------------------------------------

72 73 74 75 76 77 78 79 80 81 82 83 84
pkaction_SOURCES = pkaction.c

pkaction_CFLAGS =                             				\
	$(GLIB_CFLAGS)							\
	$(NULL)

pkaction_LDADD =  	                      				\
	$(GLIB_LDADD)							\
	$(top_builddir)/src/polkit/libpolkit-gobject-1.la		\
	$(NULL)

# ----------------------------------------------------------------------------------------------------

85 86 87 88 89 90 91 92 93 94 95 96 97
pklalockdown_SOURCES = pklalockdown.c

pklalockdown_CFLAGS =                             			\
	$(GLIB_CFLAGS)							\
	$(NULL)

pklalockdown_LDADD =  	                      				\
	$(GLIB_LDADD)							\
	$(top_builddir)/src/polkit/libpolkit-gobject-1.la		\
	$(NULL)

# ----------------------------------------------------------------------------------------------------

David Zeuthen's avatar
David Zeuthen committed
98 99
clean-local :
	rm -f *~
David Zeuthen's avatar
David Zeuthen committed
100 101 102

install-exec-hook :
	-chmod 4755 $(DESTDIR)$(bindir)/pkexec