/
Makefile.am
55 lines (40 loc) · 1.54 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
include $(top_srcdir)/ganglia.inc
if STATIC_BUILD
GCFLAGS = -D_LARGEFILE64_SOURCE
GLDADD =
GLDFLAGS = -static
else
GCFLAGS = -D_LARGEFILE64_SOURCE
GLDADD =
GLDFLAGS =
endif
INCLUDES = @APR_INCLUDES@
AM_CFLAGS = -I$(top_builddir)/lib -I$(top_builddir)/gmond -I$(top_builddir)/include $(GCFLAGS)
sbin_PROGRAMS = gmetad
cmdline.c: cmdline.c.in $(FIXCONFIG)
$(FIXCONFIG) cmdline.c.in
gmetad_SOURCES = gmetad.c cmdline.c.in cmdline.c cmdline.h gmetad.h data_thread.c \
server.c process_xml.c rrd_helpers.c export_helpers.c conf.c conf.h type_hash.c \
xml_hash.c cleanup.c rrd_helpers.h export_helpers.h daemon_init.c daemon_init.h \
server_priv.h
gmetad_LDADD = $(top_builddir)/lib/libganglia.la -lrrd -lm \
$(GLDADD) $(DEPS_LIBS)
gmetad_LDFLAGS = $(GLDFLAGS)
EXTRA_DIST = gmetad.aix.init gmetad.conf.in gmetad.init gmetad.init.SuSE \
type_hash.gperf xml_hash.gperf gmetad-default cmdline.sh
xml_hash.c: xml_hash.gperf
gperf -l -H xml_hash -t -F ', 0' -N in_xml_list -k '1,$$' -W xml_tags xml_hash.gperf > xml_hash.c
type_hash.c: type_hash.gperf
gperf -G -l -H type_hash -t -F ', 0' -N in_type_list -k '1,$$' -W types type_hash.gperf > type_hash.c
gmetad.conf: gmetad.conf.in $(FIXCONFIG)
$(FIXCONFIG) gmetad.conf.in
gmetad.service: gmetad.service.in $(FIXCONFIG)
$(FIXCONFIG) gmetad.service.in
install-data-hook: gmetad.conf
mkdir -p $(DESTDIR)$(sysconfdir) && \
$(INSTALL_DATA) gmetad.conf $(DESTDIR)$(sysconfdir)/gmetad.conf
CLEANFILES = cmdline.c
if HAVE_SYSTEMD
systemdsystemunit_DATA = \
gmetad.service
endif