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