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-10-07 15:38:28 +08:00
|
|
|
test-fortify-source \
|
2013-09-30 20:11:46 +08:00
|
|
|
test-bionic \
|
2013-09-30 20:20:25 +08:00
|
|
|
test-libelf \
|
2013-10-07 16:34:20 +08:00
|
|
|
test-glibc \
|
2013-10-07 16:35:39 +08:00
|
|
|
test-dwarf \
|
2013-09-30 21:02:28 +08:00
|
|
|
test-libelf-mmap \
|
2013-09-30 20:35:27 +08:00
|
|
|
test-libelf-getphdrnum \
|
2013-09-30 20:45:44 +08:00
|
|
|
test-libunwind \
|
2013-09-30 20:55:31 +08:00
|
|
|
test-libaudit \
|
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-10-07 15:38:28 +08:00
|
|
|
test-fortify-source:
|
|
|
|
$(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
|
|
|
|
|
2013-09-30 20:11:46 +08:00
|
|
|
test-bionic:
|
|
|
|
$(BUILD)
|
|
|
|
|
2013-09-30 20:20:25 +08:00
|
|
|
test-libelf:
|
|
|
|
$(BUILD) -lelf
|
|
|
|
|
2013-10-07 16:34:20 +08:00
|
|
|
test-glibc:
|
|
|
|
$(BUILD)
|
|
|
|
|
2013-10-07 16:35:39 +08:00
|
|
|
test-dwarf:
|
|
|
|
$(BUILD) -ldw
|
|
|
|
|
2013-09-30 21:02:28 +08:00
|
|
|
test-libelf-mmap:
|
|
|
|
$(BUILD) -lelf
|
|
|
|
|
2013-09-30 20:35:27 +08:00
|
|
|
test-libelf-getphdrnum:
|
|
|
|
$(BUILD) -lelf
|
|
|
|
|
2013-09-30 19:37:10 +08:00
|
|
|
test-libnuma:
|
|
|
|
$(BUILD) -lnuma
|
|
|
|
|
2013-09-30 20:45:44 +08:00
|
|
|
test-libunwind:
|
|
|
|
$(BUILD) -lunwind -lunwind-x86_64 -lelf
|
|
|
|
|
2013-09-30 20:55:31 +08:00
|
|
|
test-libaudit:
|
|
|
|
$(BUILD) -laudit
|
|
|
|
|
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
|