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