Blob


1 VERSION = 0.1
2 PREFIX = /usr/local
3 MY_CFLAGS = -Wall -Wextra -DVERSION=\"${VERSION}\" ${CFLAGS}
4 LIBS = -lutil -lncurses
6 all: apmtop
8 run: apmtop
9 ./apmtop
11 clean:
12 rm -f apmtop *.core
14 install:
15 mkdir -p ${DESTDIR}${PREFIX}/bin
16 cp -f apmtop ${DESTDIR}${PREFIX}/bin/
18 apmtop: apmtop.c
19 ${CC} -o $@ apmtop.c ${MY_CFLAGS} ${LIBS}