tools/perf/build: Split out feature check: 'stackprotector'
[sfrench/cifs-2.6.git] / tools / perf / config / feature-checks / Makefile
1
2 FILES=                                  \
3         test-hello                      \
4         test-stackprotector-all         \
5         test-stackprotector             \
6         test-libnuma
7
8 CC := $(CC) -MD
9
10 all: $(FILES)
11
12 BUILD = $(CC) -o $(OUTPUT)$@ $@.c
13
14 ###############################
15
16 test-hello:
17         $(BUILD)
18
19 test-stackprotector-all:
20         $(BUILD) -Werror -fstack-protector-all
21
22 test-stackprotector:
23         $(BUILD) -Werror -fstack-protector
24
25 test-libnuma:
26         $(BUILD) -lnuma
27
28 -include *.d */*.d
29
30 ###############################
31
32 clean:
33         rm -f $(FILES) *.d