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