]> arthur.barton.de Git - netdata.git/blob - src/Makefile.am
3e6a79c191fe5e05e44941625eedcaab35697d54
[netdata.git] / src / Makefile.am
1 #
2 # Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com>
3 #
4 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
5
6 AM_CPPFLAGS = \
7         -DVARLIB_DIR="\"$(varlibdir)\"" \
8         -DCACHE_DIR="\"$(cachedir)\"" \
9         -DCONFIG_DIR="\"$(configdir)\"" \
10         -DLOG_DIR="\"$(logdir)\"" \
11         -DPLUGINS_DIR="\"$(pluginsdir)\"" \
12         -DRUN_DIR="\"$(localstatedir)/run/netdata\"" \
13         -DWEB_DIR="\"$(webdir)\"" \
14         $(NULL)
15 AM_CFLAGS = \
16         $(OPTIONAL_MATH_CFLAGS) \
17         $(OPTIONAL_NFACCT_CLFAGS) \
18         $(OPTIONAL_ZLIB_CFLAGS) \
19         $(OPTIONAL_UUID_CFLAGS) \
20         $(NULL)
21
22 sbin_PROGRAMS = netdata
23 dist_cache_DATA = .keep
24 dist_varlib_DATA = .keep
25 dist_registry_DATA = .keep
26 dist_log_DATA = .keep
27 if !MACOS
28 plugins_PROGRAMS = apps.plugin
29 endif
30
31 netdata_SOURCES = \
32         appconfig.c appconfig.h \
33         adaptive_resortable_list.c adaptive_resortable_list.h \
34         avl.c avl.h \
35         backends.c backends.h \
36         clocks.c clocks.h \
37         common.c common.h \
38         daemon.c daemon.h \
39         dictionary.c dictionary.h \
40         eval.c eval.h \
41         global_statistics.c global_statistics.h \
42         health.c health.h health_log.c health_config.c health_json.c \
43         inlined.h \
44         log.c log.h \
45         main.c main.h \
46         plugin_checks.c plugin_checks.h \
47         plugin_idlejitter.c plugin_idlejitter.h \
48         plugin_nfacct.c plugin_nfacct.h \
49         plugin_tc.c plugin_tc.h \
50         plugins_d.c plugins_d.h \
51         popen.c popen.h \
52         socket.c socket.h \
53         simple_pattern.c simple_pattern.h \
54         sys_fs_cgroup.c \
55         sys_devices_system_edac_mc.c \
56         sys_devices_system_node.c \
57         procfile.c procfile.h \
58         proc_self_mountinfo.c proc_self_mountinfo.h \
59         registry.c registry.h \
60         registry_internals.c registry_internals.h \
61         registry_url.c registry_url.h \
62         registry_person.c registry_person.h \
63         registry_machine.c registry_machine.h \
64         registry_init.c \
65         registry_db.c \
66         registry_log.c \
67         rrd.c rrd.h \
68         rrddim.c \
69         rrdfamily.c \
70         rrdhost.c \
71         rrdset.c \
72         rrdcalc.c \
73         rrdcalctemplate.c \
74         rrdvar.c \
75         rrddimvar.c \
76         rrdsetvar.c \
77         rrd2json.c rrd2json.h \
78         rrd2json_api_old.c rrd2json_api_old.h \
79         rrdpush.c rrdpush.h \
80         storage_number.c storage_number.h \
81         unit_test.c unit_test.h \
82         url.c url.h \
83         web_api_old.c web_api_old.h \
84         web_api_v1.c web_api_v1.h \
85         web_buffer.c web_buffer.h \
86         web_buffer_svg.c web_buffer_svg.h \
87         web_client.c web_client.h \
88         web_server.c web_server.h \
89         $(NULL)
90
91 if FREEBSD
92 netdata_SOURCES += \
93         plugin_freebsd.c plugin_freebsd.h \
94         freebsd_sysctl.c \
95         $(NULL)
96 else
97 if MACOS
98 netdata_SOURCES += \
99         plugin_macos.c plugin_macos.h \
100         macos_sysctl.c \
101         macos_mach_smi.c \
102         macos_fw.c \
103         $(NULL)
104 else
105 netdata_SOURCES += \
106         ipc.c ipc.h \
107         plugin_proc.c plugin_proc.h \
108         plugin_proc_diskspace.c plugin_proc_diskspace.h \
109         proc_diskstats.c \
110         proc_interrupts.c \
111         proc_softirqs.c \
112         proc_loadavg.c \
113         proc_meminfo.c \
114         proc_net_dev.c \
115         proc_net_ip_vs_stats.c \
116         proc_net_netstat.c \
117         proc_net_rpc_nfs.c \
118         proc_net_rpc_nfsd.c \
119         proc_net_snmp.c \
120         proc_net_snmp6.c \
121         proc_net_softnet_stat.c \
122         proc_net_stat_conntrack.c \
123         proc_net_stat_synproxy.c \
124         proc_stat.c \
125         proc_sys_kernel_random_entropy_avail.c \
126         proc_vmstat.c \
127         proc_uptime.c \
128         sys_kernel_mm_ksm.c \
129         $(NULL)
130 endif
131 endif
132
133 netdata_LDADD = \
134         $(OPTIONAL_MATH_LIBS) \
135         $(OPTIONAL_NFACCT_LIBS) \
136         $(OPTIONAL_ZLIB_LIBS) \
137         $(OPTIONAL_UUID_LIBS) \
138         $(NULL)
139
140 apps_plugin_SOURCES = \
141         apps_plugin.c \
142         avl.c avl.h \
143         clocks.c clocks.h \
144         common.c common.h \
145         inlined.h \
146         log.c log.h \
147         procfile.c procfile.h \
148         web_buffer.c web_buffer.h \
149         $(NULL)
150
151 if FREEBSD
152 apps_plugin_SOURCES += \
153        plugin_freebsd.h \
154        $(NULL)
155 endif
156
157 apps_plugin_LDADD = \
158         $(OPTIONAL_MATH_LIBS) \
159         $(OPTIONAL_CAP_LIBS) \
160         $(NULL)
161