-SUBDIRS = src
+SUBDIRS = src doc .
+doc_DATA = AUTHORS ChangeLog COPYING INSTALL NEWS README
AC_SUBST(WARNING_CFLAGS)
+# Set up murphy CFLAGS and LIBS.
MURPHY_CFLAGS="$GLIB_CFLAGS $DBUS_CFLAGS"
MURPHY_LIBS="$GLIB_LIBS $DBUS_LIBS"
AC_SUBST(MURPHY_CFLAGS)
AC_SUBST(MURPHY_LIBS)
+# Add LIBDIR to config.h.
+AC_MSG_CHECKING([libdir])
+AC_MSG_RESULT([$libdir])
+AC_SUBST(LIBDIR, [$libdir])
+
# Check which plugins should be built in.
AC_ARG_WITH(builtin-plugins,
[ --with-builtin-plugins=<plugin-list> specify which plugins to link in],
src/common/tests/Makefile
src/core/tests/Makefile
src/daemon/tests/Makefile
+ src/common/murphy-common.pc
+ src/core/murphy-core.pc
+ doc/Makefile
])
AC_OUTPUT
--- /dev/null
+doc_DATA = CODING-STYLE
SUBDIRS = . common/tests core/tests daemon/tests
-AM_CFLAGS = $(WARNING_CFLAGS) -I$(top_builddir)
+AM_CFLAGS = $(WARNING_CFLAGS) -I$(top_builddir) -DLIBDIR=\"@LIBDIR@\"
MURPHY_CFLAGS =
pkgconfigdir = ${libdir}/pkgconfig
lib_LTLIBRARIES += libmurphy-common.la
EXTRA_DIST += common/murphy-common.pc
-#pkgconfig_DATA += common/murphy-common.pc
+pkgconfig_DATA += common/murphy-common.pc
libmurphy_common_ladir = \
lib_LTLIBRARIES += libmurphy-core.la
EXTRA_DIST += core/murphy-core.pc
-#pkgconfig_DATA += core/murphy-core.pc
+pkgconfig_DATA += core/murphy-core.pc
libmurphy_core_ladir = \
BUILTIN_LIBS =
plugin_LTLIBRARIES =
-plugindir = $(libdir)/murphy
+plugindir = $(libdir)/murphy/plugins
# test plugin
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: murphy-common
+Description: Murphy policy framework, common library.
+Requires:
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lsysinfo-common @GLIB_LIBS@ @DBUS_LIBS@
+Cflags: -I${includedir} @GLIB_CFLAGS@ @DBUS_CFLAGS@
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: murphy-core
+Description: Murphy policy framework, core library.
+Requires: murphy-common @PACKAGE_VERSION@
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lmurphy-common
+Cflags: -I${includedir}
#include <murphy/core/context.h>
#ifndef MRP_DEFAULT_PLUGIN_DIR
-# define MRP_DEFAULT_PLUGIN_DIR "/usr/lib/murphy/plugins"
+# define MRP_DEFAULT_PLUGIN_DIR LIBDIR"/murphy/plugins"
#endif
#define MRP_PLUGIN_DESCRIPTOR "mrp_get_plugin_descriptor"