75e1735f99108618e4c80bf489c6dae33271148b
1 if BUILD_MODULE_PING
2 SUBDIRS = libping
3 endif
5 sbin_PROGRAMS = collectd
7 collectd_SOURCES = collectd.c collectd.h \
8 common.c common.h \
9 multicast.c multicast.h \
10 plugin.c plugin.h
11 #collectd_CFLAGS = -DPLUGINDIR='"$(pkglibdir)"'
12 collectd_CPPFLAGS = -DLOCALSTATEDIR='"$(localstatedir)"' -DPLUGINDIR='"$(pkglibdir)"'
13 collectd_LDFLAGS = -dlopen self
14 if BUILD_WITH_RRDTOOL
15 collectd_LDFLAGS += -lrrd
16 endif
18 pkglib_LTLIBRARIES =
20 if BUILD_MODULE_CPU
21 pkglib_LTLIBRARIES += cpu.la
22 cpu_la_SOURCES = cpu.c cpu.h
23 cpu_la_LDFLAGS = -module
24 endif
26 if BUILD_MODULE_CPUFREQ
27 pkglib_LTLIBRARIES += cpufreq.la
28 cpufreq_la_SOURCES = cpufreq.c cpufreq.h
29 cpufreq_la_LDFLAGS = -module
30 endif
32 if BUILD_MODULE_DISK
33 pkglib_LTLIBRARIES += disk.la
34 disk_la_SOURCES = disk.c disk.h
35 disk_la_LDFLAGS = -module
36 endif
38 if BUILD_MODULE_HDDTEMP
39 pkglib_LTLIBRARIES += hddtemp.la
40 hddtemp_la_SOURCES = hddtemp.c hddtemp.h
41 hddtemp_la_LDFLAGS = -module
42 endif
44 if BUILD_MODULE_LOAD
45 pkglib_LTLIBRARIES += load.la
46 load_la_SOURCES = load.c load.h
47 load_la_LDFLAGS = -module
48 endif
50 if BUILD_MODULE_MEMORY
51 pkglib_LTLIBRARIES += memory.la
52 memory_la_SOURCES = memory.c memory.h
53 memory_la_LDFLAGS = -module
54 endif
56 if BUILD_MODULE_NFS
57 pkglib_LTLIBRARIES += nfs.la
58 nfs_la_SOURCES = nfs.c nfs.h
59 nfs_la_LDFLAGS = -module
60 endif
62 if BUILD_MODULE_PING
63 pkglib_LTLIBRARIES += ping.la
64 ping_la_SOURCES = ping.c ping.h
65 ping_la_LDFLAGS = -module
66 ping_la_LIBADD = libping/libping.la
67 ping_la_DEPENDENCIES = libping/libping.la
68 endif
70 if BUILD_MODULE_PROCESSES
71 pkglib_LTLIBRARIES += processes.la
72 processes_la_SOURCES = processes.c processes.h
73 processes_la_LDFLAGS = -module
74 endif
76 if BUILD_MODULE_SENSORS
77 pkglib_LTLIBRARIES += sensors.la
78 sensors_la_SOURCES = sensors.c sensors.h
79 sensors_la_LDFLAGS = -module -lsensors
80 endif
82 if BUILD_MODULE_SERIAL
83 pkglib_LTLIBRARIES += serial.la
84 serial_la_SOURCES = serial.c serial.h
85 serial_la_LDFLAGS = -module
86 endif
88 if BUILD_MODULE_SWAP
89 pkglib_LTLIBRARIES += swap.la
90 swap_la_SOURCES = swap.c swap.h
91 swap_la_LDFLAGS = -module
92 endif
94 if BUILD_MODULE_TAPE
95 pkglib_LTLIBRARIES += tape.la
96 tape_la_SOURCES = tape.c tape.h
97 tape_la_LDFLAGS = -module
98 endif
100 if BUILD_MODULE_TRAFFIC
101 pkglib_LTLIBRARIES += traffic.la
102 traffic_la_SOURCES = traffic.c traffic.h
103 traffic_la_LDFLAGS = -module
104 endif
106 if BUILD_MODULE_USERS
107 pkglib_LTLIBRARIES += users.la
108 users_la_SOURCES = users.c users.h
109 users_la_LDFLAGS = -module
110 endif
112 man_MANS = collectd.1
113 #collectd_1_SOURCES = collectd.pod
115 EXTRA_DIST = $(man_MANS)
117 .pod.1:
118 pod2man --release=$(VERSION) --center=$(PACKAGE) $< >$@