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