Makefile.am 17 KB

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