]> git.karo-electronics.de Git - karo-tx-linux.git/blob - tools/perf/config/feature-checks/Makefile
tools/perf/build: Split out feature check: 'fortify-source'
[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-libnuma
9
10 CC := $(CC) -MD
11
12 all: $(FILES)
13
14 BUILD = $(CC) -o $(OUTPUT)$@ $@.c
15
16 ###############################
17
18 test-hello:
19         $(BUILD)
20
21 test-stackprotector-all:
22         $(BUILD) -Werror -fstack-protector-all
23
24 test-stackprotector:
25         $(BUILD) -Werror -fstack-protector
26
27 test-volatile-register-var:
28         $(BUILD) -Werror -Wvolatile-register-var
29
30 test-fortify-source:
31         $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
32
33 test-libnuma:
34         $(BUILD) -lnuma
35
36 -include *.d */*.d
37
38 ###############################
39
40 clean:
41         rm -f $(FILES) *.d