| 1 |
## Process this file with automake to produce Makefile.in |
| 2 |
|
| 3 |
## Copyright (c) 2014-2024 Davide Madrisan <[email protected]> |
| 4 |
## |
| 5 |
## This program is free software: you can redistribute it and/or modify |
| 6 |
## it under the terms of the GNU General Public License as published by |
| 7 |
## the Free Software Foundation, either version 3 of the License, or |
| 8 |
## (at your option) any later version. |
| 9 |
## |
| 10 |
## This program is distributed in the hope that it will be useful, |
| 11 |
## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
## GNU General Public License for more details. |
| 14 |
## |
| 15 |
## You should have received a copy of the GNU General Public License |
| 16 |
## along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
AM_CPPFLAGS = \ |
| 19 |
-include $(top_builddir)/config.h \ |
| 20 |
-I$(top_srcdir)/include \ |
| 21 |
-DDOCKER_SOCKET=\"$(DOCKER_SOCKET)\" \ |
| 22 |
-DPODMAN_SOCKET=\"$(PODMAN_SOCKET)\" \ |
| 23 |
$(LIBCURL_CPPFLAGS) \ |
| 24 |
$(LIBPROCPS_CPPFLAGS) |
| 25 |
|
| 26 |
noinst_LIBRARIES = libutils.a |
| 27 |
|
| 28 |
libutils_a_SOURCES = \ |
| 29 |
collection.c \ |
| 30 |
cpudesc.c \ |
| 31 |
cpufreq.c \ |
| 32 |
cpustats.c \ |
| 33 |
cputopology.c \ |
| 34 |
files.c \ |
| 35 |
kernelver.c \ |
| 36 |
interrupts.c \ |
| 37 |
json_helpers.c \ |
| 38 |
messages.c \ |
| 39 |
mountlist.c \ |
| 40 |
netinfo.c \ |
| 41 |
netinfo-private.c \ |
| 42 |
npl_selinux.c \ |
| 43 |
perfdata.c \ |
| 44 |
pressure.c \ |
| 45 |
processes.c \ |
| 46 |
procparser.c \ |
| 47 |
progname.c \ |
| 48 |
sysfsparser.c \ |
| 49 |
thresholds.c \ |
| 50 |
tcpinfo.c \ |
| 51 |
url_encode.c \ |
| 52 |
xasprintf.c \ |
| 53 |
xmalloc.c \ |
| 54 |
xstrton.c |
| 55 |
|
| 56 |
if HAVE_LIBCURL |
| 57 |
libutils_a_SOURCES += \ |
| 58 |
container.c |
| 59 |
endif |
| 60 |
|
| 61 |
if HAVE_LIBPROCPS |
| 62 |
|
| 63 |
libutils_a_SOURCES += \ |
| 64 |
meminfo_procps.c \ |
| 65 |
vminfo_procps.c |
| 66 |
|
| 67 |
else |
| 68 |
|
| 69 |
if HAVE_PROC_MEMINFO |
| 70 |
libutils_a_SOURCES += meminfo.c |
| 71 |
endif |
| 72 |
|
| 73 |
libutils_a_SOURCES += vminfo.c |
| 74 |
|
| 75 |
endif |