Makefile.am 40 KB

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