Marcin Juszkiewicz | 807e4fa | 2011-01-12 17:25:16 -0600 | [diff] [blame] | 1 | BINDIR=/usr/sbin |
Amit Arora | 39f2954 | 2010-09-14 12:03:22 +0530 | [diff] [blame] | 2 | MANDIR=/usr/share/man/man8 |
3 | |||||
Daniel Lezcano | 00af33e | 2011-05-24 15:27:49 +0200 | [diff] [blame^] | 4 | CFLAGS?=-O1 -g -Wall -Wshadow |
Amit Arora | e9e16b0 | 2010-08-03 10:15:20 +0530 | [diff] [blame] | 5 | CC?=gcc |
6 | |||||
Amit Arora | 1755278 | 2010-12-02 12:23:14 +0530 | [diff] [blame] | 7 | OBJS = powerdebug.o sensor.o clocks.o regulator.o display.o |
Amit Arora | 728e0c9 | 2010-09-14 12:06:09 +0530 | [diff] [blame] | 8 | |
9 | default: powerdebug | ||||
Amit Arora | e9e16b0 | 2010-08-03 10:15:20 +0530 | [diff] [blame] | 10 | |
Amit Arora | 39f2954 | 2010-09-14 12:03:22 +0530 | [diff] [blame] | 11 | powerdebug.8.gz: powerdebug.8 |
12 | gzip -c $< > $@ | ||||
Amit Arora | e9e16b0 | 2010-08-03 10:15:20 +0530 | [diff] [blame] | 13 | |
14 | powerdebug: $(OBJS) powerdebug.h | ||||
Amit Arora | 39f2954 | 2010-09-14 12:03:22 +0530 | [diff] [blame] | 15 | $(CC) ${CFLAGS} $(OBJS) -lncurses -o powerdebug |
Amit Arora | e9e16b0 | 2010-08-03 10:15:20 +0530 | [diff] [blame] | 16 | |
Amit Arora | 39f2954 | 2010-09-14 12:03:22 +0530 | [diff] [blame] | 17 | install: powerdebug powerdebug.8.gz |
Marcin Juszkiewicz | 807e4fa | 2011-01-12 17:25:16 -0600 | [diff] [blame] | 18 | install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MANDIR} |
19 | install -m 0755 powerdebug ${DESTDIR}${BINDIR} | ||||
20 | install -m 0644 powerdebug.8.gz ${DESTDIR}${MANDIR} | ||||
Amit Arora | e9e16b0 | 2010-08-03 10:15:20 +0530 | [diff] [blame] | 21 | |
Amit Arora | 728e0c9 | 2010-09-14 12:06:09 +0530 | [diff] [blame] | 22 | all: powerdebug powerdebug.8.gz |
23 | |||||
Amit Arora | e9e16b0 | 2010-08-03 10:15:20 +0530 | [diff] [blame] | 24 | clean: |
Daniel Lezcano | 00af33e | 2011-05-24 15:27:49 +0200 | [diff] [blame^] | 25 | rm -f powerdebug ${OBJS} powerdebug.8.gz |