Makefile.am 49 KB

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