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