]> arthur.barton.de Git - netdata.git/blob - src/Makefile.am
freeipmi.plugin; fixes #1799; fixes #1794; fixes #1309; fixes #1729
[netdata.git] / src / Makefile.am
1 #
2 # Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com>
3 #
4 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
5
6 AM_CPPFLAGS = \
7         -DVARLIB_DIR="\"$(varlibdir)\"" \
8         -DCACHE_DIR="\"$(cachedir)\"" \
9         -DCONFIG_DIR="\"$(configdir)\"" \
10         -DLOG_DIR="\"$(logdir)\"" \
11         -DPLUGINS_DIR="\"$(pluginsdir)\"" \
12         -DRUN_DIR="\"$(localstatedir)/run/netdata\"" \
13         -DWEB_DIR="\"$(webdir)\"" \
14         $(NULL)
15
16 AM_CFLAGS = \
17         $(OPTIONAL_MATH_CFLAGS) \
18         $(OPTIONAL_NFACCT_CLFAGS) \
19         $(OPTIONAL_ZLIB_CFLAGS) \
20         $(OPTIONAL_UUID_CFLAGS) \
21         $(NULL)
22
23 sbin_PROGRAMS = netdata
24 dist_cache_DATA = .keep
25 dist_varlib_DATA = .keep
26 dist_registry_DATA = .keep
27 dist_log_DATA = .keep
28 plugins_PROGRAMS =
29 if !MACOS
30 plugins_PROGRAMS += apps.plugin
31 endif
32
33 netdata_SOURCES = \
34         appconfig.c appconfig.h \
35         adaptive_resortable_list.c adaptive_resortable_list.h \
36         avl.c avl.h \
37         backends.c backends.h \
38         clocks.c clocks.h \
39         common.c common.h \
40         daemon.c daemon.h \
41         dictionary.c dictionary.h \
42         eval.c eval.h \
43         global_statistics.c global_statistics.h \
44         health.c health.h health_log.c health_config.c health_json.c \
45         inlined.h \
46         log.c log.h \
47         main.c main.h \
48         plugin_checks.c plugin_checks.h \
49         plugin_idlejitter.c plugin_idlejitter.h \
50         plugin_nfacct.c plugin_nfacct.h \
51         plugin_tc.c plugin_tc.h \
52         plugins_d.c plugins_d.h \
53         popen.c popen.h \
54         socket.c socket.h \
55         simple_pattern.c simple_pattern.h \
56         sys_fs_cgroup.c \
57         sys_devices_system_edac_mc.c \
58         sys_devices_system_node.c \
59         procfile.c procfile.h \
60         proc_self_mountinfo.c proc_self_mountinfo.h \
61         registry.c registry.h \
62         registry_internals.c registry_internals.h \
63         registry_url.c registry_url.h \
64         registry_person.c registry_person.h \
65         registry_machine.c registry_machine.h \
66         registry_init.c \
67         registry_db.c \
68         registry_log.c \
69         rrd.c rrd.h \
70         rrddim.c \
71         rrdfamily.c \
72         rrdhost.c \
73         rrdset.c \
74         rrdcalc.c \
75         rrdcalctemplate.c \
76         rrdvar.c \
77         rrddimvar.c \
78         rrdsetvar.c \
79         rrd2json.c rrd2json.h \
80         rrd2json_api_old.c rrd2json_api_old.h \
81         rrdpush.c rrdpush.h \
82         storage_number.c storage_number.h \
83         unit_test.c unit_test.h \
84         url.c url.h \
85         web_api_old.c web_api_old.h \
86         web_api_v1.c web_api_v1.h \
87         web_buffer.c web_buffer.h \
88         web_buffer_svg.c web_buffer_svg.h \
89         web_client.c web_client.h \
90         web_server.c web_server.h \
91         $(NULL)
92
93 if FREEBSD
94 netdata_SOURCES += \
95         plugin_freebsd.c plugin_freebsd.h \
96         freebsd_sysctl.c \
97         $(NULL)
98 else
99 if MACOS
100 netdata_SOURCES += \
101         plugin_macos.c plugin_macos.h \
102         macos_sysctl.c \
103         macos_mach_smi.c \
104         macos_fw.c \
105         $(NULL)
106 else
107 netdata_SOURCES += \
108         ipc.c ipc.h \
109         plugin_proc.c plugin_proc.h \
110         plugin_proc_diskspace.c plugin_proc_diskspace.h \
111         proc_diskstats.c \
112         proc_interrupts.c \
113         proc_softirqs.c \
114         proc_loadavg.c \
115         proc_meminfo.c \
116         proc_net_dev.c \
117         proc_net_ip_vs_stats.c \
118         proc_net_netstat.c \
119         proc_net_rpc_nfs.c \
120         proc_net_rpc_nfsd.c \
121         proc_net_snmp.c \
122         proc_net_snmp6.c \
123         proc_net_softnet_stat.c \
124         proc_net_stat_conntrack.c \
125         proc_net_stat_synproxy.c \
126         proc_stat.c \
127         proc_sys_kernel_random_entropy_avail.c \
128         proc_vmstat.c \
129         proc_uptime.c \
130         sys_kernel_mm_ksm.c \
131         $(NULL)
132 endif
133 endif
134
135 netdata_LDADD = \
136         $(OPTIONAL_MATH_LIBS) \
137         $(OPTIONAL_NFACCT_LIBS) \
138         $(OPTIONAL_ZLIB_LIBS) \
139         $(OPTIONAL_UUID_LIBS) \
140         $(NULL)
141
142 apps_plugin_SOURCES = \
143         apps_plugin.c \
144         avl.c avl.h \
145         clocks.c clocks.h \
146         common.c common.h \
147         inlined.h \
148         log.c log.h \
149         procfile.c procfile.h \
150         web_buffer.c web_buffer.h \
151         $(NULL)
152
153 if FREEBSD
154 apps_plugin_SOURCES += \
155        plugin_freebsd.h \
156        $(NULL)
157 endif
158
159 apps_plugin_LDADD = \
160         $(OPTIONAL_MATH_LIBS) \
161         $(OPTIONAL_CAP_LIBS) \
162         $(NULL)
163
164 if FREEIPMI
165 plugins_PROGRAMS += freeipmi.plugin
166
167 freeipmi_plugin_SOURCES = \
168         freeipmi_plugin.c \
169         $(NULL)
170
171 freeipmi_plugin_LDADD = \
172     $(OPTIONAL_IPMIMONITORING_LIBS) \
173         $(NULL)
174 endif