123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526 |
- if !HTOP_PCP
- bin_PROGRAMS = htop
- myhtopplatprogram = htop.c
- else
- bin_PROGRAMS = pcp-htop
- myhtopplatprogram = pcp-htop.c
- endif
- dist_man_MANS = htop.1
- 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
- applicationsdir = $(datadir)/applications
- applications_DATA = htop.desktop
- pixmapdir = $(datadir)/pixmaps
- pixmap_DATA = htop.png
- appicondir = $(datadir)/icons/hicolor/scalable/apps
- appicon_DATA = htop.svg
- AM_CFLAGS += -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR="\"$(sysconfdir)\"" -I"$(top_srcdir)/$(my_htop_platform)"
- AM_LDFLAGS =
- myhtopsources = \
- Action.c \
- Affinity.c \
- AffinityPanel.c \
- AvailableColumnsPanel.c \
- AvailableMetersPanel.c \
- BatteryMeter.c \
- CategoriesPanel.c \
- ClockMeter.c \
- ColorsPanel.c \
- ColumnsPanel.c \
- CommandLine.c \
- CommandScreen.c \
- Compat.c \
- CPUMeter.c \
- CRT.c \
- DateMeter.c \
- DateTimeMeter.c \
- DiskIOMeter.c \
- DisplayOptionsPanel.c \
- DynamicColumn.c \
- DynamicMeter.c \
- DynamicScreen.c \
- EnvScreen.c \
- FileDescriptorMeter.c \
- FunctionBar.c \
- Hashtable.c \
- Header.c \
- HeaderOptionsPanel.c \
- HostnameMeter.c \
- IncSet.c \
- InfoScreen.c \
- ListItem.c \
- LoadAverageMeter.c \
- Machine.c \
- MainPanel.c \
- MemoryMeter.c \
- MemorySwapMeter.c \
- Meter.c \
- MetersPanel.c \
- NetworkIOMeter.c \
- Object.c \
- OpenFilesScreen.c \
- OptionItem.c \
- Panel.c \
- Process.c \
- ProcessLocksScreen.c \
- ProcessTable.c \
- Row.c \
- RichString.c \
- Scheduling.c \
- ScreenManager.c \
- ScreensPanel.c \
- ScreenTabsPanel.c \
- Settings.c \
- SignalsPanel.c \
- SwapMeter.c \
- SysArchMeter.c \
- Table.c \
- TasksMeter.c \
- TraceScreen.c \
- UptimeMeter.c \
- UsersTable.c \
- Vector.c \
- XUtils.c
- 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 \
- CommandLine.h \
- CommandScreen.h \
- Compat.h \
- DateMeter.h \
- DateTimeMeter.h \
- DiskIOMeter.h \
- DisplayOptionsPanel.h \
- DynamicColumn.h \
- DynamicMeter.h \
- DynamicScreen.h \
- EnvScreen.h \
- FileDescriptorMeter.h \
- FunctionBar.h \
- Hashtable.h \
- Header.h \
- HeaderLayout.h \
- HeaderOptionsPanel.h \
- HostnameMeter.h \
- IncSet.h \
- InfoScreen.h \
- ListItem.h \
- LoadAverageMeter.h \
- Machine.h \
- Macros.h \
- MainPanel.h \
- MemoryMeter.h \
- MemorySwapMeter.h \
- Meter.h \
- MeterMode.h \
- MetersPanel.h \
- NetworkIOMeter.h \
- Object.h \
- OpenFilesScreen.h \
- OptionItem.h \
- Panel.h \
- Process.h \
- ProcessLocksScreen.h \
- ProcessTable.h \
- ProvideCurses.h \
- ProvideTerm.h \
- RichString.h \
- Row.h \
- RowField.h \
- Scheduling.h \
- ScreenManager.h \
- ScreensPanel.h \
- ScreenTabsPanel.h \
- Settings.h \
- SignalsPanel.h \
- SwapMeter.h \
- SysArchMeter.h \
- Table.h \
- TasksMeter.h \
- TraceScreen.h \
- UptimeMeter.h \
- UsersTable.h \
- Vector.h \
- XUtils.h
- # Linux
- # -----
- linux_platform_headers = \
- generic/gettime.h \
- generic/hostname.h \
- generic/uname.h \
- linux/CGroupUtils.h \
- linux/GPU.h \
- linux/GPUMeter.h \
- linux/HugePageMeter.h \
- linux/IOPriority.h \
- linux/IOPriorityPanel.h \
- linux/LibSensors.h \
- linux/LinuxMachine.h \
- linux/LinuxProcess.h \
- linux/LinuxProcessTable.h \
- linux/Platform.h \
- linux/PressureStallMeter.h \
- linux/ProcessField.h \
- linux/SELinuxMeter.h \
- linux/SystemdMeter.h \
- linux/ZramMeter.h \
- linux/ZramStats.h \
- linux/ZswapStats.h \
- zfs/ZfsArcMeter.h \
- zfs/ZfsArcStats.h \
- zfs/ZfsCompressedArcMeter.h
- linux_platform_sources = \
- generic/gettime.c \
- generic/hostname.c \
- generic/uname.c \
- linux/CGroupUtils.c \
- linux/GPU.c \
- linux/GPUMeter.c \
- linux/HugePageMeter.c \
- linux/IOPriorityPanel.c \
- linux/LibSensors.c \
- linux/LinuxMachine.c \
- linux/LinuxProcess.c \
- linux/LinuxProcessTable.c \
- linux/Platform.c \
- linux/PressureStallMeter.c \
- linux/SELinuxMeter.c \
- linux/SystemdMeter.c \
- linux/ZramMeter.c \
- zfs/ZfsArcMeter.c \
- zfs/ZfsCompressedArcMeter.c
- if HAVE_DELAYACCT
- linux_platform_headers += linux/LibNl.h
- linux_platform_sources += linux/LibNl.c
- endif
- if HTOP_LINUX
- AM_LDFLAGS += -rdynamic
- myhtopplatheaders = $(linux_platform_headers)
- myhtopplatsources = $(linux_platform_sources)
- endif
- # FreeBSD
- # -------
- freebsd_platform_headers = \
- freebsd/FreeBSDMachine.h \
- freebsd/FreeBSDProcessTable.h \
- freebsd/FreeBSDProcess.h \
- freebsd/Platform.h \
- freebsd/ProcessField.h \
- generic/fdstat_sysctl.h \
- generic/gettime.h \
- generic/hostname.h \
- generic/openzfs_sysctl.h \
- generic/uname.h \
- zfs/ZfsArcMeter.h \
- zfs/ZfsArcStats.h \
- zfs/ZfsCompressedArcMeter.h
- freebsd_platform_sources = \
- freebsd/Platform.c \
- freebsd/FreeBSDMachine.c \
- freebsd/FreeBSDProcessTable.c \
- freebsd/FreeBSDProcess.c \
- generic/fdstat_sysctl.c \
- generic/gettime.c \
- generic/hostname.c \
- generic/openzfs_sysctl.c \
- generic/uname.c \
- zfs/ZfsArcMeter.c \
- zfs/ZfsCompressedArcMeter.c
- if HTOP_FREEBSD
- myhtopplatheaders = $(freebsd_platform_headers)
- myhtopplatsources = $(freebsd_platform_sources)
- endif
- # DragonFlyBSD
- # ------------
- dragonflybsd_platform_headers = \
- dragonflybsd/DragonFlyBSDMachine.h \
- dragonflybsd/DragonFlyBSDProcessTable.h \
- dragonflybsd/DragonFlyBSDProcess.h \
- dragonflybsd/Platform.h \
- dragonflybsd/ProcessField.h \
- generic/fdstat_sysctl.h \
- generic/gettime.h \
- generic/hostname.h \
- generic/uname.h
- dragonflybsd_platform_sources = \
- dragonflybsd/DragonFlyBSDMachine.c \
- dragonflybsd/DragonFlyBSDProcessTable.c \
- dragonflybsd/DragonFlyBSDProcess.c \
- dragonflybsd/Platform.c \
- generic/fdstat_sysctl.c \
- generic/gettime.c \
- generic/hostname.c \
- generic/uname.c
- if HTOP_DRAGONFLYBSD
- myhtopplatheaders = $(dragonflybsd_platform_headers)
- myhtopplatsources = $(dragonflybsd_platform_sources)
- endif
- # NetBSD
- # -------
- netbsd_platform_headers = \
- generic/fdstat_sysctl.h \
- generic/gettime.h \
- generic/hostname.h \
- generic/uname.h \
- netbsd/Platform.h \
- netbsd/ProcessField.h \
- netbsd/NetBSDMachine.h \
- netbsd/NetBSDProcess.h \
- netbsd/NetBSDProcessTable.h
- netbsd_platform_sources = \
- generic/fdstat_sysctl.c \
- generic/gettime.c \
- generic/hostname.c \
- generic/uname.c \
- netbsd/Platform.c \
- netbsd/NetBSDMachine.c \
- netbsd/NetBSDProcess.c \
- netbsd/NetBSDProcessTable.c
- if HTOP_NETBSD
- myhtopplatheaders = $(netbsd_platform_headers)
- myhtopplatsources = $(netbsd_platform_sources)
- endif
- # OpenBSD
- # -------
- openbsd_platform_headers = \
- generic/gettime.h \
- generic/hostname.h \
- generic/uname.h \
- openbsd/OpenBSDMachine.h \
- openbsd/OpenBSDProcessTable.h \
- openbsd/OpenBSDProcess.h \
- openbsd/Platform.h \
- openbsd/ProcessField.h
- openbsd_platform_sources = \
- generic/gettime.c \
- generic/hostname.c \
- generic/uname.c \
- openbsd/OpenBSDMachine.c \
- openbsd/OpenBSDProcessTable.c \
- openbsd/OpenBSDProcess.c \
- openbsd/Platform.c
- if HTOP_OPENBSD
- myhtopplatheaders = $(openbsd_platform_headers)
- myhtopplatsources = $(openbsd_platform_sources)
- endif
- # Darwin
- # ------
- darwin_platform_headers = \
- darwin/DarwinMachine.h \
- darwin/DarwinProcess.h \
- darwin/DarwinProcessTable.h \
- darwin/Platform.h \
- darwin/PlatformHelpers.h \
- darwin/ProcessField.h \
- generic/fdstat_sysctl.h \
- generic/gettime.h \
- generic/hostname.h \
- generic/openzfs_sysctl.h \
- generic/uname.h \
- zfs/ZfsArcMeter.h \
- zfs/ZfsArcStats.h \
- zfs/ZfsCompressedArcMeter.h
- darwin_platform_sources = \
- darwin/Platform.c \
- darwin/PlatformHelpers.c \
- darwin/DarwinMachine.c \
- darwin/DarwinProcess.c \
- darwin/DarwinProcessTable.c \
- generic/fdstat_sysctl.c \
- generic/gettime.c \
- generic/hostname.c \
- generic/openzfs_sysctl.c \
- generic/uname.c \
- zfs/ZfsArcMeter.c \
- zfs/ZfsCompressedArcMeter.c
- if HTOP_DARWIN
- AM_LDFLAGS += -framework IOKit -framework CoreFoundation
- myhtopplatheaders = $(darwin_platform_headers)
- myhtopplatsources = $(darwin_platform_sources)
- endif
- # Solaris
- # -------
- solaris_platform_headers = \
- generic/gettime.h \
- generic/hostname.h \
- generic/uname.h \
- solaris/ProcessField.h \
- solaris/Platform.h \
- solaris/SolarisMachine.h \
- solaris/SolarisProcess.h \
- solaris/SolarisProcessTable.h \
- zfs/ZfsArcMeter.h \
- zfs/ZfsArcStats.h \
- zfs/ZfsCompressedArcMeter.h
- solaris_platform_sources = \
- generic/gettime.c \
- generic/hostname.c \
- generic/uname.c \
- solaris/Platform.c \
- solaris/SolarisMachine.c \
- solaris/SolarisProcess.c \
- solaris/SolarisProcessTable.c \
- zfs/ZfsArcMeter.c \
- zfs/ZfsCompressedArcMeter.c
- if HTOP_SOLARIS
- myhtopplatheaders = $(solaris_platform_headers)
- myhtopplatsources = $(solaris_platform_sources)
- endif
- # Performance Co-Pilot (PCP)
- # --------------------------
- pcp_platform_headers = \
- linux/CGroupUtils.h \
- linux/PressureStallMeter.h \
- linux/ZramMeter.h \
- linux/ZramStats.h \
- pcp/Instance.h \
- pcp/InDomTable.h \
- pcp/Metric.h \
- pcp/Platform.h \
- pcp/ProcessField.h \
- pcp/PCPDynamicColumn.h \
- pcp/PCPDynamicMeter.h \
- pcp/PCPDynamicScreen.h \
- pcp/PCPMachine.h \
- pcp/PCPProcess.h \
- pcp/PCPProcessTable.h \
- zfs/ZfsArcMeter.h \
- zfs/ZfsArcStats.h \
- zfs/ZfsCompressedArcMeter.h
- pcp_platform_sources = \
- linux/CGroupUtils.c \
- linux/PressureStallMeter.c \
- linux/ZramMeter.c \
- pcp/Instance.c \
- pcp/InDomTable.c \
- pcp/Metric.c \
- pcp/Platform.c \
- pcp/PCPDynamicColumn.c \
- pcp/PCPDynamicMeter.c \
- pcp/PCPDynamicScreen.c \
- pcp/PCPMachine.c \
- pcp/PCPProcess.c \
- pcp/PCPProcessTable.c \
- zfs/ZfsArcMeter.c \
- zfs/ZfsCompressedArcMeter.c
- if HTOP_PCP
- myhtopplatheaders = $(pcp_platform_headers)
- myhtopplatsources = $(pcp_platform_sources)
- pcp_htop_SOURCES = $(myhtopplatprogram) $(myhtopheaders) $(myhtopplatheaders) $(myhtopsources) $(myhtopplatsources)
- endif
- # Unsupported
- # -----------
- unsupported_platform_headers = \
- generic/gettime.h \
- unsupported/Platform.h \
- unsupported/ProcessField.h \
- unsupported/UnsupportedMachine.h \
- unsupported/UnsupportedProcess.h \
- unsupported/UnsupportedProcessTable.h
- unsupported_platform_sources = \
- generic/gettime.c \
- unsupported/Platform.c \
- unsupported/UnsupportedMachine.c \
- unsupported/UnsupportedProcess.c \
- unsupported/UnsupportedProcessTable.c
- if HTOP_UNSUPPORTED
- myhtopplatsources = $(unsupported_platform_sources)
- myhtopplatheaders = $(unsupported_platform_headers)
- endif
- # ----
- htop_SOURCES = $(myhtopplatprogram) $(myhtopheaders) $(myhtopplatheaders) $(myhtopsources) $(myhtopplatsources)
- nodist_htop_SOURCES = config.h
- target:
- echo $(htop_SOURCES)
- profile:
- $(MAKE) all AM_CPPFLAGS="-pg -O2 -DNDEBUG"
- debug:
- $(MAKE) all AM_CPPFLAGS="-ggdb3 -Og" CFLAGS="`printf ' %s ' "$(CFLAGS)"|sed -E 's#[[:space:]]-O[^[:space:]]+[[:space:]]# #g'` -ggdb3 -Og"
- coverage:
- $(MAKE) all AM_CPPFLAGS="-fprofile-arcs -ftest-coverage" AM_LDFLAGS="-lgcov"
- cppcheck:
- cppcheck -q -v . --enable=all -DHAVE_OPENVZ
- dist-hook: $(top_distdir)/configure
- @if test "x$$FORCE_MAKE_DIST" = x && \
- grep 'pkg_m4_absent' '$(top_distdir)/configure' >/dev/null; then \
- echo 'ERROR: This distribution would have incomplete pkg-config support. Rebuilding the configure script is advised. Set FORCE_MAKE_DIST=1 to ignore this warning.'>&2; \
- (exit 1); \
- else :; \
- fi
- @if grep 'PACKAGE_VERSION.*-g' '$(top_distdir)/configure'; then \
- echo 'WARNING: You are building a dist from a git version. Better run make dist outside of a .git repo on a tagged release.'>&2; \
- fi
- .PHONY: lcov
- lcov:
- mkdir -p lcov
- lcov --capture --directory . --output-file coverage.info
- genhtml coverage.info --output-directory lcov
|