2006-03-04 18:16:49 +00:00
|
|
|
|
2011-11-21 02:52:41 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2014-11-24 20:55:03 +00:00
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
2010-11-20 18:54:39 +00:00
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
bin_PROGRAMS = htop
|
2014-11-24 20:55:03 +00:00
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
dist_man_MANS = htop.1
|
2019-12-21 09:09:25 +00:00
|
|
|
EXTRA_DIST = $(dist_man_MANS) htop.desktop htop.png \
|
2006-07-12 01:14:48 +00:00
|
|
|
install-sh autogen.sh missing
|
2006-03-04 18:16:49 +00:00
|
|
|
applicationsdir = $(datadir)/applications
|
|
|
|
applications_DATA = htop.desktop
|
|
|
|
pixmapdir = $(datadir)/pixmaps
|
|
|
|
pixmap_DATA = htop.png
|
|
|
|
|
2020-08-21 08:37:20 +00:00
|
|
|
AM_CFLAGS += -pedantic -Wall $(wextra_flag) -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"$(sysconfdir)\" -I"$(top_srcdir)/$(my_htop_platform)"
|
2018-03-16 14:31:48 +00:00
|
|
|
AM_LDFLAGS =
|
2011-12-26 22:04:29 +00:00
|
|
|
AM_CPPFLAGS = -DNDEBUG
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2007-05-21 19:09:19 +00:00
|
|
|
myhtopsources = AvailableMetersPanel.c CategoriesPanel.c CheckItem.c \
|
2015-01-22 01:27:31 +00:00
|
|
|
ClockMeter.c ColorsPanel.c ColumnsPanel.c CPUMeter.c CRT.c MainPanel.c \
|
2007-05-21 19:09:19 +00:00
|
|
|
DisplayOptionsPanel.c FunctionBar.c Hashtable.c Header.c htop.c ListItem.c \
|
|
|
|
LoadAverageMeter.c MemoryMeter.c Meter.c MetersPanel.c Object.c Panel.c \
|
2008-09-23 06:21:28 +00:00
|
|
|
BatteryMeter.c Process.c ProcessList.c RichString.c ScreenManager.c Settings.c \
|
2015-08-19 16:43:20 +00:00
|
|
|
SignalsPanel.c StringUtils.c SwapMeter.c TasksMeter.c UptimeMeter.c \
|
|
|
|
TraceScreen.c UsersTable.c Vector.c AvailableColumnsPanel.c AffinityPanel.c \
|
2016-01-12 08:00:58 +00:00
|
|
|
HostnameMeter.c OpenFilesScreen.c Affinity.c IncSet.c Action.c EnvScreen.c \
|
2016-02-02 14:53:02 +00:00
|
|
|
InfoScreen.c XAlloc.c
|
2007-05-21 19:09:19 +00:00
|
|
|
|
|
|
|
myhtopheaders = AvailableColumnsPanel.h AvailableMetersPanel.h \
|
|
|
|
CategoriesPanel.h CheckItem.h ClockMeter.h ColorsPanel.h ColumnsPanel.h \
|
2015-01-22 01:27:31 +00:00
|
|
|
CPUMeter.h CRT.h MainPanel.h DisplayOptionsPanel.h FunctionBar.h \
|
2020-09-08 07:33:50 +00:00
|
|
|
Hashtable.h Header.h ListItem.h LoadAverageMeter.h MemoryMeter.h \
|
2008-09-23 06:21:28 +00:00
|
|
|
BatteryMeter.h Meter.h MetersPanel.h Object.h Panel.h ProcessList.h RichString.h \
|
2015-08-19 16:43:20 +00:00
|
|
|
ScreenManager.h Settings.h SignalsPanel.h StringUtils.h SwapMeter.h \
|
|
|
|
TasksMeter.h UptimeMeter.h TraceScreen.h UsersTable.h Vector.h Process.h \
|
2015-12-02 21:58:22 +00:00
|
|
|
AffinityPanel.h HostnameMeter.h OpenFilesScreen.h Affinity.h IncSet.h Action.h \
|
2020-09-09 06:56:04 +00:00
|
|
|
EnvScreen.h InfoScreen.h XAlloc.h Macros.h
|
2014-11-24 20:55:03 +00:00
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
# Linux
|
|
|
|
# -----
|
|
|
|
|
|
|
|
linux_platform_headers = \
|
|
|
|
linux/Platform.h \
|
|
|
|
linux/IOPriorityPanel.h \
|
|
|
|
linux/IOPriority.h \
|
|
|
|
linux/LinuxProcess.h \
|
|
|
|
linux/LinuxProcessList.h \
|
|
|
|
linux/LinuxCRT.h \
|
2020-08-20 03:59:41 +00:00
|
|
|
linux/Battery.h \
|
2020-08-20 08:24:35 +00:00
|
|
|
linux/PressureStallMeter.h \
|
2019-07-07 23:27:00 +00:00
|
|
|
zfs/ZfsArcMeter.h \
|
2019-09-03 18:26:02 +00:00
|
|
|
zfs/ZfsCompressedArcMeter.h \
|
2019-07-07 23:27:00 +00:00
|
|
|
zfs/ZfsArcStats.h
|
2018-03-17 01:42:52 +00:00
|
|
|
|
2014-11-24 20:55:03 +00:00
|
|
|
if HTOP_LINUX
|
2020-06-11 16:30:24 +00:00
|
|
|
AM_LDFLAGS += -rdynamic
|
2019-12-21 09:09:25 +00:00
|
|
|
myhtopplatsources = linux/Platform.c linux/IOPriorityPanel.c \
|
2020-08-20 03:59:41 +00:00
|
|
|
linux/LinuxProcess.c linux/LinuxProcessList.c linux/LinuxCRT.c linux/Battery.c \
|
2020-08-20 08:24:35 +00:00
|
|
|
linux/PressureStallMeter.c \
|
2019-09-03 18:26:02 +00:00
|
|
|
zfs/ZfsArcMeter.c zfs/ZfsCompressedArcMeter.c zfs/ZfsArcStats.c
|
2014-11-24 20:55:03 +00:00
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
myhtopplatheaders = $(linux_platform_headers)
|
2014-11-24 20:55:03 +00:00
|
|
|
endif
|
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
# FreeBSD
|
|
|
|
# -------
|
|
|
|
|
|
|
|
freebsd_platform_headers = \
|
|
|
|
freebsd/Platform.h \
|
|
|
|
freebsd/FreeBSDProcessList.h \
|
|
|
|
freebsd/FreeBSDProcess.h \
|
|
|
|
freebsd/FreeBSDCRT.h \
|
2019-07-06 04:27:49 +00:00
|
|
|
freebsd/Battery.h \
|
2019-07-07 23:27:00 +00:00
|
|
|
zfs/ZfsArcMeter.h \
|
2019-09-03 18:26:02 +00:00
|
|
|
zfs/ZfsCompressedArcMeter.h \
|
2019-07-07 23:27:00 +00:00
|
|
|
zfs/ZfsArcStats.h \
|
|
|
|
zfs/openzfs_sysctl.h
|
2018-03-17 01:42:52 +00:00
|
|
|
|
2014-11-27 18:27:34 +00:00
|
|
|
if HTOP_FREEBSD
|
|
|
|
myhtopplatsources = freebsd/Platform.c freebsd/FreeBSDProcessList.c \
|
2019-07-06 04:27:49 +00:00
|
|
|
freebsd/FreeBSDProcess.c freebsd/FreeBSDCRT.c freebsd/Battery.c \
|
2019-09-03 18:26:02 +00:00
|
|
|
zfs/ZfsArcMeter.c zfs/ZfsCompressedArcMeter.c zfs/ZfsArcStats.c zfs/openzfs_sysctl.c
|
2014-11-27 18:27:34 +00:00
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
myhtopplatheaders = $(freebsd_platform_headers)
|
2014-11-27 18:27:34 +00:00
|
|
|
endif
|
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
# DragonFlyBSD
|
|
|
|
# ------------
|
|
|
|
|
|
|
|
dragonflybsd_platform_headers = \
|
|
|
|
dragonflybsd/Platform.h \
|
|
|
|
dragonflybsd/DragonFlyBSDProcessList.h \
|
|
|
|
dragonflybsd/DragonFlyBSDProcess.h \
|
|
|
|
dragonflybsd/DragonFlyBSDCRT.h \
|
|
|
|
dragonflybsd/Battery.h
|
|
|
|
|
2017-04-19 14:12:17 +00:00
|
|
|
if HTOP_DRAGONFLYBSD
|
2018-03-16 14:31:48 +00:00
|
|
|
AM_LDFLAGS += -lkvm -lkinfo -lexecinfo
|
2017-04-19 14:12:17 +00:00
|
|
|
myhtopplatsources = dragonflybsd/Platform.c dragonflybsd/DragonFlyBSDProcessList.c \
|
|
|
|
dragonflybsd/DragonFlyBSDProcess.c dragonflybsd/DragonFlyBSDCRT.c dragonflybsd/Battery.c
|
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
myhtopplatheaders = $(dragonflybsd_platform_headers)
|
2017-04-19 14:12:17 +00:00
|
|
|
endif
|
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
# OpenBSD
|
|
|
|
# -------
|
|
|
|
|
|
|
|
openbsd_platform_headers = \
|
|
|
|
openbsd/Platform.h \
|
|
|
|
openbsd/OpenBSDProcessList.h \
|
|
|
|
openbsd/OpenBSDProcess.h \
|
|
|
|
openbsd/OpenBSDCRT.h \
|
|
|
|
openbsd/Battery.h
|
|
|
|
|
2015-09-18 04:46:48 +00:00
|
|
|
if HTOP_OPENBSD
|
|
|
|
myhtopplatsources = openbsd/Platform.c openbsd/OpenBSDProcessList.c \
|
|
|
|
openbsd/OpenBSDProcess.c openbsd/OpenBSDCRT.c openbsd/Battery.c
|
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
myhtopplatheaders = $(openbsd_platform_headers)
|
2015-09-18 04:46:48 +00:00
|
|
|
endif
|
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
# Darwin
|
|
|
|
# ------
|
|
|
|
|
|
|
|
darwin_platform_headers = \
|
|
|
|
darwin/Platform.h \
|
|
|
|
darwin/DarwinProcess.h \
|
|
|
|
darwin/DarwinProcessList.h \
|
|
|
|
darwin/DarwinCRT.h \
|
2019-07-07 21:30:37 +00:00
|
|
|
darwin/Battery.h \
|
2019-07-07 23:27:00 +00:00
|
|
|
zfs/ZfsArcMeter.h \
|
2019-09-03 18:26:02 +00:00
|
|
|
zfs/ZfsCompressedArcMeter.h \
|
2019-07-07 23:27:00 +00:00
|
|
|
zfs/ZfsArcStats.h \
|
|
|
|
zfs/openzfs_sysctl.h
|
2018-03-17 01:42:52 +00:00
|
|
|
|
2015-07-12 18:47:43 +00:00
|
|
|
if HTOP_DARWIN
|
2018-03-16 14:31:48 +00:00
|
|
|
AM_LDFLAGS += -framework IOKit -framework CoreFoundation
|
2015-07-12 18:47:43 +00:00
|
|
|
myhtopplatsources = darwin/Platform.c darwin/DarwinProcess.c \
|
2019-07-07 21:30:37 +00:00
|
|
|
darwin/DarwinProcessList.c darwin/DarwinCRT.c darwin/Battery.c \
|
2019-09-03 18:26:02 +00:00
|
|
|
zfs/ZfsArcMeter.c zfs/ZfsCompressedArcMeter.c zfs/ZfsArcStats.c zfs/openzfs_sysctl.c
|
2015-07-12 18:47:43 +00:00
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
myhtopplatheaders = $(darwin_platform_headers)
|
2015-07-12 18:47:43 +00:00
|
|
|
endif
|
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
# Solaris
|
|
|
|
# -------
|
|
|
|
|
|
|
|
solaris_platform_headers = \
|
|
|
|
solaris/Platform.h \
|
|
|
|
solaris/SolarisProcess.h \
|
|
|
|
solaris/SolarisProcessList.h \
|
|
|
|
solaris/SolarisCRT.h \
|
2019-07-08 02:43:39 +00:00
|
|
|
solaris/Battery.h \
|
|
|
|
zfs/ZfsArcMeter.h \
|
2019-09-03 18:26:02 +00:00
|
|
|
zfs/ZfsCompressedArcMeter.h \
|
2019-07-08 02:43:39 +00:00
|
|
|
zfs/ZfsArcStats.h
|
2018-03-17 01:42:52 +00:00
|
|
|
|
2018-03-02 21:20:46 +00:00
|
|
|
if HTOP_SOLARIS
|
|
|
|
myhtopplatsources = solaris/Platform.c \
|
|
|
|
solaris/SolarisProcess.c solaris/SolarisProcessList.c \
|
2019-07-08 02:43:39 +00:00
|
|
|
solaris/SolarisCRT.c solaris/Battery.c \
|
2019-09-03 18:26:02 +00:00
|
|
|
zfs/ZfsArcMeter.c zfs/ZfsCompressedArcMeter.c zfs/ZfsArcStats.c
|
2018-03-02 21:20:46 +00:00
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
myhtopplatheaders = $(solaris_platform_headers)
|
2018-03-02 21:20:46 +00:00
|
|
|
endif
|
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
# Unsupported
|
|
|
|
# -----------
|
|
|
|
|
|
|
|
unsupported_platform_headers = \
|
|
|
|
unsupported/Platform.h \
|
|
|
|
unsupported/UnsupportedProcess.h \
|
|
|
|
unsupported/UnsupportedProcessList.h \
|
|
|
|
unsupported/UnsupportedCRT.h \
|
|
|
|
unsupported/Battery.h
|
|
|
|
|
2014-11-24 20:55:03 +00:00
|
|
|
if HTOP_UNSUPPORTED
|
2015-02-23 03:59:24 +00:00
|
|
|
myhtopplatsources = unsupported/Platform.c \
|
|
|
|
unsupported/UnsupportedProcess.c unsupported/UnsupportedProcessList.c \
|
|
|
|
unsupported/UnsupportedCRT.c unsupported/Battery.c
|
2014-11-24 20:55:03 +00:00
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
myhtopplatheaders = $(unsupported_platform_headers)
|
2014-11-24 20:55:03 +00:00
|
|
|
endif
|
2007-05-21 19:09:19 +00:00
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
# ----
|
|
|
|
|
2020-08-25 09:38:14 +00:00
|
|
|
htop_SOURCES = $(myhtopheaders) $(myhtopplatheaders) $(myhtopsources) $(myhtopplatsources)
|
|
|
|
nodist_htop_SOURCES = config.h
|
2014-11-24 20:55:03 +00:00
|
|
|
|
|
|
|
target:
|
|
|
|
echo $(htop_SOURCES)
|
2011-09-24 00:30:47 +00:00
|
|
|
|
2006-07-11 06:13:32 +00:00
|
|
|
profile:
|
2012-11-10 00:31:37 +00:00
|
|
|
$(MAKE) all CFLAGS="-pg" AM_CPPFLAGS="-pg -O2 -DNDEBUG"
|
2006-07-11 06:13:32 +00:00
|
|
|
|
2006-03-24 03:39:04 +00:00
|
|
|
debug:
|
2011-12-26 22:04:29 +00:00
|
|
|
$(MAKE) all CFLAGS="" AM_CPPFLAGS="-ggdb -DDEBUG"
|
2006-11-08 21:46:40 +00:00
|
|
|
|
2015-03-25 20:14:40 +00:00
|
|
|
coverage:
|
2016-02-19 15:40:21 +00:00
|
|
|
$(MAKE) all CFLAGS="" AM_CPPFLAGS="-fprofile-arcs -ftest-coverage -DDEBUG" LDFLAGS="-lgcov"
|
2015-03-25 20:14:40 +00:00
|
|
|
|
2011-10-25 00:46:37 +00:00
|
|
|
cppcheck:
|
2011-12-26 22:09:59 +00:00
|
|
|
cppcheck -q -v . --enable=all -DHAVE_CGROUP -DHAVE_OPENVZ -DHAVE_TASKSTATS
|
2014-11-24 20:55:03 +00:00
|
|
|
|
2018-04-06 15:47:55 +00:00
|
|
|
dist-hook: $(top_distdir)/configure
|
|
|
|
@if grep 'pkg_m4_absent' '$(top_distdir)/configure'; then \
|
|
|
|
echo 'configure is generated without pkg.m4. Please supply pkg.m4 and run ./autogen.sh to rebuild the configure script.'>&2; \
|
|
|
|
(exit 1); \
|
|
|
|
else :; \
|
|
|
|
fi
|
|
|
|
|
2015-03-25 20:14:40 +00:00
|
|
|
.PHONY: lcov
|
|
|
|
|
|
|
|
lcov:
|
|
|
|
mkdir -p lcov
|
|
|
|
lcov --capture --directory . --output-file coverage.info
|
|
|
|
genhtml coverage.info --output-directory lcov
|