Makefile.am 44 KB

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