]> git.karo-electronics.de Git - karo-tx-linux.git/blob - tools/perf/config/feature-checks/Makefile
tools/perf/build: Split out feature check: 'glibc'
[karo-tx-linux.git] / tools / perf / config / feature-checks / Makefile
1
2 FILES=                                  \
3         test-hello                      \
4         test-stackprotector-all         \
5         test-stackprotector             \
6         test-volatile-register-var      \
7         test-fortify-source             \
8         test-bionic                     \
9         test-libelf                     \
10         test-glibc                      \
11         test-libnuma
12
13 CC := $(CC) -MD
14
15 all: $(FILES)
16
17 BUILD = $(CC) -o $(OUTPUT)$@ $@.c
18
19 ###############################
20
21 test-hello:
22         $(BUILD)
23
24 test-stackprotector-all:
25         $(BUILD) -Werror -fstack-protector-all
26
27 test-stackprotector:
28         $(BUILD) -Werror -fstack-protector
29
30 test-volatile-register-var:
31         $(BUILD) -Werror -Wvolatile-register-var
32
33 test-fortify-source:
34         $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
35
36 test-bionic:
37         $(BUILD)
38
39 test-libelf:
40         $(BUILD) -lelf
41
42 test-glibc:
43         $(BUILD)
44
45 test-libnuma:
46         $(BUILD) -lnuma
47
48 -include *.d */*.d
49
50 ###############################
51
52 clean:
53         rm -f $(FILES) *.d