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