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