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