Makefile.am 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243
  1. # SPDX-License-Identifier: GPL-3.0-or-later
  2. AUTOMAKE_OPTIONS = foreign subdir-objects 1.11
  3. ACLOCAL_AMFLAGS = -I build/m4
  4. nodist_netdata_SOURCES=$(NULL)
  5. BUILT_SOURCES=$(NULL)
  6. MAINTAINERCLEANFILES = \
  7. config.log config.status \
  8. $(srcdir)/Makefile.in \
  9. $(srcdir)/config.h.in $(srcdir)/config.h.in~ $(srcdir)/configure \
  10. $(srcdir)/install-sh $(srcdir)/ltmain.sh $(srcdir)/missing \
  11. $(srcdir)/compile $(srcdir)/depcomp $(srcdir)/aclocal.m4 \
  12. $(srcdir)/config.guess $(srcdir)/config.sub \
  13. $(srcdir)/m4/ltsugar.m4 $(srcdir)/m4/libtool.m4 \
  14. $(srcdir)/m4/ltversion.m4 $(srcdir)/m4/lt~obsolete.m4 \
  15. $(srcdir)/m4/ltoptions.m4 \
  16. $(srcdir)/pkcs11-helper.spec $(srcdir)/config-w32-vc.h
  17. CLEANFILES = \
  18. $(srcdir)/$(distdir).tar.gz
  19. EXTRA_DIST = \
  20. .gitignore \
  21. .csslintrc \
  22. .eslintignore \
  23. .eslintrc \
  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. LICENSE \
  39. REDISTRIBUTED.md \
  40. $(NULL)
  41. SUBDIRS = \
  42. diagrams \
  43. system \
  44. tests \
  45. $(NULL)
  46. dist_noinst_DATA = \
  47. CHANGELOG.md \
  48. cppcheck.sh \
  49. configs.signatures \
  50. contrib \
  51. docs \
  52. mqtt_websockets \
  53. netdata.cppcheck \
  54. netdata.spec \
  55. package.json \
  56. packaging/bundle-ebpf.sh \
  57. packaging/bundle-judy.sh \
  58. packaging/bundle-libbpf.sh \
  59. packaging/bundle-lws.sh \
  60. packaging/bundle-mosquitto.sh \
  61. packaging/check-kernel-config.sh \
  62. packaging/ebpf.checksums \
  63. packaging/ebpf.version \
  64. packaging/go.d.checksums \
  65. packaging/go.d.version \
  66. packaging/installer/README.md \
  67. packaging/installer/UNINSTALL.md \
  68. packaging/installer/UPDATE.md \
  69. packaging/jsonc.checksums \
  70. packaging/jsonc.version \
  71. packaging/judy.checksums \
  72. packaging/judy.version \
  73. packaging/libbpf.checksums \
  74. packaging/libbpf.version \
  75. packaging/libwebsockets.checksums \
  76. packaging/libwebsockets.version \
  77. packaging/mosquitto.checksums \
  78. packaging/mosquitto.version \
  79. packaging/protobuf.checksums \
  80. packaging/protobuf.version \
  81. packaging/version \
  82. $(NULL)
  83. # until integrated within build
  84. # should be proper init.d/openrc/systemd usable
  85. dist_noinst_SCRIPTS = \
  86. coverity-scan.sh \
  87. packaging/installer/netdata-updater.sh \
  88. packaging/installer/netdata-uninstaller.sh \
  89. packaging/installer/kickstart.sh \
  90. packaging/installer/kickstart-static64.sh \
  91. packaging/installer/functions.sh \
  92. netdata-installer.sh
  93. $(NULL)
  94. # -----------------------------------------------------------------------------
  95. # Compile netdata binaries
  96. SUBDIRS += \
  97. backends \
  98. collectors \
  99. daemon \
  100. database \
  101. exporting \
  102. health \
  103. libnetdata \
  104. registry \
  105. streaming \
  106. web \
  107. claim \
  108. parser \
  109. spawn \
  110. $(NULL)
  111. if ENABLE_ACLK
  112. SUBDIRS += \
  113. aclk/legacy \
  114. $(NULL)
  115. endif
  116. AM_CFLAGS = \
  117. $(OPTIONAL_MATH_CFLAGS) \
  118. $(OPTIONAL_NFACCT_CFLAGS) \
  119. $(OPTIONAL_ZLIB_CFLAGS) \
  120. $(OPTIONAL_UUID_CFLAGS) \
  121. $(OPTIONAL_MQTT_CFLAGS) \
  122. $(OPTIONAL_LIBCAP_LIBS) \
  123. $(OPTIONAL_IPMIMONITORING_CFLAGS) \
  124. $(OPTIONAL_CUPS_CFLAGS) \
  125. $(OPTIONAL_XENSTAT_CFLAGS) \
  126. $(OPTIONAL_BPF_CFLAGS) \
  127. $(NULL)
  128. sbin_PROGRAMS =
  129. plugins_PROGRAMS =
  130. LIBNETDATA_FILES = \
  131. libnetdata/adaptive_resortable_list/adaptive_resortable_list.c \
  132. libnetdata/adaptive_resortable_list/adaptive_resortable_list.h \
  133. libnetdata/config/appconfig.c \
  134. libnetdata/config/appconfig.h \
  135. libnetdata/avl/avl.c \
  136. libnetdata/avl/avl.h \
  137. libnetdata/buffer/buffer.c \
  138. libnetdata/buffer/buffer.h \
  139. libnetdata/circular_buffer/circular_buffer.c \
  140. libnetdata/circular_buffer/circular_buffer.h \
  141. libnetdata/clocks/clocks.c \
  142. libnetdata/clocks/clocks.h \
  143. libnetdata/dictionary/dictionary.c \
  144. libnetdata/dictionary/dictionary.h \
  145. libnetdata/eval/eval.c \
  146. libnetdata/eval/eval.h \
  147. libnetdata/inlined.h \
  148. libnetdata/libnetdata.c \
  149. libnetdata/libnetdata.h \
  150. libnetdata/required_dummies.h \
  151. libnetdata/locks/locks.c \
  152. libnetdata/locks/locks.h \
  153. libnetdata/log/log.c \
  154. libnetdata/log/log.h \
  155. libnetdata/popen/popen.c \
  156. libnetdata/popen/popen.h \
  157. libnetdata/procfile/procfile.c \
  158. libnetdata/procfile/procfile.h \
  159. libnetdata/os.c \
  160. libnetdata/os.h \
  161. libnetdata/simple_pattern/simple_pattern.c \
  162. libnetdata/simple_pattern/simple_pattern.h \
  163. libnetdata/socket/socket.c \
  164. libnetdata/socket/socket.h \
  165. libnetdata/socket/security.c \
  166. libnetdata/socket/security.h \
  167. libnetdata/statistical/statistical.c \
  168. libnetdata/statistical/statistical.h \
  169. libnetdata/storage_number/storage_number.c \
  170. libnetdata/storage_number/storage_number.h \
  171. libnetdata/threads/threads.c \
  172. libnetdata/threads/threads.h \
  173. libnetdata/url/url.c \
  174. libnetdata/url/url.h \
  175. libnetdata/json/json.c \
  176. libnetdata/json/json.h \
  177. libnetdata/json/jsmn.c \
  178. libnetdata/json/jsmn.h \
  179. libnetdata/health/health.c \
  180. libnetdata/health/health.h \
  181. libnetdata/string/utf8.h \
  182. $(NULL)
  183. if ENABLE_PLUGIN_EBPF
  184. LIBNETDATA_FILES += \
  185. libnetdata/ebpf/ebpf.c \
  186. libnetdata/ebpf/ebpf.h \
  187. $(NULL)
  188. endif
  189. APPS_PLUGIN_FILES = \
  190. collectors/apps.plugin/apps_plugin.c \
  191. $(LIBNETDATA_FILES) \
  192. $(NULL)
  193. CHECKS_PLUGIN_FILES = \
  194. collectors/checks.plugin/plugin_checks.c \
  195. collectors/checks.plugin/plugin_checks.h \
  196. $(NULL)
  197. FREEBSD_PLUGIN_FILES = \
  198. collectors/freebsd.plugin/plugin_freebsd.c \
  199. collectors/freebsd.plugin/plugin_freebsd.h \
  200. collectors/freebsd.plugin/freebsd_sysctl.c \
  201. collectors/freebsd.plugin/freebsd_getmntinfo.c \
  202. collectors/freebsd.plugin/freebsd_getifaddrs.c \
  203. collectors/freebsd.plugin/freebsd_devstat.c \
  204. collectors/freebsd.plugin/freebsd_kstat_zfs.c \
  205. collectors/freebsd.plugin/freebsd_ipfw.c \
  206. collectors/proc.plugin/zfs_common.c \
  207. collectors/proc.plugin/zfs_common.h \
  208. $(NULL)
  209. HEALTH_PLUGIN_FILES = \
  210. health/health.c \
  211. health/health.h \
  212. health/health_config.c \
  213. health/health_json.c \
  214. health/health_log.c \
  215. $(NULL)
  216. IDLEJITTER_PLUGIN_FILES = \
  217. collectors/idlejitter.plugin/plugin_idlejitter.c \
  218. collectors/idlejitter.plugin/plugin_idlejitter.h \
  219. $(NULL)
  220. CGROUPS_PLUGIN_FILES = \
  221. collectors/cgroups.plugin/sys_fs_cgroup.c \
  222. collectors/cgroups.plugin/sys_fs_cgroup.h \
  223. $(NULL)
  224. CGROUP_NETWORK_FILES = \
  225. collectors/cgroups.plugin/cgroup-network.c \
  226. $(LIBNETDATA_FILES) \
  227. $(NULL)
  228. DISKSPACE_PLUGIN_FILES = \
  229. collectors/diskspace.plugin/plugin_diskspace.h \
  230. collectors/diskspace.plugin/plugin_diskspace.c \
  231. $(NULL)
  232. TIMEX_PLUGIN_FILES = \
  233. collectors/timex.plugin/plugin_timex.h \
  234. collectors/timex.plugin/plugin_timex.c \
  235. $(NULL)
  236. FREEIPMI_PLUGIN_FILES = \
  237. collectors/freeipmi.plugin/freeipmi_plugin.c \
  238. $(LIBNETDATA_FILES) \
  239. $(NULL)
  240. CUPS_PLUGIN_FILES = \
  241. collectors/cups.plugin/cups_plugin.c \
  242. $(LIBNETDATA_FILES) \
  243. $(NULL)
  244. NFACCT_PLUGIN_FILES = \
  245. collectors/nfacct.plugin/plugin_nfacct.c \
  246. $(LIBNETDATA_FILES) \
  247. $(NULL)
  248. SLABINFO_PLUGIN_FILES = \
  249. collectors/slabinfo.plugin/slabinfo.c \
  250. $(LIBNETDATA_FILES) \
  251. $(NULL)
  252. XENSTAT_PLUGIN_FILES = \
  253. collectors/xenstat.plugin/xenstat_plugin.c \
  254. $(LIBNETDATA_FILES) \
  255. $(NULL)
  256. PERF_PLUGIN_FILES = \
  257. collectors/perf.plugin/perf_plugin.c \
  258. $(LIBNETDATA_FILES) \
  259. $(NULL)
  260. EBPF_PLUGIN_FILES = \
  261. collectors/ebpf.plugin/ebpf.c \
  262. collectors/ebpf.plugin/ebpf_cachestat.c \
  263. collectors/ebpf.plugin/ebpf_cachestat.h \
  264. collectors/ebpf.plugin/ebpf_dcstat.c \
  265. collectors/ebpf.plugin/ebpf_dcstat.h \
  266. collectors/ebpf.plugin/ebpf_disk.c \
  267. collectors/ebpf.plugin/ebpf_disk.h \
  268. collectors/ebpf.plugin/ebpf_fd.c \
  269. collectors/ebpf.plugin/ebpf_fd.h \
  270. collectors/ebpf.plugin/ebpf_filesystem.c \
  271. collectors/ebpf.plugin/ebpf_filesystem.h \
  272. collectors/ebpf.plugin/ebpf_hardirq.c \
  273. collectors/ebpf.plugin/ebpf_hardirq.h \
  274. collectors/ebpf.plugin/ebpf_mount.c \
  275. collectors/ebpf.plugin/ebpf_mount.h \
  276. collectors/ebpf.plugin/ebpf_oomkill.c \
  277. collectors/ebpf.plugin/ebpf_oomkill.h \
  278. collectors/ebpf.plugin/ebpf_process.c \
  279. collectors/ebpf.plugin/ebpf_process.h \
  280. collectors/ebpf.plugin/ebpf_socket.c \
  281. collectors/ebpf.plugin/ebpf_socket.h \
  282. collectors/ebpf.plugin/ebpf_softirq.c \
  283. collectors/ebpf.plugin/ebpf_softirq.h \
  284. collectors/ebpf.plugin/ebpf_sync.c \
  285. collectors/ebpf.plugin/ebpf_sync.h \
  286. collectors/ebpf.plugin/ebpf_swap.c \
  287. collectors/ebpf.plugin/ebpf_swap.h \
  288. collectors/ebpf.plugin/ebpf_vfs.c \
  289. collectors/ebpf.plugin/ebpf_vfs.h \
  290. collectors/ebpf.plugin/ebpf.h \
  291. collectors/ebpf.plugin/ebpf_apps.c \
  292. collectors/ebpf.plugin/ebpf_apps.h \
  293. $(LIBNETDATA_FILES) \
  294. $(NULL)
  295. PROC_PLUGIN_FILES = \
  296. collectors/proc.plugin/ipc.c \
  297. collectors/proc.plugin/plugin_proc.c \
  298. collectors/proc.plugin/plugin_proc.h \
  299. collectors/proc.plugin/proc_diskstats.c \
  300. collectors/proc.plugin/proc_mdstat.c \
  301. collectors/proc.plugin/proc_interrupts.c \
  302. collectors/proc.plugin/proc_softirqs.c \
  303. collectors/proc.plugin/proc_loadavg.c \
  304. collectors/proc.plugin/proc_meminfo.c \
  305. collectors/proc.plugin/proc_pagetypeinfo.c \
  306. collectors/proc.plugin/proc_pressure.c \
  307. collectors/proc.plugin/proc_pressure.h \
  308. collectors/proc.plugin/proc_net_dev.c \
  309. collectors/proc.plugin/proc_net_wireless.c \
  310. collectors/proc.plugin/proc_net_ip_vs_stats.c \
  311. collectors/proc.plugin/proc_net_netstat.c \
  312. collectors/proc.plugin/proc_net_rpc_nfs.c \
  313. collectors/proc.plugin/proc_net_rpc_nfsd.c \
  314. collectors/proc.plugin/proc_net_snmp.c \
  315. collectors/proc.plugin/proc_net_snmp6.c \
  316. collectors/proc.plugin/proc_net_sctp_snmp.c \
  317. collectors/proc.plugin/proc_net_sockstat.c \
  318. collectors/proc.plugin/proc_net_sockstat6.c \
  319. collectors/proc.plugin/proc_net_softnet_stat.c \
  320. collectors/proc.plugin/proc_net_stat_conntrack.c \
  321. collectors/proc.plugin/proc_net_stat_synproxy.c \
  322. collectors/proc.plugin/proc_self_mountinfo.c \
  323. collectors/proc.plugin/proc_self_mountinfo.h \
  324. collectors/proc.plugin/zfs_common.c \
  325. collectors/proc.plugin/zfs_common.h \
  326. collectors/proc.plugin/proc_spl_kstat_zfs.c \
  327. collectors/proc.plugin/proc_stat.c \
  328. collectors/proc.plugin/proc_sys_kernel_random_entropy_avail.c \
  329. collectors/proc.plugin/proc_vmstat.c \
  330. collectors/proc.plugin/proc_uptime.c \
  331. collectors/proc.plugin/sys_kernel_mm_ksm.c \
  332. collectors/proc.plugin/sys_block_zram.c \
  333. collectors/proc.plugin/sys_devices_system_edac_mc.c \
  334. collectors/proc.plugin/sys_devices_system_node.c \
  335. collectors/proc.plugin/sys_fs_btrfs.c \
  336. collectors/proc.plugin/sys_class_power_supply.c \
  337. collectors/proc.plugin/sys_class_infiniband.c \
  338. $(NULL)
  339. TC_PLUGIN_FILES = \
  340. collectors/tc.plugin/plugin_tc.c \
  341. collectors/tc.plugin/plugin_tc.h \
  342. $(NULL)
  343. MACOS_PLUGIN_FILES = \
  344. collectors/macos.plugin/plugin_macos.c \
  345. collectors/macos.plugin/plugin_macos.h \
  346. collectors/macos.plugin/macos_sysctl.c \
  347. collectors/macos.plugin/macos_mach_smi.c \
  348. collectors/macos.plugin/macos_fw.c \
  349. $(NULL)
  350. PLUGINSD_PLUGIN_FILES = \
  351. collectors/plugins.d/plugins_d.c \
  352. collectors/plugins.d/plugins_d.h \
  353. collectors/plugins.d/pluginsd_parser.c \
  354. collectors/plugins.d/pluginsd_parser.h \
  355. $(NULL)
  356. RRD_PLUGIN_FILES = \
  357. database/rrdcalc.c \
  358. database/rrdcalc.h \
  359. database/rrdcalctemplate.c \
  360. database/rrdcalctemplate.h \
  361. database/rrddim.c \
  362. database/rrddimvar.c \
  363. database/rrddimvar.h \
  364. database/rrdfamily.c \
  365. database/rrdhost.c \
  366. database/rrdlabels.c \
  367. database/rrd.c \
  368. database/rrd.h \
  369. database/rrdset.c \
  370. database/rrdsetvar.c \
  371. database/rrdsetvar.h \
  372. database/rrdvar.c \
  373. database/rrdvar.h \
  374. database/sqlite/sqlite_functions.c \
  375. database/sqlite/sqlite_functions.h \
  376. database/sqlite/sqlite_aclk.c \
  377. database/sqlite/sqlite_aclk.h \
  378. database/sqlite/sqlite_health.c \
  379. database/sqlite/sqlite_health.h \
  380. database/sqlite/sqlite_aclk_node.c \
  381. database/sqlite/sqlite_aclk_node.h \
  382. database/sqlite/sqlite_aclk_chart.c \
  383. database/sqlite/sqlite_aclk_chart.h \
  384. database/sqlite/sqlite3.c \
  385. database/sqlite/sqlite3.h \
  386. $(NULL)
  387. if ENABLE_DBENGINE
  388. RRD_PLUGIN_FILES += \
  389. database/engine/rrdengine.c \
  390. database/engine/rrdengine.h \
  391. database/engine/rrddiskprotocol.h \
  392. database/engine/datafile.c \
  393. database/engine/datafile.h \
  394. database/engine/journalfile.c \
  395. database/engine/journalfile.h \
  396. database/engine/rrdenginelib.c \
  397. database/engine/rrdenginelib.h \
  398. database/engine/rrdengineapi.c \
  399. database/engine/rrdengineapi.h \
  400. database/engine/pagecache.c \
  401. database/engine/pagecache.h \
  402. database/engine/rrdenglocking.c \
  403. database/engine/rrdenglocking.h \
  404. database/engine/metadata_log/metadatalog.h \
  405. database/engine/metadata_log/metadatalogapi.c \
  406. database/engine/metadata_log/metadatalogapi.h \
  407. database/engine/metadata_log/logfile.h \
  408. database/engine/metadata_log/logfile.c \
  409. database/engine/metadata_log/metadatalogprotocol.h \
  410. database/engine/metadata_log/metalogpluginsd.c \
  411. database/engine/metadata_log/metalogpluginsd.h \
  412. database/engine/metadata_log/compaction.c \
  413. database/engine/metadata_log/compaction.h \
  414. $(NULL)
  415. endif
  416. API_PLUGIN_FILES = \
  417. web/api/badges/web_buffer_svg.c \
  418. web/api/badges/web_buffer_svg.h \
  419. web/api/exporters/allmetrics.c \
  420. web/api/exporters/allmetrics.h \
  421. web/api/exporters/shell/allmetrics_shell.c \
  422. web/api/exporters/shell/allmetrics_shell.h \
  423. web/api/queries/average/average.c \
  424. web/api/queries/average/average.h \
  425. web/api/queries/des/des.c \
  426. web/api/queries/des/des.h \
  427. web/api/queries/incremental_sum/incremental_sum.c \
  428. web/api/queries/incremental_sum/incremental_sum.h \
  429. web/api/queries/max/max.c \
  430. web/api/queries/max/max.h \
  431. web/api/queries/median/median.c \
  432. web/api/queries/median/median.h \
  433. web/api/queries/min/min.c \
  434. web/api/queries/min/min.h \
  435. web/api/queries/query.c \
  436. web/api/queries/query.h \
  437. web/api/queries/rrdr.c \
  438. web/api/queries/rrdr.h \
  439. web/api/queries/ses/ses.c \
  440. web/api/queries/ses/ses.h \
  441. web/api/queries/stddev/stddev.c \
  442. web/api/queries/stddev/stddev.h \
  443. web/api/queries/sum/sum.c \
  444. web/api/queries/sum/sum.h \
  445. web/api/formatters/rrd2json.c \
  446. web/api/formatters/rrd2json.h \
  447. web/api/formatters/csv/csv.c \
  448. web/api/formatters/csv/csv.h \
  449. web/api/formatters/json/json.c \
  450. web/api/formatters/json/json.h \
  451. web/api/formatters/ssv/ssv.c \
  452. web/api/formatters/ssv/ssv.h \
  453. web/api/formatters/value/value.c \
  454. web/api/formatters/value/value.h \
  455. web/api/formatters/json_wrapper.c \
  456. web/api/formatters/json_wrapper.h \
  457. web/api/formatters/charts2json.c \
  458. web/api/formatters/charts2json.h \
  459. web/api/formatters/rrdset2json.c \
  460. web/api/formatters/rrdset2json.h \
  461. web/api/health/health_cmdapi.c \
  462. web/api/health/health_cmdapi.h \
  463. web/api/web_api_v1.c \
  464. web/api/web_api_v1.h \
  465. $(NULL)
  466. STREAMING_PLUGIN_FILES = \
  467. streaming/rrdpush.c \
  468. streaming/sender.c \
  469. streaming/receiver.c \
  470. streaming/rrdpush.h \
  471. $(NULL)
  472. REGISTRY_PLUGIN_FILES = \
  473. registry/registry.c \
  474. registry/registry.h \
  475. registry/registry_db.c \
  476. registry/registry_init.c \
  477. registry/registry_internals.c \
  478. registry/registry_internals.h \
  479. registry/registry_log.c \
  480. registry/registry_machine.c \
  481. registry/registry_machine.h \
  482. registry/registry_person.c \
  483. registry/registry_person.h \
  484. registry/registry_url.c \
  485. registry/registry_url.h \
  486. $(NULL)
  487. STATSD_PLUGIN_FILES = \
  488. collectors/statsd.plugin/statsd.c \
  489. collectors/statsd.plugin/statsd.h \
  490. $(NULL)
  491. WEB_PLUGIN_FILES = \
  492. web/server/web_client.c \
  493. web/server/web_client.h \
  494. web/server/web_server.c \
  495. web/server/web_server.h \
  496. web/server/web_client_cache.c \
  497. web/server/web_client_cache.h \
  498. web/server/static/static-threaded.c \
  499. web/server/static/static-threaded.h \
  500. $(NULL)
  501. BACKENDS_PLUGIN_FILES = \
  502. backends/backends.c \
  503. backends/backends.h \
  504. backends/graphite/graphite.c \
  505. backends/graphite/graphite.h \
  506. backends/json/json.c \
  507. backends/json/json.h \
  508. backends/opentsdb/opentsdb.c \
  509. backends/opentsdb/opentsdb.h \
  510. backends/prometheus/backend_prometheus.c \
  511. backends/prometheus/backend_prometheus.h \
  512. $(NULL)
  513. CLAIM_FILES = \
  514. claim/claim.c \
  515. claim/claim.h \
  516. $(NULL)
  517. PARSER_FILES = \
  518. parser/parser.c \
  519. parser/parser.h \
  520. $(NULL)
  521. if ACLK_NG
  522. ACLK_NG_FILES = \
  523. aclk/aclk.c \
  524. aclk/aclk.h \
  525. aclk/aclk_util.c \
  526. aclk/aclk_util.h \
  527. aclk/aclk_stats.c \
  528. aclk/aclk_stats.h \
  529. aclk/aclk_query.c \
  530. aclk/aclk_query.h \
  531. aclk/aclk_query_queue.c \
  532. aclk/aclk_query_queue.h \
  533. aclk/aclk_otp.c \
  534. aclk/aclk_otp.h \
  535. aclk/aclk_tx_msgs.c \
  536. aclk/aclk_tx_msgs.h \
  537. aclk/aclk_rx_msgs.c \
  538. aclk/aclk_rx_msgs.h \
  539. aclk/https_client.c \
  540. aclk/https_client.h \
  541. aclk/aclk_charts_api.c \
  542. aclk/aclk_charts_api.h \
  543. aclk/aclk_alarm_api.c \
  544. aclk/aclk_alarm_api.h \
  545. mqtt_websockets/src/mqtt_wss_client.c \
  546. mqtt_websockets/src/include/mqtt_wss_client.h \
  547. mqtt_websockets/src/mqtt_wss_log.c \
  548. mqtt_websockets/src/include/mqtt_wss_log.h \
  549. mqtt_websockets/src/ws_client.c \
  550. mqtt_websockets/src/include/ws_client.h \
  551. mqtt_websockets/c-rbuf/src/ringbuffer.c \
  552. mqtt_websockets/c-rbuf/include/ringbuffer.h \
  553. mqtt_websockets/c-rbuf/src/ringbuffer_internal.h \
  554. mqtt_websockets/MQTT-C/src/mqtt.c \
  555. mqtt_websockets/MQTT-C/include/mqtt.h \
  556. aclk/schema-wrappers/connection.cc \
  557. aclk/schema-wrappers/connection.h \
  558. aclk/schema-wrappers/node_connection.cc \
  559. aclk/schema-wrappers/node_connection.h \
  560. aclk/schema-wrappers/node_creation.cc \
  561. aclk/schema-wrappers/node_creation.h \
  562. aclk/schema-wrappers/chart_stream.cc \
  563. aclk/schema-wrappers/chart_stream.h \
  564. aclk/schema-wrappers/chart_config.cc \
  565. aclk/schema-wrappers/chart_config.h \
  566. aclk/schema-wrappers/alarm_stream.cc \
  567. aclk/schema-wrappers/alarm_stream.h \
  568. aclk/schema-wrappers/alarm_config.cc \
  569. aclk/schema-wrappers/alarm_config.h \
  570. aclk/schema-wrappers/node_info.cc \
  571. aclk/schema-wrappers/node_info.h \
  572. aclk/schema-wrappers/schema_wrappers.h \
  573. aclk/schema-wrappers/schema_wrapper_utils.cc \
  574. aclk/schema-wrappers/schema_wrapper_utils.h \
  575. $(NULL)
  576. ACLK_NG_PROTO_DEFINITIONS = \
  577. aclk/aclk-schemas/proto/aclk/v1/lib.proto \
  578. aclk/aclk-schemas/proto/agent/v1/connection.proto \
  579. aclk/aclk-schemas/proto/alarm/v1/config.proto \
  580. aclk/aclk-schemas/proto/alarm/v1/stream.proto \
  581. aclk/aclk-schemas/proto/chart/v1/config.proto \
  582. aclk/aclk-schemas/proto/chart/v1/dimension.proto \
  583. aclk/aclk-schemas/proto/chart/v1/instance.proto \
  584. aclk/aclk-schemas/proto/chart/v1/stream.proto \
  585. aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.proto \
  586. aclk/aclk-schemas/proto/nodeinstance/create/v1/creation.proto \
  587. aclk/aclk-schemas/proto/nodeinstance/info/v1/info.proto \
  588. $(NULL)
  589. dist_noinst_DATA += $(ACLK_NG_PROTO_DEFINITIONS)
  590. ACLK_NG_PROTO_BUILT_FILES = aclk/aclk-schemas/proto/agent/v1/connection.pb.cc \
  591. aclk/aclk-schemas/proto/agent/v1/connection.pb.h \
  592. aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.pb.cc \
  593. aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.pb.h \
  594. aclk/aclk-schemas/proto/nodeinstance/create/v1/creation.pb.cc \
  595. aclk/aclk-schemas/proto/nodeinstance/create/v1/creation.pb.h \
  596. aclk/aclk-schemas/proto/chart/v1/stream.pb.cc \
  597. aclk/aclk-schemas/proto/chart/v1/stream.pb.h \
  598. aclk/aclk-schemas/proto/chart/v1/instance.pb.cc \
  599. aclk/aclk-schemas/proto/chart/v1/instance.pb.h \
  600. aclk/aclk-schemas/proto/chart/v1/dimension.pb.cc \
  601. aclk/aclk-schemas/proto/chart/v1/dimension.pb.h \
  602. aclk/aclk-schemas/proto/chart/v1/config.pb.cc \
  603. aclk/aclk-schemas/proto/chart/v1/config.pb.h \
  604. aclk/aclk-schemas/proto/aclk/v1/lib.pb.cc \
  605. aclk/aclk-schemas/proto/aclk/v1/lib.pb.h \
  606. aclk/aclk-schemas/proto/alarm/v1/config.pb.cc \
  607. aclk/aclk-schemas/proto/alarm/v1/config.pb.h \
  608. aclk/aclk-schemas/proto/alarm/v1/stream.pb.cc \
  609. aclk/aclk-schemas/proto/alarm/v1/stream.pb.h \
  610. aclk/aclk-schemas/proto/nodeinstance/info/v1/info.pb.cc \
  611. aclk/aclk-schemas/proto/nodeinstance/info/v1/info.pb.h \
  612. $(NULL)
  613. BUILT_SOURCES += $(ACLK_NG_PROTO_BUILT_FILES)
  614. nodist_netdata_SOURCES += $(ACLK_NG_PROTO_BUILT_FILES)
  615. CLEANFILES += $(ACLK_NG_PROTO_BUILT_FILES)
  616. aclk/aclk-schemas/proto/agent/v1/connection.pb.cc \
  617. aclk/aclk-schemas/proto/agent/v1/connection.pb.h: aclk/aclk-schemas/proto/agent/v1/connection.proto
  618. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  619. aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.pb.cc \
  620. aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.pb.h: aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.proto
  621. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  622. aclk/aclk-schemas/proto/nodeinstance/create/v1/creation.pb.cc \
  623. aclk/aclk-schemas/proto/nodeinstance/create/v1/creation.pb.h: aclk/aclk-schemas/proto/nodeinstance/create/v1/creation.proto
  624. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  625. aclk/aclk-schemas/proto/chart/v1/stream.pb.cc \
  626. aclk/aclk-schemas/proto/chart/v1/stream.pb.h: aclk/aclk-schemas/proto/chart/v1/stream.proto
  627. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  628. aclk/aclk-schemas/proto/chart/v1/instance.pb.cc \
  629. aclk/aclk-schemas/proto/chart/v1/instance.pb.h: aclk/aclk-schemas/proto/chart/v1/instance.proto
  630. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  631. aclk/aclk-schemas/proto/chart/v1/dimension.pb.cc \
  632. aclk/aclk-schemas/proto/chart/v1/dimension.pb.h: aclk/aclk-schemas/proto/chart/v1/dimension.proto
  633. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  634. aclk/aclk-schemas/proto/chart/v1/config.pb.cc \
  635. aclk/aclk-schemas/proto/chart/v1/config.pb.h: aclk/aclk-schemas/proto/chart/v1/config.proto
  636. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  637. aclk/aclk-schemas/proto/aclk/v1/lib.pb.cc \
  638. aclk/aclk-schemas/proto/aclk/v1/lib.pb.h: aclk/aclk-schemas/proto/aclk/v1/lib.proto
  639. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  640. aclk/aclk-schemas/proto/alarm/v1/config.pb.cc \
  641. aclk/aclk-schemas/proto/alarm/v1/config.pb.h: aclk/aclk-schemas/proto/alarm/v1/config.proto
  642. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  643. aclk/aclk-schemas/proto/alarm/v1/stream.pb.cc \
  644. aclk/aclk-schemas/proto/alarm/v1/stream.pb.h: aclk/aclk-schemas/proto/alarm/v1/stream.proto
  645. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  646. aclk/aclk-schemas/proto/nodeinstance/info/v1/info.pb.cc \
  647. aclk/aclk-schemas/proto/nodeinstance/info/v1/info.pb.h: aclk/aclk-schemas/proto/nodeinstance/info/v1/info.proto
  648. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  649. endif #ACLK_NG
  650. if ENABLE_ACLK
  651. ACLK_COMMON_FILES = \
  652. aclk/aclk_collector_list.c \
  653. aclk/aclk_collector_list.h \
  654. $(NULL)
  655. endif
  656. ACLK_ALWAYS_BUILD_FILES = \
  657. aclk/aclk_rrdhost_state.h \
  658. aclk/aclk_api.c \
  659. aclk/aclk_api.h \
  660. aclk/aclk_proxy.c \
  661. aclk/aclk_proxy.h \
  662. $(NULL)
  663. if ACLK_LEGACY
  664. ACLK_LEGACY_FILES = \
  665. aclk/legacy/agent_cloud_link.c \
  666. aclk/legacy/agent_cloud_link.h \
  667. aclk/legacy/aclk_query.c \
  668. aclk/legacy/aclk_query.h \
  669. aclk/legacy/mqtt.c \
  670. aclk/legacy/mqtt.h \
  671. aclk/legacy/aclk_rx_msgs.c \
  672. aclk/legacy/aclk_rx_msgs.h \
  673. aclk/legacy/aclk_lws_wss_client.c \
  674. aclk/legacy/aclk_lws_wss_client.h \
  675. aclk/legacy/aclk_lws_https_client.c \
  676. aclk/legacy/aclk_lws_https_client.h \
  677. aclk/legacy/aclk_common.c \
  678. aclk/legacy/aclk_common.h \
  679. aclk/legacy/aclk_stats.c \
  680. aclk/legacy/aclk_stats.h \
  681. $(NULL)
  682. endif #ACLK_LEGACY
  683. SPAWN_PLUGIN_FILES = \
  684. spawn/spawn.c \
  685. spawn/spawn_server.c \
  686. spawn/spawn_client.c \
  687. spawn/spawn.h \
  688. $(NULL)
  689. EXPORTING_ENGINE_FILES = \
  690. exporting/exporting_engine.c \
  691. exporting/exporting_engine.h \
  692. exporting/graphite/graphite.c \
  693. exporting/graphite/graphite.h \
  694. exporting/json/json.c \
  695. exporting/json/json.h \
  696. exporting/opentsdb/opentsdb.c \
  697. exporting/opentsdb/opentsdb.h \
  698. exporting/prometheus/prometheus.c \
  699. exporting/prometheus/prometheus.h \
  700. exporting/read_config.c \
  701. exporting/clean_connectors.c \
  702. exporting/init_connectors.c \
  703. exporting/process_data.c \
  704. exporting/check_filters.c \
  705. exporting/send_data.c \
  706. exporting/send_internal_metrics.c \
  707. $(NULL)
  708. PROMETHEUS_REMOTE_WRITE_EXPORTING_FILES = \
  709. exporting/prometheus/remote_write/remote_write.c \
  710. exporting/prometheus/remote_write/remote_write.h \
  711. exporting/prometheus/remote_write/remote_write_request.cc \
  712. exporting/prometheus/remote_write/remote_write_request.h \
  713. exporting/prometheus/remote_write/remote_write.proto \
  714. $(NULL)
  715. KINESIS_EXPORTING_FILES = \
  716. exporting/aws_kinesis/aws_kinesis.c \
  717. exporting/aws_kinesis/aws_kinesis.h \
  718. exporting/aws_kinesis/aws_kinesis_put_record.cc \
  719. exporting/aws_kinesis/aws_kinesis_put_record.h \
  720. $(NULL)
  721. PUBSUB_EXPORTING_FILES = \
  722. exporting/pubsub/pubsub.c \
  723. exporting/pubsub/pubsub.h \
  724. exporting/pubsub/pubsub_publish.cc \
  725. exporting/pubsub/pubsub_publish.h \
  726. $(NULL)
  727. MONGODB_EXPORTING_FILES = \
  728. exporting/mongodb/mongodb.c \
  729. exporting/mongodb/mongodb.h \
  730. $(NULL)
  731. KINESIS_BACKEND_FILES = \
  732. backends/aws_kinesis/aws_kinesis.c \
  733. backends/aws_kinesis/aws_kinesis.h \
  734. backends/aws_kinesis/aws_kinesis_put_record.cc \
  735. backends/aws_kinesis/aws_kinesis_put_record.h \
  736. $(NULL)
  737. PROMETHEUS_REMOTE_WRITE_BACKEND_FILES = \
  738. backends/prometheus/remote_write/remote_write.cc \
  739. backends/prometheus/remote_write/remote_write.h \
  740. $(NULL)
  741. MONGODB_BACKEND_FILES = \
  742. backends/mongodb/mongodb.c \
  743. backends/mongodb/mongodb.h \
  744. $(NULL)
  745. DAEMON_FILES = \
  746. daemon/buildinfo.c \
  747. daemon/buildinfo.h \
  748. daemon/common.c \
  749. daemon/common.h \
  750. daemon/daemon.c \
  751. daemon/daemon.h \
  752. daemon/global_statistics.c \
  753. daemon/global_statistics.h \
  754. daemon/analytics.c \
  755. daemon/analytics.h \
  756. daemon/main.c \
  757. daemon/main.h \
  758. daemon/signals.c \
  759. daemon/signals.h \
  760. daemon/service.c \
  761. daemon/service.h \
  762. daemon/commands.c \
  763. daemon/commands.h \
  764. daemon/unit_test.c \
  765. daemon/unit_test.h \
  766. $(NULL)
  767. NETDATA_FILES = \
  768. collectors/all.h \
  769. $(DAEMON_FILES) \
  770. $(LIBNETDATA_FILES) \
  771. $(API_PLUGIN_FILES) \
  772. $(BACKENDS_PLUGIN_FILES) \
  773. $(EXPORTING_ENGINE_FILES) \
  774. $(CHECKS_PLUGIN_FILES) \
  775. $(HEALTH_PLUGIN_FILES) \
  776. $(IDLEJITTER_PLUGIN_FILES) \
  777. $(PLUGINSD_PLUGIN_FILES) \
  778. $(REGISTRY_PLUGIN_FILES) \
  779. $(RRD_PLUGIN_FILES) \
  780. $(STREAMING_PLUGIN_FILES) \
  781. $(STATSD_PLUGIN_FILES) \
  782. $(WEB_PLUGIN_FILES) \
  783. $(CLAIM_FILES) \
  784. $(PARSER_FILES) \
  785. $(ACLK_ALWAYS_BUILD_FILES) \
  786. $(ACLK_COMMON_FILES) \
  787. $(ACLK_LEGACY_FILES) \
  788. $(ACLK_NG_FILES) \
  789. $(SPAWN_PLUGIN_FILES) \
  790. $(NULL)
  791. if FREEBSD
  792. NETDATA_FILES += \
  793. $(FREEBSD_PLUGIN_FILES) \
  794. $(NULL)
  795. endif
  796. if MACOS
  797. NETDATA_FILES += \
  798. $(MACOS_PLUGIN_FILES) \
  799. $(NULL)
  800. endif
  801. if LINUX
  802. NETDATA_FILES += \
  803. $(CGROUPS_PLUGIN_FILES) \
  804. $(DISKSPACE_PLUGIN_FILES) \
  805. $(TIMEX_PLUGIN_FILES) \
  806. $(PROC_PLUGIN_FILES) \
  807. $(TC_PLUGIN_FILES) \
  808. $(NULL)
  809. endif
  810. NETDATA_COMMON_LIBS = \
  811. $(OPTIONAL_MATH_LIBS) \
  812. $(OPTIONAL_BPF_LIBS) \
  813. $(OPTIONAL_ZLIB_LIBS) \
  814. $(OPTIONAL_SSL_LIBS) \
  815. $(OPTIONAL_UUID_LIBS) \
  816. $(OPTIONAL_MQTT_LIBS) \
  817. $(OPTIONAL_UV_LIBS) \
  818. $(OPTIONAL_LZ4_LIBS) \
  819. $(OPTIONAL_JUDY_LIBS) \
  820. $(OPTIONAL_SSL_LIBS) \
  821. $(OPTIONAL_JSONC_LIBS) \
  822. $(NULL)
  823. if LINK_STATIC_JSONC
  824. NETDATA_COMMON_LIBS += $(abs_top_srcdir)/externaldeps/jsonc/libjson-c.a
  825. endif
  826. NETDATACLI_FILES = \
  827. daemon/commands.h \
  828. $(LIBNETDATA_FILES) \
  829. cli/cli.c \
  830. cli/cli.h \
  831. $(NULL)
  832. sbin_PROGRAMS += netdata
  833. netdata_SOURCES = $(NETDATA_FILES)
  834. netdata_LDADD = \
  835. $(NETDATA_COMMON_LIBS) \
  836. $(NULL)
  837. if ACLK_NG
  838. netdata_LDADD += $(OPTIONAL_PROTOBUF_LIBS) \
  839. $(OPTIONAL_ATOMIC_LIBS) \
  840. $(NULL)
  841. endif
  842. if ACLK_LEGACY
  843. netdata_LDADD += \
  844. $(abs_top_srcdir)/externaldeps/mosquitto/libmosquitto.a \
  845. $(OPTIONAL_LWS_LIBS) \
  846. $(OPTIONAL_LIBCAP_LIBS) \
  847. $(NULL)
  848. endif #ACLK_LEGACY
  849. if ENABLE_CXX_LINKER
  850. netdata_LINK = $(CXXLD) $(CXXFLAGS) $(LDFLAGS) -o $@
  851. else
  852. netdata_LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@
  853. endif
  854. sbin_PROGRAMS += netdatacli
  855. netdatacli_SOURCES = $(NETDATACLI_FILES)
  856. netdatacli_LDADD = \
  857. $(NETDATA_COMMON_LIBS) \
  858. $(NULL)
  859. if ENABLE_CXX_LINKER
  860. netdatacli_LINK = $(CXXLD) $(CXXFLAGS) $(LDFLAGS) -o $@
  861. else
  862. netdatacli_LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@
  863. endif
  864. if ENABLE_PLUGIN_APPS
  865. plugins_PROGRAMS += apps.plugin
  866. apps_plugin_SOURCES = $(APPS_PLUGIN_FILES)
  867. apps_plugin_LDADD = \
  868. $(NETDATA_COMMON_LIBS) \
  869. $(OPTIONAL_LIBCAP_LIBS) \
  870. $(NULL)
  871. endif
  872. if ENABLE_PLUGIN_CGROUP_NETWORK
  873. plugins_PROGRAMS += cgroup-network
  874. cgroup_network_SOURCES = $(CGROUP_NETWORK_FILES)
  875. cgroup_network_LDADD = \
  876. $(NETDATA_COMMON_LIBS) \
  877. $(NULL)
  878. endif
  879. if ENABLE_PLUGIN_FREEIPMI
  880. plugins_PROGRAMS += freeipmi.plugin
  881. freeipmi_plugin_SOURCES = $(FREEIPMI_PLUGIN_FILES)
  882. freeipmi_plugin_LDADD = \
  883. $(NETDATA_COMMON_LIBS) \
  884. $(OPTIONAL_IPMIMONITORING_LIBS) \
  885. $(NULL)
  886. endif
  887. if ENABLE_PLUGIN_EBPF
  888. plugins_PROGRAMS += ebpf.plugin
  889. ebpf_plugin_SOURCES = $(EBPF_PLUGIN_FILES)
  890. ebpf_plugin_LDADD = \
  891. $(NETDATA_COMMON_LIBS) \
  892. $(NULL)
  893. endif
  894. if ENABLE_PLUGIN_CUPS
  895. plugins_PROGRAMS += cups.plugin
  896. cups_plugin_SOURCES = $(CUPS_PLUGIN_FILES)
  897. cups_plugin_LDADD = \
  898. $(NETDATA_COMMON_LIBS) \
  899. $(OPTIONAL_CUPS_LIBS) \
  900. $(NULL)
  901. endif
  902. if ENABLE_PLUGIN_NFACCT
  903. plugins_PROGRAMS += nfacct.plugin
  904. nfacct_plugin_SOURCES = $(NFACCT_PLUGIN_FILES)
  905. nfacct_plugin_LDADD = \
  906. $(NETDATA_COMMON_LIBS) \
  907. $(OPTIONAL_NFACCT_LIBS) \
  908. $(NULL)
  909. endif
  910. if ENABLE_PLUGIN_XENSTAT
  911. plugins_PROGRAMS += xenstat.plugin
  912. xenstat_plugin_SOURCES = $(XENSTAT_PLUGIN_FILES)
  913. xenstat_plugin_LDADD = \
  914. $(NETDATA_COMMON_LIBS) \
  915. $(OPTIONAL_XENSTAT_LIBS) \
  916. $(NULL)
  917. endif
  918. if ENABLE_PLUGIN_PERF
  919. plugins_PROGRAMS += perf.plugin
  920. perf_plugin_SOURCES = $(PERF_PLUGIN_FILES)
  921. perf_plugin_LDADD = \
  922. $(NETDATA_COMMON_LIBS) \
  923. $(NULL)
  924. endif
  925. if ENABLE_PLUGIN_SLABINFO
  926. plugins_PROGRAMS += slabinfo.plugin
  927. slabinfo_plugin_SOURCES = $(SLABINFO_PLUGIN_FILES)
  928. slabinfo_plugin_LDADD = \
  929. $(NETDATA_COMMON_LIBS) \
  930. $(NULL)
  931. endif
  932. if ENABLE_BACKEND_KINESIS
  933. netdata_SOURCES += $(KINESIS_BACKEND_FILES) $(KINESIS_EXPORTING_FILES)
  934. netdata_LDADD += $(OPTIONAL_KINESIS_LIBS)
  935. endif
  936. if ENABLE_EXPORTING_PUBSUB
  937. netdata_SOURCES += $(PUBSUB_EXPORTING_FILES)
  938. netdata_LDADD += $(OPTIONAL_PUBSUB_LIBS)
  939. endif
  940. if ENABLE_BACKEND_PROMETHEUS_REMOTE_WRITE
  941. netdata_SOURCES += $(PROMETHEUS_REMOTE_WRITE_BACKEND_FILES) $(PROMETHEUS_REMOTE_WRITE_EXPORTING_FILES)
  942. netdata_LDADD += $(OPTIONAL_PROMETHEUS_REMOTE_WRITE_LIBS) \
  943. $(OPTIONAL_PROTOBUF_LIBS) \
  944. $(NULL)
  945. BACKEND_PROMETHEUS_BUILT_SOURCES = \
  946. exporting/prometheus/remote_write/remote_write.pb.cc \
  947. exporting/prometheus/remote_write/remote_write.pb.h \
  948. $(NULL)
  949. BUILT_SOURCES += $(BACKEND_PROMETHEUS_BUILT_SOURCES)
  950. nodist_netdata_SOURCES += $(BACKEND_PROMETHEUS_BUILT_SOURCES)
  951. exporting/prometheus/remote_write/remote_write.pb.cc \
  952. exporting/prometheus/remote_write/remote_write.pb.h: exporting/prometheus/remote_write/remote_write.proto
  953. $(PROTOC) --proto_path=$(srcdir) --cpp_out=$(builddir) $^
  954. endif
  955. if ENABLE_BACKEND_MONGODB
  956. netdata_SOURCES += $(MONGODB_BACKEND_FILES) $(MONGODB_EXPORTING_FILES)
  957. netdata_LDADD += $(OPTIONAL_MONGOC_LIBS)
  958. endif
  959. if ENABLE_UNITTESTS
  960. check_PROGRAMS = \
  961. libnetdata/tests/str2ld_testdriver \
  962. libnetdata/storage_number/tests/storage_number_testdriver \
  963. exporting/tests/exporting_engine_testdriver \
  964. web/api/tests/web_api_testdriver \
  965. web/api/tests/valid_urls_testdriver \
  966. collectors/cgroups_plugin/tests/cgroups_testdriver \
  967. $(NULL)
  968. TESTS = $(check_PROGRAMS)
  969. web_api_tests_valid_urls_testdriver_LDFLAGS = \
  970. -Wl,--wrap=rrdhost_find_by_hostname \
  971. -Wl,--wrap=finished_web_request_statistics \
  972. -Wl,--wrap=config_get \
  973. -Wl,--wrap=web_client_api_request_v1 \
  974. -Wl,--wrap=rrdhost_find_by_guid \
  975. -Wl,--wrap=rrdset_find_byname \
  976. -Wl,--wrap=rrdset_find \
  977. -Wl,--wrap=rrdpush_receiver_thread_spawn \
  978. -Wl,--wrap=debug_int \
  979. -Wl,--wrap=error_int \
  980. -Wl,--wrap=info_int \
  981. -Wl,--wrap=fatal_int \
  982. -Wl,--wrap=mysendfile \
  983. -DREMOVE_MYSENDFILE \
  984. $(TEST_LDFLAGS) \
  985. $(NULL)
  986. web_api_tests_valid_urls_testdriver_SOURCES = \
  987. web/api/tests/valid_urls.c \
  988. web/server/web_client.c \
  989. $(LIBNETDATA_FILES) \
  990. $(NULL)
  991. web_api_tests_valid_urls_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS)
  992. web_api_tests_web_api_testdriver_LDFLAGS = \
  993. -Wl,--wrap=rrdhost_find_by_hostname \
  994. -Wl,--wrap=finished_web_request_statistics \
  995. -Wl,--wrap=config_get \
  996. -Wl,--wrap=web_client_api_request_v1 \
  997. -Wl,--wrap=rrdhost_find_by_guid \
  998. -Wl,--wrap=rrdset_find_byname \
  999. -Wl,--wrap=rrdset_find \
  1000. -Wl,--wrap=rrdpush_receiver_thread_spawn \
  1001. -Wl,--wrap=debug_int \
  1002. -Wl,--wrap=error_int \
  1003. -Wl,--wrap=info_int \
  1004. -Wl,--wrap=fatal_int \
  1005. $(TEST_LDFLAGS) \
  1006. $(NULL)
  1007. web_api_tests_web_api_testdriver_SOURCES = \
  1008. web/api/tests/web_api.c \
  1009. web/server/web_client.c \
  1010. $(LIBNETDATA_FILES) \
  1011. $(NULL)
  1012. web_api_tests_web_api_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS)
  1013. libnetdata_tests_str2ld_testdriver_SOURCES = \
  1014. libnetdata/tests/test_str2ld.c \
  1015. $(LIBNETDATA_FILES) \
  1016. $(NULL)
  1017. libnetdata_tests_str2ld_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS)
  1018. libnetdata_storage_number_tests_storage_number_testdriver_SOURCES = \
  1019. libnetdata/storage_number/tests/test_storage_number.c \
  1020. $(LIBNETDATA_FILES) \
  1021. $(NULL)
  1022. libnetdata_storage_number_tests_storage_number_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS)
  1023. EXPORTING_ENGINE_TEST_FILES = \
  1024. exporting/tests/test_exporting_engine.c \
  1025. exporting/tests/test_exporting_engine.h \
  1026. exporting/tests/exporting_fixtures.c \
  1027. exporting/tests/exporting_doubles.c \
  1028. exporting/tests/netdata_doubles.c \
  1029. exporting/tests/system_doubles.c \
  1030. $(NULL)
  1031. exporting_tests_exporting_engine_testdriver_SOURCES = \
  1032. $(EXPORTING_ENGINE_TEST_FILES) \
  1033. $(EXPORTING_ENGINE_FILES) \
  1034. $(LIBNETDATA_FILES) \
  1035. $(NULL)
  1036. exporting_tests_exporting_engine_testdriver_CFLAGS = \
  1037. $(AM_CFLAGS) \
  1038. -DUNIT_TESTING \
  1039. $(NULL)
  1040. exporting_tests_exporting_engine_testdriver_LDFLAGS = \
  1041. -Wl,--wrap=read_exporting_config \
  1042. -Wl,--wrap=init_connectors \
  1043. -Wl,--wrap=mark_scheduled_instances \
  1044. -Wl,--wrap=rrdhost_is_exportable \
  1045. -Wl,--wrap=rrdset_is_exportable \
  1046. -Wl,--wrap=exporting_calculate_value_from_stored_data \
  1047. -Wl,--wrap=prepare_buffers \
  1048. -Wl,--wrap=send_internal_metrics \
  1049. -Wl,--wrap=now_realtime_sec \
  1050. -Wl,--wrap=uv_thread_set_name_np \
  1051. -Wl,--wrap=uv_thread_create \
  1052. -Wl,--wrap=uv_mutex_lock \
  1053. -Wl,--wrap=uv_mutex_unlock \
  1054. -Wl,--wrap=uv_cond_signal \
  1055. -Wl,--wrap=uv_cond_wait \
  1056. -Wl,--wrap=strdupz \
  1057. -Wl,--wrap=info_int \
  1058. -Wl,--wrap=recv \
  1059. -Wl,--wrap=send \
  1060. -Wl,--wrap=connect_to_one_of \
  1061. -Wl,--wrap=create_main_rusage_chart \
  1062. -Wl,--wrap=send_main_rusage \
  1063. -Wl,--wrap=simple_connector_end_batch \
  1064. $(TEST_LDFLAGS) \
  1065. $(NULL)
  1066. exporting_tests_exporting_engine_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS)
  1067. if ENABLE_BACKEND_PROMETHEUS_REMOTE_WRITE
  1068. exporting_tests_exporting_engine_testdriver_SOURCES += $(PROMETHEUS_REMOTE_WRITE_EXPORTING_FILES)
  1069. exporting_tests_exporting_engine_testdriver_LDADD += \
  1070. $(OPTIONAL_PROMETHEUS_REMOTE_WRITE_LIBS) \
  1071. $(OPTIONAL_PROTOBUF_LIBS) \
  1072. $(NULL)
  1073. exporting_tests_exporting_engine_testdriver_LDFLAGS += \
  1074. -Wl,--wrap=init_write_request \
  1075. -Wl,--wrap=add_host_info \
  1076. -Wl,--wrap=add_label \
  1077. -Wl,--wrap=add_metric \
  1078. $(NULL)
  1079. nodist_exporting_tests_exporting_engine_testdriver_SOURCES = $(BACKEND_PROMETHEUS_BUILT_SOURCES)
  1080. endif
  1081. if ENABLE_BACKEND_KINESIS
  1082. exporting_tests_exporting_engine_testdriver_SOURCES += $(KINESIS_EXPORTING_FILES)
  1083. exporting_tests_exporting_engine_testdriver_LDADD += $(OPTIONAL_KINESIS_LIBS)
  1084. exporting_tests_exporting_engine_testdriver_LDFLAGS += \
  1085. -Wl,--wrap=aws_sdk_init \
  1086. -Wl,--wrap=kinesis_init \
  1087. -Wl,--wrap=kinesis_put_record \
  1088. -Wl,--wrap=kinesis_get_result \
  1089. $(NULL)
  1090. endif
  1091. if ENABLE_EXPORTING_PUBSUB
  1092. exporting_tests_exporting_engine_testdriver_SOURCES += $(PUBSUB_EXPORTING_FILES)
  1093. exporting_tests_exporting_engine_testdriver_LDADD += $(OPTIONAL_PUBSUB_LIBS)
  1094. exporting_tests_exporting_engine_testdriver_LDFLAGS += \
  1095. -Wl,--wrap=pubsub_init \
  1096. -Wl,--wrap=pubsub_add_message \
  1097. -Wl,--wrap=pubsub_publish \
  1098. -Wl,--wrap=pubsub_get_result \
  1099. $(NULL)
  1100. endif
  1101. if ENABLE_BACKEND_MONGODB
  1102. exporting_tests_exporting_engine_testdriver_SOURCES += $(MONGODB_EXPORTING_FILES)
  1103. exporting_tests_exporting_engine_testdriver_LDADD += $(OPTIONAL_MONGOC_LIBS)
  1104. exporting_tests_exporting_engine_testdriver_LDFLAGS += \
  1105. -Wl,--wrap=mongoc_init \
  1106. -Wl,--wrap=mongoc_uri_new_with_error \
  1107. -Wl,--wrap=mongoc_uri_get_option_as_int32 \
  1108. -Wl,--wrap=mongoc_uri_set_option_as_int32 \
  1109. -Wl,--wrap=mongoc_client_new_from_uri \
  1110. -Wl,--wrap=mongoc_client_set_appname \
  1111. -Wl,--wrap=mongoc_client_get_collection \
  1112. -Wl,--wrap=mongoc_uri_destroy \
  1113. -Wl,--wrap=mongoc_collection_insert_many \
  1114. $(NULL)
  1115. endif
  1116. collectors_cgroups_plugin_tests_cgroups_testdriver_SOURCES = \
  1117. collectors/cgroups.plugin/tests/test_cgroups_plugin.c \
  1118. collectors/cgroups.plugin/tests/test_cgroups_plugin.h \
  1119. collectors/cgroups.plugin/tests/test_doubles.c \
  1120. $(CGROUPS_PLUGIN_FILES) \
  1121. database/rrdlabels.c \
  1122. database/rrd.h \
  1123. $(LIBNETDATA_FILES) \
  1124. $(NULL)
  1125. collectors_cgroups_plugin_tests_cgroups_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS)
  1126. collectors_cgroups_plugin_tests_cgroups_testdriver_LDFLAGS = \
  1127. -Wl,--wrap=add_label_to_list \
  1128. $(NULL)
  1129. endif