diff --git a/src/Makefile.am b/src/Makefile.am
index 97c318801db00268dfc9c486365afc5519396eec..3472b6f527ed55068670db2cd99069e2f40ef0c7 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
# coverage related flags are only set when gcov is enabled
AM_CFLAGS = @STRICT_CFLAGS@ @COVERAGE_CFLAGS@ @PROFILING_CFLAGS@
+AM_CXXFLAGS = @STRICT_CXXFLAGS@ @COVERAGE_CFLAGS@ @PROFILING_CFLAGS@
AM_LDFLAGS = @COVERAGE_LDFLAGS@ @PROFILING_LDFLAGS@
AM_CPPFLAGS = -I"${top_srcdir}/src/include"
AM_CPPFLAGS += -DSYSCONFDIR='"${sysconfdir}"'
core/store.c include/core/store.h \
core/store-private.h \
core/store_expr.c \
+ core/store_json.c \
core/store_lookup.c \
core/data.c include/core/data.h \
core/timeseries.c include/core/timeseries.h \
+ frontend/analyzer.c \
frontend/connection.c include/frontend/connection.h \
frontend/connection-private.h \
frontend/parser.c include/frontend/parser.h \
pkgbackendcollectdlibdir = $(pkgbackendlibdir)/collectd
pkgbackendpuppetlibdir = $(pkgbackendlibdir)/puppet
pkgcnamelibdir = $(pkglibdir)/cname
+pkgtimeserieslibdir = $(pkglibdir)/timeseries
pkglib_LTLIBRARIES =
pkgbackendlib_LTLIBRARIES =
pkgbackendcollectdlib_LTLIBRARIES =
pkgbackendpuppetlib_LTLIBRARIES =
pkgcnamelib_LTLIBRARIES =
+pkgtimeserieslib_LTLIBRARIES =
if BUILD_PLUGIN_CNAMEDNS
pkgcnamelib_LTLIBRARIES += plugins/cname/dns.la
sysdbd_DEPENDENCIES += plugins/cname/dns.la
endif
-if BUILD_PLUGIN_COLLECTD
+if BUILD_PLUGIN_COLLECTDUNIXSOCK
pkgbackendcollectdlib_LTLIBRARIES += plugins/backend/collectd/unixsock.la
plugins_backend_collectd_unixsock_la_SOURCES = plugins/backend/collectd/unixsock.c
plugins_backend_collectd_unixsock_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version
sysdbd_DEPENDENCIES += plugins/backend/collectd/unixsock.la
endif
+if BUILD_PLUGIN_FACTER
+pkgbackendlib_LTLIBRARIES += plugins/backend/facter.la
+plugins_backend_facter_la_SOURCES = plugins/backend/facter.cc
+plugins_backend_facter_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version -lfacter
+sysdbd_LDADD += -dlopen plugins/backend/facter.la
+sysdbd_DEPENDENCIES += plugins/backend/facter.la
+endif
+
if BUILD_PLUGIN_MKLIVESTATUS
pkgbackendlib_LTLIBRARIES += plugins/backend/mk-livestatus.la
plugins_backend_mk_livestatus_la_SOURCES = plugins/backend/mk-livestatus.c
sysdbd_DEPENDENCIES += plugins/syslog.la
endif
+if BUILD_PLUGIN_TIMESERIESRRDTOOL
+pkgtimeserieslib_LTLIBRARIES += plugins/timeseries/rrdtool.la
+plugins_timeseries_rrdtool_la_SOURCES = plugins/timeseries/rrdtool.c
+plugins_timeseries_rrdtool_la_CFLAGS = $(AM_CFLAGS) @RRD_CFLAGS@
+plugins_timeseries_rrdtool_la_LDFLAGS = $(AM_LDFLAGS) @RRD_LIBS@ -module -avoid-version
+sysdbd_LDADD += -dlopen plugins/timeseries/rrdtool.la
+sysdbd_DEPENDENCIES += plugins/timeseries/rrdtool.la
+endif
+
include/client/sysdb.h: include/client/sysdb.h.in ../version
source ../version; sed \
-e "s/@SDB_VERSION_MAJOR@/$$VERSION_MAJOR/g" \