X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2FMakefile.am;h=3e6a79c191fe5e05e44941625eedcaab35697d54;hb=73212e3a8731012fee476e373f4a5b647f5126e5;hp=e1f87b5e4dfbc65a8f32281803cb479f6c276251;hpb=78d53e2d121dfa6ddb94cc5ae0f94ddfcdb4e51a;p=netdata.git diff --git a/src/Makefile.am b/src/Makefile.am index e1f87b5e..3e6a79c1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -24,10 +24,13 @@ dist_cache_DATA = .keep dist_varlib_DATA = .keep dist_registry_DATA = .keep dist_log_DATA = .keep +if !MACOS plugins_PROGRAMS = apps.plugin +endif netdata_SOURCES = \ appconfig.c appconfig.h \ + adaptive_resortable_list.c adaptive_resortable_list.h \ avl.c avl.h \ backends.c backends.h \ clocks.c clocks.h \ @@ -36,7 +39,8 @@ netdata_SOURCES = \ dictionary.c dictionary.h \ eval.c eval.h \ global_statistics.c global_statistics.h \ - health.c health.h \ + health.c health.h health_log.c health_config.c health_json.c \ + inlined.h \ log.c log.h \ main.c main.h \ plugin_checks.c plugin_checks.h \ @@ -46,15 +50,38 @@ netdata_SOURCES = \ plugins_d.c plugins_d.h \ popen.c popen.h \ socket.c socket.h \ + simple_pattern.c simple_pattern.h \ sys_fs_cgroup.c \ + sys_devices_system_edac_mc.c \ + sys_devices_system_node.c \ procfile.c procfile.h \ proc_self_mountinfo.c proc_self_mountinfo.h \ registry.c registry.h \ + registry_internals.c registry_internals.h \ + registry_url.c registry_url.h \ + registry_person.c registry_person.h \ + registry_machine.c registry_machine.h \ + registry_init.c \ + registry_db.c \ + registry_log.c \ rrd.c rrd.h \ + rrddim.c \ + rrdfamily.c \ + rrdhost.c \ + rrdset.c \ + rrdcalc.c \ + rrdcalctemplate.c \ + rrdvar.c \ + rrddimvar.c \ + rrdsetvar.c \ rrd2json.c rrd2json.h \ + rrd2json_api_old.c rrd2json_api_old.h \ + rrdpush.c rrdpush.h \ storage_number.c storage_number.h \ unit_test.c unit_test.h \ url.c url.h \ + web_api_old.c web_api_old.h \ + web_api_v1.c web_api_v1.h \ web_buffer.c web_buffer.h \ web_buffer_svg.c web_buffer_svg.h \ web_client.c web_client.h \ @@ -76,7 +103,9 @@ netdata_SOURCES += \ $(NULL) else netdata_SOURCES += \ + ipc.c ipc.h \ plugin_proc.c plugin_proc.h \ + plugin_proc_diskspace.c plugin_proc_diskspace.h \ proc_diskstats.c \ proc_interrupts.c \ proc_softirqs.c \ @@ -95,7 +124,7 @@ netdata_SOURCES += \ proc_stat.c \ proc_sys_kernel_random_entropy_avail.c \ proc_vmstat.c \ - ipc.c ipc.h \ + proc_uptime.c \ sys_kernel_mm_ksm.c \ $(NULL) endif @@ -113,24 +142,20 @@ apps_plugin_SOURCES = \ avl.c avl.h \ clocks.c clocks.h \ common.c common.h \ + inlined.h \ log.c log.h \ procfile.c procfile.h \ web_buffer.c web_buffer.h \ $(NULL) -install-data-hook: - if [ `id -u` == 0 ]; then \ - chown root '$(DESTDIR)$(pluginsdir)/apps.plugin' && \ - chmod 0755 '$(DESTDIR)$(pluginsdir)/apps.plugin' && \ - ( setcap cap_dac_read_search,cap_sys_ptrace+ep '$(DESTDIR)$(pluginsdir)/apps.plugin' || \ - chmod 4755 '$(DESTDIR)$(pluginsdir)/apps.plugin' ); \ - else \ - echo; \ - echo "ATTENTION"; \ - echo; \ - echo "$(pluginsdir)/apps.plugin requires escalated capabilities:"; \ - echo "sudo chown root '$(DESTDIR)$(pluginsdir)/apps.plugin'"; \ - echo "sudo chmod 0755 '$(DESTDIR)$(pluginsdir)/apps.plugin'"; \ - echo "sudo setcap cap_dac_read_search,cap_sys_ptrace+ep '$(DESTDIR)$(pluginsdir)/apps.plugin'"; \ - echo; \ - fi +if FREEBSD +apps_plugin_SOURCES += \ + plugin_freebsd.h \ + $(NULL) +endif + +apps_plugin_LDADD = \ + $(OPTIONAL_MATH_LIBS) \ + $(OPTIONAL_CAP_LIBS) \ + $(NULL) +