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