Makefile.am 43 KB

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