Makefile.am 48 KB

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