2013-09-30 16:08:24 +08:00
|
|
|
|
2013-09-30 19:37:10 +08:00
|
|
|
FILES= \
|
|
|
|
test-hello \
|
2013-09-30 19:48:44 +08:00
|
|
|
test-stackprotector-all \
|
2013-10-07 15:47:00 +08:00
|
|
|
test-stackprotector \
|
2013-09-30 19:58:12 +08:00
|
|
|
test-volatile-register-var \
|
2013-09-30 19:37:10 +08:00
|
|
|
test-libnuma
|
2013-09-30 16:08:24 +08:00
|
|
|
|
2013-09-30 19:51:28 +08:00
|
|
|
CC := $(CC) -MD
|
|
|
|
|
2013-09-30 16:08:24 +08:00
|
|
|
all: $(FILES)
|
|
|
|
|
|
|
|
BUILD = $(CC) -o $(OUTPUT)$@ $@.c
|
|
|
|
|
|
|
|
###############################
|
|
|
|
|
2013-09-30 19:51:28 +08:00
|
|
|
test-hello:
|
2013-09-30 16:08:24 +08:00
|
|
|
$(BUILD)
|
|
|
|
|
2013-09-30 19:48:44 +08:00
|
|
|
test-stackprotector-all:
|
|
|
|
$(BUILD) -Werror -fstack-protector-all
|
|
|
|
|
2013-10-07 15:47:00 +08:00
|
|
|
test-stackprotector:
|
|
|
|
$(BUILD) -Werror -fstack-protector
|
|
|
|
|
2013-09-30 19:58:12 +08:00
|
|
|
test-volatile-register-var:
|
|
|
|
$(BUILD) -Werror -Wvolatile-register-var
|
|
|
|
|
2013-09-30 19:37:10 +08:00
|
|
|
test-libnuma:
|
|
|
|
$(BUILD) -lnuma
|
|
|
|
|
2013-09-30 19:51:28 +08:00
|
|
|
-include *.d */*.d
|
|
|
|
|
2013-09-30 16:08:24 +08:00
|
|
|
###############################
|
|
|
|
|
|
|
|
clean:
|
2013-09-30 19:51:28 +08:00
|
|
|
rm -f $(FILES) *.d
|