Makefile.am 50 KB

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