2006-03-04 18:16:49 +00:00
|
|
|
|
2011-09-26 03:24:22 +00:00
|
|
|
if HAVE_BUNDLED_HWLOC
|
2011-09-24 00:30:47 +00:00
|
|
|
SUBDIRS = hwloc-1.2.1
|
2009-03-11 13:15:43 +00:00
|
|
|
endif
|
2008-03-05 09:46:47 +00:00
|
|
|
|
2011-09-24 00:30:47 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I m4 -I hwloc-1.2.1/config
|
2010-11-20 18:54:39 +00:00
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
bin_PROGRAMS = htop
|
|
|
|
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
|
|
|
|
|
2011-10-25 00:05:46 +00:00
|
|
|
htop_CFLAGS = -pedantic -Wall -Wextra -std=c99 -rdynamic -D_XOPEN_SOURCE_EXTENDED
|
2011-09-24 00:30:47 +00:00
|
|
|
AM_CFLAGS =
|
2006-03-04 18:16:49 +00:00
|
|
|
AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
|
|
|
|
|
2007-05-21 19:09:19 +00:00
|
|
|
myhtopsources = AvailableMetersPanel.c CategoriesPanel.c CheckItem.c \
|
|
|
|
ClockMeter.c ColorsPanel.c ColumnsPanel.c CPUMeter.c CRT.c DebugMemory.c \
|
|
|
|
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 \
|
2007-05-21 19:09:19 +00:00
|
|
|
SignalItem.c 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 \
|
2011-09-24 00:30:47 +00:00
|
|
|
HostnameMeter.c OpenFilesScreen.c Affinity.c
|
2007-05-21 19:09:19 +00:00
|
|
|
|
|
|
|
myhtopheaders = AvailableColumnsPanel.h AvailableMetersPanel.h \
|
|
|
|
CategoriesPanel.h CheckItem.h ClockMeter.h ColorsPanel.h ColumnsPanel.h \
|
|
|
|
CPUMeter.h CRT.h DebugMemory.h DisplayOptionsPanel.h FunctionBar.h \
|
|
|
|
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 \
|
2007-05-21 19:09:19 +00:00
|
|
|
ScreenManager.h Settings.h SignalItem.h SignalsPanel.h String.h \
|
|
|
|
SwapMeter.h TasksMeter.h TraceScreen.h UptimeMeter.h UsersTable.h Vector.h \
|
2011-09-24 00:30:47 +00:00
|
|
|
Process.h AffinityPanel.h HostnameMeter.h OpenFilesScreen.h Affinity.h
|
2007-05-21 19:09:19 +00:00
|
|
|
|
|
|
|
SUFFIXES = .h
|
|
|
|
|
|
|
|
BUILT_SOURCES = $(myhtopheaders)
|
|
|
|
htop_SOURCES = $(myhtopheaders) $(myhtopsources) config.h debug.h
|
2011-09-24 00:30:47 +00:00
|
|
|
|
2011-09-26 03:24:22 +00:00
|
|
|
if HAVE_BUNDLED_HWLOC
|
2011-09-24 00:30:47 +00:00
|
|
|
htop_LDADD = $(HWLOC_EMBEDDED_LDADD) $(HWLOC_EMBEDDED_LIBS)
|
|
|
|
AM_CFLAGS += $(HWLOC_EMBEDDED_CFLAGS)
|
|
|
|
AM_CPPFLAGS += $(HWLOC_EMBEDDED_CPPFLAGS)
|
2009-03-11 13:15:43 +00:00
|
|
|
endif
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2006-07-11 06:13:32 +00:00
|
|
|
profile:
|
|
|
|
$(MAKE) all CFLAGS="-pg -O2"
|
|
|
|
|
2006-03-24 03:39:04 +00:00
|
|
|
debug:
|
2006-11-08 21:46:40 +00:00
|
|
|
$(MAKE) all CFLAGS="-ggdb -DDEBUG"
|
2006-05-30 14:26:30 +00:00
|
|
|
|
2006-11-08 21:46:40 +00:00
|
|
|
hardened-debug:
|
|
|
|
$(MAKE) all CFLAGS="-ggdb -DDEBUG" LDFLAGS="-nopie"
|
|
|
|
|
2006-05-30 14:26:30 +00:00
|
|
|
debuglite:
|
2006-11-08 21:46:40 +00:00
|
|
|
$(MAKE) all CFLAGS="-ggdb -DDEBUGLITE"
|
|
|
|
|
2007-05-21 19:09:19 +00:00
|
|
|
.c.h:
|
|
|
|
scripts/MakeHeader.py $<
|
|
|
|
|
|
|
|
|
|
|
|
|