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