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
|
2006-07-12 01:14:48 +00:00
|
|
|
EXTRA_DIST = $(dist_man_MANS) htop.desktop htop.png scripts/MakeHeader.py \
|
|
|
|
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
|
|
|
|
|
2014-11-24 20:55:03 +00:00
|
|
|
htop_CFLAGS = -pedantic -Wall -Wextra -std=c99 -rdynamic -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"$(sysconfdir)\" -I"$(my_htop_platform)"
|
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 \
|
2011-12-26 22:04:29 +00:00
|
|
|
ClockMeter.c ColorsPanel.c ColumnsPanel.c CPUMeter.c CRT.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 \
|
2014-11-24 20:55:03 +00:00
|
|
|
SignalsPanel.c String.c SwapMeter.c TasksMeter.c TraceScreen.c \
|
2009-02-17 18:33:32 +00:00
|
|
|
UptimeMeter.c UsersTable.c Vector.c AvailableColumnsPanel.c AffinityPanel.c \
|
2014-11-24 20:55:03 +00:00
|
|
|
HostnameMeter.c OpenFilesScreen.c Affinity.c IncSet.c Action.c
|
2007-05-21 19:09:19 +00:00
|
|
|
|
|
|
|
myhtopheaders = AvailableColumnsPanel.h AvailableMetersPanel.h \
|
|
|
|
CategoriesPanel.h CheckItem.h ClockMeter.h ColorsPanel.h ColumnsPanel.h \
|
2014-11-24 20:55:03 +00:00
|
|
|
CPUMeter.h CRT.h DisplayOptionsPanel.h FunctionBar.h \
|
2007-05-21 19:09:19 +00:00
|
|
|
Hashtable.h Header.h htop.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 \
|
2012-11-10 00:31:37 +00:00
|
|
|
ScreenManager.h Settings.h SignalsPanel.h String.h SwapMeter.h TasksMeter.h \
|
|
|
|
TraceScreen.h UptimeMeter.h UsersTable.h Vector.h Process.h AffinityPanel.h \
|
2014-11-24 20:55:03 +00:00
|
|
|
HostnameMeter.h OpenFilesScreen.h Affinity.h IncSet.h Action.h
|
|
|
|
|
|
|
|
if HTOP_LINUX
|
|
|
|
myhtopplatsources = linux/Platform.c linux/IOPriorityPanel.c linux/IOPriority.c \
|
2014-11-24 21:22:50 +00:00
|
|
|
linux/LinuxProcess.c linux/LinuxProcessList.c linux/LinuxCRT.c
|
2014-11-24 20:55:03 +00:00
|
|
|
|
|
|
|
myhtopplatheaders = linux/Platform.h linux/IOPriorityPanel.h linux/IOPriority.h \
|
2014-11-24 21:22:50 +00:00
|
|
|
linux/LinuxProcess.h linux/LinuxProcessList.h linux/LinuxCRT.h
|
2014-11-24 20:55:03 +00:00
|
|
|
endif
|
|
|
|
|
2014-11-27 18:27:34 +00:00
|
|
|
if HTOP_FREEBSD
|
|
|
|
myhtopplatsources = freebsd/Platform.c freebsd/FreeBSDProcessList.c \
|
|
|
|
freebsd/FreeBSDCRT.c
|
|
|
|
|
|
|
|
myhtopplatheaders = freebsd/Platform.h freebsd/FreeBSDProcessList.h \
|
|
|
|
freebsd/FreeBSDCRT.h
|
|
|
|
endif
|
|
|
|
|
2014-11-24 20:55:03 +00:00
|
|
|
if HTOP_UNSUPPORTED
|
|
|
|
myhtopplatsources = unsupported/Platform.c unsupported/UnsupportedProcessList.c \
|
|
|
|
unsupported/UnsupportedCRT.c
|
|
|
|
|
|
|
|
myhtopplatheaders = unsupported/Platform.h unsupported/UnsupportedProcessList.h \
|
|
|
|
unsupported/UnsupportedCRT.h
|
|
|
|
endif
|
2007-05-21 19:09:19 +00:00
|
|
|
|
|
|
|
SUFFIXES = .h
|
|
|
|
|
2014-11-24 20:55:03 +00:00
|
|
|
BUILT_SOURCES = $(myhtopheaders) $(myhtopplatheaders)
|
|
|
|
htop_SOURCES = $(myhtopheaders) $(myhtopplatheaders) $(myhtopsources) $(myhtopplatsources) config.h
|
|
|
|
|
|
|
|
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
|
|
|
|
2007-05-21 19:09:19 +00:00
|
|
|
.c.h:
|
2013-11-29 12:27:53 +00:00
|
|
|
@srcdir@/scripts/MakeHeader.py $<
|
2007-05-21 19:09:19 +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
|
|
|
|