diff options
Diffstat (limited to 'plugins/Makefile.am')
-rw-r--r-- | plugins/Makefile.am | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 8002d9c40..e71364026 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -1,6 +1,7 @@ # Makefile for rpm library. include $(top_srcdir)/rpm.am +AM_CFLAGS = @RPMCFLAGS@ AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/ AM_CPPFLAGS += -I$(top_srcdir)/misc @@ -13,16 +14,33 @@ AM_LDFLAGS = -avoid-version -module -shared pluginsdir = $(libdir)/rpm-plugins -plugins_LTLIBRARIES = exec.la - -exec_la_SOURCES = plugin.h exec.c -exec_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la +plugins_LTLIBRARIES = if SELINUX -sepolicy_la_SOURCES = plugin.h sepolicy.c -sepolicy_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la @WITH_SELINUX_LIB@ @WITH_SEMANAGE_LIB@ +selinux_la_SOURCES = selinux.c +selinux_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la @WITH_SELINUX_LIB@ +plugins_LTLIBRARIES += selinux.la +endif + +if DBUS +systemd_inhibit_la_SOURCES = systemd_inhibit.c +systemd_inhibit_la_CPPFLAGS = $(AM_CPPFLAGS) @DBUS_CFLAGS@ +systemd_inhibit_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la @DBUS_LIBS@ +plugins_LTLIBRARIES += systemd_inhibit.la +endif + +prioreset_la_SOURCES = prioreset.c +prioreset_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la +plugins_LTLIBRARIES += prioreset.la + +syslog_la_SOURCES = syslog.c +syslog_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la +plugins_LTLIBRARIES += syslog.la -plugins_LTLIBRARIES += sepolicy.la +if IMA +ima_la_sources = ima.c +ima_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la +plugins_LTLIBRARIES += ima.la endif if MSM |