Makefile.am 43 KB

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