Makefile.am 1.94 KB
Newer Older
Hisham Muhammad's avatar
Hisham Muhammad committed
1

2
ACLOCAL_AMFLAGS = -I m4
3

Hisham Muhammad's avatar
Hisham Muhammad committed
4
5
bin_PROGRAMS = htop
dist_man_MANS = htop.1
6
7
EXTRA_DIST = $(dist_man_MANS) htop.desktop htop.png scripts/MakeHeader.py \
install-sh autogen.sh missing
Hisham Muhammad's avatar
Hisham Muhammad committed
8
9
10
11
12
applicationsdir = $(datadir)/applications
applications_DATA = htop.desktop
pixmapdir = $(datadir)/pixmaps
pixmap_DATA = htop.png

13
14
htop_CFLAGS = -pedantic -Wall -Wextra -std=c99 -rdynamic -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"$(sysconfdir)\"
AM_CPPFLAGS = -DNDEBUG
Hisham Muhammad's avatar
Hisham Muhammad committed
15

Hisham Muhammad's avatar
Hisham Muhammad committed
16
myhtopsources = AvailableMetersPanel.c CategoriesPanel.c CheckItem.c \
17
ClockMeter.c ColorsPanel.c ColumnsPanel.c CPUMeter.c CRT.c \
Hisham Muhammad's avatar
Hisham Muhammad committed
18
19
DisplayOptionsPanel.c FunctionBar.c Hashtable.c Header.c htop.c ListItem.c \
LoadAverageMeter.c MemoryMeter.c Meter.c MetersPanel.c Object.c Panel.c \
Hisham Muhammad's avatar
Hisham Muhammad committed
20
BatteryMeter.c Process.c ProcessList.c RichString.c ScreenManager.c Settings.c \
21
IOPriorityPanel.c SignalsPanel.c String.c SwapMeter.c TasksMeter.c TraceScreen.c \
22
UptimeMeter.c UsersTable.c Vector.c AvailableColumnsPanel.c AffinityPanel.c \
23
HostnameMeter.c OpenFilesScreen.c Affinity.c IOPriority.c IncSet.c
Hisham Muhammad's avatar
Hisham Muhammad committed
24
25
26

myhtopheaders = AvailableColumnsPanel.h AvailableMetersPanel.h \
CategoriesPanel.h CheckItem.h ClockMeter.h ColorsPanel.h ColumnsPanel.h \
27
IOPriorityPanel.h CPUMeter.h CRT.h DisplayOptionsPanel.h FunctionBar.h \
Hisham Muhammad's avatar
Hisham Muhammad committed
28
Hashtable.h Header.h htop.h ListItem.h LoadAverageMeter.h MemoryMeter.h \
Hisham Muhammad's avatar
Hisham Muhammad committed
29
BatteryMeter.h Meter.h MetersPanel.h Object.h Panel.h ProcessList.h RichString.h \
30
31
32
ScreenManager.h Settings.h SignalsPanel.h String.h SwapMeter.h TasksMeter.h \
TraceScreen.h UptimeMeter.h UsersTable.h Vector.h Process.h AffinityPanel.h \
HostnameMeter.h OpenFilesScreen.h Affinity.h IOPriority.h IncSet.h
Hisham Muhammad's avatar
Hisham Muhammad committed
33
34
35
36

SUFFIXES = .h

BUILT_SOURCES = $(myhtopheaders)
37
htop_SOURCES = $(myhtopheaders) $(myhtopsources) config.h
38

39
profile:
40
	$(MAKE) all CFLAGS="-pg" AM_CPPFLAGS="-pg -O2 -DNDEBUG"
41

Hisham Muhammad's avatar
Hisham Muhammad committed
42
debug:
43
	$(MAKE) all CFLAGS="" AM_CPPFLAGS="-ggdb -DDEBUG"
44

Hisham Muhammad's avatar
Hisham Muhammad committed
45
.c.h:
46
	@srcdir@/scripts/MakeHeader.py $<
Hisham Muhammad's avatar
Hisham Muhammad committed
47

48
cppcheck:
49
	cppcheck -q -v . --enable=all -DHAVE_CGROUP -DHAVE_OPENVZ -DHAVE_TASKSTATS