From 9563e45d953145c33bf5c23e1d5023c96b3bbd57 Mon Sep 17 00:00:00 2001 From: "Hakon-Dugstad.Johnsen@telenor.com" Date: Thu, 5 Aug 2010 16:40:18 +0200 Subject: [PATCH] Update Makefile.am to build collectd-flush MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit As I am no automake expert, I basically copied the lines for collectd-nagios and changed them to collectd-flush. It works, but maybe there could be better ways to do it. I don't know. :) As I said in the previous mail: If this message is not properly encoded as utf-8, something wrong must have happened with my mailer. If that's the case, I'm sorry. The only non-ascii character in the patch is the second character of my name, which is an å. Signed-off-by: HÃ¥kon J Dugstad Johnsen Signed-off-by: Florian Forster --- src/Makefile.am | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 00d0e20e..9d45920a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,7 +21,7 @@ AM_CPPFLAGS += -DPLUGINDIR='"${pkglibdir}"' AM_CPPFLAGS += -DPKGDATADIR='"${pkgdatadir}"' sbin_PROGRAMS = collectd collectdmon -bin_PROGRAMS = collectd-nagios +bin_PROGRAMS = collectd-nagios collectd-flush collectd_SOURCES = collectd.c collectd.h \ common.c common.h \ @@ -105,6 +105,19 @@ endif collectd_nagios_LDADD += libcollectdclient/libcollectdclient.la collectd_nagios_DEPENDENCIES = libcollectdclient/libcollectdclient.la + +collectd_flush_SOURCES = collectd-flush.c +collectd_flush_LDADD = +if BUILD_WITH_LIBSOCKET +collectd_flush_LDADD += -lsocket +endif +if BUILD_AIX +collectd_flush_LDADD += -lm +endif +collectd_flush_LDADD += libcollectdclient/libcollectdclient.la +collectd_flush_DEPENDENCIES = libcollectdclient/libcollectdclient.la + + pkglib_LTLIBRARIES = BUILT_SOURCES = -- 2.11.0