]> arthur.barton.de Git - netdata.git/blob - src/Makefile.am
Merge branch 'master' into ab-debian
[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         $(OPTIONAL_LIBCAP_CFLAGS) \
22         $(OPTIONAL_IPMIMONITORING_CFLAGS)\
23         $(NULL)
24
25 sbin_PROGRAMS = netdata
26 dist_cache_DATA = .keep
27 dist_varlib_DATA = .keep
28 dist_registry_DATA = .keep
29 dist_log_DATA = .keep
30 plugins_PROGRAMS =
31
32 if ENABLE_PLUGIN_APPS
33 plugins_PROGRAMS += apps.plugin
34 endif
35
36 if ENABLE_PLUGIN_FREEIPMI
37 plugins_PROGRAMS += freeipmi.plugin
38 endif
39
40 netdata_SOURCES = \
41         adaptive_resortable_list.c \
42         adaptive_resortable_list.h \
43         appconfig.c \
44         appconfig.h \
45         avl.c \
46         avl.h \
47         backends.c \
48         backends.h \
49         clocks.c \
50         clocks.h \
51         common.c \
52         common.h \
53         daemon.c \
54         daemon.h \
55         dictionary.c \
56         dictionary.h \
57         eval.c \
58         eval.h \
59         global_statistics.c \
60         global_statistics.h \
61         health.c \
62         health.h \
63         health_config.c \
64         health_json.c \
65         health_log.c \
66         inlined.h \
67         locks.h \
68         log.c \
69         log.h \
70         main.c \
71         main.h \
72         plugin_checks.c \
73         plugin_checks.h \
74         plugin_idlejitter.c \
75         plugin_idlejitter.h \
76         plugin_nfacct.c \
77         plugin_nfacct.h \
78         plugin_tc.c \
79         plugin_tc.h \
80         plugins_d.c \
81         plugins_d.h \
82         popen.c \
83         popen.h \
84         proc_self_mountinfo.c \
85         proc_self_mountinfo.h \
86         procfile.c \
87         procfile.h \
88         registry.c \
89         registry.h \
90         registry_db.c \
91         registry_init.c \
92         registry_internals.c \
93         registry_internals.h \
94         registry_log.c \
95         registry_machine.c \
96         registry_machine.h \
97         registry_person.c \
98         registry_person.h \
99         registry_url.c \
100         registry_url.h \
101         rrd.c \
102         rrd.h \
103         rrd2json.c \
104         rrd2json.h \
105         rrd2json_api_old.c \
106         rrd2json_api_old.h \
107         rrdcalc.c \
108         rrdcalctemplate.c \
109         rrddim.c \
110         rrddimvar.c \
111         rrdfamily.c \
112         rrdhost.c \
113         rrdpush.c \
114         rrdpush.h \
115         rrdset.c \
116         rrdsetvar.c \
117         rrdvar.c \
118         simple_pattern.c \
119         simple_pattern.h \
120         socket.c \
121         socket.h \
122         storage_number.c \
123         storage_number.h \
124         sys_devices_system_edac_mc.c \
125         sys_devices_system_node.c \
126         sys_fs_cgroup.c \
127         unit_test.c \
128         unit_test.h \
129         url.c url.h \
130         web_api_old.c \
131         web_api_old.h \
132         web_api_v1.c \
133         web_api_v1.h \
134         web_buffer.c \
135         web_buffer.h \
136         web_buffer_svg.c \
137         web_buffer_svg.h \
138         web_client.c \
139         web_client.h \
140         web_server.c \
141         web_server.h \
142         $(NULL)
143
144 if FREEBSD
145 netdata_SOURCES += \
146         plugin_freebsd.c \
147         plugin_freebsd.h \
148         freebsd_sysctl.c \
149         $(NULL)
150 else
151 if MACOS
152 netdata_SOURCES += \
153         plugin_macos.c \
154         plugin_macos.h \
155         macos_sysctl.c \
156         macos_mach_smi.c \
157         macos_fw.c \
158         $(NULL)
159 else
160 netdata_SOURCES += \
161         ipc.c ipc.h \
162         plugin_proc.c \
163         plugin_proc.h \
164         plugin_proc_diskspace.c \
165         plugin_proc_diskspace.h \
166         proc_diskstats.c \
167         proc_interrupts.c \
168         proc_softirqs.c \
169         proc_loadavg.c \
170         proc_meminfo.c \
171         proc_net_dev.c \
172         proc_net_ip_vs_stats.c \
173         proc_net_netstat.c \
174         proc_net_rpc_nfs.c \
175         proc_net_rpc_nfsd.c \
176         proc_net_snmp.c \
177         proc_net_snmp6.c \
178         proc_net_softnet_stat.c \
179         proc_net_stat_conntrack.c \
180         proc_net_stat_synproxy.c \
181         proc_stat.c \
182         proc_sys_kernel_random_entropy_avail.c \
183         proc_vmstat.c \
184         proc_uptime.c \
185         sys_kernel_mm_ksm.c \
186         $(NULL)
187 endif
188 endif
189
190 netdata_LDADD = \
191         $(OPTIONAL_MATH_LIBS) \
192         $(OPTIONAL_NFACCT_LIBS) \
193         $(OPTIONAL_ZLIB_LIBS) \
194         $(OPTIONAL_UUID_LIBS) \
195         $(NULL)
196
197 apps_plugin_SOURCES = \
198         apps_plugin.c \
199         avl.c avl.h \
200         clocks.c clocks.h \
201         common.c common.h \
202         inlined.h \
203         log.c log.h \
204         procfile.c procfile.h \
205         web_buffer.c web_buffer.h \
206         $(NULL)
207
208 if FREEBSD
209 apps_plugin_SOURCES += \
210         plugin_freebsd.h \
211         $(NULL)
212 endif
213
214 apps_plugin_LDADD = \
215         $(OPTIONAL_MATH_LIBS) \
216         $(OPTIONAL_LIBCAP_LIBS) \
217         $(NULL)
218
219 freeipmi_plugin_SOURCES = \
220         freeipmi_plugin.c \
221         clocks.c clocks.h \
222         common.c common.h \
223         inlined.h \
224         log.c log.h \
225         procfile.c procfile.h \
226         $(NULL)
227
228 freeipmi_plugin_LDADD = \
229         $(OPTIONAL_IPMIMONITORING_LIBS) \
230         $(NULL)