]> arthur.barton.de Git - netdata.git/blobdiff - src/Makefile.am
Merge pull request #1895 from l2isbad/web_log_improvements
[netdata.git] / src / Makefile.am
index f8feabdff7c78c30032a331ca96681b24e8777ac..5f907893ea86e8f3447e2022ee00f0f1ac8ebb1c 100644 (file)
@@ -12,11 +12,14 @@ AM_CPPFLAGS = \
        -DRUN_DIR="\"$(localstatedir)/run/netdata\"" \
        -DWEB_DIR="\"$(webdir)\"" \
        $(NULL)
+
 AM_CFLAGS = \
        $(OPTIONAL_MATH_CFLAGS) \
        $(OPTIONAL_NFACCT_CLFAGS) \
        $(OPTIONAL_ZLIB_CFLAGS) \
        $(OPTIONAL_UUID_CFLAGS) \
+       $(OPTIONAL_LIBCAP_CFLAGS) \
+       $(OPTIONAL_IPMIMONITORING_CFLAGS)\
        $(NULL)
 
 sbin_PROGRAMS = netdata
@@ -24,12 +27,19 @@ dist_cache_DATA = .keep
 dist_varlib_DATA = .keep
 dist_registry_DATA = .keep
 dist_log_DATA = .keep
-if !MACOS
-plugins_PROGRAMS = apps.plugin
+plugins_PROGRAMS =
+
+if ENABLE_PLUGIN_APPS
+plugins_PROGRAMS += apps.plugin
+endif
+
+if ENABLE_PLUGIN_FREEIPMI
+plugins_PROGRAMS += freeipmi.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 \
@@ -38,7 +48,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 \
@@ -51,6 +62,7 @@ netdata_SOURCES = \
        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 \
@@ -62,10 +74,23 @@ netdata_SOURCES = \
        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 \
@@ -126,24 +151,32 @@ 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_LIBCAP_LIBS) \
+       $(NULL)
+
+freeipmi_plugin_SOURCES = \
+       freeipmi_plugin.c \
+       clocks.c clocks.h \
+       common.c common.h \
+       inlined.h \
+       log.c log.h \
+       procfile.c procfile.h \
+       $(NULL)
+
+freeipmi_plugin_LDADD = \
+       $(OPTIONAL_IPMIMONITORING_LIBS) \
+       $(NULL)