Makefile.am 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  1. # SPDX-License-Identifier: GPL-3.0-or-later
  2. AUTOMAKE_OPTIONS=foreign subdir-objects 1.11
  3. ACLOCAL_AMFLAGS = -I build/m4
  4. MAINTAINERCLEANFILES= \
  5. config.log config.status \
  6. $(srcdir)/Makefile.in \
  7. $(srcdir)/config.h.in $(srcdir)/config.h.in~ $(srcdir)/configure \
  8. $(srcdir)/install-sh $(srcdir)/ltmain.sh $(srcdir)/missing \
  9. $(srcdir)/compile $(srcdir)/depcomp $(srcdir)/aclocal.m4 \
  10. $(srcdir)/config.guess $(srcdir)/config.sub \
  11. $(srcdir)/m4/ltsugar.m4 $(srcdir)/m4/libtool.m4 \
  12. $(srcdir)/m4/ltversion.m4 $(srcdir)/m4/lt~obsolete.m4 \
  13. $(srcdir)/m4/ltoptions.m4 \
  14. $(srcdir)/pkcs11-helper.spec $(srcdir)/config-w32-vc.h
  15. EXTRA_DIST = \
  16. .gitignore \
  17. .codacy.yml \
  18. .codeclimate.yml \
  19. .csslintrc \
  20. .eslintignore \
  21. .eslintrc \
  22. .lgtm.yml \
  23. .travis \
  24. .github/CODEOWNERS \
  25. build/m4/jemalloc.m4 \
  26. build/m4/ax_c___atomic.m4 \
  27. build/m4/ax_check_enable_debug.m4 \
  28. build/m4/ax_c_mallinfo.m4 \
  29. build/m4/ax_gcc_func_attribute.m4 \
  30. build/m4/ax_check_compile_flag.m4 \
  31. build/m4/ax_c_statement_expressions.m4 \
  32. build/m4/ax_pthread.m4 \
  33. build/m4/ax_c_lto.m4 \
  34. build/m4/ax_c_mallopt.m4 \
  35. build/m4/tcmalloc.m4 \
  36. build/m4/ax_c__generic.m4 \
  37. README.md \
  38. CONTRIBUTORS.md \
  39. CODE_OF_CONDUCT.md \
  40. LICENSE \
  41. REDISTRIBUTED.md \
  42. CONTRIBUTING.md \
  43. $(NULL)
  44. SUBDIRS = \
  45. diagrams \
  46. makeself \
  47. system \
  48. tests \
  49. $(NULL)
  50. dist_noinst_DATA= \
  51. cppcheck.sh \
  52. configs.signatures \
  53. contrib \
  54. netdata.cppcheck \
  55. netdata.spec \
  56. package.json \
  57. docs/Add-more-charts-to-netdata.md \
  58. docs/Demo-Sites.md \
  59. docs/Donations-netdata-has-received.md \
  60. docs/Netdata-Security-and-Disclosure-Information.md \
  61. docs/Performance.md \
  62. docs/Running-behind-apache.md \
  63. docs/Running-behind-caddy.md \
  64. docs/Running-behind-lighttpd.md \
  65. docs/Running-behind-nginx.md \
  66. docs/Third-Party-Plugins.md \
  67. docs/a-github-star-is-important.md \
  68. docs/high-performance-netdata.md \
  69. docs/netdata-for-IoT.md \
  70. docs/netdata-security.md \
  71. docs/Why-Netdata.md \
  72. docs/GettingStarted.md \
  73. docs/Charts.md \
  74. docs/configuration-guide.md \
  75. docs/generator/custom \
  76. packaging/installer/README.md \
  77. packaging/installer/UNINSTALL.md \
  78. packaging/installer/UPDATE.md \
  79. netlify.toml \
  80. $(NULL)
  81. # until integrated within build
  82. # should be proper init.d/openrc/systemd usable
  83. dist_noinst_SCRIPTS= \
  84. coverity-scan.sh \
  85. kickstart.sh \
  86. kickstart-static64.sh \
  87. netdata-installer.sh \
  88. packaging/installer/functions.sh \
  89. docs/generator/buildhtml.sh \
  90. docs/generator/buildyaml.sh \
  91. docs/generator/checklinks.sh \
  92. docs/generator/requirements.txt \
  93. docs/generator/runtime.txt \
  94. $(NULL)
  95. # -----------------------------------------------------------------------------
  96. # Compile netdata binaries
  97. SUBDIRS += \
  98. backends \
  99. collectors \
  100. daemon \
  101. database \
  102. health \
  103. libnetdata \
  104. registry \
  105. streaming \
  106. web \
  107. $(NULL)
  108. AM_CFLAGS = \
  109. $(OPTIONAL_MATH_CFLAGS) \
  110. $(OPTIONAL_NFACCT_CLFAGS) \
  111. $(OPTIONAL_ZLIB_CFLAGS) \
  112. $(OPTIONAL_UUID_CFLAGS) \
  113. $(OPTIONAL_LIBCAP_LIBS) \
  114. $(OPTIONAL_IPMIMONITORING_CFLAGS) \
  115. $(NULL)
  116. sbin_PROGRAMS =
  117. dist_cache_DATA = packaging/installer/.keep
  118. dist_varlib_DATA = packaging/installer/.keep
  119. dist_registry_DATA = packaging/installer/.keep
  120. dist_log_DATA = packaging/installer/.keep
  121. plugins_PROGRAMS =
  122. LIBNETDATA_FILES = \
  123. libnetdata/adaptive_resortable_list/adaptive_resortable_list.c \
  124. libnetdata/adaptive_resortable_list/adaptive_resortable_list.h \
  125. libnetdata/config/appconfig.c \
  126. libnetdata/config/appconfig.h \
  127. libnetdata/avl/avl.c \
  128. libnetdata/avl/avl.h \
  129. libnetdata/buffer/buffer.c \
  130. libnetdata/buffer/buffer.h \
  131. libnetdata/clocks/clocks.c \
  132. libnetdata/clocks/clocks.h \
  133. libnetdata/dictionary/dictionary.c \
  134. libnetdata/dictionary/dictionary.h \
  135. libnetdata/eval/eval.c \
  136. libnetdata/eval/eval.h \
  137. libnetdata/inlined.h \
  138. libnetdata/libnetdata.c \
  139. libnetdata/libnetdata.h \
  140. libnetdata/locks/locks.c \
  141. libnetdata/locks/locks.h \
  142. libnetdata/log/log.c \
  143. libnetdata/log/log.h \
  144. libnetdata/popen/popen.c \
  145. libnetdata/popen/popen.h \
  146. libnetdata/procfile/procfile.c \
  147. libnetdata/procfile/procfile.h \
  148. libnetdata/os.c \
  149. libnetdata/os.h \
  150. libnetdata/simple_pattern/simple_pattern.c \
  151. libnetdata/simple_pattern/simple_pattern.h \
  152. libnetdata/socket/socket.c \
  153. libnetdata/socket/socket.h \
  154. libnetdata/statistical/statistical.c \
  155. libnetdata/statistical/statistical.h \
  156. libnetdata/storage_number/storage_number.c \
  157. libnetdata/storage_number/storage_number.h \
  158. libnetdata/threads/threads.c \
  159. libnetdata/threads/threads.h \
  160. libnetdata/url/url.c \
  161. libnetdata/url/url.h \
  162. $(NULL)
  163. APPS_PLUGIN_FILES = \
  164. collectors/apps.plugin/apps_plugin.c \
  165. $(LIBNETDATA_FILES) \
  166. $(NULL)
  167. CHECKS_PLUGIN_FILES = \
  168. collectors/checks.plugin/plugin_checks.c \
  169. collectors/checks.plugin/plugin_checks.h \
  170. $(NULL)
  171. FREEBSD_PLUGIN_FILES = \
  172. collectors/freebsd.plugin/plugin_freebsd.c \
  173. collectors/freebsd.plugin/plugin_freebsd.h \
  174. collectors/freebsd.plugin/freebsd_sysctl.c \
  175. collectors/freebsd.plugin/freebsd_getmntinfo.c \
  176. collectors/freebsd.plugin/freebsd_getifaddrs.c \
  177. collectors/freebsd.plugin/freebsd_devstat.c \
  178. collectors/freebsd.plugin/freebsd_kstat_zfs.c \
  179. collectors/freebsd.plugin/freebsd_ipfw.c \
  180. collectors/proc.plugin/zfs_common.c \
  181. collectors/proc.plugin/zfs_common.h \
  182. $(NULL)
  183. HEALTH_PLUGIN_FILES = \
  184. health/health.c \
  185. health/health.h \
  186. health/health_config.c \
  187. health/health_json.c \
  188. health/health_log.c \
  189. $(NULL)
  190. IDLEJITTER_PLUGIN_FILES = \
  191. collectors/idlejitter.plugin/plugin_idlejitter.c \
  192. collectors/idlejitter.plugin/plugin_idlejitter.h \
  193. $(NULL)
  194. CGROUPS_PLUGIN_FILES = \
  195. collectors/cgroups.plugin/sys_fs_cgroup.c \
  196. collectors/cgroups.plugin/sys_fs_cgroup.h \
  197. $(NULL)
  198. CGROUP_NETWORK_FILES = \
  199. collectors/cgroups.plugin/cgroup-network.c \
  200. $(LIBNETDATA_FILES) \
  201. $(NULL)
  202. DISKSPACE_PLUGIN_FILES = \
  203. collectors/diskspace.plugin/plugin_diskspace.h \
  204. collectors/diskspace.plugin/plugin_diskspace.c \
  205. $(NULL)
  206. FREEIPMI_PLUGIN_FILES = \
  207. collectors/freeipmi.plugin/freeipmi_plugin.c \
  208. $(LIBNETDATA_FILES) \
  209. $(NULL)
  210. NFACCT_PLUGIN_FILES = \
  211. collectors/nfacct.plugin/plugin_nfacct.c \
  212. collectors/nfacct.plugin/plugin_nfacct.h \
  213. $(NULL)
  214. PROC_PLUGIN_FILES = \
  215. collectors/proc.plugin/ipc.c \
  216. collectors/proc.plugin/plugin_proc.c \
  217. collectors/proc.plugin/plugin_proc.h \
  218. collectors/proc.plugin/proc_diskstats.c \
  219. collectors/proc.plugin/proc_mdstat.c \
  220. collectors/proc.plugin/proc_interrupts.c \
  221. collectors/proc.plugin/proc_softirqs.c \
  222. collectors/proc.plugin/proc_loadavg.c \
  223. collectors/proc.plugin/proc_meminfo.c \
  224. collectors/proc.plugin/proc_net_dev.c \
  225. collectors/proc.plugin/proc_net_ip_vs_stats.c \
  226. collectors/proc.plugin/proc_net_netstat.c \
  227. collectors/proc.plugin/proc_net_rpc_nfs.c \
  228. collectors/proc.plugin/proc_net_rpc_nfsd.c \
  229. collectors/proc.plugin/proc_net_snmp.c \
  230. collectors/proc.plugin/proc_net_snmp6.c \
  231. collectors/proc.plugin/proc_net_sctp_snmp.c \
  232. collectors/proc.plugin/proc_net_sockstat.c \
  233. collectors/proc.plugin/proc_net_sockstat6.c \
  234. collectors/proc.plugin/proc_net_softnet_stat.c \
  235. collectors/proc.plugin/proc_net_stat_conntrack.c \
  236. collectors/proc.plugin/proc_net_stat_synproxy.c \
  237. collectors/proc.plugin/proc_self_mountinfo.c \
  238. collectors/proc.plugin/proc_self_mountinfo.h \
  239. collectors/proc.plugin/zfs_common.c \
  240. collectors/proc.plugin/zfs_common.h \
  241. collectors/proc.plugin/proc_spl_kstat_zfs.c \
  242. collectors/proc.plugin/proc_stat.c \
  243. collectors/proc.plugin/proc_sys_kernel_random_entropy_avail.c \
  244. collectors/proc.plugin/proc_vmstat.c \
  245. collectors/proc.plugin/proc_uptime.c \
  246. collectors/proc.plugin/sys_kernel_mm_ksm.c \
  247. collectors/proc.plugin/sys_devices_system_edac_mc.c \
  248. collectors/proc.plugin/sys_devices_system_node.c \
  249. collectors/proc.plugin/sys_fs_btrfs.c \
  250. collectors/proc.plugin/sys_class_power_supply.c \
  251. $(NULL)
  252. TC_PLUGIN_FILES = \
  253. collectors/tc.plugin/plugin_tc.c \
  254. collectors/tc.plugin/plugin_tc.h \
  255. $(NULL)
  256. MACOS_PLUGIN_FILES = \
  257. collectors/macos.plugin/plugin_macos.c \
  258. collectors/macos.plugin/plugin_macos.h \
  259. collectors/macos.plugin/macos_sysctl.c \
  260. collectors/macos.plugin/macos_mach_smi.c \
  261. collectors/macos.plugin/macos_fw.c \
  262. $(NULL)
  263. PLUGINSD_PLUGIN_FILES = \
  264. collectors/plugins.d/plugins_d.c \
  265. collectors/plugins.d/plugins_d.h \
  266. $(NULL)
  267. RRD_PLUGIN_FILES = \
  268. database/rrdcalc.c \
  269. database/rrdcalc.h \
  270. database/rrdcalctemplate.c \
  271. database/rrdcalctemplate.h \
  272. database/rrddim.c \
  273. database/rrddimvar.c \
  274. database/rrddimvar.h \
  275. database/rrdfamily.c \
  276. database/rrdhost.c \
  277. database/rrd.c \
  278. database/rrd.h \
  279. database/rrdset.c \
  280. database/rrdsetvar.c \
  281. database/rrdsetvar.h \
  282. database/rrdvar.c \
  283. database/rrdvar.h \
  284. $(NULL)
  285. API_PLUGIN_FILES = \
  286. web/api/badges/web_buffer_svg.c \
  287. web/api/badges/web_buffer_svg.h \
  288. web/api/exporters/allmetrics.c \
  289. web/api/exporters/allmetrics.h \
  290. web/api/exporters/shell/allmetrics_shell.c \
  291. web/api/exporters/shell/allmetrics_shell.h \
  292. web/api/queries/average/average.c \
  293. web/api/queries/average/average.h \
  294. web/api/queries/des/des.c \
  295. web/api/queries/des/des.h \
  296. web/api/queries/incremental_sum/incremental_sum.c \
  297. web/api/queries/incremental_sum/incremental_sum.h \
  298. web/api/queries/max/max.c \
  299. web/api/queries/max/max.h \
  300. web/api/queries/median/median.c \
  301. web/api/queries/median/median.h \
  302. web/api/queries/min/min.c \
  303. web/api/queries/min/min.h \
  304. web/api/queries/query.c \
  305. web/api/queries/query.h \
  306. web/api/queries/rrdr.c \
  307. web/api/queries/rrdr.h \
  308. web/api/queries/ses/ses.c \
  309. web/api/queries/ses/ses.h \
  310. web/api/queries/stddev/stddev.c \
  311. web/api/queries/stddev/stddev.h \
  312. web/api/queries/sum/sum.c \
  313. web/api/queries/sum/sum.h \
  314. web/api/formatters/rrd2json.c \
  315. web/api/formatters/rrd2json.h \
  316. web/api/formatters/csv/csv.c \
  317. web/api/formatters/csv/csv.h \
  318. web/api/formatters/json/json.c \
  319. web/api/formatters/json/json.h \
  320. web/api/formatters/ssv/ssv.c \
  321. web/api/formatters/ssv/ssv.h \
  322. web/api/formatters/value/value.c \
  323. web/api/formatters/value/value.h \
  324. web/api/formatters/json_wrapper.c \
  325. web/api/formatters/json_wrapper.h \
  326. web/api/formatters/charts2json.c \
  327. web/api/formatters/charts2json.h \
  328. web/api/formatters/rrdset2json.c \
  329. web/api/formatters/rrdset2json.h \
  330. web/api/web_api_v1.c \
  331. web/api/web_api_v1.h \
  332. $(NULL)
  333. STREAMING_PLUGIN_FILES = \
  334. streaming/rrdpush.c \
  335. streaming/rrdpush.h \
  336. $(NULL)
  337. REGISTRY_PLUGIN_FILES = \
  338. registry/registry.c \
  339. registry/registry.h \
  340. registry/registry_db.c \
  341. registry/registry_init.c \
  342. registry/registry_internals.c \
  343. registry/registry_internals.h \
  344. registry/registry_log.c \
  345. registry/registry_machine.c \
  346. registry/registry_machine.h \
  347. registry/registry_person.c \
  348. registry/registry_person.h \
  349. registry/registry_url.c \
  350. registry/registry_url.h \
  351. $(NULL)
  352. STATSD_PLUGIN_FILES = \
  353. collectors/statsd.plugin/statsd.c \
  354. collectors/statsd.plugin/statsd.h \
  355. $(NULL)
  356. WEB_PLUGIN_FILES = \
  357. web/server/web_client.c \
  358. web/server/web_client.h \
  359. web/server/web_server.c \
  360. web/server/web_server.h \
  361. web/server/web_client_cache.c \
  362. web/server/web_client_cache.h \
  363. web/server/single/single-threaded.c \
  364. web/server/single/single-threaded.h \
  365. web/server/multi/multi-threaded.c \
  366. web/server/multi/multi-threaded.h \
  367. web/server/static/static-threaded.c \
  368. web/server/static/static-threaded.h \
  369. $(NULL)
  370. BACKENDS_PLUGIN_FILES = \
  371. backends/backends.c \
  372. backends/backends.h \
  373. backends/graphite/graphite.c \
  374. backends/graphite/graphite.h \
  375. backends/json/json.c \
  376. backends/json/json.h \
  377. backends/opentsdb/opentsdb.c \
  378. backends/opentsdb/opentsdb.h \
  379. backends/prometheus/backend_prometheus.c \
  380. backends/prometheus/backend_prometheus.h \
  381. $(NULL)
  382. DAEMON_FILES = \
  383. daemon/common.c \
  384. daemon/common.h \
  385. daemon/daemon.c \
  386. daemon/daemon.h \
  387. daemon/global_statistics.c \
  388. daemon/global_statistics.h \
  389. daemon/main.c \
  390. daemon/main.h \
  391. daemon/signals.c \
  392. daemon/signals.h \
  393. daemon/unit_test.c \
  394. daemon/unit_test.h \
  395. $(NULL)
  396. NETDATA_FILES = \
  397. collectors/all.h \
  398. $(DAEMON_FILES) \
  399. $(LIBNETDATA_FILES) \
  400. $(API_PLUGIN_FILES) \
  401. $(BACKENDS_PLUGIN_FILES) \
  402. $(CHECKS_PLUGIN_FILES) \
  403. $(HEALTH_PLUGIN_FILES) \
  404. $(IDLEJITTER_PLUGIN_FILES) \
  405. $(PLUGINSD_PLUGIN_FILES) \
  406. $(REGISTRY_PLUGIN_FILES) \
  407. $(RRD_PLUGIN_FILES) \
  408. $(STREAMING_PLUGIN_FILES) \
  409. $(STATSD_PLUGIN_FILES) \
  410. $(WEB_PLUGIN_FILES) \
  411. $(NULL)
  412. if FREEBSD
  413. NETDATA_FILES += \
  414. $(FREEBSD_PLUGIN_FILES) \
  415. $(NULL)
  416. endif
  417. if MACOS
  418. NETDATA_FILES += \
  419. $(MACOS_PLUGIN_FILES) \
  420. $(NULL)
  421. endif
  422. if LINUX
  423. NETDATA_FILES += \
  424. $(CGROUPS_PLUGIN_FILES) \
  425. $(DISKSPACE_PLUGIN_FILES) \
  426. $(NFACCT_PLUGIN_FILES) \
  427. $(PROC_PLUGIN_FILES) \
  428. $(TC_PLUGIN_FILES) \
  429. $(NULL)
  430. endif
  431. NETDATA_COMMON_LIBS = \
  432. $(OPTIONAL_MATH_LIBS) \
  433. $(OPTIONAL_ZLIB_LIBS) \
  434. $(OPTIONAL_UUID_LIBS) \
  435. $(NULL)
  436. sbin_PROGRAMS += netdata
  437. netdata_SOURCES = $(NETDATA_FILES)
  438. netdata_LDADD = \
  439. $(NETDATA_COMMON_LIBS) \
  440. $(OPTIONAL_NFACCT_LIBS) \
  441. $(NULL)
  442. if ENABLE_PLUGIN_APPS
  443. plugins_PROGRAMS += apps.plugin
  444. apps_plugin_SOURCES = $(APPS_PLUGIN_FILES)
  445. apps_plugin_LDADD = \
  446. $(NETDATA_COMMON_LIBS) \
  447. $(OPTIONAL_LIBCAP_LIBS) \
  448. $(NULL)
  449. endif
  450. if ENABLE_PLUGIN_CGROUP_NETWORK
  451. plugins_PROGRAMS += cgroup-network
  452. cgroup_network_SOURCES = $(CGROUP_NETWORK_FILES)
  453. cgroup_network_LDADD = \
  454. $(NETDATA_COMMON_LIBS) \
  455. $(NULL)
  456. endif
  457. if ENABLE_PLUGIN_FREEIPMI
  458. plugins_PROGRAMS += freeipmi.plugin
  459. freeipmi_plugin_SOURCES = $(FREEIPMI_PLUGIN_FILES)
  460. freeipmi_plugin_LDADD = \
  461. $(NETDATA_COMMON_LIBS) \
  462. $(OPTIONAL_IPMIMONITORING_LIBS) \
  463. $(NULL)
  464. endif