Debian Codegraph @

Makefile

raw symbols SCIP
1 BINDIR=/usr/sbin
2 MANDIR=/usr/share/man/man8
3
4 CFLAGS?=-O1 -g -Wall -Wshadow
5 CC?=gcc
6
7 OBJS = powerdebug.o sensor.o clocks.o regulator.o gpio.o \
8 display.o tree.o utils.o mainloop.o
9
10 default: powerdebug
11
12 powerdebug.8.gz: powerdebug.8
13 gzip -c $< > $@
14
15 powerdebug: $(OBJS) powerdebug.h
16 $(CC) ${CFLAGS} $(OBJS) -lncurses -o powerdebug
17
18 install: powerdebug powerdebug.8.gz
19 install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MANDIR}
20 install -m 0755 powerdebug ${DESTDIR}${BINDIR}
21 install -m 0644 powerdebug.8.gz ${DESTDIR}${MANDIR}
22
23 all: powerdebug powerdebug.8.gz
24
25 clean:
26 rm -f powerdebug ${OBJS} powerdebug.8.gz