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