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 | 3ae069c | 2013-09-30 13:37:10 +0200 | [diff] [blame] | 7 | test-libnuma |
Ingo Molnar | b6aa997 | 2013-09-30 10:08:24 +0200 | [diff] [blame] | 8 | |
Ingo Molnar | 8b6eb56 | 2013-09-30 13:51:28 +0200 | [diff] [blame] | 9 | CC := $(CC) -MD |
10 | |||||
Ingo Molnar | b6aa997 | 2013-09-30 10:08:24 +0200 | [diff] [blame] | 11 | all: $(FILES) |
12 | |||||
13 | BUILD = $(CC) -o $(OUTPUT)$@ $@.c | ||||
14 | |||||
15 | ############################### | ||||
16 | |||||
Ingo Molnar | 8b6eb56 | 2013-09-30 13:51:28 +0200 | [diff] [blame] | 17 | test-hello: |
Ingo Molnar | b6aa997 | 2013-09-30 10:08:24 +0200 | [diff] [blame] | 18 | $(BUILD) |
19 | |||||
Ingo Molnar | 90ac542 | 2013-09-30 13:48:44 +0200 | [diff] [blame] | 20 | test-stackprotector-all: |
21 | $(BUILD) -Werror -fstack-protector-all | ||||
22 | |||||
Ingo Molnar | 430be5a | 2013-10-07 09:47:00 +0200 | [diff] [blame] | 23 | test-stackprotector: |
24 | $(BUILD) -Werror -fstack-protector | ||||
25 | |||||
Ingo Molnar | c251044 | 2013-09-30 13:58:12 +0200 | [diff] [blame^] | 26 | test-volatile-register-var: |
27 | $(BUILD) -Werror -Wvolatile-register-var | ||||
28 | |||||
Ingo Molnar | 3ae069c | 2013-09-30 13:37:10 +0200 | [diff] [blame] | 29 | test-libnuma: |
30 | $(BUILD) -lnuma | ||||
31 | |||||
Ingo Molnar | 8b6eb56 | 2013-09-30 13:51:28 +0200 | [diff] [blame] | 32 | -include *.d */*.d |
33 | |||||
Ingo Molnar | b6aa997 | 2013-09-30 10:08:24 +0200 | [diff] [blame] | 34 | ############################### |
35 | |||||
36 | clean: | ||||
Ingo Molnar | 8b6eb56 | 2013-09-30 13:51:28 +0200 | [diff] [blame] | 37 | rm -f $(FILES) *.d |