Makefile.am 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. # SPDX-License-Identifier: GPL-3.0-or-later
  2. AUTOMAKE_OPTIONS=foreign subdir-objects 1.11
  3. ACLOCAL_AMFLAGS = -I build/m4
  4. MAINTAINERCLEANFILES= \
  5. config.log config.status \
  6. $(srcdir)/Makefile.in \
  7. $(srcdir)/config.h.in $(srcdir)/config.h.in~ $(srcdir)/configure \
  8. $(srcdir)/install-sh $(srcdir)/ltmain.sh $(srcdir)/missing \
  9. $(srcdir)/compile $(srcdir)/depcomp $(srcdir)/aclocal.m4 \
  10. $(srcdir)/config.guess $(srcdir)/config.sub \
  11. $(srcdir)/m4/ltsugar.m4 $(srcdir)/m4/libtool.m4 \
  12. $(srcdir)/m4/ltversion.m4 $(srcdir)/m4/lt~obsolete.m4 \
  13. $(srcdir)/m4/ltoptions.m4 \
  14. $(srcdir)/pkcs11-helper.spec $(srcdir)/config-w32-vc.h
  15. CLEANFILES= \
  16. $(srcdir)/$(distdir).tar.gz
  17. EXTRA_DIST = \
  18. .gitignore \
  19. .csslintrc \
  20. .eslintignore \
  21. .eslintrc \
  22. .github/CODEOWNERS \
  23. build/m4/jemalloc.m4 \
  24. build/m4/ax_c___atomic.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. README.md \
  36. CONTRIBUTORS.md \
  37. CODE_OF_CONDUCT.md \
  38. LICENSE \
  39. REDISTRIBUTED.md \
  40. CONTRIBUTING.md \
  41. $(NULL)
  42. SUBDIRS = \
  43. diagrams \
  44. system \
  45. tests \
  46. $(NULL)
  47. dist_noinst_DATA= \
  48. CHANGELOG.md \
  49. cppcheck.sh \
  50. configs.signatures \
  51. contrib \
  52. netdata.cppcheck \
  53. netdata.spec \
  54. package.json \
  55. docs \
  56. packaging/version \
  57. packaging/go.d.version \
  58. packaging/go.d.checksums \
  59. packaging/installer/README.md \
  60. packaging/installer/UNINSTALL.md \
  61. packaging/installer/UPDATE.md \
  62. netlify.toml \
  63. $(NULL)
  64. # until integrated within build
  65. # should be proper init.d/openrc/systemd usable
  66. dist_noinst_SCRIPTS= \
  67. coverity-scan.sh \
  68. coverity-install.sh \
  69. packaging/installer/netdata-updater.sh \
  70. packaging/installer/netdata-uninstaller.sh \
  71. packaging/installer/kickstart.sh \
  72. packaging/installer/kickstart-static64.sh \
  73. packaging/installer/functions.sh \
  74. netdata-installer.sh \
  75. docs/generator/buildhtml.sh \
  76. docs/generator/buildyaml.sh \
  77. docs/generator/checklinks.sh \
  78. docs/generator/requirements.txt \
  79. docs/generator/runtime.txt \
  80. $(NULL)
  81. # -----------------------------------------------------------------------------
  82. # Compile netdata binaries
  83. SUBDIRS += \
  84. backends \
  85. collectors \
  86. daemon \
  87. database \
  88. health \
  89. libnetdata \
  90. registry \
  91. streaming \
  92. web \
  93. $(NULL)
  94. AM_CFLAGS = \
  95. $(OPTIONAL_MATH_CFLAGS) \
  96. $(OPTIONAL_NFACCT_CFLAGS) \
  97. $(OPTIONAL_ZLIB_CFLAGS) \
  98. $(OPTIONAL_UUID_CFLAGS) \
  99. $(OPTIONAL_LIBCAP_LIBS) \
  100. $(OPTIONAL_IPMIMONITORING_CFLAGS) \
  101. $(OPTIONAL_CUPS_CFLAGS) \
  102. $(OPTIONAL_XENSTAT_CFLAGS) \
  103. $(NULL)
  104. sbin_PROGRAMS =
  105. dist_cache_DATA = packaging/installer/.keep
  106. dist_varlib_DATA = packaging/installer/.keep
  107. dist_registry_DATA = packaging/installer/.keep
  108. dist_log_DATA = packaging/installer/.keep
  109. plugins_PROGRAMS =
  110. LIBNETDATA_FILES = \
  111. libnetdata/adaptive_resortable_list/adaptive_resortable_list.c \
  112. libnetdata/adaptive_resortable_list/adaptive_resortable_list.h \
  113. libnetdata/config/appconfig.c \
  114. libnetdata/config/appconfig.h \
  115. libnetdata/avl/avl.c \
  116. libnetdata/avl/avl.h \
  117. libnetdata/buffer/buffer.c \
  118. libnetdata/buffer/buffer.h \
  119. libnetdata/clocks/clocks.c \
  120. libnetdata/clocks/clocks.h \
  121. libnetdata/dictionary/dictionary.c \
  122. libnetdata/dictionary/dictionary.h \
  123. libnetdata/eval/eval.c \
  124. libnetdata/eval/eval.h \
  125. libnetdata/inlined.h \
  126. libnetdata/libnetdata.c \
  127. libnetdata/libnetdata.h \
  128. libnetdata/locks/locks.c \
  129. libnetdata/locks/locks.h \
  130. libnetdata/log/log.c \
  131. libnetdata/log/log.h \
  132. libnetdata/popen/popen.c \
  133. libnetdata/popen/popen.h \
  134. libnetdata/procfile/procfile.c \
  135. libnetdata/procfile/procfile.h \
  136. libnetdata/os.c \
  137. libnetdata/os.h \
  138. libnetdata/simple_pattern/simple_pattern.c \
  139. libnetdata/simple_pattern/simple_pattern.h \
  140. libnetdata/socket/socket.c \
  141. libnetdata/socket/socket.h \
  142. libnetdata/socket/security.c \
  143. libnetdata/socket/security.h \
  144. libnetdata/statistical/statistical.c \
  145. libnetdata/statistical/statistical.h \
  146. libnetdata/storage_number/storage_number.c \
  147. libnetdata/storage_number/storage_number.h \
  148. libnetdata/threads/threads.c \
  149. libnetdata/threads/threads.h \
  150. libnetdata/url/url.c \
  151. libnetdata/url/url.h \
  152. libnetdata/json/json.c \
  153. libnetdata/json/json.h \
  154. libnetdata/json/jsmn.c \
  155. libnetdata/json/jsmn.h \
  156. libnetdata/health/health.c \
  157. libnetdata/health/health.h \
  158. libnetdata/string/utf8.h \
  159. $(NULL)
  160. APPS_PLUGIN_FILES = \
  161. collectors/apps.plugin/apps_plugin.c \
  162. $(LIBNETDATA_FILES) \
  163. $(NULL)
  164. CHECKS_PLUGIN_FILES = \
  165. collectors/checks.plugin/plugin_checks.c \
  166. collectors/checks.plugin/plugin_checks.h \
  167. $(NULL)
  168. FREEBSD_PLUGIN_FILES = \
  169. collectors/freebsd.plugin/plugin_freebsd.c \
  170. collectors/freebsd.plugin/plugin_freebsd.h \
  171. collectors/freebsd.plugin/freebsd_sysctl.c \
  172. collectors/freebsd.plugin/freebsd_getmntinfo.c \
  173. collectors/freebsd.plugin/freebsd_getifaddrs.c \
  174. collectors/freebsd.plugin/freebsd_devstat.c \
  175. collectors/freebsd.plugin/freebsd_kstat_zfs.c \
  176. collectors/freebsd.plugin/freebsd_ipfw.c \
  177. collectors/proc.plugin/zfs_common.c \
  178. collectors/proc.plugin/zfs_common.h \
  179. $(NULL)
  180. HEALTH_PLUGIN_FILES = \
  181. health/health.c \
  182. health/health.h \
  183. health/health_config.c \
  184. health/health_json.c \
  185. health/health_log.c \
  186. $(NULL)
  187. IDLEJITTER_PLUGIN_FILES = \
  188. collectors/idlejitter.plugin/plugin_idlejitter.c \
  189. collectors/idlejitter.plugin/plugin_idlejitter.h \
  190. $(NULL)
  191. CGROUPS_PLUGIN_FILES = \
  192. collectors/cgroups.plugin/sys_fs_cgroup.c \
  193. collectors/cgroups.plugin/sys_fs_cgroup.h \
  194. $(NULL)
  195. CGROUP_NETWORK_FILES = \
  196. collectors/cgroups.plugin/cgroup-network.c \
  197. $(LIBNETDATA_FILES) \
  198. $(NULL)
  199. DISKSPACE_PLUGIN_FILES = \
  200. collectors/diskspace.plugin/plugin_diskspace.h \
  201. collectors/diskspace.plugin/plugin_diskspace.c \
  202. $(NULL)
  203. FREEIPMI_PLUGIN_FILES = \
  204. collectors/freeipmi.plugin/freeipmi_plugin.c \
  205. $(LIBNETDATA_FILES) \
  206. $(NULL)
  207. CUPS_PLUGIN_FILES = \
  208. collectors/cups.plugin/cups_plugin.c \
  209. $(LIBNETDATA_FILES) \
  210. $(NULL)
  211. NFACCT_PLUGIN_FILES = \
  212. collectors/nfacct.plugin/plugin_nfacct.c \
  213. $(LIBNETDATA_FILES) \
  214. $(NULL)
  215. XENSTAT_PLUGIN_FILES = \
  216. collectors/xenstat.plugin/xenstat_plugin.c \
  217. $(LIBNETDATA_FILES) \
  218. $(NULL)
  219. PERF_PLUGIN_FILES = \
  220. collectors/perf.plugin/perf_plugin.c \
  221. $(LIBNETDATA_FILES) \
  222. $(NULL)
  223. PROC_PLUGIN_FILES = \
  224. collectors/proc.plugin/ipc.c \
  225. collectors/proc.plugin/plugin_proc.c \
  226. collectors/proc.plugin/plugin_proc.h \
  227. collectors/proc.plugin/proc_diskstats.c \
  228. collectors/proc.plugin/proc_mdstat.c \
  229. collectors/proc.plugin/proc_interrupts.c \
  230. collectors/proc.plugin/proc_softirqs.c \
  231. collectors/proc.plugin/proc_loadavg.c \
  232. collectors/proc.plugin/proc_meminfo.c \
  233. collectors/proc.plugin/proc_net_dev.c \
  234. collectors/proc.plugin/proc_net_ip_vs_stats.c \
  235. collectors/proc.plugin/proc_net_netstat.c \
  236. collectors/proc.plugin/proc_net_rpc_nfs.c \
  237. collectors/proc.plugin/proc_net_rpc_nfsd.c \
  238. collectors/proc.plugin/proc_net_snmp.c \
  239. collectors/proc.plugin/proc_net_snmp6.c \
  240. collectors/proc.plugin/proc_net_sctp_snmp.c \
  241. collectors/proc.plugin/proc_net_sockstat.c \
  242. collectors/proc.plugin/proc_net_sockstat6.c \
  243. collectors/proc.plugin/proc_net_softnet_stat.c \
  244. collectors/proc.plugin/proc_net_stat_conntrack.c \
  245. collectors/proc.plugin/proc_net_stat_synproxy.c \
  246. collectors/proc.plugin/proc_self_mountinfo.c \
  247. collectors/proc.plugin/proc_self_mountinfo.h \
  248. collectors/proc.plugin/zfs_common.c \
  249. collectors/proc.plugin/zfs_common.h \
  250. collectors/proc.plugin/proc_spl_kstat_zfs.c \
  251. collectors/proc.plugin/proc_stat.c \
  252. collectors/proc.plugin/proc_sys_kernel_random_entropy_avail.c \
  253. collectors/proc.plugin/proc_vmstat.c \
  254. collectors/proc.plugin/proc_uptime.c \
  255. collectors/proc.plugin/sys_kernel_mm_ksm.c \
  256. collectors/proc.plugin/sys_block_zram.c \
  257. collectors/proc.plugin/sys_devices_system_edac_mc.c \
  258. collectors/proc.plugin/sys_devices_system_node.c \
  259. collectors/proc.plugin/sys_fs_btrfs.c \
  260. collectors/proc.plugin/sys_class_power_supply.c \
  261. $(NULL)
  262. TC_PLUGIN_FILES = \
  263. collectors/tc.plugin/plugin_tc.c \
  264. collectors/tc.plugin/plugin_tc.h \
  265. $(NULL)
  266. MACOS_PLUGIN_FILES = \
  267. collectors/macos.plugin/plugin_macos.c \
  268. collectors/macos.plugin/plugin_macos.h \
  269. collectors/macos.plugin/macos_sysctl.c \
  270. collectors/macos.plugin/macos_mach_smi.c \
  271. collectors/macos.plugin/macos_fw.c \
  272. $(NULL)
  273. PLUGINSD_PLUGIN_FILES = \
  274. collectors/plugins.d/plugins_d.c \
  275. collectors/plugins.d/plugins_d.h \
  276. $(NULL)
  277. RRD_PLUGIN_FILES = \
  278. database/rrdcalc.c \
  279. database/rrdcalc.h \
  280. database/rrdcalctemplate.c \
  281. database/rrdcalctemplate.h \
  282. database/rrddim.c \
  283. database/rrddimvar.c \
  284. database/rrddimvar.h \
  285. database/rrdfamily.c \
  286. database/rrdhost.c \
  287. database/rrd.c \
  288. database/rrd.h \
  289. database/rrdset.c \
  290. database/rrdsetvar.c \
  291. database/rrdsetvar.h \
  292. database/rrdvar.c \
  293. database/rrdvar.h \
  294. $(NULL)
  295. if ENABLE_DBENGINE
  296. RRD_PLUGIN_FILES += \
  297. database/engine/rrdengine.c \
  298. database/engine/rrdengine.h \
  299. database/engine/rrddiskprotocol.h \
  300. database/engine/datafile.c \
  301. database/engine/datafile.h \
  302. database/engine/journalfile.c \
  303. database/engine/journalfile.h \
  304. database/engine/rrdenginelib.c \
  305. database/engine/rrdenginelib.h \
  306. database/engine/rrdengineapi.c \
  307. database/engine/rrdengineapi.h \
  308. database/engine/pagecache.c \
  309. database/engine/pagecache.h \
  310. database/engine/rrdenglocking.c \
  311. database/engine/rrdenglocking.h \
  312. $(NULL)
  313. endif
  314. API_PLUGIN_FILES = \
  315. web/api/badges/web_buffer_svg.c \
  316. web/api/badges/web_buffer_svg.h \
  317. web/api/exporters/allmetrics.c \
  318. web/api/exporters/allmetrics.h \
  319. web/api/exporters/shell/allmetrics_shell.c \
  320. web/api/exporters/shell/allmetrics_shell.h \
  321. web/api/queries/average/average.c \
  322. web/api/queries/average/average.h \
  323. web/api/queries/des/des.c \
  324. web/api/queries/des/des.h \
  325. web/api/queries/incremental_sum/incremental_sum.c \
  326. web/api/queries/incremental_sum/incremental_sum.h \
  327. web/api/queries/max/max.c \
  328. web/api/queries/max/max.h \
  329. web/api/queries/median/median.c \
  330. web/api/queries/median/median.h \
  331. web/api/queries/min/min.c \
  332. web/api/queries/min/min.h \
  333. web/api/queries/query.c \
  334. web/api/queries/query.h \
  335. web/api/queries/rrdr.c \
  336. web/api/queries/rrdr.h \
  337. web/api/queries/ses/ses.c \
  338. web/api/queries/ses/ses.h \
  339. web/api/queries/stddev/stddev.c \
  340. web/api/queries/stddev/stddev.h \
  341. web/api/queries/sum/sum.c \
  342. web/api/queries/sum/sum.h \
  343. web/api/formatters/rrd2json.c \
  344. web/api/formatters/rrd2json.h \
  345. web/api/formatters/csv/csv.c \
  346. web/api/formatters/csv/csv.h \
  347. web/api/formatters/json/json.c \
  348. web/api/formatters/json/json.h \
  349. web/api/formatters/ssv/ssv.c \
  350. web/api/formatters/ssv/ssv.h \
  351. web/api/formatters/value/value.c \
  352. web/api/formatters/value/value.h \
  353. web/api/formatters/json_wrapper.c \
  354. web/api/formatters/json_wrapper.h \
  355. web/api/formatters/charts2json.c \
  356. web/api/formatters/charts2json.h \
  357. web/api/formatters/rrdset2json.c \
  358. web/api/formatters/rrdset2json.h \
  359. web/api/health/health_cmdapi.c \
  360. web/api/health/health_cmdapi.h \
  361. web/api/web_api_v1.c \
  362. web/api/web_api_v1.h \
  363. $(NULL)
  364. STREAMING_PLUGIN_FILES = \
  365. streaming/rrdpush.c \
  366. streaming/rrdpush.h \
  367. $(NULL)
  368. REGISTRY_PLUGIN_FILES = \
  369. registry/registry.c \
  370. registry/registry.h \
  371. registry/registry_db.c \
  372. registry/registry_init.c \
  373. registry/registry_internals.c \
  374. registry/registry_internals.h \
  375. registry/registry_log.c \
  376. registry/registry_machine.c \
  377. registry/registry_machine.h \
  378. registry/registry_person.c \
  379. registry/registry_person.h \
  380. registry/registry_url.c \
  381. registry/registry_url.h \
  382. $(NULL)
  383. STATSD_PLUGIN_FILES = \
  384. collectors/statsd.plugin/statsd.c \
  385. collectors/statsd.plugin/statsd.h \
  386. $(NULL)
  387. WEB_PLUGIN_FILES = \
  388. web/server/web_client.c \
  389. web/server/web_client.h \
  390. web/server/web_server.c \
  391. web/server/web_server.h \
  392. web/server/web_client_cache.c \
  393. web/server/web_client_cache.h \
  394. web/server/static/static-threaded.c \
  395. web/server/static/static-threaded.h \
  396. $(NULL)
  397. BACKENDS_PLUGIN_FILES = \
  398. backends/backends.c \
  399. backends/backends.h \
  400. backends/graphite/graphite.c \
  401. backends/graphite/graphite.h \
  402. backends/json/json.c \
  403. backends/json/json.h \
  404. backends/opentsdb/opentsdb.c \
  405. backends/opentsdb/opentsdb.h \
  406. backends/prometheus/backend_prometheus.c \
  407. backends/prometheus/backend_prometheus.h \
  408. $(NULL)
  409. KINESIS_BACKEND_FILES = \
  410. backends/aws_kinesis/aws_kinesis.c \
  411. backends/aws_kinesis/aws_kinesis.h \
  412. backends/aws_kinesis/aws_kinesis_put_record.cc \
  413. backends/aws_kinesis/aws_kinesis_put_record.h \
  414. $(NULL)
  415. PROMETHEUS_REMOTE_WRITE_BACKEND_FILES = \
  416. backends/prometheus/remote_write/remote_write.cc \
  417. backends/prometheus/remote_write/remote_write.h \
  418. backends/prometheus/remote_write/remote_write.proto \
  419. $(NULL)
  420. MONGODB_BACKEND_FILES = \
  421. backends/mongodb/mongodb.c \
  422. backends/mongodb/mongodb.h \
  423. $(NULL)
  424. DAEMON_FILES = \
  425. daemon/common.c \
  426. daemon/common.h \
  427. daemon/daemon.c \
  428. daemon/daemon.h \
  429. daemon/global_statistics.c \
  430. daemon/global_statistics.h \
  431. daemon/main.c \
  432. daemon/main.h \
  433. daemon/signals.c \
  434. daemon/signals.h \
  435. daemon/unit_test.c \
  436. daemon/unit_test.h \
  437. $(NULL)
  438. NETDATA_FILES = \
  439. collectors/all.h \
  440. $(DAEMON_FILES) \
  441. $(LIBNETDATA_FILES) \
  442. $(API_PLUGIN_FILES) \
  443. $(BACKENDS_PLUGIN_FILES) \
  444. $(CHECKS_PLUGIN_FILES) \
  445. $(HEALTH_PLUGIN_FILES) \
  446. $(IDLEJITTER_PLUGIN_FILES) \
  447. $(PLUGINSD_PLUGIN_FILES) \
  448. $(REGISTRY_PLUGIN_FILES) \
  449. $(RRD_PLUGIN_FILES) \
  450. $(STREAMING_PLUGIN_FILES) \
  451. $(STATSD_PLUGIN_FILES) \
  452. $(WEB_PLUGIN_FILES) \
  453. $(NULL)
  454. if FREEBSD
  455. NETDATA_FILES += \
  456. $(FREEBSD_PLUGIN_FILES) \
  457. $(NULL)
  458. endif
  459. if MACOS
  460. NETDATA_FILES += \
  461. $(MACOS_PLUGIN_FILES) \
  462. $(NULL)
  463. endif
  464. if LINUX
  465. NETDATA_FILES += \
  466. $(CGROUPS_PLUGIN_FILES) \
  467. $(DISKSPACE_PLUGIN_FILES) \
  468. $(PROC_PLUGIN_FILES) \
  469. $(TC_PLUGIN_FILES) \
  470. $(NULL)
  471. endif
  472. NETDATA_COMMON_LIBS = \
  473. $(OPTIONAL_MATH_LIBS) \
  474. $(OPTIONAL_ZLIB_LIBS) \
  475. $(OPTIONAL_SSL_LIBS) \
  476. $(OPTIONAL_UUID_LIBS) \
  477. $(OPTIONAL_UV_LIBS) \
  478. $(OPTIONAL_LZ4_LIBS) \
  479. $(OPTIONAL_JUDY_LIBS) \
  480. $(OPTIONAL_SSL_LIBS) \
  481. $(OPTIONAL_JSONC_LIBS) \
  482. $(NULL)
  483. sbin_PROGRAMS += netdata
  484. netdata_SOURCES = $(NETDATA_FILES)
  485. netdata_LDADD = \
  486. $(NETDATA_COMMON_LIBS) \
  487. $(NULL)
  488. if ENABLE_CXX_LINKER
  489. netdata_LINK = $(CXXLD) $(CXXFLAGS) $(LDFLAGS) -o $@
  490. else
  491. netdata_LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@
  492. endif
  493. if ENABLE_PLUGIN_APPS
  494. plugins_PROGRAMS += apps.plugin
  495. apps_plugin_SOURCES = $(APPS_PLUGIN_FILES)
  496. apps_plugin_LDADD = \
  497. $(NETDATA_COMMON_LIBS) \
  498. $(OPTIONAL_LIBCAP_LIBS) \
  499. $(NULL)
  500. endif
  501. if ENABLE_PLUGIN_CGROUP_NETWORK
  502. plugins_PROGRAMS += cgroup-network
  503. cgroup_network_SOURCES = $(CGROUP_NETWORK_FILES)
  504. cgroup_network_LDADD = \
  505. $(NETDATA_COMMON_LIBS) \
  506. $(NULL)
  507. endif
  508. if ENABLE_PLUGIN_FREEIPMI
  509. plugins_PROGRAMS += freeipmi.plugin
  510. freeipmi_plugin_SOURCES = $(FREEIPMI_PLUGIN_FILES)
  511. freeipmi_plugin_LDADD = \
  512. $(NETDATA_COMMON_LIBS) \
  513. $(OPTIONAL_IPMIMONITORING_LIBS) \
  514. $(NULL)
  515. endif
  516. if ENABLE_PLUGIN_CUPS
  517. plugins_PROGRAMS += cups.plugin
  518. cups_plugin_SOURCES = $(CUPS_PLUGIN_FILES)
  519. cups_plugin_LDADD = \
  520. $(NETDATA_COMMON_LIBS) \
  521. $(OPTIONAL_CUPS_LIBS) \
  522. $(NULL)
  523. endif
  524. if ENABLE_PLUGIN_NFACCT
  525. plugins_PROGRAMS += nfacct.plugin
  526. nfacct_plugin_SOURCES = $(NFACCT_PLUGIN_FILES)
  527. nfacct_plugin_LDADD = \
  528. $(NETDATA_COMMON_LIBS) \
  529. $(OPTIONAL_NFACCT_LIBS) \
  530. $(NULL)
  531. endif
  532. if ENABLE_PLUGIN_XENSTAT
  533. plugins_PROGRAMS += xenstat.plugin
  534. xenstat_plugin_SOURCES = $(XENSTAT_PLUGIN_FILES)
  535. xenstat_plugin_LDADD = \
  536. $(NETDATA_COMMON_LIBS) \
  537. $(OPTIONAL_XENSTAT_LIBS) \
  538. $(NULL)
  539. endif
  540. if ENABLE_PLUGIN_PERF
  541. plugins_PROGRAMS += perf.plugin
  542. perf_plugin_SOURCES = $(PERF_PLUGIN_FILES)
  543. perf_plugin_LDADD = \
  544. $(NETDATA_COMMON_LIBS) \
  545. $(NULL)
  546. endif
  547. if ENABLE_BACKEND_KINESIS
  548. netdata_SOURCES += $(KINESIS_BACKEND_FILES)
  549. netdata_LDADD += $(OPTIONAL_KINESIS_LIBS)
  550. endif
  551. if ENABLE_BACKEND_PROMETHEUS_REMOTE_WRITE
  552. netdata_SOURCES += $(PROMETHEUS_REMOTE_WRITE_BACKEND_FILES)
  553. netdata_LDADD += $(OPTIONAL_PROMETHEUS_REMOTE_WRITE_LIBS)
  554. BUILT_SOURCES = \
  555. backends/prometheus/remote_write/remote_write.pb.cc \
  556. backends/prometheus/remote_write/remote_write.pb.h \
  557. $(NULL)
  558. nodist_netdata_SOURCES = $(BUILT_SOURCES)
  559. backends/prometheus/remote_write/remote_write.pb.cc \
  560. backends/prometheus/remote_write/remote_write.pb.h: backends/prometheus/remote_write/remote_write.proto
  561. $(PROTOC) --proto_path=$(srcdir) --cpp_out=$(builddir) $^
  562. endif
  563. if ENABLE_BACKEND_MONGODB
  564. netdata_SOURCES += $(MONGODB_BACKEND_FILES)
  565. netdata_LDADD += $(OPTIONAL_MONGOC_LIBS)
  566. endif