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

2
3
if HAVE_HWLOC
SUBDIRS = hwloc-1.2.1
Hisham Muhammad's avatar
Hisham Muhammad committed
4
endif
5

6
ACLOCAL_AMFLAGS = -I m4 -I hwloc-1.2.1/config
7

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
18
AM_CFLAGS = 
Hisham Muhammad's avatar
Hisham Muhammad committed
19
20
AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"

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

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

SUFFIXES = .h

BUILT_SOURCES = $(myhtopheaders)
htop_SOURCES = $(myhtopheaders) $(myhtopsources) config.h debug.h
43
44
45
46
47

if HAVE_HWLOC
htop_LDADD = $(HWLOC_EMBEDDED_LDADD) $(HWLOC_EMBEDDED_LIBS)
AM_CFLAGS += $(HWLOC_EMBEDDED_CFLAGS)
AM_CPPFLAGS += $(HWLOC_EMBEDDED_CPPFLAGS)
Hisham Muhammad's avatar
Hisham Muhammad committed
48
endif
Hisham Muhammad's avatar
Hisham Muhammad committed
49

50
51
52
profile:
	$(MAKE) all CFLAGS="-pg -O2"

Hisham Muhammad's avatar
Hisham Muhammad committed
53
debug:
54
	$(MAKE) all CFLAGS="-ggdb -DDEBUG"
Hisham Muhammad's avatar
Hisham Muhammad committed
55

56
57
58
hardened-debug:
	$(MAKE) all CFLAGS="-ggdb -DDEBUG" LDFLAGS="-nopie"
 
Hisham Muhammad's avatar
Hisham Muhammad committed
59
debuglite:
60
61
	$(MAKE) all CFLAGS="-ggdb -DDEBUGLITE"

Hisham Muhammad's avatar
Hisham Muhammad committed
62
63
64
65
66
.c.h:
	scripts/MakeHeader.py $<