Makefile.am 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474
  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. .eslintignore \
  22. .eslintrc \
  23. .github/CODEOWNERS \
  24. build/m4/jemalloc.m4 \
  25. build/m4/ax_check_enable_debug.m4 \
  26. build/m4/ax_c_mallinfo.m4 \
  27. build/m4/ax_gcc_func_attribute.m4 \
  28. build/m4/ax_check_compile_flag.m4 \
  29. build/m4/ax_c_statement_expressions.m4 \
  30. build/m4/ax_pthread.m4 \
  31. build/m4/ax_c_lto.m4 \
  32. build/m4/ax_c_mallopt.m4 \
  33. build/m4/tcmalloc.m4 \
  34. build/m4/ax_c__generic.m4 \
  35. build/m4/ax_compiler_vendor.m4 \
  36. build/m4/ax_cxx_compile_stdcxx.m4 \
  37. ml/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. contrib \
  51. docs \
  52. mqtt_websockets \
  53. netdata.cppcheck \
  54. netdata.spec \
  55. packaging/bundle-ebpf.sh \
  56. packaging/bundle-ebpf-co-re.sh \
  57. packaging/bundle-libbpf.sh \
  58. packaging/check-kernel-config.sh \
  59. packaging/ebpf.checksums \
  60. packaging/ebpf.version \
  61. packaging/ebpf-co-re.checksums \
  62. packaging/ebpf-co-re.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/yaml.checksums \
  71. packaging/yaml.version \
  72. packaging/libbpf.checksums \
  73. packaging/libbpf.version \
  74. packaging/protobuf.checksums \
  75. packaging/protobuf.version \
  76. packaging/version \
  77. database/engine/journalfile_v2.ksy.in \
  78. httpd/h2o \
  79. $(NULL)
  80. # until integrated within build
  81. # should be proper init.d/openrc/systemd usable
  82. dist_noinst_SCRIPTS = \
  83. coverity-scan.sh \
  84. packaging/installer/netdata-updater.sh \
  85. packaging/installer/netdata-uninstaller.sh \
  86. packaging/installer/kickstart.sh \
  87. packaging/installer/kickstart-static64.sh \
  88. packaging/installer/functions.sh \
  89. netdata-installer.sh
  90. $(NULL)
  91. # -----------------------------------------------------------------------------
  92. # Compile netdata binaries
  93. SUBDIRS += \
  94. collectors \
  95. daemon \
  96. database \
  97. exporting \
  98. health \
  99. libnetdata \
  100. registry \
  101. streaming \
  102. web \
  103. claim \
  104. spawn \
  105. $(NULL)
  106. AM_CFLAGS = \
  107. $(OPTIONAL_MATH_CFLAGS) \
  108. $(OPTIONAL_NFACCT_CFLAGS) \
  109. $(ZLIB_CFLAGS) \
  110. $(OPTIONAL_UUID_CFLAGS) \
  111. $(OPTIONAL_MQTT_CFLAGS) \
  112. $(OPTIONAL_LIBCAP_LIBS) \
  113. $(OPTIONAL_DATACHANNEL_CFLAGS) \
  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/aral/aral.c \
  127. libnetdata/aral/aral.h \
  128. libnetdata/avl/avl.c \
  129. libnetdata/avl/avl.h \
  130. libnetdata/buffer/buffer.c \
  131. libnetdata/buffer/buffer.h \
  132. libnetdata/circular_buffer/circular_buffer.c \
  133. libnetdata/circular_buffer/circular_buffer.h \
  134. libnetdata/clocks/clocks.c \
  135. libnetdata/clocks/clocks.h \
  136. libnetdata/completion/completion.c \
  137. libnetdata/completion/completion.h \
  138. libnetdata/dictionary/dictionary.c \
  139. libnetdata/dictionary/dictionary.h \
  140. libnetdata/eval/eval.c \
  141. libnetdata/eval/eval.h \
  142. libnetdata/inlined.h \
  143. libnetdata/july/july.c \
  144. libnetdata/july/july.h \
  145. libnetdata/libnetdata.c \
  146. libnetdata/libnetdata.h \
  147. libnetdata/required_dummies.h \
  148. libnetdata/locks/locks.c \
  149. libnetdata/locks/locks.h \
  150. libnetdata/log/log.c \
  151. libnetdata/log/log.h \
  152. libnetdata/onewayalloc/onewayalloc.c \
  153. libnetdata/onewayalloc/onewayalloc.h \
  154. libnetdata/parser/parser.c \
  155. libnetdata/parser/parser.h \
  156. libnetdata/popen/popen.c \
  157. libnetdata/popen/popen.h \
  158. libnetdata/procfile/procfile.c \
  159. libnetdata/procfile/procfile.h \
  160. libnetdata/os.c \
  161. libnetdata/os.h \
  162. libnetdata/simple_pattern/simple_pattern.c \
  163. libnetdata/simple_pattern/simple_pattern.h \
  164. libnetdata/socket/socket.c \
  165. libnetdata/socket/socket.h \
  166. libnetdata/socket/security.c \
  167. libnetdata/socket/security.h \
  168. libnetdata/statistical/statistical.c \
  169. libnetdata/statistical/statistical.h \
  170. libnetdata/string/string.c \
  171. libnetdata/string/string.h \
  172. libnetdata/storage_number/storage_number.c \
  173. libnetdata/storage_number/storage_number.h \
  174. libnetdata/threads/threads.c \
  175. libnetdata/threads/threads.h \
  176. libnetdata/url/url.c \
  177. libnetdata/url/url.h \
  178. libnetdata/json/json.c \
  179. libnetdata/json/json.h \
  180. libnetdata/json/jsmn.c \
  181. libnetdata/json/jsmn.h \
  182. libnetdata/health/health.c \
  183. libnetdata/health/health.h \
  184. libnetdata/string/utf8.h \
  185. libnetdata/worker_utilization/worker_utilization.c \
  186. libnetdata/worker_utilization/worker_utilization.h \
  187. libnetdata/http/http_defs.h \
  188. $(NULL)
  189. if ENABLE_PLUGIN_EBPF
  190. LIBNETDATA_FILES += \
  191. libnetdata/ebpf/ebpf.c \
  192. libnetdata/ebpf/ebpf.h \
  193. $(NULL)
  194. endif
  195. APPS_PLUGIN_FILES = \
  196. collectors/apps.plugin/apps_plugin.c \
  197. $(LIBNETDATA_FILES) \
  198. $(NULL)
  199. DEBUGFS_PLUGIN_FILES = \
  200. collectors/debugfs.plugin/debugfs_plugin.c \
  201. collectors/debugfs.plugin/debugfs_plugin.h \
  202. collectors/debugfs.plugin/debugfs_extfrag.c \
  203. collectors/debugfs.plugin/debugfs_zswap.c \
  204. $(LIBNETDATA_FILES) \
  205. $(NULL)
  206. FREEBSD_PLUGIN_FILES = \
  207. collectors/freebsd.plugin/plugin_freebsd.c \
  208. collectors/freebsd.plugin/plugin_freebsd.h \
  209. collectors/freebsd.plugin/freebsd_sysctl.c \
  210. collectors/freebsd.plugin/freebsd_getmntinfo.c \
  211. collectors/freebsd.plugin/freebsd_getifaddrs.c \
  212. collectors/freebsd.plugin/freebsd_devstat.c \
  213. collectors/freebsd.plugin/freebsd_kstat_zfs.c \
  214. collectors/freebsd.plugin/freebsd_ipfw.c \
  215. collectors/proc.plugin/zfs_common.c \
  216. collectors/proc.plugin/zfs_common.h \
  217. $(NULL)
  218. HEALTH_PLUGIN_FILES = \
  219. health/health.c \
  220. health/health.h \
  221. health/health_config.c \
  222. health/health_json.c \
  223. health/health_log.c \
  224. $(NULL)
  225. ML_FILES = \
  226. ml/ml.h \
  227. ml/ml-dummy.c \
  228. $(NULL)
  229. if ENABLE_ML
  230. ML_FILES += \
  231. ml/ad_charts.h \
  232. ml/ad_charts.cc \
  233. ml/Config.cc \
  234. ml/dlib/dlib/all/source.cpp \
  235. ml/ml-private.h \
  236. ml/ml.cc \
  237. $(NULL)
  238. # Disable warnings from dlib library
  239. ml/dlib/dlib/all/source.$(OBJEXT) : CXXFLAGS += -Wno-sign-compare -Wno-type-limits -Wno-aggressive-loop-optimizations -Wno-stringop-overflow -Wno-psabi
  240. # Disable ml warnings
  241. ml/ml.$(OBJEXT) : CXXFLAGS += -Wno-psabi
  242. endif
  243. IDLEJITTER_PLUGIN_FILES = \
  244. collectors/idlejitter.plugin/plugin_idlejitter.c \
  245. $(NULL)
  246. CGROUPS_PLUGIN_FILES = \
  247. collectors/cgroups.plugin/sys_fs_cgroup.c \
  248. collectors/cgroups.plugin/sys_fs_cgroup.h \
  249. $(NULL)
  250. CGROUP_NETWORK_FILES = \
  251. collectors/cgroups.plugin/cgroup-network.c \
  252. $(LIBNETDATA_FILES) \
  253. $(NULL)
  254. DISKSPACE_PLUGIN_FILES = \
  255. collectors/diskspace.plugin/plugin_diskspace.c \
  256. $(NULL)
  257. TIMEX_PLUGIN_FILES = \
  258. collectors/timex.plugin/plugin_timex.c \
  259. $(NULL)
  260. FREEIPMI_PLUGIN_FILES = \
  261. collectors/freeipmi.plugin/freeipmi_plugin.c \
  262. $(LIBNETDATA_FILES) \
  263. $(NULL)
  264. CUPS_PLUGIN_FILES = \
  265. collectors/cups.plugin/cups_plugin.c \
  266. $(LIBNETDATA_FILES) \
  267. $(NULL)
  268. NFACCT_PLUGIN_FILES = \
  269. collectors/nfacct.plugin/plugin_nfacct.c \
  270. $(LIBNETDATA_FILES) \
  271. $(NULL)
  272. SLABINFO_PLUGIN_FILES = \
  273. collectors/slabinfo.plugin/slabinfo.c \
  274. $(LIBNETDATA_FILES) \
  275. $(NULL)
  276. XENSTAT_PLUGIN_FILES = \
  277. collectors/xenstat.plugin/xenstat_plugin.c \
  278. $(LIBNETDATA_FILES) \
  279. $(NULL)
  280. PERF_PLUGIN_FILES = \
  281. collectors/perf.plugin/perf_plugin.c \
  282. $(LIBNETDATA_FILES) \
  283. $(NULL)
  284. EBPF_PLUGIN_FILES = \
  285. collectors/ebpf.plugin/ebpf.c \
  286. collectors/ebpf.plugin/ebpf_cachestat.c \
  287. collectors/ebpf.plugin/ebpf_cachestat.h \
  288. collectors/ebpf.plugin/ebpf_dcstat.c \
  289. collectors/ebpf.plugin/ebpf_dcstat.h \
  290. collectors/ebpf.plugin/ebpf_disk.c \
  291. collectors/ebpf.plugin/ebpf_disk.h \
  292. collectors/ebpf.plugin/ebpf_fd.c \
  293. collectors/ebpf.plugin/ebpf_fd.h \
  294. collectors/ebpf.plugin/ebpf_filesystem.c \
  295. collectors/ebpf.plugin/ebpf_filesystem.h \
  296. collectors/ebpf.plugin/ebpf_hardirq.c \
  297. collectors/ebpf.plugin/ebpf_hardirq.h \
  298. collectors/ebpf.plugin/ebpf_mdflush.c \
  299. collectors/ebpf.plugin/ebpf_mdflush.h \
  300. collectors/ebpf.plugin/ebpf_mount.c \
  301. collectors/ebpf.plugin/ebpf_mount.h \
  302. collectors/ebpf.plugin/ebpf_oomkill.c \
  303. collectors/ebpf.plugin/ebpf_oomkill.h \
  304. collectors/ebpf.plugin/ebpf_process.c \
  305. collectors/ebpf.plugin/ebpf_process.h \
  306. collectors/ebpf.plugin/ebpf_shm.c \
  307. collectors/ebpf.plugin/ebpf_shm.h \
  308. collectors/ebpf.plugin/ebpf_socket.c \
  309. collectors/ebpf.plugin/ebpf_socket.h \
  310. collectors/ebpf.plugin/ebpf_softirq.c \
  311. collectors/ebpf.plugin/ebpf_softirq.h \
  312. collectors/ebpf.plugin/ebpf_sync.c \
  313. collectors/ebpf.plugin/ebpf_sync.h \
  314. collectors/ebpf.plugin/ebpf_swap.c \
  315. collectors/ebpf.plugin/ebpf_swap.h \
  316. collectors/ebpf.plugin/ebpf_vfs.c \
  317. collectors/ebpf.plugin/ebpf_vfs.h \
  318. collectors/ebpf.plugin/ebpf.h \
  319. collectors/ebpf.plugin/ebpf_apps.c \
  320. collectors/ebpf.plugin/ebpf_apps.h \
  321. collectors/ebpf.plugin/ebpf_cgroup.c \
  322. collectors/ebpf.plugin/ebpf_cgroup.h \
  323. $(LIBNETDATA_FILES) \
  324. $(NULL)
  325. PROC_PLUGIN_FILES = \
  326. collectors/proc.plugin/ipc.c \
  327. collectors/proc.plugin/plugin_proc.c \
  328. collectors/proc.plugin/plugin_proc.h \
  329. collectors/proc.plugin/proc_diskstats.c \
  330. collectors/proc.plugin/proc_mdstat.c \
  331. collectors/proc.plugin/proc_interrupts.c \
  332. collectors/proc.plugin/proc_softirqs.c \
  333. collectors/proc.plugin/proc_loadavg.c \
  334. collectors/proc.plugin/proc_meminfo.c \
  335. collectors/proc.plugin/proc_pagetypeinfo.c \
  336. collectors/proc.plugin/proc_pressure.c \
  337. collectors/proc.plugin/proc_pressure.h \
  338. collectors/proc.plugin/proc_net_dev.c \
  339. collectors/proc.plugin/proc_net_wireless.c \
  340. collectors/proc.plugin/proc_net_ip_vs_stats.c \
  341. collectors/proc.plugin/proc_net_netstat.c \
  342. collectors/proc.plugin/proc_net_rpc_nfs.c \
  343. collectors/proc.plugin/proc_net_rpc_nfsd.c \
  344. collectors/proc.plugin/proc_net_sctp_snmp.c \
  345. collectors/proc.plugin/proc_net_sockstat.c \
  346. collectors/proc.plugin/proc_net_sockstat6.c \
  347. collectors/proc.plugin/proc_net_softnet_stat.c \
  348. collectors/proc.plugin/proc_net_stat_conntrack.c \
  349. collectors/proc.plugin/proc_net_stat_synproxy.c \
  350. collectors/proc.plugin/proc_self_mountinfo.c \
  351. collectors/proc.plugin/proc_self_mountinfo.h \
  352. collectors/proc.plugin/zfs_common.c \
  353. collectors/proc.plugin/zfs_common.h \
  354. collectors/proc.plugin/proc_spl_kstat_zfs.c \
  355. collectors/proc.plugin/proc_stat.c \
  356. collectors/proc.plugin/proc_sys_kernel_random_entropy_avail.c \
  357. collectors/proc.plugin/proc_vmstat.c \
  358. collectors/proc.plugin/proc_uptime.c \
  359. collectors/proc.plugin/sys_kernel_mm_ksm.c \
  360. collectors/proc.plugin/sys_block_zram.c \
  361. collectors/proc.plugin/sys_devices_system_edac_mc.c \
  362. collectors/proc.plugin/sys_devices_system_node.c \
  363. collectors/proc.plugin/sys_fs_btrfs.c \
  364. collectors/proc.plugin/sys_class_power_supply.c \
  365. collectors/proc.plugin/sys_class_infiniband.c \
  366. $(NULL)
  367. TC_PLUGIN_FILES = \
  368. collectors/tc.plugin/plugin_tc.c \
  369. $(NULL)
  370. MACOS_PLUGIN_FILES = \
  371. collectors/macos.plugin/plugin_macos.c \
  372. collectors/macos.plugin/plugin_macos.h \
  373. collectors/macos.plugin/macos_sysctl.c \
  374. collectors/macos.plugin/macos_mach_smi.c \
  375. collectors/macos.plugin/macos_fw.c \
  376. $(NULL)
  377. PLUGINSD_PLUGIN_FILES = \
  378. collectors/plugins.d/plugins_d.c \
  379. collectors/plugins.d/plugins_d.h \
  380. collectors/plugins.d/pluginsd_parser.c \
  381. collectors/plugins.d/pluginsd_parser.h \
  382. $(NULL)
  383. RRD_PLUGIN_FILES = \
  384. database/contexts/rrdcontext.c \
  385. database/contexts/rrdcontext.h \
  386. database/contexts/metric.c \
  387. database/contexts/instance.c \
  388. database/contexts/context.c \
  389. database/contexts/worker.c \
  390. database/contexts/query_target.c \
  391. database/contexts/query_scope.c \
  392. database/contexts/api_v1.c \
  393. database/contexts/api_v2.c \
  394. database/contexts/internal.h \
  395. database/rrdcalc.c \
  396. database/rrdcalc.h \
  397. database/rrdcalctemplate.c \
  398. database/rrdcalctemplate.h \
  399. database/rrddim.c \
  400. database/rrddimvar.c \
  401. database/rrddimvar.h \
  402. database/rrdfamily.c \
  403. database/rrdhost.c \
  404. database/rrdlabels.c \
  405. database/rrd.c \
  406. database/rrd.h \
  407. database/rrdset.c \
  408. database/rrdfunctions.c \
  409. database/rrdfunctions.h \
  410. database/rrdsetvar.c \
  411. database/rrdsetvar.h \
  412. database/rrdvar.c \
  413. database/rrdvar.h \
  414. database/storage_engine.c \
  415. database/storage_engine.h \
  416. database/ram/rrddim_mem.c \
  417. database/ram/rrddim_mem.h \
  418. database/sqlite/sqlite_functions.c \
  419. database/sqlite/sqlite_functions.h \
  420. database/sqlite/sqlite_context.c \
  421. database/sqlite/sqlite_context.h \
  422. database/sqlite/sqlite_db_migration.c \
  423. database/sqlite/sqlite_db_migration.h \
  424. database/sqlite/sqlite_aclk.c \
  425. database/sqlite/sqlite_aclk.h \
  426. database/sqlite/sqlite_metadata.c \
  427. database/sqlite/sqlite_metadata.h \
  428. database/sqlite/sqlite_health.c \
  429. database/sqlite/sqlite_health.h \
  430. database/sqlite/sqlite_aclk_node.c \
  431. database/sqlite/sqlite_aclk_node.h \
  432. database/sqlite/sqlite_aclk_alert.c \
  433. database/sqlite/sqlite_aclk_alert.h \
  434. database/sqlite/sqlite3.c \
  435. database/sqlite/sqlite3.h \
  436. database/KolmogorovSmirnovDist.c \
  437. database/KolmogorovSmirnovDist.h \
  438. $(NULL)
  439. database/sqlite/sqlite3.$(OBJEXT) : CFLAGS += -Wno-cast-function-type
  440. database/KolmogorovSmirnovDist.$(OBJEXT) : CFLAGS += -Wno-maybe-uninitialized
  441. noinst_LIBRARIES = libjudy.a
  442. libjudy_a_SOURCES = libnetdata/libjudy/src/Judy.h \
  443. libnetdata/libjudy/src/JudyCommon/JudyMalloc.c \
  444. libnetdata/libjudy/src/JudyCommon/JudyPrivate.h \
  445. libnetdata/libjudy/src/JudyCommon/JudyPrivate1L.h \
  446. libnetdata/libjudy/src/JudyCommon/JudyPrivateBranch.h \
  447. libnetdata/libjudy/src/JudyL/JudyL.h \
  448. libnetdata/libjudy/src/JudyL/JudyLByCount.c \
  449. libnetdata/libjudy/src/JudyL/JudyLCascade.c \
  450. libnetdata/libjudy/src/JudyL/JudyLCount.c \
  451. libnetdata/libjudy/src/JudyL/JudyLCreateBranch.c \
  452. libnetdata/libjudy/src/JudyL/JudyLDecascade.c \
  453. libnetdata/libjudy/src/JudyL/JudyLDel.c \
  454. libnetdata/libjudy/src/JudyL/JudyLFirst.c \
  455. libnetdata/libjudy/src/JudyL/JudyLFreeArray.c \
  456. libnetdata/libjudy/src/JudyL/j__udyLGet.c \
  457. libnetdata/libjudy/src/JudyL/JudyLGet.c \
  458. libnetdata/libjudy/src/JudyL/JudyLInsArray.c \
  459. libnetdata/libjudy/src/JudyL/JudyLIns.c \
  460. libnetdata/libjudy/src/JudyL/JudyLInsertBranch.c \
  461. libnetdata/libjudy/src/JudyL/JudyLMallocIF.c \
  462. libnetdata/libjudy/src/JudyL/JudyLMemActive.c \
  463. libnetdata/libjudy/src/JudyL/JudyLMemUsed.c \
  464. libnetdata/libjudy/src/JudyL/JudyLNext.c \
  465. libnetdata/libjudy/src/JudyL/JudyLNextEmpty.c \
  466. libnetdata/libjudy/src/JudyL/JudyLPrev.c \
  467. libnetdata/libjudy/src/JudyL/JudyLPrevEmpty.c \
  468. libnetdata/libjudy/src/JudyL/JudyLTables.c \
  469. libnetdata/libjudy/src/JudyHS/JudyHS.c \
  470. $(NULL)
  471. libjudy_a_CFLAGS = $(LIBJUDY_CFLAGS) -DJUDYL -I$(abs_top_srcdir)/libnetdata/libjudy/src -I$(abs_top_srcdir)/libnetdata/libjudy/src/JudyCommon -Wno-sign-compare -Wno-implicit-fallthrough
  472. libnetdata/libjudy/src/JudyL/libjudy_a-JudyLPrev.$(OBJEXT) : CFLAGS += -DJUDYPREV
  473. libnetdata/libjudy/src/JudyL/libjudy_a-JudyLPrevEmpty.$(OBJEXT) : CFLAGS += -DJUDYPREV
  474. libnetdata/libjudy/src/JudyL/libjudy_a-JudyLNext.$(OBJEXT) : CFLAGS += -DJUDYNEXT
  475. libnetdata/libjudy/src/JudyL/libjudy_a-JudyLNextEmpty.$(OBJEXT) : CFLAGS += -DJUDYNEXT
  476. libnetdata/libjudy/src/JudyL/libjudy_a-JudyLByCount.$(OBJEXT) : CFLAGS += -DNOSMARTJBB -DNOSMARTJBU -DNOSMARTJLB
  477. libnetdata/libjudy/src/JudyL/libjudy_a-j__udyLGet.$(OBJEXT) : CFLAGS += -DJUDYGETINLINE
  478. libjudy_a-JudyLTables.$(OBJEXT) : CFLAGS += -I$(abs_top_srcdir)/libnetdata/libjudy/src/JudyL
  479. if ENABLE_DBENGINE
  480. RRD_PLUGIN_FILES += \
  481. database/engine/rrdengine.c \
  482. database/engine/rrdengine.h \
  483. database/engine/rrddiskprotocol.h \
  484. database/engine/datafile.c \
  485. database/engine/datafile.h \
  486. database/engine/journalfile.c \
  487. database/engine/journalfile.h \
  488. database/engine/rrdenginelib.c \
  489. database/engine/rrdenginelib.h \
  490. database/engine/rrdengineapi.c \
  491. database/engine/rrdengineapi.h \
  492. database/engine/pagecache.c \
  493. database/engine/pagecache.h \
  494. database/engine/cache.c \
  495. database/engine/cache.h \
  496. database/engine/metric.c \
  497. database/engine/metric.h \
  498. database/engine/pdc.c \
  499. database/engine/pdc.h \
  500. $(NULL)
  501. RRD_PLUGIN_KSY_BUILTFILES = \
  502. database/engine/journalfile_v2.ksy \
  503. database/engine/journalfile_v2_virtmemb.ksy \
  504. $(NULL)
  505. BUILT_SOURCES += $(RRD_PLUGIN_KSY_BUILTFILES)
  506. CLEANFILES += $(RRD_PLUGIN_KSY_BUILTFILES)
  507. database/engine/journalfile_v2.ksy: $(abs_top_srcdir)/database/engine/journalfile_v2.ksy.in
  508. m4 $(abs_top_srcdir)/database/engine/journalfile_v2.ksy.in > $@
  509. database/engine/journalfile_v2_virtmemb.ksy: $(abs_top_srcdir)/database/engine/journalfile_v2.ksy.in
  510. m4 -DVIRT_MEMBERS $(abs_top_srcdir)/database/engine/journalfile_v2.ksy.in > $@
  511. endif
  512. API_PLUGIN_FILES = \
  513. web/api/badges/web_buffer_svg.c \
  514. web/api/badges/web_buffer_svg.h \
  515. web/api/exporters/allmetrics.c \
  516. web/api/exporters/allmetrics.h \
  517. web/api/exporters/shell/allmetrics_shell.c \
  518. web/api/exporters/shell/allmetrics_shell.h \
  519. web/api/queries/average/average.c \
  520. web/api/queries/average/average.h \
  521. web/api/queries/countif/countif.c \
  522. web/api/queries/countif/countif.h \
  523. web/api/queries/des/des.c \
  524. web/api/queries/des/des.h \
  525. web/api/queries/incremental_sum/incremental_sum.c \
  526. web/api/queries/incremental_sum/incremental_sum.h \
  527. web/api/queries/max/max.c \
  528. web/api/queries/max/max.h \
  529. web/api/queries/median/median.c \
  530. web/api/queries/median/median.h \
  531. web/api/queries/min/min.c \
  532. web/api/queries/min/min.h \
  533. web/api/queries/percentile/percentile.c \
  534. web/api/queries/percentile/percentile.h \
  535. web/api/queries/trimmed_mean/trimmed_mean.c \
  536. web/api/queries/trimmed_mean/trimmed_mean.h \
  537. web/api/queries/query.c \
  538. web/api/queries/query.h \
  539. web/api/queries/rrdr.c \
  540. web/api/queries/rrdr.h \
  541. web/api/queries/ses/ses.c \
  542. web/api/queries/ses/ses.h \
  543. web/api/queries/stddev/stddev.c \
  544. web/api/queries/stddev/stddev.h \
  545. web/api/queries/sum/sum.c \
  546. web/api/queries/sum/sum.h \
  547. web/api/queries/weights.c \
  548. web/api/queries/weights.h \
  549. web/api/formatters/rrd2json.c \
  550. web/api/formatters/rrd2json.h \
  551. web/api/formatters/csv/csv.c \
  552. web/api/formatters/csv/csv.h \
  553. web/api/formatters/json/json.c \
  554. web/api/formatters/json/json.h \
  555. web/api/formatters/ssv/ssv.c \
  556. web/api/formatters/ssv/ssv.h \
  557. web/api/formatters/value/value.c \
  558. web/api/formatters/value/value.h \
  559. web/api/formatters/json_wrapper.c \
  560. web/api/formatters/json_wrapper.h \
  561. web/api/formatters/charts2json.c \
  562. web/api/formatters/charts2json.h \
  563. web/api/formatters/rrdset2json.c \
  564. web/api/formatters/rrdset2json.h \
  565. web/api/health/health_cmdapi.c \
  566. web/api/health/health_cmdapi.h \
  567. web/api/web_api.c \
  568. web/api/web_api.h \
  569. web/api/web_api_v1.c \
  570. web/api/web_api_v1.h \
  571. web/api/web_api_v2.c \
  572. web/api/web_api_v2.h \
  573. $(NULL)
  574. STREAMING_PLUGIN_FILES = \
  575. streaming/rrdpush.c \
  576. streaming/compression.c \
  577. streaming/sender.c \
  578. streaming/receiver.c \
  579. streaming/replication.h \
  580. streaming/replication.c \
  581. streaming/rrdpush.h \
  582. $(NULL)
  583. REGISTRY_PLUGIN_FILES = \
  584. registry/registry.c \
  585. registry/registry.h \
  586. registry/registry_db.c \
  587. registry/registry_init.c \
  588. registry/registry_internals.c \
  589. registry/registry_internals.h \
  590. registry/registry_log.c \
  591. registry/registry_machine.c \
  592. registry/registry_machine.h \
  593. registry/registry_person.c \
  594. registry/registry_person.h \
  595. registry/registry_url.c \
  596. registry/registry_url.h \
  597. $(NULL)
  598. STATSD_PLUGIN_FILES = \
  599. collectors/statsd.plugin/statsd.c \
  600. $(NULL)
  601. WEB_PLUGIN_FILES = \
  602. web/rtc/webrtc.c \
  603. web/rtc/webrtc.h \
  604. web/server/web_client.c \
  605. web/server/web_client.h \
  606. web/server/web_server.c \
  607. web/server/web_server.h \
  608. web/server/web_client_cache.c \
  609. web/server/web_client_cache.h \
  610. web/server/static/static-threaded.c \
  611. web/server/static/static-threaded.h \
  612. $(NULL)
  613. CLAIM_FILES = \
  614. claim/claim.c \
  615. claim/claim.h \
  616. $(NULL)
  617. if ENABLE_ACLK
  618. ACLK_FILES = \
  619. aclk/aclk_util.c \
  620. aclk/aclk_util.h \
  621. aclk/aclk_stats.c \
  622. aclk/aclk_stats.h \
  623. aclk/aclk_query.c \
  624. aclk/aclk_query.h \
  625. aclk/aclk_query_queue.c \
  626. aclk/aclk_query_queue.h \
  627. aclk/aclk_otp.c \
  628. aclk/aclk_otp.h \
  629. aclk/aclk_tx_msgs.c \
  630. aclk/aclk_tx_msgs.h \
  631. aclk/aclk_rx_msgs.c \
  632. aclk/aclk_rx_msgs.h \
  633. aclk/https_client.c \
  634. aclk/https_client.h \
  635. aclk/aclk_alarm_api.c \
  636. aclk/aclk_alarm_api.h \
  637. aclk/aclk_contexts_api.c \
  638. aclk/aclk_contexts_api.h \
  639. aclk/helpers/mqtt_wss_pal.h \
  640. aclk/helpers/ringbuffer_pal.h \
  641. aclk/schema-wrappers/connection.cc \
  642. aclk/schema-wrappers/connection.h \
  643. aclk/schema-wrappers/node_connection.cc \
  644. aclk/schema-wrappers/node_connection.h \
  645. aclk/schema-wrappers/node_creation.cc \
  646. aclk/schema-wrappers/node_creation.h \
  647. aclk/schema-wrappers/alarm_stream.cc \
  648. aclk/schema-wrappers/alarm_stream.h \
  649. aclk/schema-wrappers/alarm_config.cc \
  650. aclk/schema-wrappers/alarm_config.h \
  651. aclk/schema-wrappers/node_info.cc \
  652. aclk/schema-wrappers/node_info.h \
  653. aclk/schema-wrappers/capability.cc \
  654. aclk/schema-wrappers/capability.h \
  655. aclk/schema-wrappers/proto_2_json.cc \
  656. aclk/schema-wrappers/proto_2_json.h \
  657. aclk/schema-wrappers/schema_wrappers.h \
  658. aclk/schema-wrappers/schema_wrapper_utils.cc \
  659. aclk/schema-wrappers/schema_wrapper_utils.h \
  660. aclk/schema-wrappers/context_stream.cc \
  661. aclk/schema-wrappers/context_stream.h \
  662. aclk/schema-wrappers/context.cc \
  663. aclk/schema-wrappers/context.h \
  664. aclk/schema-wrappers/agent_cmds.cc \
  665. aclk/schema-wrappers/agent_cmds.h \
  666. $(NULL)
  667. noinst_LIBRARIES += libmqttwebsockets.a
  668. libmqttwebsockets_a_SOURCES = \
  669. mqtt_websockets/src/mqtt_wss_client.c \
  670. mqtt_websockets/src/include/mqtt_wss_client.h \
  671. mqtt_websockets/src/mqtt_wss_log.c \
  672. mqtt_websockets/src/include/mqtt_wss_log.h \
  673. mqtt_websockets/src/ws_client.c \
  674. mqtt_websockets/src/include/ws_client.h \
  675. mqtt_websockets/src/mqtt_ng.c \
  676. mqtt_websockets/src/include/mqtt_ng.h \
  677. mqtt_websockets/src/common_public.c \
  678. mqtt_websockets/src/include/common_public.h \
  679. mqtt_websockets/src/include/common_internal.h \
  680. mqtt_websockets/c-rbuf/src/ringbuffer.c \
  681. mqtt_websockets/c-rbuf/include/ringbuffer.h \
  682. mqtt_websockets/c-rbuf/src/ringbuffer_internal.h \
  683. mqtt_websockets/c_rhash/src/c_rhash.c \
  684. mqtt_websockets/c_rhash/include/c_rhash.h \
  685. mqtt_websockets/c_rhash/src/c_rhash_internal.h \
  686. $(NULL)
  687. libmqttwebsockets_a_CFLAGS = $(CFLAGS) -DMQTT_WSS_CUSTOM_ALLOC -DRBUF_CUSTOM_MALLOC -DMQTT_WSS_CPUSTATS -I$(srcdir)/aclk/helpers -I$(srcdir)/mqtt_websockets/c_rhash/include
  688. if MQTT_WSS_DEBUG
  689. libmqttwebsockets_a_CFLAGS += -DMQTT_WSS_DEBUG
  690. endif
  691. mqtt_websockets/src/mqtt_wss_client.$(OBJEXT) : CFLAGS += -Wno-unused-result
  692. ACLK_PROTO_DEFINITIONS = \
  693. aclk/aclk-schemas/proto/aclk/v1/lib.proto \
  694. aclk/aclk-schemas/proto/agent/v1/disconnect.proto \
  695. aclk/aclk-schemas/proto/agent/v1/connection.proto \
  696. aclk/aclk-schemas/proto/alarm/v1/config.proto \
  697. aclk/aclk-schemas/proto/alarm/v1/stream.proto \
  698. aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.proto \
  699. aclk/aclk-schemas/proto/nodeinstance/create/v1/creation.proto \
  700. aclk/aclk-schemas/proto/nodeinstance/info/v1/info.proto \
  701. aclk/aclk-schemas/proto/context/v1/context.proto \
  702. aclk/aclk-schemas/proto/context/v1/stream.proto \
  703. aclk/aclk-schemas/proto/agent/v1/cmds.proto \
  704. $(NULL)
  705. dist_noinst_DATA += $(ACLK_PROTO_DEFINITIONS)
  706. ACLK_PROTO_BUILT_FILES = aclk/aclk-schemas/proto/agent/v1/connection.pb.cc \
  707. aclk/aclk-schemas/proto/agent/v1/connection.pb.h \
  708. aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.pb.cc \
  709. aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.pb.h \
  710. aclk/aclk-schemas/proto/nodeinstance/create/v1/creation.pb.cc \
  711. aclk/aclk-schemas/proto/nodeinstance/create/v1/creation.pb.h \
  712. aclk/aclk-schemas/proto/aclk/v1/lib.pb.cc \
  713. aclk/aclk-schemas/proto/aclk/v1/lib.pb.h \
  714. aclk/aclk-schemas/proto/agent/v1/disconnect.pb.cc \
  715. aclk/aclk-schemas/proto/agent/v1/disconnect.pb.h \
  716. aclk/aclk-schemas/proto/alarm/v1/config.pb.cc \
  717. aclk/aclk-schemas/proto/alarm/v1/config.pb.h \
  718. aclk/aclk-schemas/proto/alarm/v1/stream.pb.cc \
  719. aclk/aclk-schemas/proto/alarm/v1/stream.pb.h \
  720. aclk/aclk-schemas/proto/nodeinstance/info/v1/info.pb.cc \
  721. aclk/aclk-schemas/proto/nodeinstance/info/v1/info.pb.h \
  722. aclk/aclk-schemas/proto/context/v1/context.pb.cc \
  723. aclk/aclk-schemas/proto/context/v1/context.pb.h \
  724. aclk/aclk-schemas/proto/context/v1/stream.pb.cc \
  725. aclk/aclk-schemas/proto/context/v1/stream.pb.h \
  726. aclk/aclk-schemas/proto/agent/v1/cmds.pb.cc \
  727. aclk/aclk-schemas/proto/agent/v1/cmds.pb.h \
  728. $(NULL)
  729. BUILT_SOURCES += $(ACLK_PROTO_BUILT_FILES)
  730. nodist_netdata_SOURCES += $(ACLK_PROTO_BUILT_FILES)
  731. CLEANFILES += $(ACLK_PROTO_BUILT_FILES)
  732. aclk/aclk-schemas/proto/agent/v1/connection.pb.cc \
  733. aclk/aclk-schemas/proto/agent/v1/connection.pb.h: aclk/aclk-schemas/proto/agent/v1/connection.proto
  734. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  735. aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.pb.cc \
  736. aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.pb.h: aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.proto
  737. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  738. aclk/aclk-schemas/proto/nodeinstance/create/v1/creation.pb.cc \
  739. aclk/aclk-schemas/proto/nodeinstance/create/v1/creation.pb.h: aclk/aclk-schemas/proto/nodeinstance/create/v1/creation.proto
  740. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  741. aclk/aclk-schemas/proto/aclk/v1/lib.pb.cc \
  742. aclk/aclk-schemas/proto/aclk/v1/lib.pb.h: aclk/aclk-schemas/proto/aclk/v1/lib.proto
  743. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  744. aclk/aclk-schemas/proto/agent/v1/disconnect.pb.cc \
  745. aclk/aclk-schemas/proto/agent/v1/disconnect.pb.h: aclk/aclk-schemas/proto/agent/v1/disconnect.proto
  746. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  747. aclk/aclk-schemas/proto/alarm/v1/config.pb.cc \
  748. aclk/aclk-schemas/proto/alarm/v1/config.pb.h: aclk/aclk-schemas/proto/alarm/v1/config.proto
  749. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  750. aclk/aclk-schemas/proto/alarm/v1/stream.pb.cc \
  751. aclk/aclk-schemas/proto/alarm/v1/stream.pb.h: aclk/aclk-schemas/proto/alarm/v1/stream.proto
  752. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  753. aclk/aclk-schemas/proto/nodeinstance/info/v1/info.pb.cc \
  754. aclk/aclk-schemas/proto/nodeinstance/info/v1/info.pb.h: aclk/aclk-schemas/proto/nodeinstance/info/v1/info.proto
  755. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  756. aclk/aclk-schemas/proto/context/v1/context.pb.cc \
  757. aclk/aclk-schemas/proto/context/v1/context.pb.h: aclk/aclk-schemas/proto/context/v1/context.proto
  758. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  759. aclk/aclk-schemas/proto/context/v1/stream.pb.cc \
  760. aclk/aclk-schemas/proto/context/v1/stream.pb.h: aclk/aclk-schemas/proto/context/v1/stream.proto
  761. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  762. aclk/aclk-schemas/proto/agent/v1/cmds.pb.cc \
  763. aclk/aclk-schemas/proto/agent/v1/cmds.pb.h: aclk/aclk-schemas/proto/agent/v1/cmds.proto
  764. $(PROTOC) -I=aclk/aclk-schemas --cpp_out=$(builddir)/aclk/aclk-schemas $^
  765. endif #ENABLE_ACLK
  766. ACLK_ALWAYS_BUILD_FILES = \
  767. aclk/aclk_rrdhost_state.h \
  768. aclk/aclk_proxy.c \
  769. aclk/aclk_proxy.h \
  770. aclk/aclk.c \
  771. aclk/aclk.h \
  772. aclk/aclk_capas.c \
  773. aclk/aclk_capas.h \
  774. $(NULL)
  775. SPAWN_PLUGIN_FILES = \
  776. spawn/spawn.c \
  777. spawn/spawn_server.c \
  778. spawn/spawn_client.c \
  779. spawn/spawn.h \
  780. $(NULL)
  781. EXPORTING_ENGINE_FILES = \
  782. exporting/exporting_engine.c \
  783. exporting/exporting_engine.h \
  784. exporting/graphite/graphite.c \
  785. exporting/graphite/graphite.h \
  786. exporting/json/json.c \
  787. exporting/json/json.h \
  788. exporting/opentsdb/opentsdb.c \
  789. exporting/opentsdb/opentsdb.h \
  790. exporting/prometheus/prometheus.c \
  791. exporting/prometheus/prometheus.h \
  792. exporting/read_config.c \
  793. exporting/clean_connectors.c \
  794. exporting/init_connectors.c \
  795. exporting/process_data.c \
  796. exporting/check_filters.c \
  797. exporting/send_data.c \
  798. exporting/send_internal_metrics.c \
  799. $(NULL)
  800. PROMETHEUS_REMOTE_WRITE_EXPORTING_FILES = \
  801. exporting/prometheus/remote_write/remote_write.c \
  802. exporting/prometheus/remote_write/remote_write.h \
  803. exporting/prometheus/remote_write/remote_write_request.cc \
  804. exporting/prometheus/remote_write/remote_write_request.h \
  805. exporting/prometheus/remote_write/remote_write.proto \
  806. $(NULL)
  807. KINESIS_EXPORTING_FILES = \
  808. exporting/aws_kinesis/aws_kinesis.c \
  809. exporting/aws_kinesis/aws_kinesis.h \
  810. exporting/aws_kinesis/aws_kinesis_put_record.cc \
  811. exporting/aws_kinesis/aws_kinesis_put_record.h \
  812. $(NULL)
  813. PUBSUB_EXPORTING_FILES = \
  814. exporting/pubsub/pubsub.c \
  815. exporting/pubsub/pubsub.h \
  816. exporting/pubsub/pubsub_publish.cc \
  817. exporting/pubsub/pubsub_publish.h \
  818. $(NULL)
  819. MONGODB_EXPORTING_FILES = \
  820. exporting/mongodb/mongodb.c \
  821. exporting/mongodb/mongodb.h \
  822. $(NULL)
  823. DAEMON_FILES = \
  824. daemon/buildinfo.c \
  825. daemon/buildinfo.h \
  826. daemon/common.c \
  827. daemon/common.h \
  828. daemon/daemon.c \
  829. daemon/daemon.h \
  830. daemon/event_loop.c \
  831. daemon/event_loop.h \
  832. daemon/global_statistics.c \
  833. daemon/global_statistics.h \
  834. daemon/analytics.c \
  835. daemon/analytics.h \
  836. daemon/main.c \
  837. daemon/main.h \
  838. daemon/signals.c \
  839. daemon/signals.h \
  840. daemon/service.c \
  841. daemon/static_threads.h \
  842. daemon/static_threads.c \
  843. daemon/commands.c \
  844. daemon/commands.h \
  845. daemon/unit_test.c \
  846. daemon/unit_test.h \
  847. $(NULL)
  848. HTTPD_FILES = \
  849. httpd/http_server.c \
  850. httpd/http_server.h \
  851. httpd/h2o_utils.c \
  852. httpd/h2o_utils.h \
  853. $(NULL)
  854. libh2o_dir = httpd/h2o
  855. libh2o_a_SOURCES = \
  856. $(libh2o_dir)/deps/cloexec/cloexec.c \
  857. $(libh2o_dir)/deps/libgkc/gkc.c \
  858. $(libh2o_dir)/deps/libyrmcds/close.c \
  859. $(libh2o_dir)/deps/libyrmcds/connect.c \
  860. $(libh2o_dir)/deps/libyrmcds/recv.c \
  861. $(libh2o_dir)/deps/libyrmcds/send.c \
  862. $(libh2o_dir)/deps/libyrmcds/send_text.c \
  863. $(libh2o_dir)/deps/libyrmcds/socket.c \
  864. $(libh2o_dir)/deps/libyrmcds/strerror.c \
  865. $(libh2o_dir)/deps/libyrmcds/text_mode.c \
  866. $(libh2o_dir)/deps/picohttpparser/picohttpparser.c \
  867. $(libh2o_dir)/lib/common/cache.c \
  868. $(libh2o_dir)/lib/common/file.c \
  869. $(libh2o_dir)/lib/common/filecache.c \
  870. $(libh2o_dir)/lib/common/hostinfo.c \
  871. $(libh2o_dir)/lib/common/http1client.c \
  872. $(libh2o_dir)/lib/common/memcached.c \
  873. $(libh2o_dir)/lib/common/memory.c \
  874. $(libh2o_dir)/lib/common/multithread.c \
  875. $(libh2o_dir)/lib/common/serverutil.c \
  876. $(libh2o_dir)/lib/common/socket.c \
  877. $(libh2o_dir)/lib/common/socketpool.c \
  878. $(libh2o_dir)/lib/common/string.c \
  879. $(libh2o_dir)/lib/common/time.c \
  880. $(libh2o_dir)/lib/common/timeout.c \
  881. $(libh2o_dir)/lib/common/url.c \
  882. $(libh2o_dir)/lib/core/config.c \
  883. $(libh2o_dir)/lib/core/configurator.c \
  884. $(libh2o_dir)/lib/core/context.c \
  885. $(libh2o_dir)/lib/core/headers.c \
  886. $(libh2o_dir)/lib/core/logconf.c \
  887. $(libh2o_dir)/lib/core/proxy.c \
  888. $(libh2o_dir)/lib/core/request.c \
  889. $(libh2o_dir)/lib/core/token.c \
  890. $(libh2o_dir)/lib/core/util.c \
  891. $(libh2o_dir)/lib/handler/access_log.c \
  892. $(libh2o_dir)/lib/handler/chunked.c \
  893. $(libh2o_dir)/lib/handler/compress.c \
  894. $(libh2o_dir)/lib/handler/compress/gzip.c \
  895. $(libh2o_dir)/lib/handler/errordoc.c \
  896. $(libh2o_dir)/lib/handler/expires.c \
  897. $(libh2o_dir)/lib/handler/fastcgi.c \
  898. $(libh2o_dir)/lib/handler/file.c \
  899. $(libh2o_dir)/lib/handler/headers.c \
  900. $(libh2o_dir)/lib/handler/mimemap.c \
  901. $(libh2o_dir)/lib/handler/proxy.c \
  902. $(libh2o_dir)/lib/handler/redirect.c \
  903. $(libh2o_dir)/lib/handler/reproxy.c \
  904. $(libh2o_dir)/lib/handler/throttle_resp.c \
  905. $(libh2o_dir)/lib/handler/status.c \
  906. $(libh2o_dir)/lib/handler/headers_util.c \
  907. $(libh2o_dir)/lib/handler/status/events.c \
  908. $(libh2o_dir)/lib/handler/status/requests.c \
  909. $(libh2o_dir)/lib/handler/http2_debug_state.c \
  910. $(libh2o_dir)/lib/handler/status/durations.c \
  911. $(libh2o_dir)/lib/handler/configurator/access_log.c \
  912. $(libh2o_dir)/lib/handler/configurator/compress.c \
  913. $(libh2o_dir)/lib/handler/configurator/errordoc.c \
  914. $(libh2o_dir)/lib/handler/configurator/expires.c \
  915. $(libh2o_dir)/lib/handler/configurator/fastcgi.c \
  916. $(libh2o_dir)/lib/handler/configurator/file.c \
  917. $(libh2o_dir)/lib/handler/configurator/headers.c \
  918. $(libh2o_dir)/lib/handler/configurator/proxy.c \
  919. $(libh2o_dir)/lib/handler/configurator/redirect.c \
  920. $(libh2o_dir)/lib/handler/configurator/reproxy.c \
  921. $(libh2o_dir)/lib/handler/configurator/throttle_resp.c \
  922. $(libh2o_dir)/lib/handler/configurator/status.c \
  923. $(libh2o_dir)/lib/handler/configurator/http2_debug_state.c \
  924. $(libh2o_dir)/lib/handler/configurator/headers_util.c \
  925. $(libh2o_dir)/lib/http1.c \
  926. $(libh2o_dir)/lib/tunnel.c \
  927. $(libh2o_dir)/lib/http2/cache_digests.c \
  928. $(libh2o_dir)/lib/http2/casper.c \
  929. $(libh2o_dir)/lib/http2/connection.c \
  930. $(libh2o_dir)/lib/http2/frame.c \
  931. $(libh2o_dir)/lib/http2/hpack.c \
  932. $(libh2o_dir)/lib/http2/scheduler.c \
  933. $(libh2o_dir)/lib/http2/stream.c \
  934. $(libh2o_dir)/lib/http2/http2_debug_state.c \
  935. $(NULL)
  936. libh2o_a_INCLUDES = \
  937. -I$(srcdir)/$(libh2o_dir)/include \
  938. -I$(srcdir)/$(libh2o_dir)/deps/cloexec \
  939. -I$(srcdir)/$(libh2o_dir)/deps/brotli/enc \
  940. -I$(srcdir)/$(libh2o_dir)/deps/golombset \
  941. -I$(srcdir)/$(libh2o_dir)/deps/libgkc \
  942. -I$(srcdir)/$(libh2o_dir)/deps/libyrmcds \
  943. -I$(srcdir)/$(libh2o_dir)/deps/klib \
  944. -I$(srcdir)/$(libh2o_dir)/deps/neverbleed \
  945. -I$(srcdir)/$(libh2o_dir)/deps/picohttpparser \
  946. -I$(srcdir)/$(libh2o_dir)/deps/picotest \
  947. -I$(srcdir)/$(libh2o_dir)/deps/yaml/include \
  948. -I$(srcdir)/$(libh2o_dir)/deps/yoml \
  949. $(NULL)
  950. if ENABLE_HTTPD
  951. noinst_LIBRARIES += libh2o.a
  952. # until h2o updates support for OpenSSL 3.0 we silence the warnings
  953. libh2o_a_CFLAGS = $(CFLAGS) -Wno-deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -DH2O_USE_LIBUV=0 $(libh2o_a_INCLUDES)
  954. if LINUX
  955. libh2o_a_CFLAGS += -D_GNU_SOURCE
  956. endif
  957. endif #ENABLE_HTTPD
  958. NETDATA_FILES = \
  959. collectors/all.h \
  960. $(DAEMON_FILES) \
  961. $(LIBNETDATA_FILES) \
  962. $(API_PLUGIN_FILES) \
  963. $(EXPORTING_ENGINE_FILES) \
  964. $(HEALTH_PLUGIN_FILES) \
  965. $(ML_FILES) \
  966. $(IDLEJITTER_PLUGIN_FILES) \
  967. $(PLUGINSD_PLUGIN_FILES) \
  968. $(REGISTRY_PLUGIN_FILES) \
  969. $(RRD_PLUGIN_FILES) \
  970. $(STREAMING_PLUGIN_FILES) \
  971. $(STATSD_PLUGIN_FILES) \
  972. $(WEB_PLUGIN_FILES) \
  973. $(CLAIM_FILES) \
  974. $(ACLK_ALWAYS_BUILD_FILES) \
  975. $(ACLK_FILES) \
  976. $(SPAWN_PLUGIN_FILES) \
  977. $(TIMEX_PLUGIN_FILES) \
  978. $(NULL)
  979. if FREEBSD
  980. NETDATA_FILES += \
  981. daemon/static_threads_freebsd.c \
  982. $(FREEBSD_PLUGIN_FILES) \
  983. $(NULL)
  984. endif
  985. if MACOS
  986. NETDATA_FILES += \
  987. daemon/static_threads_macos.c \
  988. $(MACOS_PLUGIN_FILES) \
  989. $(NULL)
  990. endif
  991. if LINUX
  992. NETDATA_FILES += \
  993. daemon/static_threads_linux.c \
  994. $(CGROUPS_PLUGIN_FILES) \
  995. $(DISKSPACE_PLUGIN_FILES) \
  996. $(PROC_PLUGIN_FILES) \
  997. $(TC_PLUGIN_FILES) \
  998. $(NULL)
  999. endif
  1000. NETDATA_COMMON_LIBS = \
  1001. $(OPTIONAL_MATH_LIBS) \
  1002. $(OPTIONAL_BPF_LIBS) \
  1003. $(ZLIB_LIBS) \
  1004. $(OPTIONAL_SSL_LIBS) \
  1005. $(OPTIONAL_UUID_LIBS) \
  1006. $(OPTIONAL_MQTT_LIBS) \
  1007. $(OPTIONAL_UV_LIBS) \
  1008. $(OPTIONAL_LZ4_LIBS) \
  1009. $(OPTIONAL_DATACHANNEL_LIBS) \
  1010. libjudy.a \
  1011. $(OPTIONAL_SSL_LIBS) \
  1012. $(OPTIONAL_JSONC_LIBS) \
  1013. $(OPTIONAL_YAML_LIBS) \
  1014. $(OPTIONAL_ATOMIC_LIBS) \
  1015. $(OPTIONAL_DL_LIBS) \
  1016. $(NULL)
  1017. if ENABLE_ACLK
  1018. NETDATA_COMMON_LIBS += libmqttwebsockets.a
  1019. endif
  1020. if ENABLE_HTTPD
  1021. NETDATA_FILES += $(HTTPD_FILES)
  1022. NETDATA_COMMON_LIBS += libh2o.a
  1023. endif
  1024. if LINK_STATIC_JSONC
  1025. NETDATA_COMMON_LIBS += $(abs_top_srcdir)/externaldeps/jsonc/libjson-c.a
  1026. endif
  1027. if LINK_STATIC_YAML
  1028. NETDATA_COMMON_LIBS += $(abs_top_srcdir)/externaldeps/libyaml/libyaml.a
  1029. endif
  1030. NETDATACLI_FILES = \
  1031. daemon/commands.h \
  1032. libnetdata/buffer/buffer.c \
  1033. libnetdata/buffer/buffer.h \
  1034. cli/cli.c \
  1035. cli/cli.h \
  1036. $(NULL)
  1037. sbin_PROGRAMS += netdata
  1038. netdata_SOURCES = $(NETDATA_FILES)
  1039. if LINUX
  1040. NETDATA_COMMON_LIBS += -lrt
  1041. endif
  1042. netdata_LDADD = \
  1043. $(NETDATA_COMMON_LIBS) \
  1044. $(NULL)
  1045. if ENABLE_ACLK
  1046. netdata_LDADD += $(OPTIONAL_PROTOBUF_LIBS) \
  1047. $(OPTIONAL_ATOMIC_LIBS) \
  1048. $(NULL)
  1049. endif
  1050. netdata_LINK = $(CXXLD) $(CXXFLAGS) $(LDFLAGS) -o $@
  1051. sbin_PROGRAMS += netdatacli
  1052. netdatacli_SOURCES = $(NETDATACLI_FILES)
  1053. netdatacli_LDADD = \
  1054. $(NETDATA_COMMON_LIBS) \
  1055. $(NULL)
  1056. netdatacli_LINK = $(CXXLD) $(CXXFLAGS) $(LDFLAGS) -o $@
  1057. if ENABLE_PLUGIN_APPS
  1058. plugins_PROGRAMS += apps.plugin
  1059. apps_plugin_SOURCES = $(APPS_PLUGIN_FILES)
  1060. apps_plugin_LDADD = \
  1061. $(NETDATA_COMMON_LIBS) \
  1062. $(OPTIONAL_LIBCAP_LIBS) \
  1063. $(NULL)
  1064. endif
  1065. if ENABLE_PLUGIN_DEBUGFS
  1066. plugins_PROGRAMS += debugfs.plugin
  1067. debugfs_plugin_SOURCES = $(DEBUGFS_PLUGIN_FILES)
  1068. debugfs_plugin_LDADD = \
  1069. $(NETDATA_COMMON_LIBS) \
  1070. $(OPTIONAL_LIBCAP_LIBS) \
  1071. $(NULL)
  1072. endif
  1073. if ENABLE_PLUGIN_CGROUP_NETWORK
  1074. plugins_PROGRAMS += cgroup-network
  1075. cgroup_network_SOURCES = $(CGROUP_NETWORK_FILES)
  1076. cgroup_network_LDADD = \
  1077. $(NETDATA_COMMON_LIBS) \
  1078. $(NULL)
  1079. endif
  1080. if ENABLE_PLUGIN_FREEIPMI
  1081. plugins_PROGRAMS += freeipmi.plugin
  1082. freeipmi_plugin_SOURCES = $(FREEIPMI_PLUGIN_FILES)
  1083. freeipmi_plugin_LDADD = \
  1084. $(NETDATA_COMMON_LIBS) \
  1085. $(OPTIONAL_IPMIMONITORING_LIBS) \
  1086. $(NULL)
  1087. endif
  1088. if ENABLE_PLUGIN_EBPF
  1089. plugins_PROGRAMS += ebpf.plugin
  1090. ebpf_plugin_SOURCES = $(EBPF_PLUGIN_FILES)
  1091. ebpf_plugin_LDADD = \
  1092. $(NETDATA_COMMON_LIBS) \
  1093. $(NULL)
  1094. endif
  1095. if ENABLE_PLUGIN_CUPS
  1096. plugins_PROGRAMS += cups.plugin
  1097. cups_plugin_SOURCES = $(CUPS_PLUGIN_FILES)
  1098. cups_plugin_LDADD = \
  1099. $(NETDATA_COMMON_LIBS) \
  1100. $(OPTIONAL_CUPS_LIBS) \
  1101. $(NULL)
  1102. endif
  1103. if ENABLE_PLUGIN_NFACCT
  1104. plugins_PROGRAMS += nfacct.plugin
  1105. nfacct_plugin_SOURCES = $(NFACCT_PLUGIN_FILES)
  1106. nfacct_plugin_LDADD = \
  1107. $(NETDATA_COMMON_LIBS) \
  1108. $(OPTIONAL_NFACCT_LIBS) \
  1109. $(NULL)
  1110. endif
  1111. if ENABLE_PLUGIN_XENSTAT
  1112. plugins_PROGRAMS += xenstat.plugin
  1113. xenstat_plugin_SOURCES = $(XENSTAT_PLUGIN_FILES)
  1114. xenstat_plugin_LDADD = \
  1115. $(NETDATA_COMMON_LIBS) \
  1116. $(OPTIONAL_XENSTAT_LIBS) \
  1117. $(NULL)
  1118. endif
  1119. if ENABLE_PLUGIN_PERF
  1120. plugins_PROGRAMS += perf.plugin
  1121. perf_plugin_SOURCES = $(PERF_PLUGIN_FILES)
  1122. perf_plugin_LDADD = \
  1123. $(NETDATA_COMMON_LIBS) \
  1124. $(NULL)
  1125. endif
  1126. if ENABLE_PLUGIN_SLABINFO
  1127. plugins_PROGRAMS += slabinfo.plugin
  1128. slabinfo_plugin_SOURCES = $(SLABINFO_PLUGIN_FILES)
  1129. slabinfo_plugin_LDADD = \
  1130. $(NETDATA_COMMON_LIBS) \
  1131. $(NULL)
  1132. endif
  1133. if ENABLE_EXPORTING_KINESIS
  1134. netdata_SOURCES += $(KINESIS_EXPORTING_FILES)
  1135. netdata_LDADD += $(OPTIONAL_KINESIS_LIBS)
  1136. endif
  1137. if ENABLE_EXPORTING_PUBSUB
  1138. netdata_SOURCES += $(PUBSUB_EXPORTING_FILES)
  1139. netdata_LDADD += $(OPTIONAL_PUBSUB_LIBS)
  1140. endif
  1141. if ENABLE_EXPORTING_PROMETHEUS_REMOTE_WRITE
  1142. netdata_SOURCES += $(PROMETHEUS_REMOTE_WRITE_EXPORTING_FILES)
  1143. netdata_LDADD += $(OPTIONAL_PROMETHEUS_REMOTE_WRITE_LIBS) \
  1144. $(OPTIONAL_PROTOBUF_LIBS) \
  1145. $(NULL)
  1146. EXPORTING_PROMETHEUS_BUILT_SOURCES = \
  1147. exporting/prometheus/remote_write/remote_write.pb.cc \
  1148. exporting/prometheus/remote_write/remote_write.pb.h \
  1149. $(NULL)
  1150. BUILT_SOURCES += $(EXPORTING_PROMETHEUS_BUILT_SOURCES)
  1151. nodist_netdata_SOURCES += $(EXPORTING_PROMETHEUS_BUILT_SOURCES)
  1152. exporting/prometheus/remote_write/remote_write.pb.cc \
  1153. exporting/prometheus/remote_write/remote_write.pb.h: exporting/prometheus/remote_write/remote_write.proto
  1154. $(PROTOC) --proto_path=$(srcdir) --cpp_out=$(builddir) $^
  1155. endif
  1156. if ENABLE_EXPORTING_MONGODB
  1157. netdata_SOURCES += $(MONGODB_EXPORTING_FILES)
  1158. netdata_LDADD += $(OPTIONAL_MONGOC_LIBS)
  1159. endif
  1160. if ENABLE_UNITTESTS
  1161. check_PROGRAMS = \
  1162. libnetdata/tests/str2ld_testdriver \
  1163. libnetdata/storage_number/tests/storage_number_testdriver \
  1164. exporting/tests/exporting_engine_testdriver \
  1165. web/api/tests/web_api_testdriver \
  1166. web/api/tests/valid_urls_testdriver \
  1167. collectors/cgroups_plugin/tests/cgroups_testdriver \
  1168. $(NULL)
  1169. TESTS = $(check_PROGRAMS)
  1170. XFAIL_TESTS = \
  1171. web/api/tests/web_api_testdriver \
  1172. web/api/tests/valid_urls_testdriver \
  1173. $(NULL)
  1174. web_api_tests_valid_urls_testdriver_LDFLAGS = \
  1175. -Wl,--wrap=rrdhost_find_by_hostname \
  1176. -Wl,--wrap=finished_web_request_statistics \
  1177. -Wl,--wrap=config_get \
  1178. -Wl,--wrap=web_client_api_request_v1 \
  1179. -Wl,--wrap=rrdhost_find_by_guid \
  1180. -Wl,--wrap=rrdset_find_byname \
  1181. -Wl,--wrap=rrdset_find \
  1182. -Wl,--wrap=rrdpush_receiver_thread_spawn \
  1183. -Wl,--wrap=debug_int \
  1184. -Wl,--wrap=error_int \
  1185. -Wl,--wrap=info_int \
  1186. -Wl,--wrap=fatal_int \
  1187. -Wl,--wrap=mysendfile \
  1188. -DREMOVE_MYSENDFILE \
  1189. $(TEST_LDFLAGS) \
  1190. $(NULL)
  1191. web_api_tests_valid_urls_testdriver_SOURCES = \
  1192. web/api/tests/valid_urls.c \
  1193. web/server/web_client.c \
  1194. $(LIBNETDATA_FILES) \
  1195. $(NULL)
  1196. web_api_tests_valid_urls_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS)
  1197. web_api_tests_web_api_testdriver_LDFLAGS = \
  1198. -Wl,--wrap=rrdhost_find_by_hostname \
  1199. -Wl,--wrap=finished_web_request_statistics \
  1200. -Wl,--wrap=config_get \
  1201. -Wl,--wrap=web_client_api_request_v1 \
  1202. -Wl,--wrap=rrdhost_find_by_guid \
  1203. -Wl,--wrap=rrdset_find_byname \
  1204. -Wl,--wrap=rrdset_find \
  1205. -Wl,--wrap=rrdpush_receiver_thread_spawn \
  1206. -Wl,--wrap=debug_int \
  1207. -Wl,--wrap=error_int \
  1208. -Wl,--wrap=info_int \
  1209. -Wl,--wrap=fatal_int \
  1210. $(TEST_LDFLAGS) \
  1211. $(NULL)
  1212. web_api_tests_web_api_testdriver_SOURCES = \
  1213. web/api/tests/web_api.c \
  1214. web/server/web_client.c \
  1215. $(LIBNETDATA_FILES) \
  1216. $(NULL)
  1217. web_api_tests_web_api_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS)
  1218. libnetdata_tests_str2ld_testdriver_SOURCES = \
  1219. libnetdata/tests/test_str2ld.c \
  1220. $(LIBNETDATA_FILES) \
  1221. $(NULL)
  1222. libnetdata_tests_str2ld_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS)
  1223. libnetdata_storage_number_tests_storage_number_testdriver_SOURCES = \
  1224. libnetdata/storage_number/tests/test_storage_number.c \
  1225. $(LIBNETDATA_FILES) \
  1226. $(NULL)
  1227. libnetdata_storage_number_tests_storage_number_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS)
  1228. EXPORTING_ENGINE_TEST_FILES = \
  1229. exporting/tests/test_exporting_engine.c \
  1230. exporting/tests/test_exporting_engine.h \
  1231. exporting/tests/exporting_fixtures.c \
  1232. exporting/tests/exporting_doubles.c \
  1233. exporting/tests/netdata_doubles.c \
  1234. exporting/tests/system_doubles.c \
  1235. $(NULL)
  1236. exporting_tests_exporting_engine_testdriver_SOURCES = \
  1237. $(EXPORTING_ENGINE_TEST_FILES) \
  1238. $(EXPORTING_ENGINE_FILES) \
  1239. $(LIBNETDATA_FILES) \
  1240. database/rrdlabels.c \
  1241. database/rrdvar.c \
  1242. $(NULL)
  1243. exporting_tests_exporting_engine_testdriver_CFLAGS = \
  1244. $(AM_CFLAGS) \
  1245. -DUNIT_TESTING \
  1246. $(NULL)
  1247. exporting_tests_exporting_engine_testdriver_LDFLAGS = \
  1248. -Wl,--wrap=read_exporting_config \
  1249. -Wl,--wrap=init_connectors \
  1250. -Wl,--wrap=mark_scheduled_instances \
  1251. -Wl,--wrap=rrdhost_is_exportable \
  1252. -Wl,--wrap=rrdset_is_exportable \
  1253. -Wl,--wrap=exporting_calculate_value_from_stored_data \
  1254. -Wl,--wrap=prepare_buffers \
  1255. -Wl,--wrap=send_internal_metrics \
  1256. -Wl,--wrap=now_realtime_sec \
  1257. -Wl,--wrap=uv_thread_set_name_np \
  1258. -Wl,--wrap=uv_thread_create \
  1259. -Wl,--wrap=uv_mutex_lock \
  1260. -Wl,--wrap=uv_mutex_unlock \
  1261. -Wl,--wrap=uv_cond_signal \
  1262. -Wl,--wrap=uv_cond_wait \
  1263. -Wl,--wrap=strdupz \
  1264. -Wl,--wrap=info_int \
  1265. -Wl,--wrap=recv \
  1266. -Wl,--wrap=send \
  1267. -Wl,--wrap=connect_to_one_of \
  1268. -Wl,--wrap=create_main_rusage_chart \
  1269. -Wl,--wrap=send_main_rusage \
  1270. -Wl,--wrap=simple_connector_end_batch \
  1271. $(TEST_LDFLAGS) \
  1272. $(NULL)
  1273. exporting_tests_exporting_engine_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS)
  1274. if ENABLE_EXPORTING_PROMETHEUS_REMOTE_WRITE
  1275. exporting_tests_exporting_engine_testdriver_SOURCES += $(PROMETHEUS_REMOTE_WRITE_EXPORTING_FILES)
  1276. exporting_tests_exporting_engine_testdriver_LDADD += \
  1277. $(OPTIONAL_PROMETHEUS_REMOTE_WRITE_LIBS) \
  1278. $(OPTIONAL_PROTOBUF_LIBS) \
  1279. $(NULL)
  1280. exporting_tests_exporting_engine_testdriver_LDFLAGS += \
  1281. -Wl,--wrap=init_write_request \
  1282. -Wl,--wrap=add_host_info \
  1283. -Wl,--wrap=add_label \
  1284. -Wl,--wrap=add_metric \
  1285. $(NULL)
  1286. nodist_exporting_tests_exporting_engine_testdriver_SOURCES = $(EXPORTING_PROMETHEUS_BUILT_SOURCES)
  1287. endif
  1288. if ENABLE_EXPORTING_KINESIS
  1289. exporting_tests_exporting_engine_testdriver_SOURCES += $(KINESIS_EXPORTING_FILES)
  1290. exporting_tests_exporting_engine_testdriver_LDADD += $(OPTIONAL_KINESIS_LIBS)
  1291. exporting_tests_exporting_engine_testdriver_LDFLAGS += \
  1292. -Wl,--wrap=aws_sdk_init \
  1293. -Wl,--wrap=kinesis_init \
  1294. -Wl,--wrap=kinesis_put_record \
  1295. -Wl,--wrap=kinesis_get_result \
  1296. $(NULL)
  1297. endif
  1298. if ENABLE_EXPORTING_PUBSUB
  1299. exporting_tests_exporting_engine_testdriver_SOURCES += $(PUBSUB_EXPORTING_FILES)
  1300. exporting_tests_exporting_engine_testdriver_LDADD += $(OPTIONAL_PUBSUB_LIBS)
  1301. exporting_tests_exporting_engine_testdriver_LDFLAGS += \
  1302. -Wl,--wrap=pubsub_init \
  1303. -Wl,--wrap=pubsub_add_message \
  1304. -Wl,--wrap=pubsub_publish \
  1305. -Wl,--wrap=pubsub_get_result \
  1306. $(NULL)
  1307. endif
  1308. if ENABLE_EXPORTING_MONGODB
  1309. exporting_tests_exporting_engine_testdriver_SOURCES += $(MONGODB_EXPORTING_FILES)
  1310. exporting_tests_exporting_engine_testdriver_LDADD += $(OPTIONAL_MONGOC_LIBS)
  1311. exporting_tests_exporting_engine_testdriver_LDFLAGS += \
  1312. -Wl,--wrap=mongoc_init \
  1313. -Wl,--wrap=mongoc_uri_new_with_error \
  1314. -Wl,--wrap=mongoc_uri_get_option_as_int32 \
  1315. -Wl,--wrap=mongoc_uri_set_option_as_int32 \
  1316. -Wl,--wrap=mongoc_client_new_from_uri \
  1317. -Wl,--wrap=mongoc_client_set_appname \
  1318. -Wl,--wrap=mongoc_client_get_collection \
  1319. -Wl,--wrap=mongoc_uri_destroy \
  1320. -Wl,--wrap=mongoc_collection_insert_many \
  1321. $(NULL)
  1322. endif
  1323. collectors_cgroups_plugin_tests_cgroups_testdriver_SOURCES = \
  1324. collectors/cgroups.plugin/tests/test_cgroups_plugin.c \
  1325. collectors/cgroups.plugin/tests/test_cgroups_plugin.h \
  1326. collectors/cgroups.plugin/tests/test_doubles.c \
  1327. $(CGROUPS_PLUGIN_FILES) \
  1328. database/rrdlabels.c \
  1329. database/rrd.h \
  1330. $(LIBNETDATA_FILES) \
  1331. $(NULL)
  1332. collectors_cgroups_plugin_tests_cgroups_testdriver_LDADD = $(NETDATA_COMMON_LIBS) $(TEST_LIBS)
  1333. collectors_cgroups_plugin_tests_cgroups_testdriver_LDFLAGS = \
  1334. -Wl,--wrap=rrdlabels_add \
  1335. $(NULL)
  1336. endif