]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - tools/perf/config/feature-checks/Makefile
tools/perf/build: Split out feature check: 'libelf'
[mirror_ubuntu-zesty-kernel.git] / tools / perf / config / feature-checks / Makefile
CommitLineData
b6aa9979 1
3ae069cf
IM
2FILES= \
3 test-hello \
90ac5422 4 test-stackprotector-all \
430be5ab 5 test-stackprotector \
c2510445 6 test-volatile-register-var \
1ea6f99e 7 test-fortify-source \
78e9d655 8 test-bionic \
8f7f8005 9 test-libelf \
3ae069cf 10 test-libnuma
b6aa9979 11
8b6eb56a
IM
12CC := $(CC) -MD
13
b6aa9979
IM
14all: $(FILES)
15
16BUILD = $(CC) -o $(OUTPUT)$@ $@.c
17
18###############################
19
8b6eb56a 20test-hello:
b6aa9979
IM
21 $(BUILD)
22
90ac5422
IM
23test-stackprotector-all:
24 $(BUILD) -Werror -fstack-protector-all
25
430be5ab
IM
26test-stackprotector:
27 $(BUILD) -Werror -fstack-protector
28
c2510445
IM
29test-volatile-register-var:
30 $(BUILD) -Werror -Wvolatile-register-var
31
1ea6f99e
IM
32test-fortify-source:
33 $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
34
78e9d655
IM
35test-bionic:
36 $(BUILD)
37
8f7f8005
IM
38test-libelf:
39 $(BUILD) -lelf
40
3ae069cf
IM
41test-libnuma:
42 $(BUILD) -lnuma
43
8b6eb56a
IM
44-include *.d */*.d
45
b6aa9979
IM
46###############################
47
48clean:
8b6eb56a 49 rm -f $(FILES) *.d