]> git.karo-electronics.de Git - karo-tx-linux.git/blob - tools/perf/config/feature-checks/Makefile
tools/perf/build: Split out feature check: 'libaudit'
[karo-tx-linux.git] / tools / perf / config / feature-checks / Makefile
1
2 FILES=                                  \
3         test-hello                      \
4         test-stackprotector-all         \
5         test-stackprotector             \
6         test-volatile-register-var      \
7         test-fortify-source             \
8         test-bionic                     \
9         test-libelf                     \
10         test-glibc                      \
11         test-dwarf                      \
12         test-libelf-mmap                \
13         test-libelf-getphdrnum          \
14         test-libunwind                  \
15         test-libaudit                   \
16         test-libnuma
17
18 CC := $(CC) -MD
19
20 all: $(FILES)
21
22 BUILD = $(CC) -o $(OUTPUT)$@ $@.c
23
24 ###############################
25
26 test-hello:
27         $(BUILD)
28
29 test-stackprotector-all:
30         $(BUILD) -Werror -fstack-protector-all
31
32 test-stackprotector:
33         $(BUILD) -Werror -fstack-protector
34
35 test-volatile-register-var:
36         $(BUILD) -Werror -Wvolatile-register-var
37
38 test-fortify-source:
39         $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
40
41 test-bionic:
42         $(BUILD)
43
44 test-libelf:
45         $(BUILD) -lelf
46
47 test-glibc:
48         $(BUILD)
49
50 test-dwarf:
51         $(BUILD) -ldw
52
53 test-libelf-mmap:
54         $(BUILD) -lelf
55
56 test-libelf-getphdrnum:
57         $(BUILD) -lelf
58
59 test-libnuma:
60         $(BUILD) -lnuma
61
62 test-libunwind:
63         $(BUILD) -lunwind -lunwind-x86_64 -lelf
64
65 test-libaudit:
66         $(BUILD) -laudit
67
68 -include *.d */*.d
69
70 ###############################
71
72 clean:
73         rm -f $(FILES) *.d