File: Makefile.am

package info (click to toggle)
ganglia 3.6.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 6,484 kB
  • ctags: 3,880
  • sloc: ansic: 27,874; sh: 11,052; python: 6,695; makefile: 565; perl: 366; php: 126; xml: 28
file content (90 lines) | stat: -rw-r--r-- 2,757 bytes parent folder | download | duplicates (2)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90

include $(top_srcdir)/ganglia.inc

SUBDIRS = modules python_modules php_modules
if BUILD_PERL
SUBDIRS += perl_modules
endif

EXTRA_DIST = gmond.aix.init gmond.solaris.init.in gmond.init gmond.init.SuSE gmond.conf.5 gmond.conf.html conf.pod cmdline.sh
if STATIC_BUILD
GCFLAGS = -D_LARGEFILE64_SOURCE
if BUILD_STATUS
MOD_GSTATUS = modules/status/mod_gstatus.lo
endif
GLDADD = modules/disk/mod_disk.lo \
         modules/cpu/mod_cpu.lo modules/cpu/mod_load.lo \
         modules/memory/mod_mem.lo modules/network/mod_net.lo \
         modules/system/mod_proc.lo modules/system/mod_sys.lo \
         modules/cpu/mod_multicpu.lo \
         $(MOD_GSTATUS) @STATIC_USER_MODULES@
GLDFLAGS = -static @EXPORT_SYMBOLS@
if BUILD_PYTHON
GLDADD += modules/python/mod_python.lo
GLDFLAGS += -lpython@PYTHON_VERSION@
endif
if BUILD_PHP
GLDADD += modules/php/mod_php.lo
GLDFLAGS += -lphp@PHP_VERSION@
endif
else
GCFLAGS = -D_LARGEFILE64_SOURCE
GLDADD = 
GLDFLAGS = @EXPORT_SYMBOLS_DYNAMIC@
endif
if BUILD_SFLOW
GCFLAGS += -DSFLOW
endif

INCLUDES = @APR_INCLUDES@
AM_CFLAGS = -I$(top_builddir)/lib -I$(top_builddir)/include/ -I$(top_builddir)/libmetrics $(GCFLAGS)

sbin_PROGRAMS = gmond

cmdline.c: cmdline.c.in $(FIXCONFIG)
	$(FIXCONFIG) cmdline.c.in

# metric.h and dtd.h are for gmetad/gmetric for now....
gmond_SOURCES = gmond.c cmdline.c.in cmdline.c cmdline.h dtd.h g25_config.c core_metrics.c g25_config.h gmond_internal.h
if BUILD_SFLOW
gmond_SOURCES += sflow.h sflow.c sflow_gmetric.h
endif
dist_man_MANS  = gmond.conf.5

gmond.conf.5: conf.pod gmond.conf.html
	pod2man --name="gmond.conf" --section=5 conf.pod --center="Ganglia Monitoring System" --release="ganglia/@VERSION@" > gmond.conf.5

gmond.conf.html: conf.pod
	pod2html --title="Ganglia Monitoring Daemon v@VERSION@ Configuration" --header --infile=conf.pod --outfile=gmond.conf.html

#monitor.c server.c listen.c cleanup.c \
#metric.h dtd.h 
gmond_LDADD = $(top_builddir)/libmetrics/libmetrics.la \
              $(top_builddir)/lib/libganglia.la \
              $(top_builddir)/lib/libgetopthelper.a \
              $(GLDADD)

gmond_DEPENDENCIES = $(gmond_LDADD)

gmond_LDFLAGS = $(GLDFLAGS)

gmond.solaris.init:	gmond.solaris.init.in $(FIXCONFIG)
	$(FIXCONFIG) gmond.solaris.init.in

gmond.service:	gmond.service.in $(FIXCONFIG)
	$(FIXCONFIG) gmond.service.in

# we declare the hook so that gmond.solaris.init will be created within the
# build tree during the install phase
# however, the action to install it is commented out, as it is likely
# the SA will use some other script to put this file into a package or
# something
install-exec-hook:	gmond.solaris.init
#	$(INSTALL_SCRIPT) gmond.solaris.init

CLEANFILES = cmdline.c	

if HAVE_SYSTEMD
systemdsystemunit_DATA = \
        gmond.service
endif