Permalink
Browse files

Updated the gmond and gmetad automake files in order to remove a depe…

…ndency

on rrdtool.  The rrdtool library is now statically linked into the binary since
we don't want to require that rrdtool be installed everywhere.
  • Loading branch information...
1 parent 958fd3d commit 08bc874c2a32b3d65b42d442969cf2b512446ff8 massie committed Feb 2, 2004
Showing with 7 additions and 4 deletions.
  1. +3 −2 monitor-core/gmetad/Makefile.am
  2. +4 −2 monitor-core/gmond/Makefile.am
@@ -1,7 +1,8 @@
-AM_CFLAGS = -O0 -I../lib -I../gmond
+AM_CFLAGS = -O0 -I$(top_builddir)/lib -I$(top_builddir)/gmond
sbin_PROGRAMS = gmetad
gmetad_SOURCES = gmetad.c cmdline.c cmdline.h gmetad.h data_thread.c server.c process_xml.c \
rrd_helpers.c conf.c conf.h type_hash.c xml_hash.c
-gmetad_LDADD = ../lib/.libs/libganglia.a -lrrd -lm
+gmetad_LDADD = $(top_builddir)/lib/libganglia.la -lrrd -lm
+gmetad_LDFLAGS = -static
EXTRA_DIST = gmetad.conf gmetad.init
@@ -2,13 +2,15 @@ SUBDIRS = gstat
EXTRA_DIST = machines gmond.init gmond.conf
-AM_CFLAGS = -I../lib -I../lib/dnet
+AM_CFLAGS = -I$(top_builddir)/lib -I$(top_builddir)/lib/dnet
sbin_PROGRAMS = gmond
gmond_SOURCES = gmond.c monitor.c server.c listen.c cleanup.c node_data_t.h \
machine.c metric.h metric_typedefs.h key_metrics.h cmdline.c cmdline.h \
dtd.h
-gmond_LDADD = ../lib/.libs/libganglia.a ../lib/libdnet.a ../lib/libgetopthelper.a
+gmond_LDADD = $(top_builddir)/lib/libganglia.la $(top_builddir)/lib/libdnet.a \
+ $(top_builddir)/lib/libgetopthelper.a
+gmond_LDFLAGS = -static
distclean-local:
rm -f machine.c

0 comments on commit 08bc874

Please sign in to comment.