Makefile.am 57 KB

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