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