perf: Report maximum values for counter overflow
[akaros.git] / tools / profile / perf / Makefile
1 include ../../Makefrag
2
3 SOURCES = perf.c perfconv.c xlib.c perf_core.c akaros.c symbol-elf.c
4
5 XCC = $(CROSS_COMPILE)gcc
6
7 LIBS=-lperfmon -lelf
8
9 PHONY := all
10 all: perf
11
12
13 PHONY += perf
14 perf: $(SOURCES)
15         @echo "  CC      perf"
16         $(Q)$(XCC) -O2 -Wall -Wno-format -Wno-unused -Werror \
17                    -std=gnu99 -o perf $(SOURCES) $(LIBS)
18
19
20 PHONY += install
21 install: perf
22         @echo "  IN      perf"
23         $(Q)cp perf $(KFS_ROOT)/bin/perf
24
25
26 PHONY += clean
27 clean:
28         @echo "  RM      perf"
29         $(Q)rm -f perf
30
31
32 PHONY += mrproper
33 mrproper: clean
34
35
36 .PHONY: $(PHONY)