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

Hisham Muhammad's avatar
Hisham Muhammad committed
2
if HAVE_PLPA
Hisham Muhammad's avatar
Hisham Muhammad committed
3
SUBDIRS = plpa-1.3.2
Hisham Muhammad's avatar
Hisham Muhammad committed
4
endif
5

6
7
ACLOCAL_AMFLAGS=-I m4

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

17
htop_CFLAGS = -pedantic -Wall -std=c99 -rdynamic -D_XOPEN_SOURCE_EXTENDED
Hisham Muhammad's avatar
Hisham Muhammad committed
18
19
AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"

Hisham Muhammad's avatar
Hisham Muhammad committed
20
21
22
23
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 \
Hisham Muhammad's avatar
Hisham Muhammad committed
24
BatteryMeter.c Process.c ProcessList.c RichString.c ScreenManager.c Settings.c \
Hisham Muhammad's avatar
Hisham Muhammad committed
25
SignalItem.c SignalsPanel.c String.c SwapMeter.c TasksMeter.c TraceScreen.c \
26
UptimeMeter.c UsersTable.c Vector.c AvailableColumnsPanel.c AffinityPanel.c \
Hisham Muhammad's avatar
Hisham Muhammad committed
27
HostnameMeter.c OpenFilesScreen.c
Hisham Muhammad's avatar
Hisham Muhammad committed
28
29
30
31
32

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 \
Hisham Muhammad's avatar
Hisham Muhammad committed
33
BatteryMeter.h Meter.h MetersPanel.h Object.h Panel.h ProcessList.h RichString.h \
Hisham Muhammad's avatar
Hisham Muhammad committed
34
35
ScreenManager.h Settings.h SignalItem.h SignalsPanel.h String.h \
SwapMeter.h TasksMeter.h TraceScreen.h UptimeMeter.h UsersTable.h Vector.h \
Hisham Muhammad's avatar
Hisham Muhammad committed
36
Process.h AffinityPanel.h HostnameMeter.h OpenFilesScreen.h
Hisham Muhammad's avatar
Hisham Muhammad committed
37
38
39
40
41

SUFFIXES = .h

BUILT_SOURCES = $(myhtopheaders)
htop_SOURCES = $(myhtopheaders) $(myhtopsources) config.h debug.h
Hisham Muhammad's avatar
Hisham Muhammad committed
42
if HAVE_PLPA
Hisham Muhammad's avatar
Hisham Muhammad committed
43
htop_LDADD = $(top_builddir)/plpa-1.3.2/src/libplpa/libplpa_included.la
Hisham Muhammad's avatar
Hisham Muhammad committed
44
endif
Hisham Muhammad's avatar
Hisham Muhammad committed
45

46
47
48
profile:
	$(MAKE) all CFLAGS="-pg -O2"

Hisham Muhammad's avatar
Hisham Muhammad committed
49
debug:
50
	$(MAKE) all CFLAGS="-ggdb -DDEBUG"
Hisham Muhammad's avatar
Hisham Muhammad committed
51

52
53
54
hardened-debug:
	$(MAKE) all CFLAGS="-ggdb -DDEBUG" LDFLAGS="-nopie"
 
Hisham Muhammad's avatar
Hisham Muhammad committed
55
debuglite:
56
57
	$(MAKE) all CFLAGS="-ggdb -DDEBUGLITE"

Hisham Muhammad's avatar
Hisham Muhammad committed
58
59
60
61
62
.c.h:
	scripts/MakeHeader.py $<