Ingo Molnar | b6aa997 | 2013-09-30 10:08:24 +0200 | [diff] [blame] | 1 | |
Ingo Molnar | 3ae069c | 2013-09-30 13:37:10 +0200 | [diff] [blame] | 2 | FILES= \ |
3 | test-hello \ | ||||
Ingo Molnar | 90ac542 | 2013-09-30 13:48:44 +0200 | [diff] [blame] | 4 | test-stackprotector-all \ |
Ingo Molnar | 430be5a | 2013-10-07 09:47:00 +0200 | [diff] [blame] | 5 | test-stackprotector \ |
Ingo Molnar | c251044 | 2013-09-30 13:58:12 +0200 | [diff] [blame] | 6 | test-volatile-register-var \ |
Ingo Molnar | 1ea6f99 | 2013-10-07 09:38:28 +0200 | [diff] [blame] | 7 | test-fortify-source \ |
Ingo Molnar | 78e9d65 | 2013-09-30 14:11:46 +0200 | [diff] [blame] | 8 | test-bionic \ |
Ingo Molnar | 8f7f800 | 2013-09-30 14:20:25 +0200 | [diff] [blame] | 9 | test-libelf \ |
Ingo Molnar | e12762c | 2013-10-07 10:34:20 +0200 | [diff] [blame] | 10 | test-glibc \ |
Ingo Molnar | 8295d4e | 2013-10-07 10:35:39 +0200 | [diff] [blame] | 11 | test-dwarf \ |
Ingo Molnar | 8869b17 | 2013-09-30 15:02:28 +0200 | [diff] [blame^] | 12 | test-libelf-mmap \ |
Ingo Molnar | 3ae069c | 2013-09-30 13:37:10 +0200 | [diff] [blame] | 13 | test-libnuma |
Ingo Molnar | b6aa997 | 2013-09-30 10:08:24 +0200 | [diff] [blame] | 14 | |
Ingo Molnar | 8b6eb56 | 2013-09-30 13:51:28 +0200 | [diff] [blame] | 15 | CC := $(CC) -MD |
16 | |||||
Ingo Molnar | b6aa997 | 2013-09-30 10:08:24 +0200 | [diff] [blame] | 17 | all: $(FILES) |
18 | |||||
19 | BUILD = $(CC) -o $(OUTPUT)$@ $@.c | ||||
20 | |||||
21 | ############################### | ||||
22 | |||||
Ingo Molnar | 8b6eb56 | 2013-09-30 13:51:28 +0200 | [diff] [blame] | 23 | test-hello: |
Ingo Molnar | b6aa997 | 2013-09-30 10:08:24 +0200 | [diff] [blame] | 24 | $(BUILD) |
25 | |||||
Ingo Molnar | 90ac542 | 2013-09-30 13:48:44 +0200 | [diff] [blame] | 26 | test-stackprotector-all: |
27 | $(BUILD) -Werror -fstack-protector-all | ||||
28 | |||||
Ingo Molnar | 430be5a | 2013-10-07 09:47:00 +0200 | [diff] [blame] | 29 | test-stackprotector: |
30 | $(BUILD) -Werror -fstack-protector | ||||
31 | |||||
Ingo Molnar | c251044 | 2013-09-30 13:58:12 +0200 | [diff] [blame] | 32 | test-volatile-register-var: |
33 | $(BUILD) -Werror -Wvolatile-register-var | ||||
34 | |||||
Ingo Molnar | 1ea6f99 | 2013-10-07 09:38:28 +0200 | [diff] [blame] | 35 | test-fortify-source: |
36 | $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2 | ||||
37 | |||||
Ingo Molnar | 78e9d65 | 2013-09-30 14:11:46 +0200 | [diff] [blame] | 38 | test-bionic: |
39 | $(BUILD) | ||||
40 | |||||
Ingo Molnar | 8f7f800 | 2013-09-30 14:20:25 +0200 | [diff] [blame] | 41 | test-libelf: |
42 | $(BUILD) -lelf | ||||
43 | |||||
Ingo Molnar | e12762c | 2013-10-07 10:34:20 +0200 | [diff] [blame] | 44 | test-glibc: |
45 | $(BUILD) | ||||
46 | |||||
Ingo Molnar | 8295d4e | 2013-10-07 10:35:39 +0200 | [diff] [blame] | 47 | test-dwarf: |
48 | $(BUILD) -ldw | ||||
49 | |||||
Ingo Molnar | 8869b17 | 2013-09-30 15:02:28 +0200 | [diff] [blame^] | 50 | test-libelf-mmap: |
51 | $(BUILD) -lelf | ||||
52 | |||||
Ingo Molnar | 3ae069c | 2013-09-30 13:37:10 +0200 | [diff] [blame] | 53 | test-libnuma: |
54 | $(BUILD) -lnuma | ||||
55 | |||||
Ingo Molnar | 8b6eb56 | 2013-09-30 13:51:28 +0200 | [diff] [blame] | 56 | -include *.d */*.d |
57 | |||||
Ingo Molnar | b6aa997 | 2013-09-30 10:08:24 +0200 | [diff] [blame] | 58 | ############################### |
59 | |||||
60 | clean: | ||||
Ingo Molnar | 8b6eb56 | 2013-09-30 13:51:28 +0200 | [diff] [blame] | 61 | rm -f $(FILES) *.d |