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-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-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
|