]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - tools/perf/config/feature-checks/Makefile
bf96e34509f46dec38428a8ae4dabae63fd8d583
[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-libnuma
14
15 CC := $(CC) -MD
16
17 all: $(FILES)
18
19 BUILD = $(CC) -o $(OUTPUT)$@ $@.c
20
21 ###############################
22
23 test-hello:
24         $(BUILD)
25
26 test-stackprotector-all:
27         $(BUILD) -Werror -fstack-protector-all
28
29 test-stackprotector:
30         $(BUILD) -Werror -fstack-protector
31
32 test-volatile-register-var:
33         $(BUILD) -Werror -Wvolatile-register-var
34
35 test-fortify-source:
36         $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
37
38 test-bionic:
39         $(BUILD)
40
41 test-libelf:
42         $(BUILD) -lelf
43
44 test-glibc:
45         $(BUILD)
46
47 test-dwarf:
48         $(BUILD) -ldw
49
50 test-libelf-mmap:
51         $(BUILD) -lelf
52
53 test-libnuma:
54         $(BUILD) -lnuma
55
56 -include *.d */*.d
57
58 ###############################
59
60 clean:
61         rm -f $(FILES) *.d