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