tools/perf/build: Split out feature check: 'libunwind'
[linux-2.6-block.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 \
e12762cf 10 test-glibc \
8295d4e2 11 test-dwarf \
8869b17e 12 test-libelf-mmap \
b7bcef6f 13 test-libelf-getphdrnum \
058f952d 14 test-libunwind \
3ae069cf 15 test-libnuma
b6aa9979 16
8b6eb56a
IM
17CC := $(CC) -MD
18
b6aa9979
IM
19all: $(FILES)
20
21BUILD = $(CC) -o $(OUTPUT)$@ $@.c
22
23###############################
24
8b6eb56a 25test-hello:
b6aa9979
IM
26 $(BUILD)
27
90ac5422
IM
28test-stackprotector-all:
29 $(BUILD) -Werror -fstack-protector-all
30
430be5ab
IM
31test-stackprotector:
32 $(BUILD) -Werror -fstack-protector
33
c2510445
IM
34test-volatile-register-var:
35 $(BUILD) -Werror -Wvolatile-register-var
36
1ea6f99e
IM
37test-fortify-source:
38 $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
39
78e9d655
IM
40test-bionic:
41 $(BUILD)
42
8f7f8005
IM
43test-libelf:
44 $(BUILD) -lelf
45
e12762cf
IM
46test-glibc:
47 $(BUILD)
48
8295d4e2
IM
49test-dwarf:
50 $(BUILD) -ldw
51
8869b17e
IM
52test-libelf-mmap:
53 $(BUILD) -lelf
54
b7bcef6f
IM
55test-libelf-getphdrnum:
56 $(BUILD) -lelf
57
3ae069cf
IM
58test-libnuma:
59 $(BUILD) -lnuma
60
058f952d
IM
61test-libunwind:
62 $(BUILD) -lunwind -lunwind-x86_64 -lelf
63
8b6eb56a
IM
64-include *.d */*.d
65
b6aa9979
IM
66###############################
67
68clean:
8b6eb56a 69 rm -f $(FILES) *.d