Makefile.am 13 KB

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