]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - tools/perf/config/feature-checks/Makefile
tools/perf/build: Split out feature check: 'libslang'
[mirror_ubuntu-zesty-kernel.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-libslang \
17 test-libnuma
18
19 CC := $(CC) -MD
20
21 all: $(FILES)
22
23 BUILD = $(CC) -o $(OUTPUT)$@ $@.c
24
25 ###############################
26
27 test-hello:
28 $(BUILD)
29
30 test-stackprotector-all:
31 $(BUILD) -Werror -fstack-protector-all
32
33 test-stackprotector:
34 $(BUILD) -Werror -fstack-protector
35
36 test-volatile-register-var:
37 $(BUILD) -Werror -Wvolatile-register-var
38
39 test-fortify-source:
40 $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
41
42 test-bionic:
43 $(BUILD)
44
45 test-libelf:
46 $(BUILD) -lelf
47
48 test-glibc:
49 $(BUILD)
50
51 test-dwarf:
52 $(BUILD) -ldw
53
54 test-libelf-mmap:
55 $(BUILD) -lelf
56
57 test-libelf-getphdrnum:
58 $(BUILD) -lelf
59
60 test-libnuma:
61 $(BUILD) -lnuma
62
63 test-libunwind:
64 $(BUILD) -lunwind -lunwind-x86_64 -lelf
65
66 test-libaudit:
67 $(BUILD) -laudit
68
69 test-libslang:
70 $(BUILD) -I/usr/include/slang -lslang
71
72 -include *.d */*.d
73
74 ###############################
75
76 clean:
77 rm -f $(FILES) *.d