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