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