From: Hakon-Dugstad.Johnsen@telenor.com Date: Thu, 5 Aug 2010 14:40:18 +0000 (+0200) Subject: Update Makefile.am to build collectd-flush X-Git-Tag: collectd-5.0.0-beta0~77 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9563e45d953145c33bf5c23e1d5023c96b3bbd57;p=collectd.git Update Makefile.am to build collectd-flush 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 --- 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 =