]> arthur.barton.de Git - netdata.git/blob - src/Makefile.am
updated autoconf
[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
16 AM_CFLAGS = \
17         $(OPTIONAL_MATH_CFLAGS) \
18         $(OPTIONAL_NFACCT_CLFAGS) \
19         $(OPTIONAL_ZLIB_CFLAGS) \
20         $(OPTIONAL_UUID_CFLAGS) \
21         $(NULL)
22
23 sbin_PROGRAMS = netdata
24 dist_cache_DATA = .keep
25 dist_varlib_DATA = .keep
26 dist_registry_DATA = .keep
27 dist_log_DATA = .keep
28 plugins_PROGRAMS =
29
30 if ENABLE_PLUGIN_APPS
31 plugins_PROGRAMS += apps.plugin
32 endif
33
34 if ENABLE_PLUGIN_FREEIPMI
35 plugins_PROGRAMS += freeipmi.plugin
36 endif
37
38 netdata_SOURCES = \
39         appconfig.c appconfig.h \
40         adaptive_resortable_list.c adaptive_resortable_list.h \
41         avl.c avl.h \
42         backends.c backends.h \
43         clocks.c clocks.h \
44         common.c common.h \
45         daemon.c daemon.h \
46         dictionary.c dictionary.h \
47         eval.c eval.h \
48         global_statistics.c global_statistics.h \
49         health.c health.h health_log.c health_config.c health_json.c \
50         inlined.h \
51         log.c log.h \
52         main.c main.h \
53         plugin_checks.c plugin_checks.h \
54         plugin_idlejitter.c plugin_idlejitter.h \
55         plugin_nfacct.c plugin_nfacct.h \
56         plugin_tc.c plugin_tc.h \
57         plugins_d.c plugins_d.h \
58         popen.c popen.h \
59         socket.c socket.h \
60         simple_pattern.c simple_pattern.h \
61         sys_fs_cgroup.c \
62         sys_devices_system_edac_mc.c \
63         sys_devices_system_node.c \
64         procfile.c procfile.h \
65         proc_self_mountinfo.c proc_self_mountinfo.h \
66         registry.c registry.h \
67         registry_internals.c registry_internals.h \
68         registry_url.c registry_url.h \
69         registry_person.c registry_person.h \
70         registry_machine.c registry_machine.h \
71         registry_init.c \
72         registry_db.c \
73         registry_log.c \
74         rrd.c rrd.h \
75         rrddim.c \
76         rrdfamily.c \
77         rrdhost.c \
78         rrdset.c \
79         rrdcalc.c \
80         rrdcalctemplate.c \
81         rrdvar.c \
82         rrddimvar.c \
83         rrdsetvar.c \
84         rrd2json.c rrd2json.h \
85         rrd2json_api_old.c rrd2json_api_old.h \
86         rrdpush.c rrdpush.h \
87         storage_number.c storage_number.h \
88         unit_test.c unit_test.h \
89         url.c url.h \
90         web_api_old.c web_api_old.h \
91         web_api_v1.c web_api_v1.h \
92         web_buffer.c web_buffer.h \
93         web_buffer_svg.c web_buffer_svg.h \
94         web_client.c web_client.h \
95         web_server.c web_server.h \
96         $(NULL)
97
98 if FREEBSD
99 netdata_SOURCES += \
100         plugin_freebsd.c plugin_freebsd.h \
101         freebsd_sysctl.c \
102         $(NULL)
103 else
104 if MACOS
105 netdata_SOURCES += \
106         plugin_macos.c plugin_macos.h \
107         macos_sysctl.c \
108         macos_mach_smi.c \
109         macos_fw.c \
110         $(NULL)
111 else
112 netdata_SOURCES += \
113         ipc.c ipc.h \
114         plugin_proc.c plugin_proc.h \
115         plugin_proc_diskspace.c plugin_proc_diskspace.h \
116         proc_diskstats.c \
117         proc_interrupts.c \
118         proc_softirqs.c \
119         proc_loadavg.c \
120         proc_meminfo.c \
121         proc_net_dev.c \
122         proc_net_ip_vs_stats.c \
123         proc_net_netstat.c \
124         proc_net_rpc_nfs.c \
125         proc_net_rpc_nfsd.c \
126         proc_net_snmp.c \
127         proc_net_snmp6.c \
128         proc_net_softnet_stat.c \
129         proc_net_stat_conntrack.c \
130         proc_net_stat_synproxy.c \
131         proc_stat.c \
132         proc_sys_kernel_random_entropy_avail.c \
133         proc_vmstat.c \
134         proc_uptime.c \
135         sys_kernel_mm_ksm.c \
136         $(NULL)
137 endif
138 endif
139
140 netdata_LDADD = \
141         $(OPTIONAL_MATH_LIBS) \
142         $(OPTIONAL_NFACCT_LIBS) \
143         $(OPTIONAL_ZLIB_LIBS) \
144         $(OPTIONAL_UUID_LIBS) \
145         $(NULL)
146
147 apps_plugin_SOURCES = \
148         apps_plugin.c \
149         avl.c avl.h \
150         clocks.c clocks.h \
151         common.c common.h \
152         inlined.h \
153         log.c log.h \
154         procfile.c procfile.h \
155         web_buffer.c web_buffer.h \
156         $(NULL)
157
158 if FREEBSD
159 apps_plugin_SOURCES += \
160         plugin_freebsd.h \
161         $(NULL)
162 endif
163
164 apps_plugin_LDADD = \
165         $(OPTIONAL_MATH_LIBS) \
166         $(OPTIONAL_LIBCAP_LIBS) \
167         $(NULL)
168
169 freeipmi_plugin_SOURCES = \
170         freeipmi_plugin.c \
171         clocks.c clocks.h \
172         common.c common.h \
173         inlined.h \
174         log.c log.h \
175         procfile.c procfile.h \
176         $(NULL)
177
178 freeipmi_plugin_LDADD = \
179         $(OPTIONAL_IPMIMONITORING_LIBS) \
180         $(NULL)