Debian Codegraph @

Makefile

raw symbols SCIP
1 CFLAGS ?= -O2 -g -Wall -Wextra -Werror
2 PREFIX ?= /usr/local
3
4 all: fatrace tests/slow-exit.so
5
6 fatrace: fatrace.o
7 $(CC) $(LDFLAGS) -o $@ $<
8
9 clean:
10 rm -f *.o fatrace tests/slow-exit.so
11
12 distclean: clean
13
14 install: fatrace
15 install -m 755 -D fatrace $(DESTDIR)$(PREFIX)/sbin/fatrace
16 install -m 755 power-usage-report $(DESTDIR)$(PREFIX)/sbin/
17 install -d $(DESTDIR)$(PREFIX)/share/man/man8/
18 install -m 644 *.8 $(DESTDIR)$(PREFIX)/share/man/man8/
19
20 tests/slow-exit.so: tests/slow-exit.c
21 $(CC) -shared -fPIC -o $@ $< -ldl
22
23 lint:
24 ruff check power-usage-report
25 ruff check tests
26 mypy power-usage-report
27 mypy tests
28
29
30 .PHONY: all clean distclean install lint