msm: check libxml/{xmlreader,tree}.h
[platform/upstream/rpm.git] / plugins / Makefile.am
1 # Makefile for rpm library.
2
3 include $(top_srcdir)/rpm.am
4
5 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/
6 AM_CPPFLAGS += -I$(top_srcdir)/misc
7 AM_CPPFLAGS += -DLOCALEDIR="\"$(localedir)\""
8 AM_CPPFLAGS += -DSYSCONFDIR="\"$(sysconfdir)\""
9 AM_CPPFLAGS += -DLOCALSTATEDIR="\"$(localstatedir)\""
10 AM_CPPFLAGS += -DLIBRPMALIAS_FILENAME="\"rpmpopt-${VERSION}\""
11
12 AM_LDFLAGS = -avoid-version -module -shared
13
14 pluginsdir = $(libdir)/rpm-plugins
15
16 plugins_LTLIBRARIES = exec.la
17
18 exec_la_SOURCES = plugin.h exec.c
19 exec_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la
20
21 if SELINUX
22 sepolicy_la_SOURCES = plugin.h sepolicy.c
23 sepolicy_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la @WITH_SELINUX_LIB@ @WITH_SEMANAGE_LIB@
24
25 plugins_LTLIBRARIES += sepolicy.la
26 endif
27
28 if MSM
29 AM_CPPFLAGS += @LIBXML2_CFLAGS@
30 msm_la_SOURCES = plugin.h msm.h msm-plugin.c msmconfig.c msmmatch.c msmxattr.c msmmanifest.c
31 msm_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la @WITH_MSM_LIB@ @LIBXML2_LIBS@
32
33 plugins_LTLIBRARIES += msm.la
34 endif