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-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 \
|
|
|
|
CheckItem.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 \
|
|
|
|
Panel.c \
|
|
|
|
Process.c \
|
|
|
|
ProcessList.c \
|
|
|
|
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 \
|
|
|
|
CheckItem.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 \
|
|
|
|
Panel.h \
|
|
|
|
Process.h \
|
|
|
|
ProcessList.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 = \
|
2020-10-07 15:18:02 +00:00
|
|
|
linux/Battery.h \
|
2018-03-17 01:42:52 +00:00
|
|
|
linux/IOPriority.h \
|
2020-10-07 15:18:02 +00:00
|
|
|
linux/IOPriorityPanel.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-10-07 15:18:02 +00:00
|
|
|
linux/SELinuxMeter.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 = \
|
|
|
|
linux/Battery.c \
|
|
|
|
linux/IOPriorityPanel.c \
|
|
|
|
linux/LinuxProcess.c \
|
|
|
|
linux/LinuxProcessList.c \
|
|
|
|
linux/Platform.c \
|
|
|
|
linux/PressureStallMeter.c \
|
|
|
|
linux/SELinuxMeter.c \
|
|
|
|
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/Platform.h \
|
|
|
|
freebsd/FreeBSDProcessList.h \
|
|
|
|
freebsd/FreeBSDProcess.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 \
|
2020-10-03 15:53:15 +00:00
|
|
|
freebsd/FreeBSDProcess.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/Battery.h
|
|
|
|
|
2017-04-19 14:12:17 +00:00
|
|
|
if HTOP_DRAGONFLYBSD
|
2020-10-15 19:12:57 +00:00
|
|
|
AM_LDFLAGS += -lkvm -lkinfo
|
2017-04-19 14:12:17 +00:00
|
|
|
myhtopplatsources = dragonflybsd/Platform.c dragonflybsd/DragonFlyBSDProcessList.c \
|
2020-10-03 15:53:15 +00:00
|
|
|
dragonflybsd/DragonFlyBSDProcess.c dragonflybsd/Battery.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/Platform.h \
|
|
|
|
openbsd/OpenBSDProcessList.h \
|
|
|
|
openbsd/OpenBSDProcess.h \
|
|
|
|
openbsd/Battery.h
|
|
|
|
|
2015-09-18 04:46:48 +00:00
|
|
|
if HTOP_OPENBSD
|
|
|
|
myhtopplatsources = openbsd/Platform.c openbsd/OpenBSDProcessList.c \
|
2020-10-03 15:53:15 +00:00
|
|
|
openbsd/OpenBSDProcess.c openbsd/Battery.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/Platform.h \
|
|
|
|
darwin/DarwinProcess.h \
|
|
|
|
darwin/DarwinProcessList.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 \
|
2020-10-03 15:53:15 +00:00
|
|
|
darwin/DarwinProcessList.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 \
|
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 \
|
2020-10-03 15:53:15 +00:00
|
|
|
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/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 \
|
2020-10-03 15:53:15 +00:00
|
|
|
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
|