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
|
2021-01-22 18:14:53 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(dist_man_MANS) \
|
|
|
|
autogen.sh \
|
|
|
|
htop.desktop \
|
|
|
|
htop.png \
|
|
|
|
htop.svg \
|
|
|
|
build-aux/compile \
|
|
|
|
build-aux/depcomp \
|
|
|
|
build-aux/install-sh \
|
|
|
|
build-aux/missing
|
2006-03-04 18:16:49 +00:00
|
|
|
applicationsdir = $(datadir)/applications
|
|
|
|
applications_DATA = htop.desktop
|
|
|
|
pixmapdir = $(datadir)/pixmaps
|
|
|
|
pixmap_DATA = htop.png
|
2020-11-30 15:17:09 +00:00
|
|
|
appicondir = $(datadir)/icons/hicolor/scalable/apps
|
|
|
|
appicon_DATA = htop.svg
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2020-09-08 12:25:46 +00:00
|
|
|
AM_CFLAGS += -pedantic -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"$(sysconfdir)\" -I"$(top_srcdir)/$(my_htop_platform)"
|
2018-03-16 14:31:48 +00:00
|
|
|
AM_LDFLAGS =
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2020-10-05 11:52:58 +00:00
|
|
|
myhtopsources = \
|
|
|
|
Action.c \
|
|
|
|
Affinity.c \
|
|
|
|
AffinityPanel.c \
|
|
|
|
AvailableColumnsPanel.c \
|
|
|
|
AvailableMetersPanel.c \
|
|
|
|
BatteryMeter.c \
|
|
|
|
CategoriesPanel.c \
|
|
|
|
ClockMeter.c \
|
|
|
|
ColorsPanel.c \
|
|
|
|
ColumnsPanel.c \
|
|
|
|
CommandScreen.c \
|
2020-10-26 20:16:43 +00:00
|
|
|
Compat.c \
|
2020-10-05 11:52:58 +00:00
|
|
|
CPUMeter.c \
|
|
|
|
CRT.c \
|
|
|
|
DateMeter.c \
|
|
|
|
DateTimeMeter.c \
|
|
|
|
DiskIOMeter.c \
|
|
|
|
DisplayOptionsPanel.c \
|
|
|
|
EnvScreen.c \
|
|
|
|
FunctionBar.c \
|
|
|
|
Hashtable.c \
|
|
|
|
Header.c \
|
|
|
|
HostnameMeter.c \
|
|
|
|
htop.c \
|
|
|
|
IncSet.c \
|
|
|
|
InfoScreen.c \
|
|
|
|
ListItem.c \
|
|
|
|
LoadAverageMeter.c \
|
|
|
|
MainPanel.c \
|
|
|
|
MemoryMeter.c \
|
|
|
|
Meter.c \
|
|
|
|
MetersPanel.c \
|
2020-10-08 14:34:54 +00:00
|
|
|
NetworkIOMeter.c \
|
2020-10-05 11:52:58 +00:00
|
|
|
Object.c \
|
|
|
|
OpenFilesScreen.c \
|
2020-11-21 20:40:08 +00:00
|
|
|
OptionItem.c \
|
2020-10-05 11:52:58 +00:00
|
|
|
Panel.c \
|
|
|
|
Process.c \
|
|
|
|
ProcessList.c \
|
2020-11-11 21:15:35 +00:00
|
|
|
ProcessLocksScreen.c \
|
2020-10-05 11:52:58 +00:00
|
|
|
RichString.c \
|
|
|
|
ScreenManager.c \
|
|
|
|
Settings.c \
|
|
|
|
SignalsPanel.c \
|
|
|
|
SwapMeter.c \
|
|
|
|
TasksMeter.c \
|
|
|
|
TraceScreen.c \
|
|
|
|
UptimeMeter.c \
|
|
|
|
UsersTable.c \
|
|
|
|
Vector.c \
|
2020-10-14 18:21:09 +00:00
|
|
|
XUtils.c
|
2020-10-05 11:52:58 +00:00
|
|
|
|
|
|
|
myhtopheaders = \
|
|
|
|
Action.h \
|
|
|
|
Affinity.h \
|
|
|
|
AffinityPanel.h \
|
|
|
|
AvailableColumnsPanel.h \
|
|
|
|
AvailableMetersPanel.h \
|
|
|
|
BatteryMeter.h \
|
|
|
|
CPUMeter.h \
|
|
|
|
CRT.h \
|
|
|
|
CategoriesPanel.h \
|
|
|
|
ClockMeter.h \
|
|
|
|
ColorsPanel.h \
|
|
|
|
ColumnsPanel.h \
|
|
|
|
CommandScreen.h \
|
2020-10-26 20:16:43 +00:00
|
|
|
Compat.h \
|
2020-10-05 11:52:58 +00:00
|
|
|
DateMeter.h \
|
|
|
|
DateTimeMeter.h \
|
2020-10-08 14:20:34 +00:00
|
|
|
DiskIOMeter.h \
|
2020-10-05 11:52:58 +00:00
|
|
|
DisplayOptionsPanel.h \
|
|
|
|
EnvScreen.h \
|
|
|
|
FunctionBar.h \
|
|
|
|
Hashtable.h \
|
|
|
|
Header.h \
|
|
|
|
HostnameMeter.h \
|
|
|
|
IncSet.h \
|
|
|
|
InfoScreen.h \
|
|
|
|
ListItem.h \
|
|
|
|
LoadAverageMeter.h \
|
|
|
|
Macros.h \
|
|
|
|
MainPanel.h \
|
|
|
|
MemoryMeter.h \
|
|
|
|
Meter.h \
|
|
|
|
MetersPanel.h \
|
2020-10-08 14:34:54 +00:00
|
|
|
NetworkIOMeter.h \
|
2020-10-05 11:52:58 +00:00
|
|
|
Object.h \
|
|
|
|
OpenFilesScreen.h \
|
2020-11-21 20:40:08 +00:00
|
|
|
OptionItem.h \
|
2020-10-05 11:52:58 +00:00
|
|
|
Panel.h \
|
|
|
|
Process.h \
|
|
|
|
ProcessList.h \
|
2020-11-11 21:15:35 +00:00
|
|
|
ProcessLocksScreen.h \
|
2020-09-19 11:55:23 +00:00
|
|
|
ProvideCurses.h \
|
2020-10-05 11:52:58 +00:00
|
|
|
RichString.h \
|
|
|
|
ScreenManager.h \
|
|
|
|
Settings.h \
|
|
|
|
SignalsPanel.h \
|
|
|
|
SwapMeter.h \
|
|
|
|
TasksMeter.h \
|
|
|
|
TraceScreen.h \
|
|
|
|
UptimeMeter.h \
|
|
|
|
UsersTable.h \
|
|
|
|
Vector.h \
|
2020-10-14 18:21:09 +00:00
|
|
|
XUtils.h
|
2014-11-24 20:55:03 +00:00
|
|
|
|
2018-03-17 01:42:52 +00:00
|
|
|
# Linux
|
|
|
|
# -----
|
|
|
|
|
|
|
|
linux_platform_headers = \
|
2021-01-05 14:50:23 +00:00
|
|
|
linux/HugePageMeter.h \
|
2018-03-17 01:42:52 +00:00
|
|
|
linux/IOPriority.h \
|
2020-10-07 15:18:02 +00:00
|
|
|
linux/IOPriorityPanel.h \
|
2020-12-01 12:59:19 +00:00
|
|
|
linux/LibSensors.h \
|
2018-03-17 01:42:52 +00:00
|
|
|
linux/LinuxProcess.h \
|
|
|
|
linux/LinuxProcessList.h \
|
2020-10-07 15:18:02 +00:00
|
|
|
linux/Platform.h \
|
2020-08-20 08:24:35 +00:00
|
|
|
linux/PressureStallMeter.h \
|
2020-12-15 18:44:48 +00:00
|
|
|
linux/ProcessField.h \
|
2020-10-07 15:18:02 +00:00
|
|
|
linux/SELinuxMeter.h \
|
2020-10-07 13:42:13 +00:00
|
|
|
linux/SystemdMeter.h \
|
2020-09-22 11:54:15 +00:00
|
|
|
linux/ZramMeter.h \
|
|
|
|
linux/ZramStats.h \
|
2019-07-07 23:27:00 +00:00
|
|
|
zfs/ZfsArcMeter.h \
|
2020-10-07 15:18:02 +00:00
|
|
|
zfs/ZfsArcStats.h \
|
|
|
|
zfs/ZfsCompressedArcMeter.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
|
2020-10-07 15:18:02 +00:00
|
|
|
myhtopplatsources = \
|
2021-01-05 14:50:23 +00:00
|
|
|
linux/HugePageMeter.c \
|
2020-10-07 15:18:02 +00:00
|
|
|
linux/IOPriorityPanel.c \
|
2020-12-01 12:59:19 +00:00
|
|
|
linux/LibSensors.c \
|
2020-10-07 15:18:02 +00:00
|
|
|
linux/LinuxProcess.c \
|
|
|
|
linux/LinuxProcessList.c \
|
|
|
|
linux/Platform.c \
|
|
|
|
linux/PressureStallMeter.c \
|
|
|
|
linux/SELinuxMeter.c \
|
2020-10-07 13:42:13 +00:00
|
|
|
linux/SystemdMeter.c \
|
2020-09-22 11:54:15 +00:00
|
|
|
linux/ZramMeter.c \
|
2020-10-07 15:18:02 +00:00
|
|
|
zfs/ZfsArcMeter.c \
|
|
|
|
zfs/ZfsArcStats.c \
|
|
|
|
zfs/ZfsCompressedArcMeter.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/FreeBSDProcessList.h \
|
|
|
|
freebsd/FreeBSDProcess.h \
|
2020-12-15 18:44:48 +00:00
|
|
|
freebsd/Platform.h \
|
|
|
|
freebsd/ProcessField.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 \
|
2020-11-17 07:12:38 +00:00
|
|
|
freebsd/FreeBSDProcess.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/DragonFlyBSDProcessList.h \
|
2020-12-15 18:44:48 +00:00
|
|
|
dragonflybsd/DragonFlyBSDProcess.h \
|
|
|
|
dragonflybsd/Platform.h \
|
|
|
|
dragonflybsd/ProcessField.h
|
2018-03-17 01:42:52 +00:00
|
|
|
|
2017-04-19 14:12:17 +00:00
|
|
|
if HTOP_DRAGONFLYBSD
|
2020-12-20 17:21:25 +00:00
|
|
|
myhtopplatsources = \
|
|
|
|
dragonflybsd/Platform.c \
|
|
|
|
dragonflybsd/DragonFlyBSDProcessList.c \
|
|
|
|
dragonflybsd/DragonFlyBSDProcess.c
|
2017-04-19 14:12:17 +00:00
|
|
|
|
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/OpenBSDProcessList.h \
|
2020-12-15 18:44:48 +00:00
|
|
|
openbsd/OpenBSDProcess.h \
|
|
|
|
openbsd/Platform.h \
|
|
|
|
openbsd/ProcessField.h
|
2018-03-17 01:42:52 +00:00
|
|
|
|
2015-09-18 04:46:48 +00:00
|
|
|
if HTOP_OPENBSD
|
|
|
|
myhtopplatsources = openbsd/Platform.c openbsd/OpenBSDProcessList.c \
|
2020-11-17 07:12:38 +00:00
|
|
|
openbsd/OpenBSDProcess.c
|
2015-09-18 04:46:48 +00:00
|
|
|
|
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/DarwinProcess.h \
|
|
|
|
darwin/DarwinProcessList.h \
|
2020-12-15 18:44:48 +00:00
|
|
|
darwin/Platform.h \
|
|
|
|
darwin/ProcessField.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 \
|
2020-11-17 07:12:38 +00:00
|
|
|
darwin/DarwinProcessList.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 \
|
2020-12-15 18:44:48 +00:00
|
|
|
solaris/ProcessField.h \
|
2018-03-17 01:42:52 +00:00
|
|
|
solaris/SolarisProcess.h \
|
|
|
|
solaris/SolarisProcessList.h \
|
2019-07-08 02:43:39 +00:00
|
|
|
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-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 \
|
2020-12-15 18:44:48 +00:00
|
|
|
unsupported/ProcessField.h \
|
2018-03-17 01:42:52 +00:00
|
|
|
unsupported/UnsupportedProcess.h \
|
2020-11-17 07:12:38 +00:00
|
|
|
unsupported/UnsupportedProcessList.h
|
2018-03-17 01:42:52 +00:00
|
|
|
|
2014-11-24 20:55:03 +00:00
|
|
|
if HTOP_UNSUPPORTED
|
2015-02-23 03:59:24 +00:00
|
|
|
myhtopplatsources = unsupported/Platform.c \
|
2020-11-17 07:12:38 +00:00
|
|
|
unsupported/UnsupportedProcess.c unsupported/UnsupportedProcessList.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:
|
2020-11-21 21:31:10 +00:00
|
|
|
$(MAKE) all AM_CPPFLAGS="-pg -O2 -DNDEBUG"
|
2006-07-11 06:13:32 +00:00
|
|
|
|
2006-03-24 03:39:04 +00:00
|
|
|
debug:
|
2020-11-21 21:31:10 +00:00
|
|
|
$(MAKE) all AM_CPPFLAGS="-ggdb -DDEBUG"
|
2006-11-08 21:46:40 +00:00
|
|
|
|
2015-03-25 20:14:40 +00:00
|
|
|
coverage:
|
2020-11-21 21:31:10 +00:00
|
|
|
$(MAKE) all AM_CPPFLAGS="-fprofile-arcs -ftest-coverage -DDEBUG" AM_LDFLAGS="-lgcov"
|
2015-03-25 20:14:40 +00:00
|
|
|
|
2011-10-25 00:46:37 +00:00
|
|
|
cppcheck:
|
2020-09-21 10:40:45 +00:00
|
|
|
cppcheck -q -v . --enable=all -DHAVE_OPENVZ
|
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
|