X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2FMakefile.am;h=bc78912cecf60dc914bf615f24d31a9e4f42c64b;hb=c6be63a74e2ed88ec7dc1d88d09896520bb8b7a1;hp=9818580462860123c3640a65ce81789858f3e683;hpb=09c6d16ffba1b1b15e50579bbcf663f05f630932;p=collectd.git diff --git a/src/Makefile.am b/src/Makefile.am index 98185804..bc78912c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -14,13 +14,15 @@ sbin_PROGRAMS = collectd bin_PROGRAMS = collectd-nagios collectd_SOURCES = collectd.c collectd.h \ - utils_avltree.c utils_avltree.h \ - utils_mount.c utils_mount.h \ - utils_llist.c utils_llist.h \ - utils_ignorelist.c utils_ignorelist.h \ common.c common.h \ - plugin.c plugin.h \ configfile.c configfile.h \ + plugin.c plugin.h \ + utils_avltree.c utils_avltree.h \ + utils_cache.c utils_cache.h \ + utils_ignorelist.c utils_ignorelist.h \ + utils_llist.c utils_llist.h \ + utils_mount.c utils_mount.h \ + utils_threshold.c utils_threshold.h \ types_list.c types_list.h collectd_CPPFLAGS = $(LTDLINCL) collectd_CPPFLAGS += -DPREFIX='"${prefix}"' @@ -260,6 +262,14 @@ collectd_LDADD += "-dlopen" iptables.la collectd_DEPENDENCIES += iptables.la endif +if BUILD_PLUGIN_IPVS +pkglib_LTLIBRARIES += ipvs.la +ipvs_la_SOURCES = ipvs.c +ipvs_la_LDFLAGS = -module -avoid-version +collectd_LDADD += "-dlopen" ipvs.la +collectd_DEPENDENCIES += ipvs.la +endif + if BUILD_PLUGIN_IRQ pkglib_LTLIBRARIES += irq.la irq_la_SOURCES = irq.c @@ -268,6 +278,16 @@ collectd_LDADD += "-dlopen" irq.la collectd_DEPENDENCIES += irq.la endif +if BUILD_PLUGIN_LIBVIRTSTATS +pkglib_LTLIBRARIES += libvirtstats.la +libvirtstats_la_SOURCES = libvirtstats.c +libvirtstats_la_CFLAGS = $(BUILD_WITH_LIBVIRT_CFLAGS) $(BUILD_WITH_LIBXML2_CFLAGS) +libvirtstats_la_LIBADD = $(BUILD_WITH_LIBVIRT_LIBS) $(BUILD_WITH_LIBXML2_LIBS) +libvirtstats_la_LDFLAGS = -module -avoid-version +collectd_LDADD += "-dlopen" libvirtstats.la +collectd_DEPENDENCIES += libvirtstats.la +endif + if BUILD_PLUGIN_LOAD pkglib_LTLIBRARIES += load.la load_la_SOURCES = load.c @@ -304,6 +324,19 @@ collectd_LDADD += "-dlopen" mbmon.la collectd_DEPENDENCIES += mbmon.la endif +if BUILD_PLUGIN_MEMCACHED +pkglib_LTLIBRARIES += memcached.la +memcached_la_SOURCES = memcached.c +memcached_la_LDFLAGS = -module -avoid-version +memcached_la_CFLAGS = +memcached_la_LIBADD = +if BUILD_WITH_LIBSOCKET +memcached_la_LDFLAGS += -lsocket +endif +collectd_LDADD += "-dlopen" memcached.la +collectd_DEPENDENCIES += memcached.la +endif + if BUILD_PLUGIN_MEMORY pkglib_LTLIBRARIES += memory.la memory_la_SOURCES = memory.c @@ -381,6 +414,17 @@ collectd_LDADD += "-dlopen" nfs.la collectd_DEPENDENCIES += nfs.la endif +if BUILD_PLUGIN_NGINX +pkglib_LTLIBRARIES += nginx.la +nginx_la_SOURCES = nginx.c +nginx_la_LDFLAGS = -module -avoid-version +if BUILD_WITH_LIBCURL +nginx_la_LDFLAGS += $(BUILD_WITH_LIBCURL_LIBS) +endif +collectd_LDADD += "-dlopen" nginx.la +collectd_DEPENDENCIES += nginx.la +endif + if BUILD_PLUGIN_NTPD pkglib_LTLIBRARIES += ntpd.la ntpd_la_SOURCES = ntpd.c @@ -448,10 +492,9 @@ endif if BUILD_PLUGIN_SENSORS pkglib_LTLIBRARIES += sensors.la sensors_la_SOURCES = sensors.c -sensors_la_LDFLAGS = -module -avoid-version -if BUILD_WITH_LM_SENSORS -sensors_la_LDFLAGS += -lsensors -endif +sensors_la_CFLAGS = $(BUILD_WITH_LIBSENSORS_CFLAGS) +sensors_la_LDFLAGS = -module -avoid-version $(BUILD_WITH_LIBSENSORS_LDFLAGS) +sensors_la_LIBADD = -lsensors collectd_LDADD += "-dlopen" sensors.la collectd_DEPENDENCIES += sensors.la endif @@ -520,6 +563,14 @@ collectd_LDADD += "-dlopen" tape.la collectd_DEPENDENCIES += tape.la endif +if BUILD_PLUGIN_TCPCONNS +pkglib_LTLIBRARIES += tcpconns.la +tcpconns_la_SOURCES = tcpconns.c +tcpconns_la_LDFLAGS = -module -avoid-version +collectd_LDADD += "-dlopen" tcpconns.la +collectd_DEPENDENCIES += tcpconns.la +endif + if BUILD_PLUGIN_UNIXSOCK pkglib_LTLIBRARIES += unixsock.la unixsock_la_SOURCES = unixsock.c utils_cmd_putval.h utils_cmd_putval.c @@ -537,6 +588,16 @@ collectd_LDADD += "-dlopen" users.la collectd_DEPENDENCIES += users.la endif +if BUILD_PLUGIN_UUID +pkglib_LTLIBRARIES += uuid.la +uuid_la_SOURCES = uuid.c +uuid_la_CFLAGS = $(BUILD_WITH_LIBHAL_CFLAGS) +uuid_la_LIBADD = $(BUILD_WITH_LIBHAL_LIBS) +uuid_la_LDFLAGS = -module -avoid-version +collectd_LDADD += "-dlopen" uuid.la +collectd_DEPENDENCIES += uuid.la +endif + if BUILD_PLUGIN_VSERVER pkglib_LTLIBRARIES += vserver.la vserver_la_SOURCES = vserver.c @@ -571,11 +632,15 @@ dist_man_MANS = collectd.1 collectd-nagios.1 collectd.conf.5 \ EXTRA_DIST = types.db +EXTRA_DIST += collectd-email.pod collectd-exec.pod collectd-nagios.pod \ + collectd-perl.pod collectd-snmp.pod collectd-unixsock.pod \ + collectd.conf.pod collectd.pod + .pod.1: - pod2man --release=$(VERSION) --center=$(PACKAGE) $< >$@ + pod2man --release=$(VERSION) --center=$(PACKAGE) $< >.pod2man.tmp 2>/dev/null && mv -f .pod2man.tmp $@ || true .pod.5: - pod2man --section=5 --release=$(VERSION) --center=$(PACKAGE) $< >$@ + pod2man --section=5 --release=$(VERSION) --center=$(PACKAGE) $< >.pod2man.tmp 2>/dev/null && mv -f .pod2man.tmp $@ || true install-exec-hook: $(mkinstalldirs) $(DESTDIR)$(sysconfdir)