blob: 5693299b48061126e07612928ec37dee6afb687f [file] [log] [blame]
Ingo Molnarb6aa9972013-09-30 10:08:24 +02001
Ingo Molnar3ae069c2013-09-30 13:37:10 +02002FILES= \
3 test-hello \
Ingo Molnar90ac5422013-09-30 13:48:44 +02004 test-stackprotector-all \
Ingo Molnar430be5a2013-10-07 09:47:00 +02005 test-stackprotector \
Ingo Molnarc2510442013-09-30 13:58:12 +02006 test-volatile-register-var \
Ingo Molnar3ae069c2013-09-30 13:37:10 +02007 test-libnuma
Ingo Molnarb6aa9972013-09-30 10:08:24 +02008
Ingo Molnar8b6eb562013-09-30 13:51:28 +02009CC := $(CC) -MD
10
Ingo Molnarb6aa9972013-09-30 10:08:24 +020011all: $(FILES)
12
13BUILD = $(CC) -o $(OUTPUT)$@ $@.c
14
15###############################
16
Ingo Molnar8b6eb562013-09-30 13:51:28 +020017test-hello:
Ingo Molnarb6aa9972013-09-30 10:08:24 +020018 $(BUILD)
19
Ingo Molnar90ac5422013-09-30 13:48:44 +020020test-stackprotector-all:
21 $(BUILD) -Werror -fstack-protector-all
22
Ingo Molnar430be5a2013-10-07 09:47:00 +020023test-stackprotector:
24 $(BUILD) -Werror -fstack-protector
25
Ingo Molnarc2510442013-09-30 13:58:12 +020026test-volatile-register-var:
27 $(BUILD) -Werror -Wvolatile-register-var
28
Ingo Molnar3ae069c2013-09-30 13:37:10 +020029test-libnuma:
30 $(BUILD) -lnuma
31
Ingo Molnar8b6eb562013-09-30 13:51:28 +020032-include *.d */*.d
33
Ingo Molnarb6aa9972013-09-30 10:08:24 +020034###############################
35
36clean:
Ingo Molnar8b6eb562013-09-30 13:51:28 +020037 rm -f $(FILES) *.d