X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2FMakefile.am;h=a69769d72dd21f159fea34daee3b6d540cae1bb3;hb=ef3e099a424694e6247252a40c7b3be343f3cebd;hp=272533b0951f0ff23532de6bceb93f240a992422;hpb=bcdab455276ee24a4afb8d69db069c16d47f9b1e;p=sysdb.git diff --git a/src/Makefile.am b/src/Makefile.am index 272533b..a69769d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,7 +21,8 @@ pkgcoreinclude_HEADERS = \ include/core/object.h \ include/core/plugin.h \ include/core/store.h \ - include/core/time.h + include/core/time.h \ + include/core/timeseries.h pkgfeincludedir = $(pkgincludedir)/frontend pkgfeinclude_HEADERS = \ include/frontend/connection.h \ @@ -73,6 +74,7 @@ libsysdb_la_SOURCES = \ core/store_expr.c \ core/store_lookup.c \ core/data.c include/core/data.h \ + core/timeseries.c include/core/timeseries.h \ frontend/connection.c include/frontend/connection.h \ frontend/connection-private.h \ frontend/parser.c include/frontend/parser.h \ @@ -141,12 +143,14 @@ pkgbackendlibdir = $(pkglibdir)/backend 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 @@ -156,28 +160,28 @@ sysdbd_LDADD += -dlopen plugins/cname/dns.la sysdbd_DEPENDENCIES += plugins/cname/dns.la endif -if BUILD_PLUGIN_COLLECTD -pkgbackendcollectdlib_LTLIBRARIES += backend/collectd/unixsock.la -backend_collectd_unixsock_la_SOURCES = backend/collectd/unixsock.c -backend_collectd_unixsock_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version -sysdbd_LDADD += -dlopen backend/collectd/unixsock.la -sysdbd_DEPENDENCIES += backend/collectd/unixsock.la +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_LDADD += -dlopen plugins/backend/collectd/unixsock.la +sysdbd_DEPENDENCIES += plugins/backend/collectd/unixsock.la endif if BUILD_PLUGIN_MKLIVESTATUS -pkgbackendlib_LTLIBRARIES += backend/mk-livestatus.la -backend_mk_livestatus_la_SOURCES = backend/mk-livestatus.c -backend_mk_livestatus_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version -sysdbd_LDADD += -dlopen backend/mk-livestatus.la -sysdbd_DEPENDENCIES += backend/mk-livestatus.la +pkgbackendlib_LTLIBRARIES += plugins/backend/mk-livestatus.la +plugins_backend_mk_livestatus_la_SOURCES = plugins/backend/mk-livestatus.c +plugins_backend_mk_livestatus_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version +sysdbd_LDADD += -dlopen plugins/backend/mk-livestatus.la +sysdbd_DEPENDENCIES += plugins/backend/mk-livestatus.la endif if BUILD_PLUGIN_PUPPETSTORECONFIGS -pkgbackendpuppetlib_LTLIBRARIES += backend/puppet/store-configs.la -backend_puppet_store_configs_la_SOURCES = backend/puppet/store-configs.c -backend_puppet_store_configs_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version -sysdbd_LDADD += -dlopen backend/puppet/store-configs.la -sysdbd_DEPENDENCIES += backend/puppet/store-configs.la +pkgbackendpuppetlib_LTLIBRARIES += plugins/backend/puppet/store-configs.la +plugins_backend_puppet_store_configs_la_SOURCES = plugins/backend/puppet/store-configs.c +plugins_backend_puppet_store_configs_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version +sysdbd_LDADD += -dlopen plugins/backend/puppet/store-configs.la +sysdbd_DEPENDENCIES += plugins/backend/puppet/store-configs.la endif if BUILD_PLUGIN_SYSLOG @@ -188,6 +192,15 @@ sysdbd_LDADD += -dlopen plugins/syslog.la 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" \