Makefile.am 50 KB

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