Makefile.am 51 KB

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